Generate Subtitle (SRT) Files from iFlytek TTS API

How to use the iFlytek text-to-speech API to generate speech audio and SRT subtitle files together for video dubbing and batch narration workflows.

iFlytek TTS API can provide synthesis progress info (for example text byte offsets), which can be used to estimate timing and build SRT subtitles.

Practical note: MP3 timing estimation can drift; robust timing alignment logic is needed.

记录并分享
Built with Hugo
Theme Stack designed by Jimmy