+94766046492

©2018 by Hiran Peiris. Proudly created with Wix.com

Search
  • Hiran Peiris

Text to Speech with Xamarin.Forms



Today, I am gonna teach you how to integrate Text-To-Speech functionality to your mobile apps. Text-To-Speech is a very rich and cool feature to integrate. It will improve the user friendliness and attractiveness of your application. Now let see, how we can use it with Xamarin.Froms.

For this tutorial, I am gonna use Xam.Plugins.TextToSpeech plugin which is written by James Montemagno.

Nuget: https://www.nuget.org/packages/Xam.Plugins.TextToSpeech/

Now lets create,


1. Create a Xamarin.Forms App.



2. Create the UI































3. Add Xam.Plugins.TextToSpeech from Nuget


Note: You have to add this package to each project in the solution (PCL, .iOS, .Droid).



4. Wiring up


5. Build and run.






Get the source code from https://github.com/hiranpeiris/TTS

Happy coding…

5 views