Forum Archive

Problem using Speech on iPhone

tomk

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()
ellie_ff1493

What iOS is the phone?

omz

Sounds silly, but perhaps the mute switch is active on the iPhone?

tomk

@ellie_ff1493
The IOS is version 11.2.1

tomk

@omz
Not a silly question the volume is turned on to max.

dgelessus

@tomk The mute switch is separate from the volume. If your iPhone has a physical switch on the side, try switching that. If that switches the rotation lock, or if you don't have a physical switch at all, go into the Control Center (swipe up from the bottom of the screen) and tap on the bell icon to toggle the mute setting.

tomk

@dgelessus
Thank you the mute switch was the problem