Check out the live website: OpenAudio.ai
Open-Audio TTS is a web application that allows users to convert text into natural-sounding speech. Powered by OpenAI's text-to-speech models, this tool offers an intuitive user interface built with Chakra UI, providing a seamless experience for generating and downloading speech audio files.
- Text-to-Speech: Convert any text into speech with high-quality voices powered by OpenAI's TTS models.
- Customizable Voices: Choose from a variety of voices to find the one that best suits your needs.
- Adjustable Speed: Control the speed of the speech to match your preferred listening pace.
- BYO: Bring your Own (BYO) API keys, no data is stored on server side.
- Downloadable Audio: Easily download the generated speech as an MP3 file directly from the browser.
- User-Friendly Interface: Built with responsiveness in mind, offering a comfortable experience across different devices.
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
To set up the project locally, follow these steps:
- Clone the repository to your local machine.
- Navigate to the project directory.
- Install dependencies with
npm install
. - Start the development server with
npm run dev
. - Open
http://localhost:3000
to view it in the browser.
- Copy the
.env.example
file to:- .env.local file: For Local Development (This should not be committed to Git) -
cp .env.example .env.local
- .env: For Production Deployment (This can be via Vercel Environment Variables under your Project's settings page.
cp .env.example .env
- .env.local file: For Local Development (This should not be committed to Git) -
- Add your OPENAI_API_KEY by creating or copying your OpenAI API key under the API keys section on OpenAI's website.
- Save, restart your app and run
npm run dev
. Your API key will now be set from the Environment Variables instead of the UI and UI element will be disabled.
To use Open-Audio TTS, simply:
- Enter your OpenAI API key in the provided field.
- Type or paste the text you wish to convert into the 'Input Text' field.
- Select the voice and adjust the speed as desired.
- Click on 'Create Speech' to generate the audio.
- Once the audio is generated, use the controls to play it or click 'Download MP3' to save it.
Contributions are welcome! If you have a suggestion or an issue, please use the issues page to let me know.
This project is licensed under the MIT License - see the LICENSE file for details.
- Thanks to OpenAI for providing the text-to-speech API.
- Chakra UI for the beautiful component library.
- Speech To Text icon by Icons8
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.