> > > Here's another reason for avoiding eval(). Presumably a['hypotheses'] is > set by the code you download and then eval. That makes it completely > opaque -- you can't easily see what it is doing, and if it plays up, you > can't do anything about it. It's a complete black box that either works > or doesn't work. > >
The API is undocumented, as far as I can tell. That being said, it appears to be JSON-oriented. http://mikepultz.com/2011/03/accessing-google-speech-api-chrome-11/ So the original questioner should use a JSON parser, rather than eval(). For example: http://www.athoughtabroad.com/2013/05/22/using-google-s-speech-recognition-web-service-with-python
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor