Spaces:
Running
title: Text To Voice
emoji: π¨
colorFrom: blue
colorTo: yellow
sdk: streamlit
sdk_version: 1.42.0
app_file: app.py
pinned: false
short_description: Text based command and voice based output.
thumbnail: >-
https://cdn-uploads.huggingface.co/production/uploads/662ba6f848b0b3742e6f9261/g5AwtsLlMV-uouzWRznGj.png
π€ AI-Powered Voice Generator
A smart and efficient Text-to-Speech application with voice modification and enhancement.
π About the Project
This AI-Powered Voice Generator is a Python-based application that converts text into speech with natural, clear voices. The app allows users to generate and modify voices using offline (pyttsx3) and online (Google TTS) engines. Additionally, users can change the voice pitch (male/female) and download the generated audio.
β¨ Features
β
Convert text into speech using pyttsx3 (offline) or Google TTS (online).
β
Modify voice pitch (Male/Female).
β
Normalize and enhance audio for clarity.
β
Download generated voice files.
β
Simple and interactive Streamlit user interface.
β
No need for external API keys (offline mode).
πΈ Screenshot
π€ Main Interface
ποΈ Voice Output
π οΈ Installation
Follow these steps to set up and run the project locally.
1οΈβ£ Clone the Repository
git clone https://github.com/your-username/voice-generator.git
cd voice-generator
2οΈβ£ Create a Virtual Environment (Optional but Recommended)
python -m venv venv
source venv/bin/activate # On Mac/Linux
venv\Scripts\activate # On Windows
3οΈβ£ Install Dependencies
pip install -r requirements.txt
4οΈβ£ Run the Application
streamlit run app.py
π― Usage
- Open the Voice Generator App in your browser.
- Enter your text in the text box.
- Choose the engine (Offline/Online) and voice type (Male/Female).
- Click Generate Voice to convert the text to speech.
- Listen to the generated audio and download it if needed.
π Technologies Used
- Python π
- Streamlit π¨ (For interactive UI)
- pyttsx3 π (Offline Text-to-Speech)
- gTTS π (Google TTS for Online Mode)
- pydub π΅ (Audio Processing)
- librosa πΆ (Voice Modifications)
- NumPy & SoundFile π (Signal Processing)
π€ Contributing
Contributions are welcome! If youβd like to improve the project:
- Fork the repository π΄
- Create a new branch:
git checkout -b feature-name
- Make your changes and commit them.
- Push to your branch:
git push origin feature-name
- Open a Pull Request π
π¬ Contact
π‘ Author: Arman Amir Shikalgar
π§ Email: [email protected]
π GitHub: My GitHub
π’ Feel free to connect and contribute! π