首页 > 解决方案 > 使用带有 SpeechSynthesisUtterance 的 java 脚本的泰米尔语语音响应?

问题描述

当我为此目的做基于语音的项目时,我想用我尝试过的 SpeechSynthesisUtterance 以泰米尔语返回我的泰米尔语输入,但我没有得到确切的声音。请任何人建议我,让我知道我做错了什么。

这是我的代码:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>

<body>
<script>
    var utterance = new SpeechSynthesisUtterance('Hello,உங்கள் பதிவு செயல்முறை நிறைவடைந்தது');
    utterance.lang='ta-IN'; // for US english, en-GR for british
    window.speechSynthesis.speak(utterance);
</script>
</body>
</html>

标签: javascript

解决方案


推荐阅读