CoolFace
Apppublic

Agents-MCP-Hackathon/ModalTranscriberMCP

sourceHugging Facemitupdated 1y agoView on Hugging Face
2likes
App README

๐ŸŽ™๏ธ 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

  1. 1.Clone Repository
bash
git clone https://huggingface.co/spaces/Agents-MCP-Hackathon/ModalTranscriberMCP
cd ModalTranscriberMCP
  1. 1.Install Dependencies
bash
pip install -r requirements.txt
  1. 1.Configure Hugging Face Token (Optional, for speaker identification)
bash
# Create .env file
echo "HF_TOKEN=your_huggingface_token_here" > .env
  1. 1.Start Application
bash
python app.py

Usage Instructions

  1. 1.Upload audio file or Input podcast URL
  2. 2.Select transcription options:
  3. 3.Model size: turbo (recommended) / large-v3
  4. 4.Output format: SRT / TXT
  5. 5.Enable speaker identification
  6. 6.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