How to convert text to speech to use PhoneGap on iPhone

I have a list of words that I want to convert into voice functionality for PhoneGap iPhone. Is there an API or plugin for TTS? Please let me know about any alternatives.

+6
source share
3 answers

because there is no cellular communication method (javascript) for this. I recommend using one of the native TTS open source libraries, for example:

https://bitbucket.org/sfoster/iphone-tts/src

or

https://github.com/todoroo/iPhone-Speech-To-Text

and then connect them to your javascript-html code using a simple plugin (more about writing the plugin: http://docs.phonegap.com/en/2.0.0/guide_plugin-development_index.md.html

just so simple!

+5
source

Have you checked the Github repository for PhoneGap plugins? (Located here: https://github.com/phonegap/phonegap-plugins ) There is actually a TTS plugin for Android: https://github.com/phonegap/phonegap-plugins/tree/master/Android/TTS

+3
source

cordova tts plugin works on iPhone:

TTS .speak('hello, world!', function () { alert('text spoken'); }, function (reason) { alert(reason); }); 

The plugin uses the AVSpeechSynthesizer class in iOS and also works in Android, Windows Phone.

+1
source

Source: https://habr.com/ru/post/924443/


All Articles