CoursesCSS StudioExamplesGATECompaniesPrepMentora
Programs/JavaScript/Browser API

12 / 15

Next
1. Geolocation API2. Notifications API3. Clipboard API4. Fullscreen API5. Page Visibility API6. Web Workers7. Service Workers8. IndexedDB9. File API10. Canvas API11. Web Audio API12. Speech Synthesis13. Vibration API14. Battery API15. Intersection Observer

Browser API

  1. 01Geolocation API
  2. 02Notifications API
  3. 03Clipboard API
  4. 04Fullscreen API
  5. 05Page Visibility API
  6. 06Web Workers
  7. 07Service Workers
  8. 08IndexedDB
  9. 09File API
  10. 10Canvas API
  11. 11Web Audio API
  12. 12Speech Synthesis
  13. 13Vibration API
  14. 14Battery API
  15. 15Intersection Observer

Speech Synthesis in JavaScript

Convert text to speech

BeginnerBrowser APIExample 12 of 15
speech-synthesis.js
1const utterance = new SpeechSynthesisUtterance('Hello World');
2speechSynthesis.speak(utterance);

Output

// Speaks "Hello World"

What's going on

Speech Synthesis converts text to speech.

PreviousWeb Audio APINextVibration API

On this page

CodeOutputExplanation
Up nextVibration API
Schoolabe

Learn, Practice, Ace Coding

ExamplesCompaniesTutorialsCSS StudioDSA VisualizersQuizInterview PrepMentoraCareer QuestGATE CS prepGATE CS 2027 study planJob ReadyInternships
AboutContactCareersAffiliate programBlog
DocumentationAPI ReferenceCommunitySupport
Privacy PolicyTermsRefund PolicyCookie Policy

© 2026 Schoolabe