Files
sherpa-onnx/python-api-examples
Fangjun Kuang 1ca55ff076 Add subtitle generation Python API example for Doubao ASR. (#4027)
* Add subtitle generation Python API example for Doubao ASR.

generate-subtitles-doubao.py uses silero-vad/ten-vad for segmentation and
the Doubao bigmodel recording-file recognition API for ASR. Audio segments
are sent as base64 encoded wav data, so no public URL is needed. Results
are written to <input>.srt and <input>.txt.

Also for generate-subtitles.py:

 - Add --max-duration-seconds to process only the first N seconds of the
   input file
 - Refuse to run if <input>.srt or <input>.txt already exists
2026-10-09 13:55:48 +08:00
..
2026-03-12 11:10:55 +08:00
2024-12-04 09:22:24 +08:00

File description