This Web Speech API Text-to-Speech Demo uses the Web Speech API’s SpeechSynthesis interface to convert written text into spoken words.
It uses the following main SpeechSynthesis
properties:
- Voice and language selection
- Real-time playback of typed text
- Select a voice and language (automatically populated if supported by your browser)
- Type or paste your desired text into the textarea
- Click the “Speak” button to hear it read aloud
- (Optional) Download the spoken text as an audio file
- Multilingual voice and language picker
- Real-time text-to-speech conversion
- Chrome 33+
- Edge 14+
- Firefox 49+
- Safari 7+
- Firefox support for voice selection may be limited
- Not all voices are available across browsers
- Browser-native SpeechSynthesis might not natively support audio file download