This project serves as the backend for a Meditation App, providing dynamic text-to-speech (TTS) functionality using ElevenLabs API and generating meditation hints with OpenAI's GPT model. It's built with Express.js and uses EJS for templating.
- Serve a main page with meditation content.
- Generate meditation hints using OpenAI's GPT-4 model.
- Synthesize speech from text using ElevenLabs API.
- Stream synthesized speech back to the client as audio.
- Node.js installed on your machine.
- An OpenAI API key.
- An ElevenLabs API key.
-
Clone the repository:
-
Install dependencies
yarn install
- Set environment variables
cp .env.sample .env
vim .env
- Start the server
yarn start
Contributions are welcome! Please feel free to submit a pull request or open an issue for any bugs or feature requests.
This project is open source and available under the MIT License.
- OpenAI for the GPT-4 model.
- ElevenLabs for the TTS API.