Step 3 of 13Adopted

Speech runs on the CPU

The aarch64 CTranslate2 wheel has no CUDA and the board has no container runtime, so speech to text and text to speech run on the CPU in a small purpose-built server. Kokoro runs faster than real time; whisper base.en transcribes 2.1 s of speech in 1.25 s.

Kokoro, real-time factor
0.85
1.79 s to synthesize 2.11 s of audio
whisper base.en, 2.1 s clip
1.25 s
CPU int8
GPU users on the board
1
the language model

Problem

On the server, whisper and Kokoro ran on the GPU behind their own servers. On the board, JetPack's CUDA was installed, but the speech stack couldn't reach it. faster-whisper runs on CTranslate2, and the aarch64 wheel on PyPI is built without CUDA: asking it for the GPU raises an error instead of falling back. The off-the-shelf speech servers ship as container images, and the board has no container runtime.

Change

A small standard-library server in the assistant's own code, serving the same OpenAI-compatible endpoints its client already spoke. Kokoro-82M runs through ONNX, because its phonemizer brings its own data and every alternative needed a system package. faster-whisper runs int8 on the six CPU cores, with base.en in place of small, for about a third of the latency.

Result

StageTime
Kokoro load3.3 s
Kokoro synthesis1.79 s for 2.11 s of audio
whisper base.en load4.6 s
whisper transcription1.25 s for 2.1 s of audio

Whisper transcribed Kokoro's own output word for word.

Decision

Adopted, with the GPU left to the language model.