Skip to main content

Shared low-level audio primitives for the kevin and autonet voice services

Project description

voice-core

Shared low-level audio primitives for the kevin voice service and the autonet (autonet-computer[voice]) VoiceService. Both repos used to carry their own copy of this code; this package is the single source of truth so fixes land once.

What's here

Module Contents
voice_core.audio AudioMixer, AudioChannel (real-time mixing, ducking, fade, per-channel pause), find_device, get_device_list, resample
voice_core.tts generate_kokoro / generate_edge / generate_elevenlabs / generate_piper; set_kokoro_model_dir, set_piper_module_dir
voice_core.stt PushToTalkRecorder (duck/mute modes, 30s release-timeout safeguard), transcribe (faster-whisper)
voice_core.tones make_tool_tone, make_result_chime, make_startup_chime, make_failure_tone, gen_tone
voice_core.text strip_markdown (markdown + emoji stripping for TTS), tool_summary, tool_narration

What's not here

Architecture-specific glue stays in each repo:

  • kevin: UDP instance registry, hooks, window focus, clipboard paste, overlay, main()
  • autonet: VoiceService class, EventBus wiring, VoiceConfig

Install

pip install -e .            # core only (numpy + sounddevice)
pip install -e .[full]      # all TTS backends + PTT/STT

Heavy deps (kokoro-onnx, edge-tts, miniaudio, requests, keyboard, faster-whisper) are lazy-imported, so the core imports cheaply and each backend only errors (with an install hint) when used without its dependency.

Configuring model/voice paths

The Kokoro model files (kokoro-v1.0.onnx, voices-v1.0.bin) and the Piper voice package live outside this repo. Point at them at startup:

import voice_core
voice_core.set_kokoro_model_dir(r"c:\code\kevin")   # holds the .onnx + .bin
voice_core.set_piper_module_dir(r"c:\code\voice")   # holds the `voice` package

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

autonet_voice_core-0.1.0.tar.gz (12.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

autonet_voice_core-0.1.0-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

Details for the file autonet_voice_core-0.1.0.tar.gz.

File metadata

  • Download URL: autonet_voice_core-0.1.0.tar.gz
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for autonet_voice_core-0.1.0.tar.gz
Algorithm Hash digest
SHA256 92f9e4a08f54e03d5a37e2e63c3cd9b62e32ff9a806cbc240ae9be621e736462
MD5 361e402c9a9b9325f58120e97fcb7105
BLAKE2b-256 b8c71cd88b140544b81805aac8afa33f08c50b3f5f283545b76f868e1e91bb9e

See more details on using hashes here.

File details

Details for the file autonet_voice_core-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for autonet_voice_core-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9d333c4b3a3a3bd6f4c8d6026e7cf46d882f0c4778d141426438a4d9c34a3bf0
MD5 81361b0cf622be79dd8ac35bce091e70
BLAKE2b-256 529a6e3b348a24adeb266094859bd377aad4f29a00a3b76062128cb2a46c3698

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page