voice property
SpeechSynthesisVoice?
get
voice
The voice
property of the SpeechSynthesisUtterance interface gets
and sets the voice that will be used to speak the utterance.
This should be set to one of the SpeechSynthesisVoice objects returned by SpeechSynthesis.getVoices. If not set by the time the utterance is spoken, the voice used will be the most suitable default voice available for the utterance's SpeechSynthesisUtterance.lang setting.
Implementation
external SpeechSynthesisVoice? get voice;
set
voice
(SpeechSynthesisVoice? value)
Implementation
external set voice(SpeechSynthesisVoice? value);