Is it possible to use TTS in iOS

2020-02-26 01:47发布

问题:

Does anyone know if it is possible to implement TTS in iOS development like in Android? Is it in a library or something? I believe I heard something about utility and TTS in iOS but I have had difficulty finding any documentation on this matter. Any help would be appreciated.

回答1:

flite TTS has been turned into an iOS library available here.

It is not too hard to implement. Be aware that the performance that you see in the simulator is way better than on a device and you will need to budget extra for device testing.



回答2:

Check out my project, it's a really easy to use TTS that capitalizes on Google's TTS for translation services. To make it talk, just use an AVAudioPlayer to play the NSMutableData that the method passes. Check out the project here.



回答3:

If you mean text-to-speech, there are a variety of accessibility based technologies such as VoiceOver which are discussed with the Accessibility Programming Guide for iOS.

That said, I don't believe these are available for use outside of the realms of accessibility. (i.e.: You can't use these to perform text to speech on demand as far as I'm aware.)