@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.
- package/README.md +10 -9
- 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
|
|
4
|
-
platform
|
|
5
|
-
|
|
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)** —
|
|
10
|
-
- **[Speak](https://pyai.com/models/speak)** —
|
|
11
|
-
- **[Omni](https://pyai.com/models/omni)** _(flagship)_ —
|
|
12
|
-
- **[Trace](https://pyai.com/models/trace)** _(flagship)_ —
|
|
13
|
-
- **[Cue](https://pyai.com/models/cue)** —
|
|
14
|
-
- **[Telephony](https://pyai.com/models/telephony)** —
|
|
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.
|
|
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",
|