Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 22 additions & 12 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,27 @@
# Change Log

## Unreleased

* Add `webrtc.pipecat`, Pipecat's SmallWebRTC transport on the native API, installed with `wrtc[pipecat]`, with `install_alias()` for Pipecat's development runner. See [Use with Pipecat](https://wrtc.marshal.dev/guides/pipecat/) by [@MarshalX](https://github.com/MarshalX)
* Add a Pipecat voice bot example by [@MarshalX](https://github.com/MarshalX)
* Add `webrtc.aiortc.install_alias()`, which makes `import aiortc` give the compat layer, for libraries that import aiortc themselves by [@MarshalX](https://github.com/MarshalX)
* Add aiortc's `rtp`, `jitterbuffer`, `utils` and `clock` modules and the ICE server helpers of `rtcicetransport` to the compat layer by [@MarshalX](https://github.com/MarshalX)
* Drop a compat layer track's buffered frames when its receiver's `_enabled` is set to `False`, and add the track's `_queue`, for libraries that skip stale frames by [@MarshalX](https://github.com/MarshalX)
* Fix a video frame leak in the compat layer when a sender's track is replaced or stopped by [@MarshalX](https://github.com/MarshalX)
* Add `RTCConfiguration.tcp_listen` for clients without UDP, also on `webrtc.pipecat`'s connection and request handler. See [Clients without UDP](https://wrtc.marshal.dev/guides/connections/#clients-without-udp) by [@MarshalX](https://github.com/MarshalX)
* Fix ICE and DTLS transport states changing before their events by [@MarshalX](https://github.com/MarshalX)
* Fix compat layer audio `pts` falling behind after dropped audio by [@MarshalX](https://github.com/MarshalX)
* Fix a cancelled stream read losing the next chunk by [@MarshalX](https://github.com/MarshalX)
## Version 0.2.0

**02.11.2026**

**🤖 Pipecat bots run on the engine: install `wrtc[pipecat]` and change the imports, and clients stay as they are. See [Use with Pipecat](https://wrtc.marshal.dev/guides/pipecat/)**

**🧩 More libraries built on aiortc run on the compat layer unchanged, with `webrtc.aiortc.install_alias()`**

**🔌 Clients that can't use UDP reach a server over TCP, without TURN, with `RTCConfiguration.tcp_listen`. See [Clients without UDP](https://wrtc.marshal.dev/guides/connections/#clients-without-udp)**

* Add `webrtc.pipecat`, Pipecat's SmallWebRTC transport on the native API, installed with `wrtc[pipecat]`, with `install_alias()` for Pipecat's development runner by [@MarshalX](https://github.com/MarshalX) in [#277](https://github.com/MarshalX/python-webrtc/pull/277)
* Add a Pipecat voice bot example, with an echo that needs no keys by [@MarshalX](https://github.com/MarshalX) in [#277](https://github.com/MarshalX/python-webrtc/pull/277)
* Add `webrtc.aiortc.install_alias()`, which makes `import aiortc` give the compat layer, for libraries that import aiortc themselves by [@MarshalX](https://github.com/MarshalX) in [#276](https://github.com/MarshalX/python-webrtc/pull/276)
* Add aiortc's `rtp`, `jitterbuffer`, `utils` and `clock` modules and the ICE server helpers of `rtcicetransport` to the compat layer by [@MarshalX](https://github.com/MarshalX) in [#276](https://github.com/MarshalX/python-webrtc/pull/276)
* Drop a compat layer track's buffered frames when its receiver's `_enabled` is set to `False`, and add the track's `_queue`, for libraries that skip stale frames by [@MarshalX](https://github.com/MarshalX) in [#276](https://github.com/MarshalX/python-webrtc/pull/276)
* Add `RTCConfiguration.tcp_listen` for clients without UDP, also on `webrtc.pipecat`'s connection and request handler by [@MarshalX](https://github.com/MarshalX) in [#278](https://github.com/MarshalX/python-webrtc/pull/278)
* Add a library comparison guide, a README demo and copy-page actions to the docs by [@MarshalX](https://github.com/MarshalX) in [#271](https://github.com/MarshalX/python-webrtc/pull/271)
* Fix a video frame leak in the compat layer when a sender's track is replaced or stopped by [@MarshalX](https://github.com/MarshalX) in [#278](https://github.com/MarshalX/python-webrtc/pull/278)
* Fix compat layer audio `pts` falling behind after dropped audio by [@MarshalX](https://github.com/MarshalX) in [#278](https://github.com/MarshalX/python-webrtc/pull/278)
* Fix a cancelled stream read losing the next chunk by [@MarshalX](https://github.com/MarshalX) in [#278](https://github.com/MarshalX/python-webrtc/pull/278)
* Fix ICE and DTLS transport states changing before their events by [@MarshalX](https://github.com/MarshalX) in [#278](https://github.com/MarshalX/python-webrtc/pull/278)
* Fix the docs' contrast, mobile overflow and dead API links by [@MarshalX](https://github.com/MarshalX) in [#275](https://github.com/MarshalX/python-webrtc/pull/275)

## Version 0.1.0

Expand Down
23 changes: 23 additions & 0 deletions docs/source/_static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -153,3 +153,26 @@ dl.py.class > dd > dl.py.attribute:not(:has(> dd > *)) > dt {
margin: 0 0 0.5rem;
}
}

#content img.lib-logo {
display: inline-block;
width: 20px;
height: 20px;
max-width: none;
margin: 0 0.35rem 0 0;
padding: 0;
border: 0;
border-radius: 4px;
background: #fff;
vertical-align: text-bottom;
}

.home-logo {
margin: 0 auto 1.5rem;
}

.home-demo img {
margin: 1.5rem auto;
max-width: 100%;
height: auto;
}
1 change: 1 addition & 0 deletions docs/source/_static/img/libs/agentscope.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/_static/img/libs/fastrtc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/_static/img/libs/getstream.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions docs/source/_static/img/libs/gradio.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/_static/img/libs/livetalking.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions docs/source/_static/img/libs/openai.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions docs/source/_static/img/libs/pipecat.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/source/_static/img/libs/roboflow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/_static/img/libs/simli.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/_static/img/libs/vidgear.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/_static/img/og-image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 7 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,13 @@

# -- OpenGraph ---------------------------------------------------
ogp_site_url = 'https://wrtc.marshal.dev/'
# the social preview of the GitHub repository
ogp_image = 'https://repository-images.githubusercontent.com/444007147/cbcbf096-57d3-4715-93b0-4dba751db76a'
ogp_image = 'https://wrtc.marshal.dev/_static/img/og-image.png'
ogp_image_alt = 'Python WebRTC logo'
ogp_custom_meta_tags = (
'<meta name="twitter:card" content="summary_large_image">',
'<meta property="og:image:width" content="1280">',
'<meta property="og:image:height" content="640">',
)
ogp_type = 'article'
ogp_enable_meta_description = True
ogp_social_cards = {'enable': False}
Expand Down
6 changes: 4 additions & 2 deletions docs/source/examples/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Writes received video and audio to raw files.
Sends your camera back from Python in grayscale, with a chat over a data channel.
:::

:::{grid-item-card} {octicon}`unmute;1em;sd-mr-1` Voice chat with OpenAI GPT-Live
:::{grid-item-card} <img src="../_static/img/libs/openai.svg" alt="" class="lib-logo" width="20" height="20"> Voice chat with OpenAI GPT-Live
:link: openai_live
:link-type: doc

Expand All @@ -48,7 +48,7 @@ Talks to the model through your microphone and speakers.
Talks to Gemini from a browser page, through a Python server that keeps the API key.
:::

:::{grid-item-card} {octicon}`hubot;1em;sd-mr-1` Pipecat voice bot
:::{grid-item-card} <img src="../_static/img/libs/pipecat.svg" alt="" class="lib-logo" width="20" height="20"> Pipecat voice bot
:link: pipecat_bot
:link-type: doc

Expand All @@ -71,6 +71,8 @@ Plays a WHEP stream in the terminal, or publishes one over WHIP.

::::

Python WebRTC isn't affiliated with the companies and projects named here, and their logos belong to their owners.

```{toctree}
:hidden:

Expand Down
1 change: 1 addition & 0 deletions docs/source/examples/pipecat_bot.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export DEEPGRAM_API_KEY=... OPENAI_API_KEY=... CARTESIA_API_KEY=...
uv run https://raw.githubusercontent.com/MarshalX/python-webrtc/main/examples/pipecat_bot.py
```

It listens and answers in English; `--language pl` picks another language that Deepgram and Cartesia both support.
With `--echo`, or without the keys, it sends your voice back. Open <http://localhost:7860> and press Connect.

```{literalinclude} ../../../examples/pipecat_bot.py
Expand Down
Loading
Loading