0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Hello. World!をブラウザに喋らせてみよう!Web Speech API Speech Synthesis

Last updated at Posted at 2019-05-06

Hello. World!をブラウザに喋らせてみよう!

Web Speech API Speech Synthesisをご存知でしょうか。
テキストから音声を生成することの出来るブラウザAPIです。
ChromeではこのAPIを使うことが出来ます。

以下のコードを実行して見てください。3行ですみますa

const ssu = new SpeechSynthesisUtterance();
ssu.text = 'Hello, World!';
speechSynthesis.speak(ssu);

Hello, World!という流暢な英語が聞こえましたね?

他にも日本語を喋らせたり出来るので、ぜひこのAPIを使って遊んでみてください。

終わりに

私は現在、Web3のサービスの開発をしています。詳しくはこちらの記事をご覧下さい。
無料でイーサリアムが当たる、Web3時代の寄付サイトを作った話

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?