| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| docker-compose.yml | ||
| README.md | ||
Voice on trogdor
Since 2026-11-30 this service runs from
cmoriarty/trogdor-services, one stack for everything on trogdor's two RTX 5000s. This repo's Portainer stack is removed. The repo is kept for the measurements below and the reason behind each setting; its compose file is no longer deployed.
Speech to text on trogdor's second Quadro RTX 5000, with text to speech beside it on the CPU. The card part is
Portainer stack 156 voice (endpoint 39), and it restarts by itself. It is meant as the base for replacing the house's smart speakers.
| Service | Port | Program | Model | What it does |
|---|---|---|---|---|
voice-speech |
8094 | Speaches (faster-whisper 1.1.1) | Whisper large-v3-turbo | Speech to text: POST /v1/audio/transcriptions |
kokoro-tts (stack kokoro, on the CPU) |
8185 | Kokoro-FastAPI | Kokoro 82M | Text to speech: POST /v1/audio/speech, model kokoro, voice such as af_heart |
Both speak the OpenAI audio API, so anything that can use OpenAI's speech services can use these.
Kokoro stays on the CPU
On 2026-11-30 the owner chose to leave text to speech on the CPU and give its 1.3 GB of the card to the image
model. A short reply takes 0.57 s there against 0.10 s on the card. To put it back on the card, add the service
ghcr.io/remsky/kokoro-fastapi-gpu to this stack (see the git history of docker-compose.yml).
Measured on 2026-11-30
Two test texts: a 13-word command, and a 100-word paragraph. Times are the middle of three runs, from another machine on the network. "First sound" is when the first piece of audio arrives.
Text to speech
| Server | Command (3.9 s of speech) | Paragraph (34 s of speech) | Paragraph, first sound |
|---|---|---|---|
| Kokoro-FastAPI on the card (tried, not kept) | 0.10 s | 0.60 s | 0.20 s |
| Kokoro-FastAPI on the CPU (in use, port 8185) | 0.57 s | 3.87 s | 1.26 s |
| Speaches' own Kokoro, on the card | 1.09 s | 7.84 s | 6.46 s |
Speaches' Kokoro also dropped part of the paragraph (26 s of speech where the others made 34 s), so it is not used and its model was deleted.
Speech to text, on clips spoken by the Mac's own voices, which Kokoro had no part in:
| Clip | Time | Result |
|---|---|---|
| The command, 3.4 s long | 0.31 s | Every word right ("nine" written as "9") |
| The paragraph, 32.9 s long | 0.92 s | One word wrong: "Portainer" heard as "Portana". "seven fifteen" written as "7.15" |
Kokoro's speech was heard back just as well: the same single word wrong in the paragraph.
Card memory: 2.2 GB for speech to text once it has been used (1.3 GB more for text to speech when that was on the card).
A whole exchange adds up to about 2 s after the speaker stops: 0.3 s to hear the command, about 1 s for the small model on port 8091 to choose a tool (measured 2026-11-29), 0.6 s to speak the reply on the CPU. This sum has not been run as one chain.
Not done yet
- Nothing uses the speech-to-text service yet.
- No test with a real microphone in a room, with a child's voice, or with noise.
- Home Assistant's voice devices speak a protocol called Wyoming, not the OpenAI API. A small bridge container would be added when there is a Home Assistant to connect.
- Wake word ("hey ...") detection runs on the speaker device, not here.
Things worth knowing
- The images are pinned by digest. Speaches'
latest-cudatag was a build of 2025-09-19 on the day of the test; it does not know thePRELOAD_MODELSsetting in the project's documentation. - Speaches keeps its model in the volume
voice_hf. On a new volume, fetch it once:curl -X POST http://trogdor:8094/v1/models/deepdml/faster-whisper-large-v3-turbo-ct2 - Speaches' web page is switched off: it asked
api.gradio.appfor a version number at every start.