I am creating an application which converts text to speech using silverlight 4.0. Two options which I found can be used are:
- Use TTS at client side, which requires the application to be run OOB. Also since it uses native windows components, can’t be used in any other platforms (MAC).
- Use TTS conversion at WCF end. This again requires the WCF service to be hosted on IIS with Local System account for application pool.
Are there any other options in which we dont have to provide the elevated permissions?
Another good solution is using google TTS – http://translate.google.com/translate_tts
The code would be like this:
If using silverlight, the data which is fetched from the above code(in byte array), can be set as the source of media element with converting to memore stream as below:
Where textToSpeech is the byte array as returned from google tts.