View Single Post
Posts: 31 | Thanked: 38 times | Joined on Dec 2010
#159
Originally Posted by osama View Post
thanks Blaizzen for good job

but i have this problem in last line , it's for street name

because the street name in Arabic but for English it is work fine , any idea for remove the last line ?

Code:
~ $ python speak_02.py
serving at port 9999 in english
Nokia-N900 - - [20/Jan/2011 18:42:55] "GET /CQ|140|:g5unt_002|:g5man_004|on|%D8%A7%D9%84%D8%B4%D8%A7%D8%B1%D8%B9 HTTP/1.1" 200 -
['/usr/bin/espeak', '-v', 'english', '"140"']
['/usr/bin/aplay', 'english/english_male/g5unt_002']
Playing WAVE 'english/english_male/g5unt_002' : Signed 16 bit Little Endian, Rate 16000 Hz, Mono
['/usr/bin/aplay', 'english/english_male/g5man_004']
Playing WAVE 'english/english_male/g5man_004' : Signed 16 bit Little Endian, Rate 16000 Hz, Mono
['/usr/bin/espeak', '-v', 'english', '"on"']
['/usr/bin/espeak', '-v', 'english', '"%D8%A7%D9%84%D8%B4%D8%A7%D8%B1%D8%B9"']
I'd say its either the index.html not encoding the arabic letters correctly, or the script not parsing the input correctly (it doesn't do any proper handing of encoding). Problem: espeak --voices tells me there is no arabic voice at all (but 7 en/* ?). So not really sure what to do about it.

In the meantime I quickly updated the script so that if it encounters some urlencoded characters it will turn the input into 'something'. Absolutely no long term solution:-)

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

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