category |
---|
Sensors |
Reactive SpeechSynthesis.
import { useSpeechSynthesis } from '@vueuse/core'
const {
isSupported,
isPlaying,
status,
voiceInfo,
utterance,
error,
stop,
toggle,
speak,
} = useSpeechSynthesis()
The following shows the default values of the options, they will be directly passed to SpeechSynthesis API.
useSpeechSynthesis({
lang: 'en-US',
pitch: 1,
rate: 1,
volume: 1,
})