Public
Like
Test
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
index.ts
https://amardeeplakshkar--aa03fc06324e11f0a74c569c3dd06744.web.val.run
A simple web application that converts text to speech using free TTS services.
- Convert text to speech in multiple languages
- Select from various voices across different languages
- Adjust speech rate
- Play audio directly in the browser
- Download audio files
index.ts
- HTTP API endpoint for text-to-speech conversionfrontend/index.html
- Main web interfacefrontend/script.js
- Frontend JavaScript for the web interfacefrontend/style.css
- Styling for the web interface
- Enter text in the input area
- Select your preferred voice and speech rate
- Click "Generate Speech" to convert text to speech
- Use the audio player to listen to the generated speech
- Click "Download" to save the audio file
The application uses a free text-to-speech API to convert text to speech. The backend proxies requests to this service and returns the audio data to the client. The frontend provides a user-friendly interface for entering text and controlling speech parameters.