From 2f9747b20648c533279b02b877a0e87dd5a0bfaf Mon Sep 17 00:00:00 2001 From: sakasegawa Date: Sat, 21 Nov 2026 02:18:18 +0900 Subject: [PATCH 1/2] Release 0.11.1, with speech.cpp in the browser as WebAssembly VERSION is 0.11.1. The release adds the library built for WebAssembly, in speech-0.11.1-wasm.zip beside the four archives: the C API on one thread and with threads, speech.mjs, which calls it from a Worker, a page that finds speech in a WAVE file with Silero VAD, and serve.py. No existing caller must change for it, so the patch rises; the C API stays 4.2, since nothing was added to speech.h but what a WebAssembly build refuses, and the worker's protocol stays 4. No model file changes, and the catalog is the same. docs/cli.md, docs/c-api.md and docs/worker.md name 0.11.1. Checked on an Apple M5 with this branch's build: speech --version gives "speech.cpp 0.11.1, C API 4.2". Co-Authored-By: Claude Opus 5.5 --- VERSION | 2 +- docs/c-api.md | 2 +- docs/cli.md | 8 ++++---- docs/worker.md | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/VERSION b/VERSION index d9df1bb..af88ba8 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.11.0 +0.11.1 diff --git a/docs/c-api.md b/docs/c-api.md index 5b65d6e..db46be4 100644 --- a/docs/c-api.md +++ b/docs/c-api.md @@ -390,7 +390,7 @@ it concerns (an option's name, `text`, `audio`, `device`, `threads`, `name`, `pa other and for the pushes of its detections. A request is used by one thread at a time, but `speech_request_cancel()` may be called from any thread; a detection is used by one thread at a time. Information never changes once made and may be read from any thread. Separate models are independent. -- **Versions.** `speech_version()` gives the release the library was built from (`"0.11.0"`). `SPEECH_API_VERSION_MAJOR` +- **Versions.** `speech_version()` gives the release the library was built from (`"0.11.1"`). `SPEECH_API_VERSION_MAJOR` and `SPEECH_API_VERSION_MINOR`, and `speech_api_version_major()` and `speech_api_version_minor()` for a caller that loads the library at run time, give the API's version, 4.2. The major rises when a declaration changes in a way an existing caller notices, and the minor when a function, an option or an enum value is added. A program built against diff --git a/docs/cli.md b/docs/cli.md index 4692968..452215d 100644 --- a/docs/cli.md +++ b/docs/cli.md @@ -93,9 +93,9 @@ speech info irodori-tts-mf as a line with a spinner and its seconds, and marks it when it is done. Colors are off with `NO_COLOR=1`. In a pipe or a file the same lines come without color, mark or spinner. - On Windows the command line is read as UTF-8, and stdin and stdout are binary. -- `speech --version` prints the release and the C API's version: `speech.cpp 0.11.0, C API 4.2`. +- `speech --version` prints the release and the C API's version: `speech.cpp 0.11.1, C API 4.2`. - On a terminal, a subcommand says on stderr when a later release is out, once it ends (`speech serve` as it starts): - `speech: speech.cpp 0.11.1 is out (this is 0.11.0); run speech update to install it`. It asks github.com at most once a + `speech: speech.cpp 0.11.2 is out (this is 0.11.1); run speech update to install it`. It asks github.com at most once a day, and only when stderr is a terminal, so a script or a program that starts `speech` never makes the request; the worker never asks. `SPEECH_NO_UPDATE_CHECK=1` turns it off. @@ -525,8 +525,8 @@ exits with the installer's status. `--check` only says whether a later release i ``` $ speech update -speech.cpp 0.11.1 is out (this is 0.11.0); running the installer -Downloading https://github.com/nyosegawa/speech.cpp/releases/download/v0.11.1/speech-0.11.1-macos-arm64-metal.zip +speech.cpp 0.11.2 is out (this is 0.11.1); running the installer +Downloading https://github.com/nyosegawa/speech.cpp/releases/download/v0.11.2/speech-0.11.2-macos-arm64-metal.zip ... ``` diff --git a/docs/worker.md b/docs/worker.md index 615129b..6f72de4 100644 --- a/docs/worker.md +++ b/docs/worker.md @@ -33,7 +33,7 @@ stdout, in UTF-8. ## Start ``` -out {"type":"ready","protocol":4,"version":"0.11.0","defaults":{"steps":8},"model":{...model information...}} +out {"type":"ready","protocol":4,"version":"0.11.1","defaults":{"steps":8},"model":{...model information...}} out {"type":"fatal","error":{"code":"model_file","option":null,"message":"..."}} ``` From 18c4a04a8e4ea6c1eee714efcbc638cc5ffbe81f Mon Sep 17 00:00:00 2001 From: sakasegawa Date: Sat, 21 Nov 2026 02:26:45 +0900 Subject: [PATCH 2/2] Give the browser's numbers measured with the archive the release builds The speech-wasm archive of main's CI run for 40ce36c, the code of this release, unpacked and served to headless Chrome 158 on an Apple M5, the medians of three runs of five requests on a minute of audio: the first and fifth requests at RTFx 480 and 680 without threads, 630 and 1100 with two, and 590 and 1580 with four, whose fifth request varies from 1250 to 1610 between runs; module start, load time and memory as before within a millisecond. speech vad of this branch on the same CPU: 0.090 s with one thread and 0.041 s with four. Co-Authored-By: Claude Opus 5.5 --- docs/browser.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/browser.md b/docs/browser.md index ddac993..5b37f51 100644 --- a/docs/browser.md +++ b/docs/browser.md @@ -111,17 +111,17 @@ Silero VAD F32 on an Apple M5 (macOS 26.2, 10 logical processors) in headless Ch | | `libspeech` | `libspeech-threads`, 2 threads | `libspeech-threads`, 4 threads | |---|---|---|---| | `.wasm` and `.js`, gzipped | 360 KB and 18 KB | 340 KB and 22 KB | 340 KB and 22 KB | -| the module started, from the same machine | 6 ms | 17 ms | 19 ms | -| load time | 9 ms | 8 ms | 9 ms | -| the first request after loading | 0.13 s, RTFx 480 | 0.09 s, RTFx 640 | 0.11 s, RTFx 560 | -| the fifth request | 0.09 s, RTFx 670 | 0.06 s, RTFx 1080 | 0.04 s, RTFx 1350 | +| the module started, from the same machine | 7 ms | 18 ms | 19 ms | +| load time | 9 ms | 9 ms | 9 ms | +| the first request after loading | 0.13 s, RTFx 480 | 0.10 s, RTFx 630 | 0.10 s, RTFx 590 | +| the fifth request | 0.09 s, RTFx 680 | 0.05 s, RTFx 1100 | 0.04 s, RTFx 1580 | | the module's memory, at most | 29.9 MiB | 29.9 MiB | 35.9 MiB | The first requests are slower because the browser compiles the module's code again, faster, once it runs often. With all 10 logical processors the first request took 0.6 s, since the library starts its threads anew for each part of -the work. `speech vad` on the same CPU takes 0.091 s with one thread (RTFx 660) and 0.049 s with four (RTFx 1220). The page -gives the regions `speech vad` gives, number for number, in Chrome and in Safari on the iOS 26.5 simulator, with and -without threads. +the work. `speech vad` on the same CPU takes 0.090 s with one thread (RTFx 670) and 0.041 s with four (RTFx 1450). The +page gives the regions `speech vad` gives, number for number, in Chrome and in Safari on the iOS 26.5 simulator, with +and without threads. ## Build it