Text-to-Speech Website

A simple web application that converts text to speech using free TTS services.

Features

  • 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

Project Structure

  • index.ts - HTTP API endpoint for text-to-speech conversion
  • frontend/index.html - Main web interface
  • frontend/script.js - Frontend JavaScript for the web interface
  • frontend/style.css - Styling for the web interface

How to Use

  1. Enter text in the input area
  2. Select your preferred voice and speech rate
  3. Click "Generate Speech" to convert text to speech
  4. Use the audio player to listen to the generated speech
  5. Click "Download" to save the audio file

Technical Details

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.