Problems with revSetSpeechVoice

Klaus major-k klaus at major-k.de
Thu Aug 15 10:00:04 EDT 2024


Hi Mark,

> Am 15.08.2024 um 15:53 schrieb Mark Waddingham via use-livecode <use-livecode at lists.runrev.com>:
> 
> On 2024-08-15 14:36, Klaus major-k via use-livecode wrote:
>> Hi all,
>> I am currently working with the revSpeak library (needs to be
>> crossplatform Mac and Win) and facing serious problems.
>> I have a field with all available voices, that I fill with:
>> -------------------------------------------
>> on mouseUp
>>   put revSpeechVoices() into tVoices
>>   sort tVoices
>>   put textdecode(tVoices,"utf8") into fld "fi_voices"
>> end mouseUp
>> -------------------------------------------
>> textdecode is neccessary to preserve UMLAUTS like in:
>> Sandy (Französisch (Kanada))
>> ## Sandy (French, Canada))
>> Now all the french voices do NOT work!
>> I tried:
>> ----------------------
>> revSetSpeechVoice tVoice
>> ## Where tVoice of course contains the above mentioned voice
>> ----------------------
>> I even tried:
>> ----------------------
>> put textencode(tVoice,"native") into tVoice2
>> revSetSpeechVoice tVoice2
>> ----------------------
>> No dice, always reverts back to the "default" voice on my Mac.
> 
> Did you try:
> ----------------------
> put textencode(tVoice,"utf8") into tVoice2
> revSetSpeechVoice tVoice2
> ----------------------

obviously not, but that was the missing piece, works now!
Thanks a bunch! :-)

> Warmest Regards,
> 
> Mark.

Best

Klaus

--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
klaus at major-k.de




More information about the use-livecode mailing list