View Single Post
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#299
Bonjour titi.

Do You use the python server with speak_02.py?
Then You already modified that file to match the specific language folder (to french):
SOUNDPATH = 'english/english_male/' #relative to where you run the server

just continue with the next lines
if len(sys.argv) < 2:
language = 'english'
else:
language = sys.argv[1]

and replace english with french and you will hear:
CENT ET DIX mètres, tournez à gauche

Another possibility is to call the python script with parameter 'french':
nohup ./speak_03.py french >/dev/null &