1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

音声合成 JavaScript SpeechSynthesisUtterance スピーチ・シンセシス・アタランス

1
Posted at
<!DOCTYPE html>
<html lang="ja">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        function speak(text) {
            if ('speechSynthesis' in window) {
                const uttr = new SpeechSynthesisUtterance(text);
                uttr.lang = 'ja-JP';
                uttr.rate = 0.9;
                uttr.pitch = 0.5;
                window.speechSynthesis.speak(uttr);
            }
        }
        speak("あいうえお");
    </script>
</body>

</html>
単語,カタカナ読み,英語の発音に近い響き,意味
Speech,スピーチ,スピーチ,音声・話すこと
Synthesis,シンセシス,スィンセシス,合成(シンセサイザーの「シンセ」)
Utterance,アタランス,アタランス,発話・口に出された言葉
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?