Skip to main content

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)

Source distribution for sst-voice-agent 0.2.2
File Size Uploaded
sst_voice_agent-0.2.2.tar.gz 8.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sst-voice-agent 0.2.2
File Interpreter ABI Platform
sst_voice_agent-0.2.2-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page