Skip to content

Instantly share code, notes, and snippets.

@juucustodio
Last active April 6, 2018 01:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juucustodio/0baeac051d7a66e1462a9e3195727a99 to your computer and use it in GitHub Desktop.
Save juucustodio/0baeac051d7a66e1462a9e3195727a99 to your computer and use it in GitHub Desktop.
Example of Xamarin.Forms app to converter text to speech - http://julianocustodio.com/TextToSpeech
using System;
using Plugin.TextToSpeech;
using Xamarin.Forms;
namespace TextToSpeechDemo
{
public partial class MainPage : ContentPage
{
public MainPage()
{
InitializeComponent();
}
public async void ButtonClick(object sender, EventArgs e)
{
if (!String.IsNullOrWhiteSpace(Texto.Text))
await CrossTextToSpeech.Current.Speak(Texto.Text);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment