DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to make SRT subtitles from audio files with FunASR

Use the agent friendly funasr CLI to transcribe one file or a whole batch straight to SRT subtitle files.

Short answer: Install with pip install torch torchaudio and then pip install funasr; then Transcribe one file with funasr audio.wav to check the output; write subtitles with funasr audio.wav --output-format srt --output-dir ./subs. All steps.

  • Top pick
  • Content
  • Beginner
  • 20 minutes
  • From the README
  • Claude Code
  • Codex
  • Cursor
  • Gemini CLI

Who it is forA video creator or podcaster who needs captions.

The problemCaptioning by hand is slow, and many tools handle Chinese and mixed language audio poorly.

The outcomeAn SRT file per audio file in an output folder.

What you need first

  • Python >= 3.8 with PyTorch and torchaudio installed first, then `pip install funasr`
  • A CPU is enough for SenseVoiceSmall; use device cuda only after confirming torch.cuda.is_available() prints True
  • Python 3.11 plus fastapi, uvicorn and python-multipart for the local HTTP server

Steps

  1. Install with pip install torch torchaudio and then pip install funasr
  2. Transcribe one file with funasr audio.wav to check the output
  3. Write subtitles with funasr audio.wav --output-format srt --output-dir ./subs
  4. Batch a folder with funasr *.wav --output-format srt --output-dir ./output

Prompt for your agent

Using modelscope/FunASR, install it on CPU and run `funasr *.wav --output-format srt --output-dir ./output` in <my audio folder>, then show me the first subtitle file.

Caveat. The default CLI model is sensevoice; pick paraformer-en or fun-asr-nano with --model for other needs.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for modelscope/FunASR and "Make SRT subtitles from audio files"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer