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
- Install with
pip install torch torchaudioand thenpip install funasr - Transcribe one file with
funasr audio.wavto check the output - Write subtitles with
funasr audio.wav --output-format srt --output-dir ./subs - 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
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer