user3494715
user3494715

Reputation: 13

How to make use of Text to Speech in Windows Phone App

I am a newbie to Windows Phone App Development. I am building a Windows Phone App where I want the App to greet the logged in user and also greet when logging out.

Upvotes: 1

Views: 49

Answers (1)

Anubhav Ranjan
Anubhav Ranjan

Reputation: 1588

You can make use of the built-in Text-To-Speech engine. It doesn't even need to connect to internet.

You can try something like this:

var text2speech = new SpeechSynthesizer();
await text2speech.SpeakTextAsync("Welcome to Text To Speech");

Hope it works. You can easily include this in a function and call it when the MainPage loads.

See more at: http://www.programfreaks.com/windowsphone/texttospeech.aspx

Upvotes: 1

Related Questions