Alkove Cue 1 Preview CoreML: streaming speech detector conversion for Apple devices
2 min readupdated
This model is an experimental conversion of the Alkove Cue streaming speech detector, end-of-speech, and pause weights into the CoreML format (Apple's library for optimizing and running models on macOS and iOS devices). The conversion dequantizes the original int8 weights to Float32 and makes the streaming state explicit, with macOS 15 and iOS 18 targeted as the main platforms. The tool is designed for developers of voice applications and local real-time speech recognition systems running on Apple hardware.
Key features
- CoreML optimization: direct execution on Apple device CPUs (tested on Apple M5 Pro).
- Float32 precision: dequantized weights for stable performance on Mac desktop and mobile devices.
- Streaming processing: audio analysis frame by frame in 480-sample blocks (16 kHz mono) while maintaining the streaming state.
- Compact size: the artifact size is only 5.40 MB.
What you can do
- Integrate local detection of speech endings and pauses into an iOS or macOS voice input app.
- Build an interactive voice assistant with minimal latency on Apple devices without sending audio to the cloud.
- Use the model alongside Swift audio frameworks to create full-duplex communication systems.
Example
import coremltools as ct
import numpy as np
model = ct.models.CompiledMLModel("cue-preview-fp32.mlmodelc", compute_units=ct.ComputeUnit.CPU_ONLY)
audio = np.zeros((1, 480), dtype=np.float32)
state = np.zeros(5976, dtype=np.float32)
result = model.predict({"audio": audio, "stream_state": state})
state = result["next_state"]
Read more
DetailsFormat: Compiled ML Program
Precision: Float32 (1.11 million saved scalars)
Caught speech endings: 225/238 (94.5%)
Median decision latency: 800 ms
Warm CPU call time: median 0.078 ms, 95th percentile 0.084 ms
License: Apache-2.0










Comments