how sort revSpeechVoices() by langage solved for Mac

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

how sort revSpeechVoices() by langage solved for Mac

Post by jmburnod » Sun Apr 16, 2017 4:20 pm

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
Last edited by jmburnod on Sun Apr 16, 2017 6:56 pm, edited 1 time in total.
https://alternatic.ch

Klaus
Posts: 14189
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: how sort revSpeechVoices() by langage

Post by Klaus » Sun Apr 16, 2017 5:39 pm

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

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: how sort revSpeechVoices() by langage

Post by jmburnod » Sun Apr 16, 2017 6:34 pm

Guten Abend Klaus,
Thanks for help. It works fine on Mac.
What about Windows ?
Best
Jean-Marc
https://alternatic.ch

Klaus
Posts: 14189
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: how sort revSpeechVoices() by langage

Post by Klaus » Sun Apr 16, 2017 6:43 pm

No idea, I'm a Mac guy! :D

Post Reply