You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 5056228
Browse filesBrowse the repository at this point in the historyBrowse files
feat(sdks): recover dropped connections with ICE restart
Python SDK now drive the server's
PATCH /whip/{sessionId} ICE restart, keeping the session and the
conversation alive across a network change. Python ships the wire
helpers only — aiortc has no ICE restart primitive.
Refs #38
- The PyPI package is **`streamcore`** — not `streamcoreai`, not `streamcore-sdk`. (`streamcore-plugin` is a different package, for building agent tools.)
34
+
- The class is **`streamcore.Client`**, not `StreamCoreAIClient` — that is the TypeScript name.
35
+
- The config field is **`whip_endpoint`**, not `whip_url` — that differs from the JS SDK on purpose.
36
+
- Audio is **int16 numpy**, mono, 48 kHz, `FRAME_SIZE` (960) samples per 20 ms frame. The Rust SDK uses f32; do not copy across.
37
+
38
+
The whole API is async. Everything runs under `asyncio`.
39
+
40
+
## Build
41
+
42
+
```bash
43
+
pip install -e .
44
+
```
45
+
46
+
Requires Python 3.10+. Depends on `aiortc`, `aiohttp`, `av`, and `numpy`.
47
+
48
+
## When changing the public API
49
+
50
+
Update `README.md` and https://streamcore.ai/llms-full.txt in the same change — coding agents treat both as ground truth.
Copy file name to clipboardExpand all lines: README.md
+43Lines changed: 43 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,7 @@
1
1
# streamcore (Python)
2
2
3
+
**English** | [简体中文](./README.zh-CN.md)
4
+
3
5
Python SDK for connecting to a [streamcore](https://github.com/streamcore/streamcore-server) server via WebRTC + WHIP, powered by [aiortc](https://github.com/aiortc/aiortc).
4
6
5
7
## Requirements
@@ -65,14 +67,21 @@ Creates a new voice agent client.
0 commit comments