Skip to content

HARSHAVINJAMURI/Text-to-Speech

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸŽ™οΈ Text to Speech + Translation App

This is a Streamlit app that allows you to:

  • Translate text into multiple languages 🌍
  • Convert translated text into speech (audio) πŸ”Š
  • Play the audio inside the app 🎧
  • Download the generated audio as an MP3 πŸ“₯

πŸš€ Features

  • Input text in any language
  • Choose from multiple target languages (English, Hindi, Telugu, Kannada, Malayalam, Tamil, French, Spanish)
  • Real-time translation using Google Translator
  • Speech synthesis using gTTS (Google Text-to-Speech)
  • Instant audio playback
  • Option to download the audio for offline use

πŸ› οΈ Tech Stack


πŸ“¦ Installation

  1. Clone this repository:

    git clone https://github.com/your-username/text-to-speech-translation.git
    cd text-to-speech-translation
  2. Create a virtual environment (recommended):

    python -m venv venv
    source venv/bin/activate   # On Linux/Mac
    venv\Scripts\activate      # On Windows
  3. Install dependencies:

    pip install -r requirements.txt

▢️ Usage

Run the app with:

streamlit run app.py

Then open the link in your browser (default: http://localhost:8501).


πŸ“‚ Requirements

requirements.txt

streamlit
deep-translator
gTTS

🎯 Example

Input:

Welcome to my github HARSHAVINJAMURI!

Target Language: Telugu

πŸ‘‰ Output: Translated Telugu text will be displayed, and you can listen or download the generated Telugu audio.


⚠️ Notes

  • Male/Female voice selection is not available in gTTS.
  • For English (offline use), you can integrate pyttsx3 to choose male/female voices, but it won’t support other languages.

πŸ“œ License

This project is licensed under the MIT License.


πŸ’‘ Made with ❀️ using Streamlit

About

Text to Speech + Translation App

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages