A tool that provides various AI-powered tools on your localhost, using an OpenAI API key. Currently featuring Text-to-Speech conversion with translation capabilities, with plans to expand to more AI tools in the future, such as image generation, text summarization, and more.
- Convert text to natural-sounding speech using OpenAI's TTS API.
- Support for multiple voices with different characteristics.
- Built-in translation to multiple languages before speech conversion.
- Real-time cost estimation and token usage tracking.
- Modern, responsive UI.
- History of conversions with playback capability.
- Support for long texts with automatic chunking.
Clone the repository to your local machine:
git clone /~https://github.com/wilsonneto-dev/ai-tools-hub.git
cd ai-tools-hub
Build the Docker image for the application:
docker build -t ai-tools-hub .
Run the container using the following command:
docker run -d -p 5000:5000 -e OPENAI_API_KEY=your_api_key_here --name ai-tools-hub ai-tools-hub
Replace your_api_key_here
with your actual OpenAI API key.
Open your browser and navigate to: http://localhost:5000
- Python 3.8 or higher.
- OpenAI API key.
- Virtual environment (recommended).
- FFMPEG (for audio handling).
git clone /~https://github.com/wilsonneto-dev/ai-tools-hub.git
cd ai-tools-hub/src
# Windows
python -m venv .venv
.\.venv\Scripts\activate
# Linux/Mac
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
# Windows
set OPENAI_API_KEY=your_api_key_here
# Linux/Mac
export OPENAI_API_KEY=your_api_key_here
Start the Flask development server:
python ./app.py
Navigate to http://localhost:5000
in your browser.
The application uses OpenAI's APIs with the following pricing:
- Text-to-Speech: $15.00 per 1 million characters.
- Translation (GPT-3.5 Turbo): $6.00 per 1 million tokens.
Costs are calculated and displayed in real-time for each conversion.
ai-tools-hub/
├── app.py # Main Flask application
├── lib/ # Core functionality
│ ├── text_to_speech.py # Text-to-speech conversion logic
│ └── translations.py # Translation handling
├── static/ # Static files (CSS, JS, audio files)
│ └── audio/ # Generated audio files
└── templates/ # HTML templates
├── base.html # Base template
├── home.html # Homepage
└── text-to-speech.html # Text-to-speech interface
- Add support for file uploads (PDF, DOCX, TXT).
- Enable URL processing for article conversion.
- Image generation tool.
- Text summarization.
Contributions are welcome! Feel free to submit a Pull Request.
This project is licensed under the MIT License. See the LICENSE file for details.
- OpenAI for their powerful APIs.
- Flask framework.
- Bootstrap for the UI components.
- All contributors and users of this project.
If you encounter any issues or have questions, please file an issue on the GitHub repository.