Agents-MCP-Hackathon/ModalTranscriberMCP
2
๐๏ธ Modal Transcriber MCP
A powerful audio transcription system integrating Gradio UI, FastMCP Tools, and Modal cloud computing with intelligent speaker identification.
โจ Key Features
- ๐ต Multi-platform Audio Download: Support for Apple Podcasts, XiaoYuZhou, and other podcast platforms
- ๐ High-performance Transcription: Based on OpenAI Whisper with multiple model support (turbo, large-v3, etc.)
- ๐ค Intelligent Speaker Identification: Using pyannote.audio for speaker separation and embedding clustering
- โก Distributed Processing: Support for large file concurrent chunk processing, significantly improving processing speed
- ๐ง FastMCP Tools: Complete MCP (Model Context Protocol) tool integration
- โ๏ธ Modal Deployment: Support for both local and cloud deployment modes
๐ฏ Core Advantages
๐ง Intelligent Audio Segmentation
- Silence Detection Segmentation: Automatically identify silent segments in audio for intelligent chunking
- Fallback Mechanism: Long audio automatically degrades to time-based segmentation, ensuring processing efficiency
- Concurrent Processing: Multiple chunks processed simultaneously, dramatically improving transcription speed
๐ค Advanced Speaker Identification
- Embedding Clustering: Using deep learning embeddings for speaker consistency identification
- Cross-chunk Unification: Solving speaker label inconsistency issues in distributed processing
- Quality Filtering: Automatically filter low-quality segments to improve output accuracy
๐ง Developer Friendly
- MCP Protocol Support: Complete tool invocation interface
- REST API: Standardized API interface
- Gradio UI: Intuitive web interface
- Test Coverage: 29 unit tests and integration tests
๐ Quick Start
Local Setup
- Clone Repository
git clone https://huggingface.co/spaces/Agents-MCP-Hackathon/ModalTranscriberMCP
cd ModalTranscriberMCP- Install Dependencies
pip install -r requirements.txt- Configure Hugging Face Token (Optional, for speaker identification)
# Create .env file
echo "HF_TOKEN=your_huggingface_token_here" > .env- Start Application
python app.pyUsage Instructions
- Upload audio file or Input podcast URL
- Select transcription options:
- Model size: turbo (recommended) / large-v3
- Output format: SRT / TXT
- Enable speaker identification
- Start transcription, the system will automatically process and generate results
๐ ๏ธ Technical Architecture
- Frontend: Gradio 4.44.0
- Backend: FastAPI + FastMCP
- Transcription Engine: OpenAI Whisper
- Speaker Identification: pyannote.audio
- Cloud Computing: Modal.com
- Audio Processing: FFmpeg
๐ Performance Metrics
- Processing Speed: Support for 30x real-time transcription speed
- Concurrency: Up to 10 chunks processed simultaneously
- Accuracy: Chinese accuracy >95%
- Supported Formats: MP3, WAV, M4A, FLAC, etc.
๐ค Contributing
Issues and Pull Requests are welcome!
๐ License
MIT License
๐ Related Links
- Project Documentation: See
docs/directory in the repository - Test Coverage: 29 test cases ensuring functional stability
- Modal Deployment: Support for cloud high-performance processing
Last updated: 2025-06-11
