@drakulavich/kesha-voice-kit 1.28.0 → 1.29.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -36,14 +36,14 @@ bun add -g @drakulavich/kesha-voice-kit
36
36
  kesha --version # confirms `kesha` resolved on PATH
37
37
 
38
38
  # 3. Download the engine and models — pick one path
39
- kesha init # guided: backend, languages, TTS voices
39
+ kesha init # guided: TTS languages and optional VAD / diarization
40
40
  kesha install --plan && kesha install # manual: preview the sizes, then download
41
41
 
42
42
  # 4. Transcribe
43
43
  kesha audio.ogg # transcript to stdout
44
44
  ```
45
45
 
46
- `kesha install` pulls ~2.5 GB on Linux/Windows and ~0.6 GB on Apple Silicon, whose CoreML engine reads a smaller model set. It is always explicit — nothing downloads behind your back — and the model step has no progress bar, so expect a few quiet minutes. If `bun --version` fails right after step 1, reload your PATH: `exec $SHELL -l`.
46
+ `kesha install` pulls ~2.5 GB on Linux/Windows and ~0.6 GB on Apple Silicon, whose CoreML engine reads a smaller model set. It is always explicit — nothing downloads behind your back — and reports download progress on stderr. If `bun --version` fails right after step 1, reload your PATH: `exec $SHELL -l`.
47
47
 
48
48
  Prefer Homebrew or Docker? See [Other install methods](#other-install-methods).
49
49
  Air-gapped or behind a corporate mirror? See [docs/model-mirror.md](docs/model-mirror.md).
@@ -90,15 +90,16 @@ $ kesha freedom.ogg tahiti.ogg
90
90
  ```
91
91
 
92
92
  - **Record from the mic (macOS):** `kesha record --out hello.wav` writes microphone audio to a WAV file (`kesha hello.wav` transcribes it). macOS prompts for microphone access on first use — grant it under System Settings → Privacy & Security → Microphone if it was denied. On Linux/Windows or headless boxes, pass any existing audio file straight to `kesha` instead.
