Yeah exactly I wanted to do that. What should I do now to play sound 
through the browser?

On Tuesday, April 5, 2016 at 9:02:48 PM UTC+5:30, Anthony wrote:
>
> On Monday, April 4, 2016 at 5:03:44 AM UTC-4, Stephen Duisberg wrote:
>>
>> def rough():
>>     e = pyttsx.init()
>>     e.say('Sally sells seashells by the seashore.')
>>     e.say('The quick brown fox jumped over the lazy dog.')
>>     
>>     return locals()
>>
>>
>> {{extend 'layout.html'}}
>> {{e.runAndWait()}}
>> {{e.stop()}}
>>
>
> First, can you explain what you are trying to do? Are you expecting sounds 
> to play when the web page is loaded in the browser? Note, any Python code 
> in a view is executed *on the server* before the final rendered HTML is 
> sent to the browser. So, nothing will happen in the browser, and the sounds 
> will only be played on the machine where web2py is running. Is that what 
> you are expecting?
>
> Anthony
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to