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.
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.
Posts made by Vent
-
RE: How to use Siri voice using speech from Pythonista module.
-
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
... -
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.
-
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)```
-
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... -
RE: Autocomplete does not work when using Type Hint (intellisense, Typing)
Now I tried, but the issue is still there...
-
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?
-
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.
-
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
withspeech.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? -
RE: Pasting in UI designer always pastes into main view - not subviews
me too!
plz look this omz...