sst-voice-agent (client SDK)
Thin Python client for the Multilingual Voice Agent service. One dependency
(httpx), one object, methods that mirror the API.
Install
pip install ./sdk # from this repo
# or, once published to your internal index:
# pip install sst-voice-agent
Usage
from sst_voice_agent import VoiceAgent
agent = VoiceAgent(base_url="http://localhost:8000", api_key="sk-...")
# Text chat (RAG controlled per call)
print(agent.chat("What is your refund policy?").text)
print(agent.chat("Tell me a joke", use_knowledge_base=False).text)
# STT only
with open("question.wav", "rb") as f:
result = agent.stt(f.read())
print(result.text, result.detected_language)
# TTS only
audio = agent.tts("សួស្តី", language="km") # bytes (WAV)
open("reply.wav", "wb").write(audio)
# Full voice pipeline
with open("question.wav", "rb") as f:
out = agent.converse(f.read())
print(out.transcript, "->", out.text, f"({out.detected_language})")
if out.audio_bytes:
open("answer.wav", "wb").write(out.audio_bytes)
The client retries idempotent failures, raises VoiceAgentError on HTTP
errors, and can be used as a context manager (with VoiceAgent(...) as a:).
Metadata
Release files for sst-voice-agent 0.2.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 | Provenance | Actions |
|---|---|---|---|---|
| sst_voice_agent-0.2.2.tar.gz | 8.1 kB | Without provenance | Details for sst_voice_agent-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sst_voice_agent-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for sst_voice_agent-0.2.2-py3-none-any.whl |
Total release size: 17.5 kB
Release files / sst_voice_agent-0.2.2.tar.gz
| Download URL | sst_voice_agent-0.2.2.tar.gz |
|---|---|
| Size | 8.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9d7d39d97015ea6f3747f4460a7759ff6476d194127bcc26b6256e31138228bb
|
|
BLAKE2b-256 checksum How to use checksums |
a5997028702b2d0933f65e5c2a4c3086ccd6ace828b8e659bdf4e64422d44a90
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / sst_voice_agent-0.2.2-py3-none-any.whl
| Download URL | sst_voice_agent-0.2.2-py3-none-any.whl |
|---|---|
| Size | 9.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
166eed32cd4699b4b103f120e57d11c1779221dc30a80cfab5a6c96f738705ad
|
|
BLAKE2b-256 checksum How to use checksums |
97375b12a235d4a3154ab69a3b120d2eb3a9ad5e6f352e7a1ca727329a15c3d1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for sst-voice-agent 0.2.2
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.