How can I change voice value of speechSynthesisUtteranceObject to other value like number or string without getting this error?
SpeechSynthesisUtterance Object:
SpeechSynthesisUtterance {text: 'hi', lang: '', voice: null, volume: 1, rate: 1, …}
html.html:49 Uncaught TypeError: Failed to set the 'voice' property on 'SpeechSynthesisUtterance': Failed to convert value to 'SpeechSynthesisVoice'.
at HTMLSelectElement.changeSpeaker
When I changed value of speechSynthesisUtterance.voice it returned me error