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.
RSS


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