A Streamlit application for generating speech from text using Google Cloud Text-to-Speech API. This application provides a user-friendly web interface for converting text to speech with various language and voice options.
Fourier is a project by EulerHive that provides advanced text-to-speech capabilities with a focus on quality and user experience.
- Text to speech conversion using Google Cloud TTS API
- Multiple language and voice selection
- Adjustable speech speed
- MP3 audio file generation and download
- Service account credential management
- Rate limiting to prevent abuse
- Mobile-responsive design
- Python 3.7+
- Google Cloud Platform account
- Service account with Text-to-Speech API access
- Clone the repository:
git clone https://github.com/eulerhive/fourier.git
cd fourier- Install dependencies:
pip install -r requirements.txt- Set up environment variables:
Create a
.envfile in the root directory with the following variables:
MAX_TEXT_LENGTH=5000
RATE_LIMIT_REQUESTS=10
RATE_LIMIT_WINDOW=60
CACHE_TTL=3600
- Start the Streamlit application:
streamlit run src/app.py-
Open your browser and navigate to
http://localhost:8501 -
Upload your Google Cloud service account JSON file in the sidebar
-
Enter text, select language and voice options, and generate speech
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Google Cloud Text-to-Speech API
- Streamlit framework
- All contributors who have helped shape this project
- EulerHive team and community
Please report any security issues to security@eulerhive.com