Tazo
-
Parameters:
- api_key (str *|*None) – Bearer credential, or read TAZO_API_KEY. May be omitted for health.
- base_url (str) – API origin, optionally with a proxy path prefix; no /v1 suffix.
- timeout (float *|*httpx.Timeout) – Per-network-phase timeout in seconds, or an httpx.Timeout.
- max_retries (int) – Additional HTTP attempts after the first (default two).
- operation_timeout (float) – HTTP retry budget in seconds (default 180). Each network phase is capped by the remaining budget. A synchronous in-flight request can outlast this budget across multiple network phases/body chunks.
- http_client (httpx.Client *|*None) – Optional caller-owned HTTPX client; the SDK will not close it.
close()
- Return type: None
AsyncTazo
-
Parameters:
- api_key (str *|*None)
- base_url (str)
- timeout (float *|*httpx.Timeout)
- max_retries (int)
- operation_timeout (float)
- http_client (httpx.AsyncClient *|*None)
close()
- Return type: None
WAV helper
wav_chunks()
-
Parameters:
- path (str |PathLike[str]) – PCM16 WAV recording. Compressed WAV and other formats are rejected.
- chunk_ms (int) – Chunk size from 1 to 200 milliseconds.
-
Yields:
Binary audio frames suitable for
session.send_audio. - Return type: Iterator[bytes]