omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    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

    Pythonista
    5
    8
    5667
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • schopenhauer
      schopenhauer last edited by

      <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 speech

      speech.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>
      1 Reply Last reply Reply Quote 0
      • polymerchm
        polymerchm last edited by

        Check the "mute switch"

        1 Reply Last reply Reply Quote 0
        • dgelessus
          dgelessus last edited by

          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).

          1 Reply Last reply Reply Quote 0
          • Gerzer
            Gerzer last edited by

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

            1 Reply Last reply Reply Quote 0
            • polymerchm
              polymerchm last edited by

              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.

              1 Reply Last reply Reply Quote 0
              • reefboy1
                reefboy1 last edited by

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

                1 Reply Last reply Reply Quote 0
                • polymerchm
                  polymerchm last edited by

                  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.

                  1 Reply Last reply Reply Quote 0
                  • Gerzer
                    Gerzer last edited by

                    @polymerchm: Yup ;-)

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post
                    Powered by NodeBB Forums | Contributors