surfincanoy/FunASR-SenseVoice-SRT

Based on the official SenseVoice webui, it can output SRT subtitles for single files or in batch mode.

8

stars

108

commits

Python

primary language

Jun 27, 2026

updated

README

FireRedVAD-ASR-SRT ๐ŸŽ™๏ธ๐ŸŽฌ

Python License Platform Status

Advanced Speech Recognition and Subtitle Generation Tool

Integrated FireRedVAD with multiple ASR models, supporting single-file or batch SRT subtitle generation.

ไธญๆ–‡ | English | ๆ—ฅๆœฌ่ชž


๐ŸŒŸ Core Features

  • ๐ŸŽฏ Multi-model Support: SenseVoiceSmall, Paraformer, Fun-ASR-Nano, Fun-ASR-MLT-Nano, Granite-Speech, GLM-ASR-Nano
  • ๐ŸŽญ Multi-language Interface: English, Chinese, Japanese (easily extensible)
  • ๐Ÿ“ Batch Processing: Single-file or batch transcription
  • โšก High Performance: Optimized for both CPU and GPU acceleration
  • ๐ŸŽ›๏ธ Flexible Configuration: Adjustable VAD parameters and model settings
  • ๐Ÿ“Š Rich Output: SRT subtitle format with timestamps

๐Ÿš€ Quick Start

1. Environment Setup

Use uv to create a virtual environment (recommended):

uv venv --python 3.12

2. Install Dependencies

Install using uv:

uv pip install -r requirements.txt

3. Model Configuration

Download and configure models:

  • SenseVoiceSmall: Automatically downloads
  • FunAsr-nano: Automatically downloads
  • GLM-Asr-nano: Automatically downloads
  • Granite-Speech: Supported languages: English, French, German, Spanish, Portuguese and Japanese. Download from modelscope or Huggingface
  • VAD Model: FireRedVAD folder

Important: All models can be taken from the cache folder and placed into the project folder.

4. Hardware Acceleration

๐ŸŽฎ NVIDIA GPU (CUDA):

uv pip install torch torchaudio --index-url https://download.pytorch.org/whl/cu126 ๏ผˆPlease install the appropriate version based on the CUDA version installed on your system.๏ผ‰

๐Ÿ’ป CPU Only:

uv pip install torch torchaudio --index-url https://download.pytorch.org/whl/cpu

5. Run the Application

uv run main.py

๐Ÿ“ Project Structure

FireRed/
โ”œโ”€โ”€ ๐Ÿ“„ main.py                 # Main program
โ”œโ”€โ”€ ๐Ÿ“„ ctc.py                  # CTC module
โ”œโ”€โ”€ ๐Ÿ“„ model.py                # Fun-ASR model code
โ”œโ”€โ”€ ๐Ÿ“„ requirements.txt        # Python dependencies
โ”œโ”€โ”€ ๐Ÿ“ asr/                    # ASR package sources
โ”œโ”€โ”€ ๐Ÿ“ FireRedVAD/             # Voice activity detection model files
โ”œโ”€โ”€ ๐Ÿ“ FunAudioLLM/            # Fun-ASR local model folders
โ”œโ”€โ”€ ๐Ÿ“ ibm-granite/            # Granite Speech model files
โ”œโ”€โ”€ ๐Ÿ“ iic/                    # Additional speech model folders
โ”œโ”€โ”€ ๐Ÿ“ locales/                # Language translations
โ”œโ”€โ”€ ๐Ÿ“ tools/                  # Utility scripts and tools
โ”œโ”€โ”€ ๐Ÿ“ utils/                  # Translation utilities
โ”œโ”€โ”€ ๐Ÿ“ ZhipuAI/                # Additional local model folders
โ”œโ”€โ”€ ๐Ÿ“„ README.md               # This file
โ”œโ”€โ”€ ๐Ÿ“„ README_ZH.md            # Chinese version
โ””โ”€โ”€ ๐Ÿ“„ README_JA.md            # Japanese version

๐ŸŽฏ Usage Tips

Important: When performing batch transcription, always try single-file transcription first to find the optimal VAD parameters and ensure accurate sentence segmentation. Please prioritize adjusting the VAD parameter Min Silence Frames to get better sentence segmentation.

๐Ÿค Contributing

We welcome all kinds of contributions! Feel free to:

  • ๐Ÿ› Report bugs
  • ๐Ÿ’ก Suggest features
  • ๐ŸŒ Add translations
  • ๐Ÿ”ง Improve code

๐Ÿ™ Acknowledgements

This project relies on the following open-source projects:

  • Fun-ASR โ€” ASR model pipeline, Apache 2.0

See NOTICE.md for full license texts and copyright notices.

๐Ÿ“„ License

This project is open-sourced under the Apache License 2.0 - see the LICENSE file for details.

๐Ÿ“ธ Interface Preview

Main Interface

Contributors

surfincanoy

103 commits

Fancyhe1

5 commits

