View Single Post
Posts: 31 | Thanked: 38 times | Joined on Dec 2010
#93
Great to see so much happening around the navigation. Good work! I fiddled a bit more on the python espeak server. The new version now:

- sets cache headers
- doesn't get confused by slashes

- http://localhost:9999/turn right
will read out "turn right"

- http://localhost:9999/:turn-right.wav
will play "sounds/turn-right.wav" because the colon after the slash triggerd sound file handling

- http://localhost:9999/:turn-right.wav|at broadway then|:turn-left.wav
will play sound file,reat out 'at broaway then', play another sound file

- adds commands to a talk queue with each request

- http://localhost:9999/CQ
clears the queue

Very much a quick hack. It works better on my n900 then on my laptop - there aplay adds a second or two after each file. And of course, its utterly insecure to be able to pass in filenames - a mapping of sorts in the code is required. But maybe good enough for playing around :-)

https://baach.de/Members/jhb/speak_02.py/view
 

The Following 7 Users Say Thank You to jhb For This Useful Post: