Striking terror into the hearts of all Guitar Hero III Playaz.
private void btnSpeak_Click(object sender, EventArgs e){ SpeechVoiceSpeakFlags SpFlags = SpeechVoiceSpeakFlags.SVSFlagsAsync; SpVoice VoiceDemo = new SpVoice(); WebRequest DemoWebRequest = WebRequest.Create("http://msmvps.com/WilliamRyan"); WebResponse DemoWebResponse = DemoWebRequest.GetResponse(); Stream ReceiveStream = DemoWebResponse.GetResponseStream(); Encoding encoding = Encoding.GetEncoding("utf-8"); StreamReader readStream = new StreamReader(ReceiveStream, encoding); String Response = readStream.ReadToEnd(); VoiceDemo.Speak(Response, SpFlags); readStream.Close(); DemoWebResponse.Close();}
Hey Bill.. i've been attempting to strip content off sites for yonks and generally give up due to bad HTML formatting on the sites i'm scouring. but, for blogs, why don't you just access the RSS feed or the Atom feed? wouldn't that be generally easier than attempting to locate the actual post within the HTML?
Sounds like an interesting project. I'm also curious why you don't just grab the RSS. I would think that it is more standard and should have less formatting issues for you.
Thanks guys. I was going after the HTML at first so I could use it as a general reader of web pages but it would probably make sense to just detect if it's RSS and parse it differently. It will have some branch logic but it'd probably be a lot easier. Will give it a try tonight. Thanks!
Hey Bill, knowing less than nothing about speech server et al i was wondering what's required to run one? sounds like an interesting project and i always like to get my hands on new toys - especially since we're decommissioning a ton of servers at work and i'm in line to get hold of quite a few of them
Basically you need an install file and a computer. If you want to do telephony, you need a phone board, I got an intel dialogix for under $200.00 on ebay (granted, I'm just one dork in a house and I'm not running Fedex's automated phone system with my $180.00 board or anything, but a cheapo board is all you need for testing purposes). Download the Speech Application SDK SASDK 1.1 and off you go. It's more addictive then Biztalk or even Crack
Brian, Come on over to GotSpeech.Net and sign-up for the free Brooktrout Starter Kit we are giving away. Just follow the link on the right-hand side of our home page. If you win you'll have everything you need to start messing around with Speech Server. Hey Bill - Jonathan Hassell emailed me.
Brilliant Marshal, thanks for that!! heading over there now. didn't quite see the comment box here - seems that Billy here has gotten himself some lucky comment-spam :)