Forum Archive

Why the Speech Module not working

schopenhauer

When I call the code below nothing happens...?! It should make the phone say Hello World. Why is not happening and How can I fix it?

import speech

speech.say( "hello, world", "en-US", 0.0)


My information or context



System Status: Device Info
Operating System:
- system: iOS 8.2
- system build: 12D508
- multitasking support: Yes
- kernel: Darwin 14.0.0
- kernel build: 199506

Device Information:
- device: iPhone 5S 
- device ID: iPhone6,1 
- model: N51AP 
- name: iPhone (2) 
- hostname: iPhone 

CPU Information:
- CPU model: Apple A7 
- GPU model: PowerVR G6430 
- motion coprocessor: M7 
- core number: 2 
- CPU frequency: 1300 MHz 
- BUS frequency: 0 MHz 
- TB frequency: 24 MHz 
- L1 cache size: 64 KB 
- L1D cache size: 64 KB 
- L2 cache size: 1024 KB 
- byteorder: 1234 
- cacheline: 64 

Hardware Features:
- display resolution: 1136 x 640 
- pixel density: 326 ppi 
- battery voltage: 3.8 V 
- battery capacity: 1560 mAh 
- rear camera: 8 MP 
- front camera: 1.2 MP 
- touchscreen: Yes 
- microphone: Yes 
- speaker: Yes 
- wi-fi: Yes 
- bluetooth: Yes 
- nfc: No 
- accelerometer: Yes 
- gyroscopic sensor: Yes 
- ambient light sensor: Yes 
- proximity sensor: Yes 
- fingerprint sensor: Yes 
- magnetometer: Yes 
- barometer: No 
- phone: Yes 
- GPS: Yes 
polymerchm

Check the "mute switch"

dgelessus

Also check that your real volume is not at zero. By default the volume buttons on the side of the iPhone control the ringtone volume, if that is the case you can change the real volume from the control center (swipe up from the bottom of the screen).

Gerzer

Try changing the rate in speech.say() (the third argument, should be a decimal) to a positive, non-zero decimal less than 1.0.

polymerchm

The 0.0 work on my iPhone 6. I experienced the same issues with the sound module until I turned off the physical mute switch. Perhaps @shopenhauer could enlighten us on status.

reefboy1

Try:
rate=(whole number, or decimal)
lang('(example)en-US')
speech.say('Hello, World',lang,rate)

polymerchm

I just tried the test. His code as written. Mute switch enabled. Silence. Mute switch disabled "hello world", loud and clear. This is an "its not plugged in" moment. Don't over analyze.

Gerzer

@polymerchm: Yup ;-)