Play Google TTS in the Windows Store app

I am making a Windows 8 application in C #. In this application, I have the text to speech part. I am currently using a bing api translator, but I have found that the Google TTS api is very efficient. I used this code

<MediaElement x:Name="medEle" AudioCategory="BackgroundCapableMedia" Height="100" Width="100"/> private void speakword(object sender, RoutedEventArgs e) { prgrsRing_Copy.IsActive = true; string path = "http://translate.google.com/translate_tts?tl=en&q=Windows"; medEle.Source = new Uri(path,UriKind.RelativeOrAbsolute); medEle.Play(); prgrsRing_Copy.IsActive = false; } 

But that does not work. Please help me do this.

+4
source share

Source: https://habr.com/ru/post/1485867/


All Articles