]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
server : implement "verbose_json" format with token details (#1781)
authorRyan Hitchman <redacted>
Thu, 18 Jan 2024 20:58:42 +0000 (13:58 -0700)
committerGitHub <redacted>
Thu, 18 Jan 2024 20:58:42 +0000 (22:58 +0200)
commitc0329acde8a7d2b03add7e7c8f5e5341b48746ff
treecebb4920e3db1e124b3ad729f060b9f8c3b25857
parentfb466b34174710ec6e5bb6c7e887472f49c26558
server : implement "verbose_json" format with token details (#1781)

* examples/server: implement "verbose_json" format with token details.

This is intended to mirror the format of openai's Python
whisper.transcribe() return values.

* server: don't write WAV to a temporary file if not converting

* server: use std::lock_guard instead of manual lock/unlock
examples/common.cpp
examples/common.h
examples/server/server.cpp