This is a simple Text-to-Speech (TTS) converter web application built using HTML, CSS, and JavaScript. The application allows users to input text, select a voice/language, and listen to the spoken text. Additionally, users can download the spoken text as an MP3 file for broader compatibility across devices.
- Input text to be converted to speech.
- Select from various available voices and languages.
- Play the text as speech.
- Download the speech as an MP3 file.
You can see a live demo of the project (https://ajit594.github.io/LAYTECH/).
-
Clone the Repository
git clone https://github.com/Ajit594/text-to-speech-converter.git cd text-to-speech-converter
-
Open the Project Open
index.html
in your preferred web browser.
-
Enter Text: Type or paste the text you want to convert to speech in the textarea.
-
Select Language/Voice: Choose your preferred voice and language from the dropdown menu.
-
Speak: Click the "Speak" button to hear the text spoken aloud.
-
Download: Click the "Download" button to download the speech as an MP3 file.
index.html
: The main HTML file containing the structure of the web page.styles.css
: The CSS file for styling the web page.script.js
: The JavaScript file containing the functionality for text-to-speech conversion and downloading the MP3 file.
- Web Speech API: Used for speech synthesis.
- mediarecorder-mp3: Used for recording and saving the speech as an MP3 file.
- Fork the repository.
- Create a new branch.
git checkout -b feature-branch
- Make your changes and commit them.
git commit -m "Description of your changes"
- Push to the branch.
git push origin feature-branch
- Create a Pull Request.
This project is licensed under the MIT License. See the LICENSE
file for details.
This README provides an overview of the Text-to-Speech Converter project, including its features, usage instructions, and contribution guidelines. Feel free to modify it to better suit your needs or project specifics.