A modern web application that transcribes audio, generates summaries, and provides AI-powered insights using OpenAI's APIs.
- 🎙️ Real-time audio recording and transcription
- 📝 Document processing and text analysis
- 🤖 AI-powered summaries and key takeaways
- 💬 Interactive Q&A with your documents
- 🔊 Text-to-speech conversion
- 📚 Document library with local storage
- 🎯 Responsive and modern UI
- Framework: Next.js 15 with Edge Runtime
- Deployment: Cloudflare Pages
- Styling: Tailwind CSS
- State Management: Zustand
- Storage: IndexedDB
- AI Integration: OpenAI API (GPT-4, Whisper)
- Audio Processing: WebAudio API
- Icons: Lucide React
- Node.js 18.17 or later
- OpenAI API key
- Clone the repository:
git clone https://github.com/yourusername/ai-audio-processing-cf.git
cd ai-audio-processing-cf
- Install dependencies:
npm install
- Configure your OpenAI API key in
wrangler.toml
:
[vars]
OPENAI_API_KEY = "your_api_key_here"
- Start the development server:
npm run dev
The application will be available at http://localhost:3000
.
npm run dev
- Start development servernpm run build
- Build for productionnpm run start
- Start production servernpm run lint
- Run ESLintnpm run preview
- Preview production build locallynpm run deploy
- Deploy to Cloudflare Pages
src/
├── app/ # Next.js app router pages
├── components/ # Reusable UI components
├── hooks/ # Custom React hooks
├── lib/ # Utility functions and core logic
│ ├── audio/ # Audio recording functionality
│ ├── openai/ # OpenAI API integration
│ ├── store/ # Zustand state management
│ └── utils/ # Helper functions
└── types/ # TypeScript type definitions
Contributions are welcome! Please feel free to submit a Pull Request.
- 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.
- OpenAI for providing the AI APIs
- Cloudflare for the hosting platform
- Next.js for the amazing framework
- Tailwind CSS for the styling system
If you find this project helpful, please give it a ⭐️ on GitHub!