Skip to content

Latest commit

 

History

History
19 lines (11 loc) · 675 Bytes

what_is_web_speech_api.md

File metadata and controls

19 lines (11 loc) · 675 Bytes

What is Web Speech API?

The Web Speech API provides the ability to recognize and synthesize speech in web applications. It consists of two parts: the Speech Recognition API and the Speech Synthesis API.

  • Speech Recognition API: Allows the recognition of speech and converts it into text.
  • Speech Synthesis API: Allows the synthesis of speech from text.

Example of Speech Synthesis:

let utterance = new SpeechSynthesisUtterance('Hello, World!');
speechSynthesis.speak(utterance);

Tags: advanced, JavaScript, Web APIs