voxo
A speech-to-text service for your own server: an app sends it sound and gets the text back.
- Dictation with live text. The text appears on the page while the user speaks.
- A whole recording. A file in, its text out, in the format of the OpenAI API.
- A plain server. The models run on the processor: 4 cores and 2 GB of memory are enough. There is no graphics card and no database, and the network is needed only to download a model.
Install
On a Linux or macOS machine with uv:
uv tool install voxo
voxo download parakeet-v3 # a model: 25 European languages, English among them
voxo start # the service, at http://127.0.0.1:7711
voxo token # the token of the service: every request must carry it
http://127.0.0.1:7711/ is a page to try a dictation by voice: type the token and press Start.
voxo stopstops the service.voxo token --newreplaces the token.voxo --helplists the rest.- The models and the token are in
~/.local/share/voxo. - A whole recording needs
ffmpegon the machine. gigaam-v3is another model, for Russian only.
Run on a server
voxo start does not start again after a reboot. On a server, run voxo stop and let systemd run the service.
Here the user voxo installed it; the file is /etc/systemd/system/voxo.service:
[Unit]
Description=voxo
After=network.target
[Service]
User=voxo
ExecStart=/home/voxo/.local/bin/voxo serve
Restart=on-failure
[Install]
WantedBy=multi-user.target
systemctl enable --now voxo
voxo listens only on 127.0.0.1, which is all an app on the same machine needs. For an app on another machine,
or to open the test page from your own, put Caddy in front. It gives HTTPS: without it the token crosses the
network in the open, and a browser gives no microphone.
voxo.example.com {
reverse_proxy 127.0.0.1:7711
}
Connect an app
The browser talks only to your app, and the app passes its requests to voxo with the token. So the token never reaches a browser, and your app decides who may dictate.
1. Give the app the address of voxo and the token.
2. Add two routes that pass a request to voxo as it is. With FastAPI and httpx:
voxo = httpx.AsyncClient(base_url=VOXO_URL, headers={"Authorization": f"Bearer {VOXO_TOKEN}"})
@app.get("/voxo.js") # the script of the page
async def voxo_script() -> Response:
answer = await voxo.get("/voxo.js")
return Response(answer.content, media_type="text/javascript")
@app.post("/dictations") # the sound: check the sign-in of the user here
async def dictations(request: Request) -> Response:
answer = await voxo.post("/dictations", params=request.query_params, content=await request.body())
return Response(answer.content, answer.status_code, media_type="application/json")
The two addresses may have any prefix, the same for both: the script sends the sound to dictations beside
itself.
3. On the page, start and stop a dictation, and put the text where it belongs:
<button id="mic">Dictate</button>
<textarea id="text"></textarea>
<script type="module">
import { dictate } from "/voxo.js";
const mic = document.querySelector("#mic");
const text = document.querySelector("#text");
let stop = null;
mic.onclick = async () => {
if (stop) {
await stop(); // frees the microphone and waits for the last answer
stop = null;
return;
}
let done = text.value;
stop = await dictate({
params: { model: "parakeet-v3" },
onAnswer({ ended, current }) {
done = [done, ...ended].filter(Boolean).join(" "); // the phrases that ended: their text is final
text.value = [done, current].filter(Boolean).join(" "); // and the phrase still being said
},
onError: (error) => alert(error.message),
});
};
</script>
A whole recording
curl http://127.0.0.1:7711/v1/audio/transcriptions -H "Authorization: Bearer $(voxo token)" \
-F file=@meeting.m4a -F model=parakeet-v3
# {"text":"Hi, please check the last commit."}
The recording may be in any format ffmpeg reads. A program written for the OpenAI API works too: give it
http://127.0.0.1:7711/v1 as the address, the token as the key, and a voxo model. An hour of speech takes
minutes, so give the request no short timeout.
http://127.0.0.1:7711/docs describes every request.
Metadata
Release files for voxo 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| voxo-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for voxo-0.1.0-py3-none-any.whl |
Release files / voxo-0.1.0-py3-none-any.whl
| Download URL | voxo-0.1.0-py3-none-any.whl |
|---|---|
| Size | 26.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fcdfc68f908bdd9a44a829eb5f7d5cd8aecc935fb2345119a2c2e324a7a6bc02
|
|
BLAKE2b-256 checksum How to use checksums |
79725821775a25b0bb4eee39dfcf130cedd46c59427f348209402699e98a181e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for voxo 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.