@pyai/sdk 0.1.0 → 0.1.1
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 +12 -4
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
# @pyai/sdk
|
|
2
2
|
|
|
3
|
-
Official TypeScript/JavaScript SDK for
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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+.
|
|
6
|
+
|
|
7
|
+
## PyAI products
|
|
8
|
+
|
|
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`
|
|
7
15
|
|
|
8
16
|
The contract is `https://api.pyai.com/openapi.json`. This SDK wraps it
|
|
9
17
|
ergonomically with typed errors, automatic retries, and a realtime helper.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pyai/sdk",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Official TypeScript/JavaScript SDK for
|
|
3
|
+
"version": "0.1.1",
|
|
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",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"engines": {
|
|
31
31
|
"node": ">=18"
|
|
32
32
|
},
|
|
33
|
-
"keywords": ["pyai", "voice-ai", "tts", "stt", "speech", "openai-compatible"],
|
|
33
|
+
"keywords": ["pyai", "voice-ai", "tts", "stt", "speech", "voice-agents", "realtime", "transcription", "compliance", "openai-compatible"],
|
|
34
34
|
"license": "MIT",
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/node": "^22.0.0",
|