tomk
Dec 18, 2017 - 15:43
Speech example works well with iPad but not on iPhone. Is this a configuration problem?
import speech
import time
def finish_speaking():
# Block until speech synthesis has finished
while speech.is_speaking():
time.sleep(0.1)
# US English:
speech.say('test ', 'en_US')
finish_speaking()
speech.say(' hello ', 'en_US')
finish_speaking()
speech.say('end test', 'en_US')
finish_speaking()
# Spanish:
#speech.say('Hola mundo', 'es_ES')
#finish_speaking()
# German:
#speech.say('Hallo Welt', 'de_DE')
#finish_speaking()