Problems with revSetSpeechVoice

Mark Waddingham mark at livecode.com
Thu Aug 15 09:53:47 EDT 2024


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
----------------------

Warmest Regards,

Mark.

-- 
Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/
LiveCode: Build Amazing Things



More information about the use-livecode mailing list