Myabe I will try to add to lib
Categories: Rovio Development
Works, but i think cos there.s a problem with the length, somebody can fix it? { string _rovioIPAddress = "{ROVIOIP:PORT}"; Uri URL = new Uri(http://{ROVIOIP:PORT}/GetAudio.cgi); request.ContentType = "application/x-www-form-urlencoded"; NetworkCredential myCred = new NetworkCredential("USER", "PASSWORD"); request.Credentials = MyCrendentialCache; szSend = StringToByteArray(temp); SpeechSynthesizer speaker = new SpeechSynthesizer(); speaker.Volume = 100; speaker.Rate = -2; speaker.Speak(texto); byte[] output = new byte[stream.Length];stream.Read(output, 0, (int)stream.Length); { } HttpWebResponse response; try { { reader.ReadToEnd(); } } { } { } finally { } }
Feel free to manage the code as you like it, check codeplex i posted two functions more in discusions.
Ps.- the library has a bug (sintax like), on the movement control, check it please.
Regards.
Hi, I realised this is an year old thread and I just hope someone will read it. I am new to Rovio development and I was just testing some features. The above code works for me except after completion it hangs up!
Does someone has the fix for the problem with the length.
(the above code)? (or some idea for me to try)
RSS


I forget some code:
private static byte[] StringToByteArray(string inputString)
{
System.Text.ASCIIEncoding encoding = new System.Text.ASCIIEncoding();
return encoding.GetBytes(inputString);
}