Text to Speech Converter

Enter text below and click "Speak" to hear it read aloud.

This code creates a simple website with: A clean, modern design using CSS A textarea where users can input text Two buttons: "Speak" to read the text aloud and "Stop" to halt the speech JavaScript that uses the Web Speech API to convert text to speech Features: Responsive design that works on desktop and mobile Basic styling with a card-like container Default welcome text in the textarea Error handling for browsers that don't support speech synthesis Ability to stop the speech mid-reading To use this: Save it as index.html Open it in a modern web browser (Chrome, Firefox, Edge, etc.) Type or paste text into the textarea Click "Speak" to hear it read aloud Click "Stop" to interrupt the speech You can customize it further by: Adding voice selection (different accents/languages) Adjusting speech parameters (speed, pitch, volume) Adding more styling Including pause/resume functionality The Web Speech API uses the device's default system voice, and the available voices depend on the user's operating system and browser.