Page 1 of 1

how sort revSpeechVoices() by langage solved for Mac

Posted: Sun Apr 16, 2017 4:20 pm
by jmburnod
Hi All,
revSpeechVoices() return all voices for a gender and there is a lot of voices embeded in system without langage
I search a way to sort them by langage.
This is only for OS X and Windows.
Fortunately Thierry have made "sunnytext2speech" which can do it for iOS. :D
Any idea ?
Best regards
Jean-Marc

Re: how sort revSpeechVoices() by langage

Posted: Sun Apr 16, 2017 5:39 pm
by Klaus
Bonjour Jean-Marc,

on a Mac you can use SHELL to get a detailed list of available voices, just tested this and look good:

Code: Select all

...
get shell("say -v?") 
put textdecode(it,"utf-8") into fld 1
...
Best

Klaus

Re: how sort revSpeechVoices() by langage

Posted: Sun Apr 16, 2017 6:34 pm
by jmburnod
Guten Abend Klaus,
Thanks for help. It works fine on Mac.
What about Windows ?
Best
Jean-Marc

Re: how sort revSpeechVoices() by langage

Posted: Sun Apr 16, 2017 6:43 pm
by Klaus
No idea, I'm a Mac guy! :D