93
- - **Dictate straight to text (darwin-arm64):** `kesha record --live` transcribes the mic as it captures and prints the transcript to stdout — no WAV in between, so it pipes (`kesha record --live | pbcopy`). Progress goes to stderr. Other platforms keep the two-step `record --out` + transcribe flow. An interruption is recoverable: Ctrl-C (or SIGTERM) stops the session, still prints what you dictated, and exits 130/143, and the audio is spilled to a recovery WAV under `~/.cache/kesha/recordings/` — named on stderr when the session starts, deleted once the transcript has actually been delivered, kept if anything — a signal, a crash, a closed terminal, a dead pipe — got in the way first ([#962](https://github.com/drakulavich/kesha-voice-kit/issues/962)).
93
+ - **Dictate straight to text (darwin-arm64):** `kesha record --live` transcribes the mic as it captures and prints the transcript to stdout — no WAV in between, so it pipes (`kesha record --live | pbcopy`). To end after trailing silence, explicitly install VAD then opt in: `kesha install --vad && kesha record --live --auto-stop`. The defaults are 1,000 ms of silence after 250 ms of speech; tune them with `--auto-stop-silence-ms`, `--auto-stop-min-speech-ms`, and `--auto-stop-threshold`. Progress goes to stderr. Linux and Windows do not capture the microphone; pass an existing audio file to `kesha` to transcribe it. An interruption is recoverable: Ctrl-C (or SIGTERM) stops the session, still prints what you dictated, and exits 130/143, and the audio is spilled to a recovery WAV under `~/.cache/kesha/recordings/` — named on stderr when the session starts, deleted once the transcript has actually been delivered, kept if anything — a signal, a crash, a closed terminal, a dead pipe — got in the way first ([#962](https://github.com/drakulavich/kesha-voice-kit/issues/962)).
94
94
  - **Long / silence-heavy audio:** install VAD (`kesha install --vad`); Kesha auto-uses it past 120 s. Without VAD, long audio falls back to fixed ASR chunks. See [docs/vad.md](docs/vad.md).
95
95
  - **Speaker diarization** (darwin-arm64): `kesha install --diarize` (which installs VAD too), then `kesha --json --speakers meeting.m4a` stamps each segment with a `speaker` id. `--speakers` engages VAD windowing itself at any duration, so it cannot be combined with `--no-vad`. Linux/Windows return a clear "darwin-arm64 only" error ([#199](https://github.com/drakulavich/kesha-voice-kit/issues/199)).
96
96
  - **Word-level timestamps** (every platform): `kesha --json --timestamps audio.ogg` adds a `words` array to each segment — `{ "word": "email", "start": 0.72, "end": 1.12 }` — on the same file-relative clock as the segment, so a word always lies inside the segment carrying it. Read them off the decoder's own frame grid, so: times are quantised to 0.08 s, consecutive spans may overlap (each `end` is a per-word duration prediction, not the next word's `start`), `end >= start` rather than strictly greater, and punctuation stays attached to its word. The key is simply absent where a segment has none — any segment `--itn` rewrote, for one — so check the `transcribe.words` capability rather than expecting an empty array ([#720](https://github.com/drakulavich/kesha-voice-kit/issues/720)).
97
+ - **Text-language detection:** JSON and TOON results include `textLanguage` with a language code, confidence, and its `source`. On macOS Kesha uses Apple `NLLanguageRecognizer`; elsewhere it uses the bundled `tinyld` fallback, whose confidence scale is different. This is separate from `audioLanguage`, which identifies the spoken audio when available.
97
98
  - **Written-form numbers:** `--itn` rewrites what the model spells out — `"two hundred thirty two"` → `"232"`, `"five dollars and fifty cents"` → `"$5.50"`. Opt-in, every platform, timestamps untouched. English-only in practice; Russian and the rest pass through unchanged. Spoken punctuation names stay words (`"dot"`, `"comma"`, `"the period of growth"`) because Kesha transcribes speech rather than dictation — so `"example dot com"` keeps its words too ([#822](https://github.com/drakulavich/kesha-voice-kit/issues/822)). A sentence `"and"` survives the number that follows it (`"cats and three dogs"` → `"cats and 3 dogs"`), while an `"and"` the number owns still joins it (`"three hundred and five"` → `"305"`) ([#1000](https://github.com/drakulavich/kesha-voice-kit/issues/1000)) — and no longer splits the number around it (`"two hundred and thirty two"` → `"232"`, not `"230 2"`) ([#1006](https://github.com/drakulavich/kesha-voice-kit/issues/1006)). A hyphenated number reads the same as the spaced form (`"twenty-five apples"` → `"25 apples"`), while a hyphen between ordinary words is left alone (`"well-known"`, `"state-of-the-art"`, `"twenty-something"`) ([#1004](https://github.com/drakulavich/kesha-voice-kit/issues/1004)).
98
99
 
99
100
  ## Text-to-speech
100
101
 
101
- Kesha speaks back in [9 languages](docs/languages.md#text-to-speech). On macOS it picks the voice from the text's own language; on Linux and Windows text detection needs Apple frameworks, so state the language with `--lang <code>` (or the voice with `--voice <id>`) — otherwise the engine default speaks.
102
+ Kesha speaks back in [9 languages](docs/languages.md#text-to-speech). Kokoro runs natively through FluidAudio CoreML/ANE on Apple Silicon and through ONNX on Linux and Windows; Russian uses Vosk-TTS, while `macos-*` system voices need no model download. On macOS Kesha picks the voice from the text's own language; on Linux and Windows, state the language with `--lang <code>` (or the voice with `--voice <id>`) — otherwise the engine default speaks.
102
103
 
103
104
  ```bash
104
105
  kesha install --tts # English voices; sizes differ per platform — preview: kesha install --plan
@@ -21,7 +21,7 @@ The product promise is not "one model for every audio problem." The promise is a
21
21
  | Transcribe to structured output for scripts or agents | Stable | `kesha --json audio.ogg`, `kesha --toon audio.ogg`, `kesha --format transcript audio.ogg` |
22
22
  | Detect likely audio/text language during transcription | Stable | `--lang`, `--verbose`, JSON/TOON language fields |
23
23
  | Skip silence in long audio | Beta | `kesha --vad meeting.m4a`, auto-on for long audio when VAD is installed |
24
- | Synthesize English or Russian speech locally | Beta | `kesha say "text"`, `kesha install --tts` |
24
+ | Synthesize supported languages locally | Beta | `kesha say "text"`, `kesha install --tts` |
25
25
  | Use macOS system voices without model downloads | Stable on macOS | `kesha say --voice macos-*` |
26
26
  | Label speakers in meeting transcripts | Preview, darwin-arm64 only | `kesha --json --vad --speakers meeting.m4a` |
27
27
  | Integrate with OpenClaw as a local voice model | Stable integration surface, user-configured route | `docs/openclaw.md` |
@@ -35,7 +35,7 @@ The product promise is not "one model for every audio problem." The promise is a
35
35
  - Streaming phone-call transcription or real-time conversation infrastructure.
36
36
  - Speaker identity across files. Diarization emits per-file cluster IDs, not names or persistent voice profiles.
37
37
  - Full SSML coverage. Kesha supports a practical subset for current TTS engines; unsupported tags should fail or warn clearly.
38
- - Universal TTS across all 25 STT languages. TTS is intentionally scoped to English, Russian, and macOS system voices.
38
+ - Universal TTS across all 25 STT languages. TTS is intentionally scoped to its documented nine-language set and macOS system voices.
39
39
  - Model training, fine-tuning, or benchmark leadership on every dataset.
40
40
  - Browser/mobile SDKs. The supported product surface is CLI-first, with thin integrations around it.
41
41
 
@@ -47,7 +47,7 @@ The product promise is not "one model for every audio problem." The promise is a
47
47
  | JSON / TOON / transcript output formats | Stable | Intended for scripts, agents, and downstream tooling. |
48
48
  | Audio language detection | Stable | Used for warnings and structured metadata. |
49
49
  | VAD preprocessing | Beta | Useful for long or silence-heavy audio; short voice messages stay on the fast path. |
50
- | English/Russian TTS | Beta | Requires `kesha install --tts`; model cache and first-run cost are expected. |
50
+ | Kokoro and Vosk TTS | Beta | Nine documented languages; requires `kesha install --tts`, so model cache and first-run cost are expected. |
51
51
  | macOS AVSpeech voices | Stable on macOS | Zero-install system voices; quality is OS voice quality, not neural TTS. |
52
52
  | SSML subset | Preview | `<prosody rate>`, Russian stress markers, and IPA support are engine-specific. |
53
53
  | Speaker diarization | Preview | darwin-arm64 only; cluster IDs are stable within one file only. |
@@ -63,8 +63,9 @@ The product promise is not "one model for every audio problem." The promise is a
63
63
  | STT | Supported, CoreML path | Not shipped | Supported, ONNX CPU path | Supported, ONNX CPU path | `aarch64-darwin`, `x86_64-linux` |
64
64
  | Audio language detection | Supported | Not shipped | Supported | Supported | Supported where the flake builds |
65
65
  | VAD | Supported with `kesha install --vad` | Not shipped | Supported with `kesha install --vad` | Supported with `kesha install --vad` | Supported where the engine path includes VAD assets |
66
- | TTS: English Kokoro | Supported, FluidAudio/CoreML in release builds | Not shipped | Supported, ONNX path | Supported, ONNX path | Supported except where noted in `docs/nix-install.md` |
66
+ | TTS: Kokoro (`en` `es` `fr` `it` `pt`) | Supported, FluidAudio/CoreML in release builds | Not shipped | Supported, ONNX path | Supported, ONNX path | Supported except where noted in `docs/nix-install.md` |
67
67
  | TTS: Russian Vosk-TTS | Supported | Not shipped | Supported | Supported | Supported except where noted in `docs/nix-install.md` |
68
+ | TTS: Kokoro (`hi` `ja` `zh`) | Supported, darwin-arm64 only | Not shipped | Not supported | Not supported | `aarch64-darwin` only |
68
69
  | macOS system voices | Supported | Not shipped | Not applicable | Not applicable | Supported on `aarch64-darwin` |
69
70
  | Speaker diarization | Preview, darwin-arm64 only | Not supported | Not supported | Not supported | Not wired into the Nix build yet |
70
71
  | Raycast extension | Supported | Not shipped | Not applicable | Not applicable | Not applicable |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drakulavich/kesha-voice-kit",
3
- "version": "1.28.0",
3
+ "version": "1.29.1",
4
4
  "description": "Give your tools a voice — speech to text and back, 25 languages, up to ~19× faster than Whisper. On your machine.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -40,11 +40,10 @@
40
40
  }
41
41
  },
42
42
  "keshaEngine": {
43
- "version": "1.24.10"
43
+ "version": "1.24.11"
44
44
  },
45
45
  "scripts": {
46
46
  "test": "bun test --timeout 30000",
47
- "conveyor": "bun scripts/backlog.ts",
48
47
  "test:watch": "bun test --timeout 30000 --watch",
49
48
  "test:unit": "bun test --timeout 30000 tests/unit/",
50
49
  "test:cli-fast": "bun test --timeout 30000 tests/unit/ tests/integration/cli-contracts.test.ts tests/integration/error-codes-cli.test.ts tests/integration/say.test.ts",
@@ -17,17 +17,17 @@ const ENGINE_TARGETS: Record<string, EngineTarget> = {
17
17
  "darwin-arm64": {
18
18
  assetName: "kesha-engine-darwin-arm64",
19
19
  backend: "coreml",
20
- sizeBytes: 63_780_320,
20
+ sizeBytes: 64_514_608,
21
21
  },
22
22
  "linux-x64": {
23
23
  assetName: "kesha-engine-linux-x64",
24
24
  backend: "onnx",
25
- sizeBytes: 66_101_160,
25
+ sizeBytes: 66_375_432,
26
26
  },
27
27
  "win32-x64": {
28
28
  assetName: "kesha-engine-windows-x64.exe",
29
29
  backend: "onnx",
30
- sizeBytes: 65_067_520,
30
+ sizeBytes: 65_355_264,
31
31
  },
32
32
  };
33
33