]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
server : backport .srt output format (#1565)
authorOleg Sidorov <redacted>
Tue, 28 Nov 2023 13:42:58 +0000 (14:42 +0100)
committerGitHub <redacted>
Tue, 28 Nov 2023 13:42:58 +0000 (15:42 +0200)
commit6559b538e5e05cfa199c15d46ca5bd0edd353974
treead41a922a2bfff952da1a255a5ca318ec9b1e9f2
parent73d5005880800bdaf4061deedd78710c63fc2fbd
server : backport .srt output format (#1565)

This commit adds a support of .srt format to Whisper server. The code is
effectively backported from examples/main. The output mimetype is set to
application/x-subrip as per https://en.wikipedia.org/wiki/SubRip.

Example usage:

  curl 127.0.0.1:8080/inference \
    -H "Content-Type: multipart/form-data" \
    -F file="@<file-path>" \
    -F temperature="0.2" \
    -F response-format="srt"
examples/server/server.cpp