@pyai/sdk 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +10 -9
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,17 +1,18 @@
1
1
  # @pyai/sdk
2
2
 
3
- Official TypeScript/JavaScript SDK for [PyAI](https://pyai.com) — the voice-AI
4
- platform for speech-to-text, text-to-speech, realtime voice agents, and
5
- automated call compliance. Zero dependencies; runs in the browser and Node 18+.
3
+ Official TypeScript/JavaScript SDK for [PyAI](https://pyai.com) — the all-in-one
4
+ voice AI platform: lightning-fast speech-to-text, ultra-realistic text-to-speech,
5
+ end-to-end realtime voice agents, and automatic call compliance. Zero
6
+ dependencies; runs in the browser and Node 18+.
6
7
 
7
8
  ## PyAI products
8
9
 
9
- - **[Hear](https://pyai.com/models/hear)** — Speech-to-text tuned for telephony (8 kHz), with streaming partials and a half-price async batch tier; OpenAI-compatible. `POST /v1/audio/transcriptions`
10
- - **[Speak](https://pyai.com/models/speak)** — Low-latency streaming text-to-speech (~32–98 ms to first byte) with 36 stock voices and free instant voice cloning. `POST /v1/audio/speech`
11
- - **[Omni](https://pyai.com/models/omni)** _(flagship)_ — End-to-end realtime voice agents over a single WebSocket: listens, thinks, and speaks — grounded in your knowledge bases and tools, with natural turn-taking and barge-in. `wss://api.pyai.com/v1/omni`
12
- - **[Trace](https://pyai.com/models/trace)** _(flagship)_ — Automated compliance & QA on every call: scores each call against rule packs (TCPA, HIPAA, PII, brand-voice), with findings that cite the rule, auto-redaction, and a tamper-evident audit hash. `GET /v1/trace/interactions`
13
- - **[Cue](https://pyai.com/models/cue)** — Turn detection + retrieved knowledge-base context for bring-your-own-LLM/voice pipelines, billed as one per-minute meter. `wss://api.pyai.com/v1/audio/transcriptions/stream`
14
- - **[Telephony](https://pyai.com/models/telephony)** — Managed US phone numbers routed straight to your Omni agents, no separate carrier contract. `POST /v1/telephony/numbers`
10
+ - **[Hear](https://pyai.com/models/hear)** — Lightning-fast, telephony-native **speech-to-text**. Whisper-compatible transcription tuned for real phone-call audio, with live streaming partials so your app reacts mid-sentence, plus async batch transcription for big archives. `POST /v1/audio/transcriptions`
11
+ - **[Speak](https://pyai.com/models/speak)** — Ultra-realistic **text-to-speech** that starts speaking in tens of milliseconds. Stream lifelike, expressive voices, choose from 36 studio-quality presets, or clone any voice instantly — for free. `POST /v1/audio/speech`
12
+ - **[Omni](https://pyai.com/models/omni)** _(flagship)_ — One **API for a complete, end-to-end voice AI agent**. A single WebSocket where your agent listens, thinks, and speaks — grounded in your knowledge bases and tools, with human-like turn-taking and instant barge-in — no STT, LLM, or TTS to stitch together yourself. `wss://api.pyai.com/v1/omni`
13
+ - **[Trace](https://pyai.com/models/trace)** _(flagship)_ — The **compliance API that keeps your AI agents safe**. Trace automatically checks every call for HIPAA, TCPA, and PII risks (plus your own brand-voice rules), flags the exact rule broken, redacts sensitive data, and seals each call with a tamper-evident audit trail — so a risky conversation never slips through. `GET /v1/trace/interactions`
14
+ - **[Cue](https://pyai.com/models/cue)** — Realtime **turn detection + knowledge-grounded context** for your own stack. Bring your own LLM and voice; Cue nails the hard part — knowing the instant a speaker finishes and surfacing the right context. `wss://api.pyai.com/v1/audio/transcriptions/stream`
15
+ - **[Telephony](https://pyai.com/models/telephony)** — Instant **managed phone numbers** for your voice agents. Provision a US number and route live calls straight into an Omni agent — no carrier contracts, no telephony glue. `POST /v1/telephony/numbers`
15
16
 
16
17
  The contract is `https://api.pyai.com/openapi.json`. This SDK wraps it
17
18
  ergonomically with typed errors, automatic retries, and a realtime helper.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pyai/sdk",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Official TypeScript/JavaScript SDK for PyAI — speech-to-text (Hear), text-to-speech (Speak), realtime voice agents (Omni), and call compliance (Trace).",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",