A web-based application that transcribes audio recordings using OpenAI's Whisper and generates medical summaries using Anthropic's Claude AI.
- Real-time Audio Recording: Record audio directly in the browser
- Audio Upload Support: Upload audio files in multiple formats (MP3, M4A, WAV, FLAC, AAC, OGG)
- AI Transcription: Uses OpenAI Whisper for accurate speech-to-text conversion
- Medical Summarization: Generates structured medical summaries using Claude AI
- Custom Prompts: Configurable prompts for different summary formats
- Recording History: Track and manage multiple recordings in a session
- Responsive Web Interface: Clean, modern UI with progress indicators
- Create a virtual environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
- Set up environment variables:
export ANTHROPIC_API_KEY=your_api_key_here
- Start the Flask server:
python main.py
- Open your browser to
http://localhost:5005 - Either record audio directly or upload audio files
- Customize the summary prompt if needed
- Click "Transcribe" to process the audio
GET /- Serves the main web interfacePOST /api/transcribe- Transcribes audio and generates summary
- Python 3.7+
- PyTorch (for Whisper)
- Anthropic API key
- Microphone access (for recording feature)
- MP3, M4A, WAV, FLAC, AAC, OGG
- Maximum file size: 50MB
The application uses environment variables for configuration:
ANTHROPIC_API_KEY- Required for Claude AI integration