ggerganov / whisper.cpp

Port of OpenAI's Whisper model in C/C++
MIT License
35.38k stars 3.61k forks source link

server: language code together with srt #2453

Open brauliobo opened 3 weeks ago

brauliobo commented 3 weeks ago

Hi, I'm starting to use the server and then wanted to open a PR to add the lang code to the output along with the text key.

Then I realized that I also need the SRT response format, which doesn't have space for any other data key.

Do you have a suggestion on how to both output the detected language and the resulting SRT?