我正在尝试将 pyttsx 用于文本转语音。我想让它告诉法语 'é' :
# -*- coding: utf8 -*-
import pyttsx
engine = pyttsx.init()
voice = engine.getProperty('voices')[26] # the french voice
engine.setProperty('voice', voice.id)
engine.say('Je lui ai dit, fait gaffe a ton nez') # perfect
engine.say('Tu as bien mangé?') # not saying anything
engine.runAndWait()