kestrel-voice-xai
xAI voice providers for Kestrel Sovereign:
- Realtime speech-to-speech over the xAI Voice Agent WebSocket API
- Text to speech, including streaming MP3, WAV, PCM, μ-law, and A-law output
- Batch and streaming speech to text
- Runtime discovery of voice models, built-in voices, and custom voices
- Governed Kestrel function tools with atomic multi-tool continuation
Install the package beside kestrel-feature-voice and set XAI_API_KEY.
Providers are discovered through Python entry points; the feature package does
not import this distribution directly.
uv pip install git+https://github.com/KestrelSovereignAI/kestrel-voice-xai.git
export XAI_API_KEY=...
All three roles share the operator-facing [voice.xai] configuration. Voice
IDs stay dynamically discovered. Realtime models are also discovered when xAI
exposes them in the account's generic model catalog; otherwise the adapter uses
xAI's documented grok-voice-latest moving alias. Selecting no realtime voice
lets xAI use its current provider default.
[voice.xai]
language = "auto"
# model = "grok-voice-think-fast-1.0" # optional production pin
# keyterms = ["Kestrel", "your product name"]
# Provider-native tools are intentionally opt-in. Kestrel function tools do
# not go here; they remain governed by the Sovereign dispatcher.
native_tools = ["web_search", "x_search"]
Provider-native web_search, x_search, file_search, and remote mcp tools
are supported by xAI but disabled by default. Enable only the specific native
tool definitions intended for the agent in the provider configuration. Kestrel
function tools continue to execute through the Sovereign governed dispatcher.
The voice UI receives the provider's live built-in and team custom-voice catalog, persists voice choices by provider, and uses an xAI ephemeral token for direct browser WebSocket sessions. Long-lived API keys stay server-side.
Upstream contracts: Voice Agent API, ephemeral tokens, text to speech, speech to text, and custom voices.
Metadata
Release files for kestrel-voice-xai 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| kestrel_voice_xai-0.1.2.tar.gz | 14.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| kestrel_voice_xai-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 26.7 kB
Release files / kestrel_voice_xai-0.1.2.tar.gz
| Download URL | kestrel_voice_xai-0.1.2.tar.gz |
|---|---|
| Size | 14.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
619d72127b66a2bcf7c0abf660ce2831b58d6378d447d9f4b4da327438e92725
|
|
BLAKE2b-256 checksum How to use checksums |
efe0f16d89d5789ef29b57da9acf0c40f6fb906eaebb8fc9159d1fea086a7878
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 17, 2026.
Transparency logRelease files / kestrel_voice_xai-0.1.2-py3-none-any.whl
| Download URL | kestrel_voice_xai-0.1.2-py3-none-any.whl |
|---|---|
| Size | 12.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c931867989b1aba5c17a49909abf3bb6e80a6e5f1e16c00e16708fe6a95c14a8
|
|
BLAKE2b-256 checksum How to use checksums |
5c55e09b53e5fc559ed4f8b64680ff09bbaf93a0dc5e85fb4b167c74f4d8d182
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 17, 2026.
Transparency log