alkove-ai/alkove
On-device voice models and SDK: voice isolation, wake words, voice activity and voiceprints. In the browser (WebAssembly), Python, Android, iOS, React Native and Flutter, with plugins for LiveKit Agents, Pipecat and Home Assistant (ESPHome, Wyoming). No server, no key. Apache-2.0 code and weights.
Thành tựu nổi bật
Những danh hiệu mới nhất của dự án
#1 Repository của tuần
#1 Repository của tuần
#1 Repository của tuần
Listens to one voice. Answers to any name.
Voice isolation, wake words, voice activity and voiceprints, on the device.
In the browser, in Python, on Android and on iOS. No server, no key, no telemetry.
Try it on your voice · Docs · Android · iOS · LiveKit Agents · Pipecat · Home Assistant
The five models on one scene: a typed wake word, your voice only, your turns only. Try it on your voice.
Why Alkove
- The other voices stay out. On meetings recorded on headset microphones (AMI), words from other people reaching the transcript drop from 17 per minute to 0.5. Denoisers let 19 or more through.
- Far voices stay out without a voiceprint. With
near, a colleague across the room or a video on another device opens no turn: it goes by loudness against the user's own voice, nothing biometric. - Any word is a wake word. Type it in one of 7 languages: no training, no recording session. 80 % recall at one false alarm per hour.
- Fewer false barge-ins. Behind Focus, Cue starts on music 4× less often than Silero VAD.
- Small enough for a phone. Five models under 8 MB together, Focus at 1.1 MB, an engine of 141 KB (brotli).
- Open. Code and weights under Apache-2.0, the engine is Alkove's own, in Rust. Every number above comes with its datasets and protocol in
bench/.
Quick start
In the browser
npm install alkove
import { createCallInput } from 'alkove'
const input = await createCallInput()
pc.addTrack(input.track) // only the user's voice goes out
import { createWakeListener, Spot } from 'alkove'
const word = await Spot.compile('Hey Nova', { lang: 'en' })
const wake = await createWakeListener({ words: [word] })
wake.on('wake', ({ audio }) => startListening(audio))
Voice agents, files, Node and the primitives: the alkove package. With React, useAgentInput, useCallInput and useWakeListener from alkove/react: the React guide.
On Android
// settings.gradle.kts: repositories { maven("https://maven.alkove.ai") }
implementation("ai.alkove:alkove:0.4.1")
val input = AgentInput.start(context, AgentOptions(output = Output(Format.S16, rate = 24000))) { chunk ->
socket.send(chunk) // only the user's voice goes out
}
Wake words, files, a LiveKit room (ai.alkove:alkove-livekit): the Android quick start.
On iOS and macOS
.package(url: "https://github.com/alkove-ai/alkove.git", from: "0.4.1")
let input = try await AgentInput.start(AgentOptions(output: Output(format: .s16, rate: 24000))) { chunk in
socket.send(chunk) // only the user's voice goes out
}
A preview, not yet tried on an iPhone's microphone. Wake words, files, a LiveKit room (alkove-livekit-swift): the iOS quick start.
LiveKit Agents
pip install livekit-plugins-alkove
from livekit.plugins import alkove
session = AgentSession(vad=alkove.VAD.load(), ...)
await session.start(
agent,
room=ctx.room,
room_options=room_io.RoomOptions(
audio_input=room_io.AudioInputOptions(noise_cancellation=alkove.Focus()),
),
)
Pipecat
pip install pipecat-alkove
from pipecat_alkove import AlkoveFilter, AlkoveVADAnalyzer
params = TransportParams(audio_in_enabled=True, audio_in_filter=AlkoveFilter())
vad = AlkoveVADAnalyzer()
Home Assistant
Typed wake words on an ESP32-S3, in place of micro_wake_word (the ESPHome component):
alkove_spot:
microphone: my_microphone
words:
- text: ok Nabu
lang: en
on_wake_word_detected:
- voice_assistant.start:
wake_word: !lambda return wake_word;
On a satellite, in place of openWakeWord (the Wyoming server):
pip install wyoming-alkove
wyoming-alkove --uri tcp://0.0.0.0:10400 --word "ok nabu" --word "fr:salut maison" --zeroconf
Python on its own: pip install alkove, see the Python package.
The five models
| Model | What it does | Size |
|---|---|---|
| Focus | Keeps the closest voice, or one person's voice from their print, and removes noise, music and other voices | 1.1 MB |
| Cue | Tells when someone speaks, every 30 ms, and when their turn ends | 1.2 MB |
| Spot | Hears any word you type, in 7 languages, with no training | 2.8 MB |
| Lex | Turns a written word into its likely pronunciations | 1.8 MB |
| Timbre | Makes voiceprints and compares them | 0.74 MB |
Weights on Hugging Face, downloaded once, checked by sha256 and cached. In production, host them yourself.
Read this first
- A near microphone, one person. A phone, a headset, a laptop in front of you. Alkove keeps the closest voice and removes the others: on a room microphone in the middle of a meeting table, it removes the other participants too.
- 16 kHz voice. The output carries speech up to 8 kHz: HD voice, not full band.
- Preview (0.x). A minor version may break the API until 1.0, a patch never does. See the changelog.
In this repository
packages/alkove | the web library (npm) |
python | the Python package (PyPI) |
android | the Android library and its LiveKit plugin (maven.alkove.ai) |
ios | the Swift package (iOS, macOS), its LiveKit plugin and an example app |
integrations/livekit | Focus and Cue for LiveKit Agents |
integrations/pipecat | Focus and Cue for Pipecat |
crates/engine | the inference engine and the .alk format |
crates/core | the features, written once in Rust for every package |
bench | every benchmark number, with its datasets and protocol |
examples | two React apps (Next.js, Vite) and two plain HTML pages |
Building from source: CONTRIBUTING.md.
License
Dự án tương tự
Khám phá các dự án và mô hình AI khác có sự tương đồng.
VoxLock The best performing voice isolator there is. VoxLock is an open-source voice isolation model: it keeps the caller's voice and removes the other voices in the room before speech-to-text hears them. Made for voice agents and phone calls: one i...
Using this open-source model in production? Consider switching to pyannoteAI(https://www.pyannote.ai) for better and faster options. 🎹 "Powerset" speaker segmentation This model ingests 10 seconds of mono audio sampled at 16kHz and outputs speaker d...
Quail Voice Focus Primary-speaker isolation for speech-to-text and voice agents. Quail Voice Focus is a production speech-to-speech model by ai-coustics(https://ai-coustics.com/) that isolates the foreground speaker and suppresses noise, reverb, com...
Voice Isolator Open-license (Apache-2.0) 48 kHz voice isolation for noisy speech recordings and live audio. --- TL;DR Inworld Voice Isolator v1 ships as two models that share one architecture: | | voice-isolator-v1 | voice-isolator-v1-realtime | |--...
Nemotron 3 Diarization Description Nemotron 3 Diarization(https://huggingface.co/blog/nvidia/nemotron-diarization) is an open-weight speaker diarization model designed to determine "who spoke when" in real-world audio. It supports both streaming and...
Using this open-source model in production? Consider switching to pyannoteAI(https://www.pyannote.ai) for better and faster options. 🎹 Speaker segmentation Paper(http://arxiv.org/abs/2104.04045) | Demo(https://huggingface.co/spaces/pyannote/pretrain...
AI speech toolkit for Apple Silicon — ASR, TTS, speech-to-speech, VAD, and diarization powered by MLX and CoreML
Smart Turn v3.x Smart Turn is an open‑source semantic Voice Activity Detection (VAD) model that tells you whether a speaker has finished their turn by analysing the raw waveform, not the transcript. Links Blog post: Smart Turn v3(https://www.daily.c...