RevSpeak or Text-to-Speech for French

Visuals, audio, animation. Blended, not stirred. If LiveCode is part of your rich media production toolbox, this is the forum for you.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
gshearne
Posts: 36
Joined: Mon Jun 02, 2014 4:41 am

RevSpeak or Text-to-Speech for French

Post by gshearne » Wed Feb 05, 2020 10:54 pm

Hi,
I am working on a project where I need to do text--to-speech in French on Android and WIndows platforms. I do not see many current threads on this topic. Can anyone point me in the right direction to get started?
Thanks
Greg

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9578
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: RevSpeak or Text-to-Speech for French

Post by dunbarx » Thu Feb 06, 2020 3:36 pm

Hi,

Not sure what you are asking. If you have:

Code: Select all

Bon jour
Good day
in field 1, and:

Code: Select all

revSpeak fld 1
You hear the phrases spoken. What in particular does French have to do with your question?

You do need to include the speech library when making a standalone. Is that really your question?

Craig

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9578
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: RevSpeak or Text-to-Speech for French

Post by dunbarx » Thu Feb 06, 2020 3:41 pm

Ah.

Maybe the transliterated speech for a word such as "feuille" would not quite come across as French?

Craig

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: RevSpeak or Text-to-Speech for French

Post by jmburnod » Thu Feb 06, 2020 5:59 pm

Hi gshearne,
What Craig said
I use revspeak on OS X and windows and it works fine.
I never made an androïd app but you may have a look at this topic
viewtopic.php?f=53&t=21681&p=111589&hil ... ch#p111589
and off course LC dictionary for these functions and commands for OS X and windows:
revIsSpeaking, revSpeechVoices,revSetSpeechSpeed, revUnloadSpeech, revSetSpeechVoice, revSetSpeechPitch, revSetSpeechVolume
Best regards
Jean-Marc
https://alternatic.ch

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9578
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: RevSpeak or Text-to-Speech for French

Post by dunbarx » Thu Feb 06, 2020 6:46 pm

What Jean-Marc said.

But I have never considered, never mind never needing, to know how to set the "language" of the machine. People are tired, already, of hearing me say that I live in the United States, where we think everyone everywhere should speak idiomatic American english.

How do you make the machine properly pronounce words in other tongues? The example I gave, "feuille" comes out as "fuel". Think gasoline.

How do it know?

Craig

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: RevSpeak or Text-to-Speech for French

Post by jmburnod » Thu Feb 06, 2020 7:55 pm

Hi Craig,
You download a french voice and you will heard "feuille" in french correctly.
Some voices are better than other one. It is funny to test it with strange sentences like that:
les poules du couvent couvent -- spoken correctly
the hens of the convent convent -- ?
Best
Jean-Marc
https://alternatic.ch

gshearne
Posts: 36
Joined: Mon Jun 02, 2014 4:41 am

Re: RevSpeak or Text-to-Speech for French

Post by gshearne » Thu Feb 06, 2020 8:55 pm

Jean-Marc,
You have correctly stated my problem. I can use the revSpeak command but the words do not come out pronounced correctly in French. We are using the app to teach young Haitian children to speak French so pronunciation is critical. Like when you select the voice icon in Google Translate it does pronounce things correctly. Or when you change the voice selection in you OS you get new languages and can even specify a male or female voice and in some cases the cadence. Synthetic voice capabilities have come a long way and LiveCode 9.0 has much better capabilities to tap into native OS functions.

I am researching how to tap into the native TSS synthetic voice in the operating systems. I am looking at how to do an API call using Live Code Builder. There is some information in the documentation but I was hoping to find someone who has already experimented with this so as to save time.
Thanks
Greg

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9578
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: RevSpeak or Text-to-Speech for French

Post by dunbarx » Thu Feb 06, 2020 9:49 pm

Jean-Marc wrote:
You download a french voice ...
Really? Never knew that. Where does one find these foreign voices?

Craig

gshearne
Posts: 36
Joined: Mon Jun 02, 2014 4:41 am

Re: RevSpeak or Text-to-Speech for French

Post by gshearne » Thu Feb 06, 2020 11:41 pm

Hi,
Ran across the following link which pulls together this thread I think:

https://forums.livecode.com/viewtopic.php?t=31471

Its for Spanish but everything applies. There is a sample stack I am playing with now and looking at getting more voices. I still welcome any and all comments though because I am learning as I go for sure.
Regards
Greg

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: RevSpeak or Text-to-Speech for French

Post by jmburnod » Fri Feb 07, 2020 5:20 pm

Craig,
To choose your voices on OS X:
system preferences-> accessibility and
chooseVoices1.png
chooseVoices2.png
Best
Jean-Marc
https://alternatic.ch

trevix
Posts: 957
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

Re: RevSpeak or Text-to-Speech for French

Post by trevix » Wed Feb 12, 2020 9:59 am

Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>

capellan
Posts: 654
Joined: Wed Aug 15, 2007 11:09 pm

Re: RevSpeak or Text-to-Speech for French

Post by capellan » Fri Feb 14, 2020 11:48 pm

Just for reference, check this old thread on the forum:
viewtopic.php?f=10&t=32997

Post Reply

Return to “Multimedia”