Page 1 of 1

RevSpeak or Text-to-Speech for French

Posted: Wed Feb 05, 2020 10:54 pm
by gshearne
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

Re: RevSpeak or Text-to-Speech for French

Posted: Thu Feb 06, 2020 3:36 pm
by dunbarx
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

Re: RevSpeak or Text-to-Speech for French

Posted: Thu Feb 06, 2020 3:41 pm
by dunbarx
Ah.

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

Craig

Re: RevSpeak or Text-to-Speech for French

Posted: Thu Feb 06, 2020 5:59 pm
by jmburnod
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

Re: RevSpeak or Text-to-Speech for French

Posted: Thu Feb 06, 2020 6:46 pm
by dunbarx
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

Re: RevSpeak or Text-to-Speech for French

Posted: Thu Feb 06, 2020 7:55 pm
by jmburnod
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

Re: RevSpeak or Text-to-Speech for French

Posted: Thu Feb 06, 2020 8:55 pm
by gshearne
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

Re: RevSpeak or Text-to-Speech for French

Posted: Thu Feb 06, 2020 9:49 pm
by dunbarx
Jean-Marc wrote:
You download a french voice ...
Really? Never knew that. Where does one find these foreign voices?

Craig

Re: RevSpeak or Text-to-Speech for French

Posted: Thu Feb 06, 2020 11:41 pm
by gshearne
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

Re: RevSpeak or Text-to-Speech for French

Posted: Fri Feb 07, 2020 5:20 pm
by jmburnod
Craig,
To choose your voices on OS X:
system preferences-> accessibility and
chooseVoices1.png
chooseVoices2.png
Best
Jean-Marc

Re: RevSpeak or Text-to-Speech for French

Posted: Wed Feb 12, 2020 9:59 am
by trevix

Re: RevSpeak or Text-to-Speech for French

Posted: Fri Feb 14, 2020 11:48 pm
by capellan
Just for reference, check this old thread on the forum:
viewtopic.php?f=10&t=32997