A guided meditation app with a timer and text-to-speech capabilities, powered by Next.js and OpenAI's TTS API.
- Meditation timer with customizable duration
- Text-to-speech guided meditation using OpenAI's TTS API
- Support for timestamped transcripts (guided meditations at specific times)
- Multiple voice options
- Node.js (latest LTS version recommended)
- OpenAI API key
- Clone this repository
- Install dependencies:
npm install
- Create a
.env.local
file in the root directory and add your OpenAI API key:
OPENAI_API_KEY=your_openai_api_key_here
- Start the development server:
npm run dev
- Open http://localhost:3000 in your browser
- Set the desired meditation duration
- Enter your meditation transcript with timestamps in the format:
00:30 Take a deep breath in 01:15 Now exhale slowly 02:00 Feel your body relaxing
- Select your preferred voice
- Click "Start" to begin your meditation
The app will play audio instructions at the specified times during your meditation.
OPENAI_API_KEY
: Your OpenAI API key, required for text-to-speech functionality
MIT