C# Speech Synthesis

Viewed 1123

I have an application that reads a text file into byte array, then I convert this array to string and send it as an input to the speak method of the SpeechSynthesizer but the SPEAK method doen't speak..

if I just send a regular temp string it works fine.. but when I convert the byte array to string it doesn't work.

what I did is when I read the line from the text file I use this lines of code

UTF8Encoding temp = new UTF8Encoding(true);
string whatToSay = temp.getString(b);
speech.Speak(whatToSay); // it doesn't work even though the above line returns the  
                            correct string

so I wonder what is the difference if I write just this:

spech.Speak("hello"); // this works perfect

is there any difference between those strings? the speak method doesn't get UTF8 ?

1 Answers
Related