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.


    slowing down speech. say()

    Pythonista
    2
    2
    1546
    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.
    • janAaron
      janAaron last edited by

      Hi everyone!

      does anyone know how to slow down the speed on the built in text to speech module within pythonista? I looked, and it said it was something like this:

      import speech
      speech.say("hi there"[0.0])

      the [0.0] being the speed in which it goes. when I entered this however, it gave me this error message: string indices must be integers

      Can anyone tell me what I should do?
      Thanks

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

        The square brackets are only there to indicate that the parameter is optional. In actual code it would look like this:

        import speech
        speech.say('hi there', 'en-US', 0.0)
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Powered by NodeBB Forums | Contributors