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.


    Problem using Speech on iPhone

    Pythonista
    4
    7
    2995
    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.
    • tomk
      tomk last edited by omz

      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()
      
      1 Reply Last reply Reply Quote 0
      • ellie_ff1493
        ellie_ff1493 last edited by

        What iOS is the phone?

        tomk 1 Reply Last reply Reply Quote 0
        • omz
          omz last edited by

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

          tomk 1 Reply Last reply Reply Quote 1
          • tomk
            tomk @ellie_ff1493 last edited by

            @ellie_ff1493
            The IOS is version 11.2.1

            1 Reply Last reply Reply Quote 0
            • tomk
              tomk @omz last edited by

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

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

                @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 1 Reply Last reply Reply Quote 1
                • tomk
                  tomk @dgelessus last edited by

                  @dgelessus
                  Thank you the mute switch was the problem

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