Moving from 0.5 to 0.6
Alkove 0.6 brings Cue, Spot and Lex out of preview: alkove-cue-1, alkove-spot-1 and alkove-lex-1 are the models every SDK runs, on the web, in Python, on Android, on iOS and in React Native, Spot and Lex in 11 languages. As a minor version before 1.0, it breaks the words an app stores, and a wake word now loads Cue. Voiceprints stay.
The version line
Section titled “The version line”| Platform | 0.6 |
|---|---|
| npm | npm install alkove@^0.6.0 |
| Python | alkove>=0.6,<0.7 |
| Android | implementation("ai.alkove:alkove:0.6.0"), and ai.alkove:alkove-livekit:0.6.0 for LiveKit |
| iOS and macOS | .package(url: "https://github.com/alkove-ai/alkove.git", from: "0.6.0"), and alkove-livekit-swift from: "0.6.0" for LiveKit |
| React Native | @alkove/react-native 0.3.2 and @alkove/react-native-livekit 0.3.1 |
| Flutter | alkove 0.1.1 (new: flutter pub add alkove) |
| LiveKit Agents | livekit-plugins-alkove 2.1.0 |
| Pipecat | pipecat-alkove 2.1.0 |
The LiveKit and Pipecat plugins run on alkove>=0.6.0,<0.7: upgrade them with alkove.
The models
Section titled “The models”| 0.5 | 0.6 | |
|---|---|---|
| Cue | alkove-cue-1-preview, 1.2 MB |
alkove-cue-1, 1.33 MB |
| Spot | alkove-spot-1-preview, 2.77 MB, 7 languages |
alkove-spot-1, 0.55 MB, and a top of 0.34 MB per language, 11 languages |
| Lex | alkove-lex-1-preview, 1.82 MB |
alkove-lex-1-<lang>, one file per language, 0.37 to 1.47 MB |
| Focus, Timbre | alkove-focus-1, alkove-timbre-1 |
the same files |
With one language, the five weigh 6.8 MB together. With two languages or more, Spot also loads its language head, alkove-spot-1-lang.alk (0.26 MB). If you host the models yourself, run npx alkove models <dir> again and deploy the new folder with the new bundle (Self-hosting). A native app that ships .alk files in its bundle or its assets swaps the three -preview files for the new ones, one Spot top and one Lex per language.
Words: compile them again
Section titled “Words: compile them again”A word compiled or enrolled for alkove-spot-1-preview means nothing to alkove-spot-1. Passing one to a wake listener or an input throws an AlkoveError with code word.outdated. Keep each word’s text and language next to it, and compile it again; enroll a recorded word again.
let word = saved ? JSON.parse(saved) : nulltry { wake = await createWakeListener({ words: [word] })} catch (e) { if (!(e instanceof AlkoveError) || e.code !== 'word.outdated') throw e word = await Spot.compile(text, { lang }) // made before 0.6: compile it again localStorage.setItem('word', JSON.stringify(word)) wake = await createWakeListener({ words: [word] })}Voiceprints made with 0.5 stay valid: Timbre does not change.
A wake word loads Cue
Section titled “A wake word loads Cue”Spot now starts from Cue’s first layers, so a wake word loads alkove-cue-1 beside alkove-spot-1 and a top for each language of its words. A wake word alone downloads a little more; an app that also runs an agent or call input downloads nothing more.
- Web.
Alkove.preload('wake', { langs })andAlkove.cached('wake', { langs })count Cue and each language’s top in; pass the languages of your words. The CLI copies them along:npx alkove models public/alkove spot-fr lex-frwrites Cue and Spot’s bottom too. - Python, Android, iOS.
Models.loadtakes the languages for Spot and Lex:Models.load(["spot", "lex"], langs=["fr"])in Python,Models.load(context, listOf("spot", "lex"), langs = listOf("fr"))on Android,Models.load(["spot", "lex"], langs: ["fr"])on iOS. Without languages, Spot loads no top and Lex nothing; Python raises aValueErrorforlex.
Defaults that move
Section titled “Defaults that move”- Speech opens at 0.7 and may end under 0.4 (
confidence,exitConfidence), where it was 0.5 and 0.1: the TV and other voices that leak through Focus open fewer phrases. - The end of turn comes from a new head that answers sooner at the same share of turns cut off. It reads
farEndActive(): an app that already tells the input when its agent speaks, for interruptions, has nothing to change. - Focus without a print.
process()learns a print from the recording first and runs the whole file with it; Python’s, Android’s and iOS’sLive, the call processors and the LiveKit and Pipecat plugins learn it from the stream, as the web inputs already did. Without a print given, the output keeps the closest voice rather than every voice. Give a print to keep a known person from the start. - Focus adapts to the device. On a device too slow for it, Focus runs without its separator, then gives the raw microphone, and tries again later; a
focus.modediag tells each change.lowPower: trueruns it without its separator from the start,lowPower: falsenever cuts it for the device’s speed.process()never adapts by itself, so a recording gives the same output on every device.
Integrations
Section titled “Integrations”- LiveKit Agents (
livekit-plugins-alkove2.1.0):alkove.VAD.load()opens speech at 0.7 and ends it under 0.4 by default (alkove.SpeechParams). - Pipecat (
pipecat-alkove2.1.0):AlkoveVADAnalyzeropens speech at 0.7 by default, Pipecat’s own default, where it was 0.5. - Home Assistant: the Wyoming server moves to
alkove0.6. The ESPHome component (alkove-esphome0.2.0) runs alkove-spot-1 in all 11 languages, one language per device: the words of a device are in one language, and a word given compiled carries itslang.
What is new
Section titled “What is new”All of it is off until you ask for it:
- Voice commands, on every platform: give the phrases your app understands, with numbers and lists in them; each utterance tells which one was said. Nothing is trained. See voice commands.
- The language of each utterance: a
languageevent among the languages loaded, withlangsor with words and commands in two languages or more. See languages. - German, Dutch, Polish and Swedish for wake words and commands, beside French, English, Spanish, Portuguese, Italian, Catalan and Romanian.
What does not change
Section titled “What does not change”- Focus and Timbre, their files and their prints.
- The delays: Focus adds 16 ms, a call input about 150 ms, an agent input about 50 ms.
- The events and their payloads; new events come in (
command,language).
The changelog lists every change of 0.6.0.