how to use Speech / Parole feature on osX Lion ?

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

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

Re: how to use Speech / Parole feature on osX Lion ?

Post by jmburnod » Tue Mar 27, 2012 7:02 pm

Hi Mark,

Thank one more for your help
I tried your script with this result:

I have a new file "talk.sh" in my application folder with the text. This part is ok

but the texttospeech don't work
(also with a string without apostrophe).

Kind regards

Jean-Marc
https://alternatic.ch

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: how to use Speech / Parole feature on osX Lion ?

Post by Mark » Tue Mar 27, 2012 10:21 pm

Hi Jean-Marc,

Try this:
set the defaultfolder to specialfolderpath("desktop")
put unidecode(uniencode("say" && quote & "Je suis à l'école" & quote),"UTF8") \
into url "binfile:talk.sh"
put shell("chmod 755 talk.sh")
put shell("./talk.sh")
Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

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

Re: how to use Speech / Parole feature on osX Lion ?

Post by jmburnod » Wed Mar 28, 2012 9:10 am

Hi Mark,

Many thanks Mark, it work well

All the best from Geneva

Jean-Marc
https://alternatic.ch

Post Reply