FastRTC Turn Detection Algorithm that works like a walkie talkie. Finish your turn when you say "over".
Project description
ReplyOnOver FastRTC
Table of Contents
Installation
pip install fastrtc-walkie-talkie
Usage
from fastrtc_walkie_talkie import WalkieTalkie
from fastrtc import Stream
def echo(audio: tuple[int, np.ndarray]):
"""Echo the audio back to the user after they say a sentence ending with "over"."""
yield audio
stream = Stream(
handler=WalkieTalkie(echo),
modality="audio",
mode="send-receive",
ui_args={"title": "Walkie Talkie Turn Taking Algorithm",
"subtitle": "Say 'over' to finish your turn. For example, 'Hi, how are you? over'."},
)
stream.ui.launch()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fastrtc_walkie_talkie-0.0.2.tar.gz.
File metadata
- Download URL: fastrtc_walkie_talkie-0.0.2.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66eb94cbf4e2aa156324e0e964033ea52e0d372e3741c7dbc4ec786ea57dafb8
|
|
| MD5 |
cb53177235a2004b3864c00a4f6a83a0
|
|
| BLAKE2b-256 |
93ebd9728608a90e9958c2d2cbdb7312d35f90cd58bbaa261d200f03df953146
|
File details
Details for the file fastrtc_walkie_talkie-0.0.2-py3-none-any.whl.
File metadata
- Download URL: fastrtc_walkie_talkie-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89d7a0f224d18648fc0449224818fb6127da523ff43c4becc200ebf965b2a593
|
|
| MD5 |
51f2d56e42972bb0d33457b4dd8444e2
|
|
| BLAKE2b-256 |
b46bc639962ca2364f15c635b64142fa6cf6be479235eecd7049a2f424dfba42
|