omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. Vent

    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.


    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 11
    • Best 0
    • Controversial 0
    • Groups 0

    Vent

    @Vent

    0
    Reputation
    316
    Profile views
    11
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    Vent Unfollow Follow

    Latest posts made by Vent

    • RE: How to use Siri voice using speech from Pythonista module.

      Your answer helped me a lot. Thanks to you, I was able to get Siri to speak. I will post this question once again elsewhere.

      posted in Pythonista
      Vent
      Vent
    • RE: How to use Siri voice using speech from Pythonista module.

      @ccc Thank you for making that. But just select just one voice that contains siri_O-ren_en-JP ...

      posted in Pythonista
      Vent
      Vent
    • RE: How to use Siri voice using speech from Pythonista module.

      @cvp It will eventually be used to read out the e-book; once one episode is read out, the next episode must be read out. It is not a good idea to read everything and run a 10,000 word readout.

      posted in Pythonista
      Vent
      Vent
    • RE: How to use Siri voice using speech from Pythonista module.

      I successfully got Siri to speak any string of text I wanted, but ran into the following problem.
      When I run the reading multiple times, the voices overlap.
      It seems that the next reading is performed without waiting for the reading to finish.

      I learned that to wait for this I need to use the AVSpeechSynthesizerDelegate , but that is too difficult for me to use.
      Can anyone help?

      from objc_util import *
      
      txt = ['こんにちは', '私はSiriです。']
      
      AVSpeechUtterance=ObjCClass('AVSpeechUtterance')
      AVSpeechSynthesizer=ObjCClass('AVSpeechSynthesizer')
      AVSpeechSynthesisVoice=ObjCClass('AVSpeechSynthesisVoice')
      
      voices=AVSpeechSynthesisVoice.speechVoices()
      for i in range(0,len(voices)):
          #print(i,voices[i].language(),voices[i].identifier())
          
          if 'ja-JP' in str(voices[i].identifier()): # if u have Japanese Siri voice, replace from 'ja-JP' to 'siri_O-ren_ja-JP'
              vi = i
              break
      
      for t in txt:    
          utterance=AVSpeechUtterance.speechUtteranceWithString_(t)
          utterance.rate = 0.5
          utterance.useCompactVoice=False
          utterance.voice = voices[vi]
      
          synthesizer=AVSpeechSynthesizer.new()
          synthesizer.speakUtterance_(utterance)```
      posted in Pythonista
      Vent
      Vent
    • RE: Autocomplete does not work when using Type Hint (intellisense, Typing)

      Can I update Jedi?

      posted in Pythonista
      Vent
      Vent
    • RE: How to use Siri voice using speech from Pythonista module.

      @cvp I can hear Siri-voice use this script!
      But I don't understand how to use Siri-voice in my script...
      speech module can speak one line, but this script is over 200 lines...

      posted in Pythonista
      Vent
      Vent
    • RE: Autocomplete does not work when using Type Hint (intellisense, Typing)

      Now I tried, but the issue is still there...

      posted in Pythonista
      Vent
      Vent
    • Autocomplete does not work when using Type Hint (intellisense, Typing)

      I can’t see Autocomplete when using Type Hint.

      class Foo():
          def __init__(self):
              self.bar = 'a'
      foo = Foo()
      foo.# I can get Autocomplete
      
      class Foo():
          def __init__(self):
              self.bar: str = 'a'
      foo = Foo()
      foo.# There are No Autocomplete
      
      

      Can I fix it immediately some way? Or Need update from omz?

      posted in Pythonista
      Vent
      Vent
    • RE: How to use Siri voice using speech from Pythonista module.

      For the 4 voices, I guessed this was Female, Male, Sir Female, Siri Male . However, since they are all 'ja-JP', they are indistinguishable.

      posted in Pythonista
      Vent
      Vent
    • How to use Siri voice using speech from Pythonista module.

      Is there a way to use the Siri voice from the speech module? I'm Japanese so I got the speech containing JP with speech.get_synthesis_languages() but it's ['ja-JP', 'ja-JP', 'ja-JP', 'ja-JP'] was. There should be a Siri voice in it, is there a way to identify it and use it?

      posted in Pythonista
      Vent
      Vent