Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Why the Speech Module not working
-
<h2>When I call the code below nothing happens...?! It should make the phone say <em>Hello World</em>. Why is not happening and How can I fix it?</h2>
<pre><code>import speechspeech.say( "hello, world", "en-US", 0.0)
</code></pre><br>
<h3>My information or context</h3>
<br>
<pre><code>
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
</code></pre>
-
Check the "mute switch"
-
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).
-
Try changing the rate in
speech.say()
(the third argument, should be a decimal) to a positive, non-zero decimal less than1.0
. -
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.
-
Try:
rate=(whole number, or decimal)
lang('(example)en-US')
speech.say('Hello, World',lang,rate) -
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.
-
@polymerchm: Yup ;-)