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.
Braille application.
-
@shinya.ta said:
Where was the link destination of the hiragana file?
download this file by
- tapping Download
- options
- Run Pythonista3 script
- Import file
-
@shinya.ta Could you try this little script and tell me if it speaks in Japanese on your iPhone XS Max
from objc_util import * AVSpeechUtterance=ObjCClass('AVSpeechUtterance') AVSpeechSynthesizer=ObjCClass('AVSpeechSynthesizer') AVSpeechSynthesisVoice=ObjCClass('AVSpeechSynthesisVoice') voices=AVSpeechSynthesisVoice.speechVoices() for i in range(0,len(voices)): if 'ja-JP' in str(voices[i].description()): voice_jp = i break # print(i,voices[i],voices[i].description()) voice = voices[voice_jp] # Japon = 31,32,33 synthesizer=AVSpeechSynthesizer.new() utterance=AVSpeechUtterance.speechUtteranceWithString_("こんにちは、友よ") utterance.rate=0.5 utterance.voice=voice utterance.useCompactVoice=False synthesizer.speakUtterance_(utterance)from objc_util import * AVSpeechUtterance=ObjCClass('AVSpeechUtterance') AVSpeechSynthesizer=ObjCClass('AVSpeechSynthesizer') AVSpeechSynthesisVoice=ObjCClass('AVSpeechSynthesisVoice') voices=AVSpeechSynthesisVoice.speechVoices() for i in range(0,len(voices)): if 'ja-JP' in str(voices[i].description()): voice_jp = i break # print(i,voices[i],voices[i].description()) voice = voices[voice_jp] # Japon = 31,32,33 synthesizer=AVSpeechSynthesizer.new() utterance=AVSpeechUtterance.speechUtteranceWithString_("こんにちは、友よ") utterance.rate=0.5 utterance.voice=voice utterance.useCompactVoice=False synthesizer.speakUtterance_(utterance)
-
synthesizer.speakUtterance_(utterance)from objc_util import *
There is an error here.
"Syntax Error invalid syntax" appears. -
When I tried to download a file to my wife's iPhone, it turned out to be a screen like this and I couldn't do it.
Is something missing?
-
@shinya.ta said:
synthesizer.speakUtterance_(utterance)from objc_util import *
I think you have had a bad paste of my script, because it was
from objc_util import * AVSpeechUtterance=ObjCClass('AVSpeechUtterance') X X X X synthesizer.speakUtterance_(utterance)
You made two times the paste...be careful please
-
@shinya.ta said:
When I tried to download a file to my wife's iPhone, it turned out to be a screen like this and I couldn't do it.
Sorry, I don't understand this sentence
-
Should I turn off the import?
It's a mystery, but my wife's iPhone seven can't download a Japanese file.
Is something missing? -
@shinya.ta which step does not work?
- tapping Download
- options
- Run Pythonista3 script
- Import file
-
tapping Download
Run Pythonista3 scriptThe color of the file shown is different.
It is similar to the symptom that my iPhone could not execute.
But, in my case, it was because I downloaded the same file many times.
My wife is the first time to download it. -
@shinya.ta said:
The color of the file shown is different
I don't understand that. After "run Pythonista", did you tap on " import file"?
-
@shinya.ta And did you retry to paste my little scrip about speech with objectivec
-
The execution icon of Pythonisa doesn't come out.
-
I don't know where to change it.
Where do I delete it? -
The problem of my wife's iPhone seven has been solved.
After restarting, it was solved.The iPhone gave me a speech, but I don't have the explanation of Kanji, so I don't know which Kanji I chose.
In the former cursor moving application, I had good connection with Voice Over.
-
@shinya.ta I'll continue to search this problem of VoiceOver on TableView content but I don't have a lot of free time this week, because I'm in holiday (4 days) in France...
Did you on your iPhone XS Max test my little script about objectivec speech?
-
I took a test but nothing happened.
-
from objc_util import * AVSpeechUtterance=ObjCClass('AVSpeechUtterance') AVSpeechSynthesizer=ObjCClass('AVSpeechSynthesizer') AVSpeechSynthesisVoice=ObjCClass('AVSpeechSynthesisVoice') voices=AVSpeechSynthesisVoice.speechVoices() for i in range(0,len(voices)): if 'ja-JP' in str(voices[i].description()): voice_jp = i break # print(i,voices[i],voices[i].description()) voice = voices[voice_jp] # Japon = 31,32,33 synthesizer=AVSpeechSynthesizer.new() utterance=AVSpeechUtterance.speechUtteranceWithString_("こんにちは、友よ") utterance.rate=0.5 utterance.voice=voice utterance.useCompactVoice=False synthesizer.speakUtterance_(utterance)
Is this all right?
-
@shinya.ta Yes, now the script is right but I hoped you will hear the speech like I did on my iPad mini4.
Really, I don't understand what is the problem on your iPhoneAre you sure the volume is set in your control center?
-
The program itself doesn't work, not because of the volume problem.
-
@shinya.ta could you try on another device than your iPhone XS Max. I remember that you always got speech problem with it.
Test only to be sure the program is ok for youBecause it runs ok on my iPad mini 4 and Pythonista speech does not work