surfincanoy/FunASR-SenseVoice-SRT

Based on the official SenseVoice webui, it can output SRT subtitles for single files or in batch mode.

8

stars

108

commits

Python

primary language

Jun 27, 2026

updated

README

FireRedVAD-ASR-SRT ๐ŸŽ™๏ธ๐ŸŽฌ

Python License Platform Status

Advanced Speech Recognition and Subtitle Generation Tool

Integrated FireRedVAD with multiple ASR models, supporting single-file or batch SRT subtitle generation.

ไธญๆ–‡ | English | ๆ—ฅๆœฌ่ชž


๐ŸŒŸ Core Features

  • ๐ŸŽฏ Multi-model Support: SenseVoiceSmall, Paraformer, Fun-ASR-Nano, Fun-ASR-MLT-Nano, Granite-Speech, GLM-ASR-Nano
  • ๐ŸŽญ Multi-language Interface: English, Chinese, Japanese (easily extensible)
  • ๐Ÿ“ Batch Processing: Single-file or batch transcription
  • โšก High Performance: Optimized for both CPU and GPU acceleration
  • ๐ŸŽ›๏ธ Flexible Configuration: Adjustable VAD parameters and model settings
  • ๐Ÿ“Š Rich Output: SRT subtitle format with timestamps

๐Ÿš€ Quick Start

1. Environment Setup

Use uv to create a virtual environment (recommended):

uv venv --python 3.12

2. Install Dependencies

Install using uv:

uv pip install -r requirements.txt

3. Model Configuration

Download and configure models:

  • SenseVoiceSmall: Automatically downloads
  • FunAsr-nano: Automatically downloads
  • GLM-Asr-nano: Automatically downloads
  • Granite-Speech: Supported languages: English, French, German, Spanish, Portuguese and Japanese. Download from modelscope or Huggingface
  • VAD Model: FireRedVAD folder

Important: All models can be taken from the cache folder and placed into the project folder.

4. Hardware Acceleration

๐ŸŽฎ NVIDIA GPU (CUDA):

uv pip install torch torchaudio --index-url https://download.pytorch.org/whl/cu126 ๏ผˆPlease install the appropriate version based on the CUDA version installed on your system.๏ผ‰

๐Ÿ’ป CPU Only:

uv pip install torch torchaudio --index-url https://download.pytorch.org/whl/cpu

5. Run the Application

uv run main.py

๐Ÿ“ Project Structure

FireRed/
โ”œโ”€โ”€ ๐Ÿ“„ main.py                 # Main program
โ”œโ”€โ”€ ๐Ÿ“„ ctc.py                  # CTC module
โ”œโ”€โ”€ ๐Ÿ“„ model.py                # Fun-ASR model code
โ”œโ”€โ”€ ๐Ÿ“„ requirements.txt        # Python dependencies
โ”œโ”€โ”€ ๐Ÿ“ asr/                    # ASR package sources
โ”œโ”€โ”€ ๐Ÿ“ FireRedVAD/             # Voice activity detection model files
โ”œโ”€โ”€ ๐Ÿ“ FunAudioLLM/            # Fun-ASR local model folders
โ”œโ”€โ”€ ๐Ÿ“ ibm-granite/            # Granite Speech model files
โ”œโ”€โ”€ ๐Ÿ“ iic/                    # Additional speech model folders
โ”œโ”€โ”€ ๐Ÿ“ locales/                # Language translations
โ”œโ”€โ”€ ๐Ÿ“ tools/                  # Utility scripts and tools
โ”œโ”€โ”€ ๐Ÿ“ utils/                  # Translation utilities
โ”œโ”€โ”€ ๐Ÿ“ ZhipuAI/                # Additional local model folders
โ”œโ”€โ”€ ๐Ÿ“„ README.md               # This file
โ”œโ”€โ”€ ๐Ÿ“„ README_ZH.md            # Chinese version
โ””โ”€โ”€ ๐Ÿ“„ README_JA.md            # Japanese version

๐ŸŽฏ Usage Tips

Important: When performing batch transcription, always try single-file transcription first to find the optimal VAD parameters and ensure accurate sentence segmentation. Please prioritize adjusting the VAD parameter Min Silence Frames to get better sentence segmentation.

๐Ÿค Contributing

We welcome all kinds of contributions! Feel free to:

  • ๐Ÿ› Report bugs
  • ๐Ÿ’ก Suggest features
  • ๐ŸŒ Add translations
  • ๐Ÿ”ง Improve code

๐Ÿ™ Acknowledgements

This project relies on the following open-source projects:

  • Fun-ASR โ€” ASR model pipeline, Apache 2.0

See NOTICE.md for full license texts and copyright notices.

๐Ÿ“„ License

This project is open-sourced under the Apache License 2.0 - see the LICENSE file for details.

๐Ÿ“ธ Interface Preview

Main Interface

Contributors

surfincanoy

103 commits

Fancyhe1

5 commits

Languages

Python

100.0%