0

I am working on text to speech conversion in windows 8.1 (silverlight) and i need to access the SynthesizeTextToStreamAsync method for which I need to add reference to Windows.media.speechSynthesis. I am unable to add this reference to my project

it shows me error message as

A reference to a higher version or incompatible assembly cannot be added to the project.

I am currently using Visual studio 2013 professional version. Can someone please help me out with this issue?

rink.attendant.6
  • 44,500
  • 61
  • 101
  • 156
  • Here is my code for this part private void Button_Click(object sender, RoutedEventArgs e) { SpeakText(audioPlayer, "Hello world"); } private async void SpeakText(MediaElement audioPlayer, string TTS) { Windows.Phone.Speech.Synthesis.SpeechSynthesizer ttssynthesizer = new Windows.Phone.Speech.Synthesis.SpeechSynthesizer(); SpeechSynthesisStream ttsStream = await ttssynthesizer.SynthesizeTextToStreamAsync(TTS); audioPlayer.SetSource(ttsStream, ""); } – Srikanth Sai Jun 18 '15 at 14:56

1 Answers1

0

Look at MSDN, it is only supported in 8.1 XAML apps, not in 8.1 Silverlight apps.

Igor Kulman
  • 16,211
  • 10
  • 57
  • 118