Last active
April 6, 2018 01:45
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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