]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
stream.wasm : add language selection support (#3354)
authorDaniel Bevenius <redacted>
Sat, 2 Aug 2025 05:03:04 +0000 (07:03 +0200)
committerGitHub <redacted>
Sat, 2 Aug 2025 05:03:04 +0000 (07:03 +0200)
commit0becabc8d68d9ffa6ddfba5240e38cd7a2642046
treea474798b3d11e1ab1e7c1a6cf29706b6423a5e7f
parentf7502dca872866a310fe69d30b163fa87d256319
stream.wasm : add language selection support (#3354)

* stream.wasm : add language selection support

This commit adds support for selecting the language in the stream.wasm
example. This is includes adding the model `base` which supports
multilingual transcription, and allowing the user to select a language
from a dropdown menu in the HTML interface.

The motivation for this is that it allows users to transcribe audio in
various languages.

Refs: https://github.com/ggml-org/whisper.cpp/issues/3347

* squash! stream.wasm : add language selection support

Remove strdup() for language in stream.wasm and update butten text for
base (should not be "base.en" but just "base").
examples/stream.wasm/emscripten.cpp
examples/stream.wasm/index-tmpl.html