speechSetVoice

Typehandler
Dictionarynative.speech
LibrarySpeech Library
Syntax
speechSetVoice(<pVoiceIdentifier>)
Associationscom.livecode.library.native.speech
Summary

Set the voice

OSmac, ios, android
Platformsdesktop, mobile
Parameters
NameTypeDescription
pVoiceIdentifier

The voice identifier must be one of the identifiers found in the keys of the array returned by the speechGetVoices function.

Example
    -- use a chosen voice
    speechSetVoice "com.apple.speech.synthesis.voice.kanya"
    -- return to default voice
    speechSetVoice empty
Description

Use speechSetVoice to specify the voice to use.

Note: Setting voices is supported on Android 6+. On earlier versions this handler does nothing.