No one have the solution?
I find code for Ionic only, but i don’t know how to convert to a Ionic 2 environment…
I’m quite new in Ionic 2, and don’t have so much flexibilities.
We have a TTS (text-to-speech) added to our Ionic2 application using the cordova library https://github.com/vilic/cordova-plugin-tts. There is some documentation at the bottom of the page to use it with typescript. Basically what it does is adds a global variable named “TTS” and you can just call that with to issue any text speaking. The instructions on the page on how to install work for installing it into an Ionic2 application. Hopefully that helps.
When I call listenForSpeech method, I get this error message:
listenForSpeech() recognitionTask error: Error Domain=kAFAssistantErrorDomain Code=203 “Timeout” UserInfo={NSLocalizedDescription=Timeout, NSUnderlyingError=0x60800005bc00 {Error Domain=SiriSpeechErrorDomain Code=100 “(null)”}}