Click here to Skip to main content
15,892,643 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I've been trying to find a good TTS that speaks in Chinese. But I've been encountering problems with pyttsx or tropo I've tried:

What I have tried:

pyttsx code:
# -*- coding: utf-8 -*-
#!/usr/bin/env python3
import pyttsx
engine = pyttsx.init()
a=u'嗨'
print(a)
engine.say(a)

however, it prints right, but the computer is spitting gibberish, does anyone know why is it not speaking chinese?

tropo code:
tropo = Tropo()
tropo.say("Hello, World")
jsondata = tropo.RenderJson()
jsonToPython=json.loads(jsondata)

but I don't know how to send the json object for it to perform the audio function, could you help me with that?

Thanks!
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900