Web Speech API を使用してポルトガル語の単語を書き起こそうとしていますが、プロパティを 'pt-BR' に設定します (残念ながらポルトガル語 - ヨーロッパはサポートされていません) が、常に英語で応答します。
誰か助けてくれませんか?
ありがとう
コード:
<script type="text/javascript">
var synth = window.speechSynthesis;
function falatarea(){
var utteranceY = new SpeechSynthesisUtterance();
utteranceY.text = "teste";
utteranceY.lang = "pt-BR";
utteranceY.voice = "pt-BR";
window.speechSynthesis.speak(utteranceY);
}
</script>