RSS Forums RSS
Please support our Python advertiser: Programming Forums

Verbal raw input?

Join Date: Jul 2006
Posts: 562
Reputation: jrcagle is on a distinguished road 
Rep Power: 4
Solved Threads: 72
jrcagle jrcagle is offline Offline
Posting Pro

Re: Verbal raw input?

  #9  
Nov 6th, 2007
Oh ... nevermind. This should be easier. On the website vega linked to, we find this:

  1. ...
  2. def OnRecognition(self, StreamNumber, StreamPosition, RecognitionType, Result):
  3. newResult = win32com.client.Dispatch(Result)
  4. print "You said: ",newResult.PhraseInfo.GetText()

I'm not sure yet how the results are gotten ... your code does that already, I presume ... but newResult, the return value from win32com.client.Dispatch(Result), has a GetText() method.

That's your equivalent to raw_input().

Jeff
Reply With Quote  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 2:45 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC