Skip to main content

FastRTC Turn Detection Algorithm that works like a walkie talkie. Finish your turn when you say "over".

Project description

FastRTC Walkie Talkie

PyPI - Version PyPI - Python Version


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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastrtc_walkie_talkie-0.0.3.post1.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fastrtc_walkie_talkie-0.0.3.post1-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file fastrtc_walkie_talkie-0.0.3.post1.tar.gz.

File metadata

File hashes

Hashes for fastrtc_walkie_talkie-0.0.3.post1.tar.gz
Algorithm Hash digest
SHA256 b89e65946cc3782f5b5811eb2047bfac85801f9076ac506f3ae30b01dcfe0c99
MD5 0b530a7209ba0706a33fc7784c97c0e1
BLAKE2b-256 21bca77920825b46670417ba40ea53d8d25d8baea01a7c5c2e589c1865f4afbe

See more details on using hashes here.

File details

Details for the file fastrtc_walkie_talkie-0.0.3.post1-py3-none-any.whl.

File metadata

File hashes

Hashes for fastrtc_walkie_talkie-0.0.3.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 b7a579fb54aeaecde1c9b70f1b6fe90b32ae3931883f228941c1c2fc5a7ed5cd
MD5 110aa6b778977d26ef8cb82ad8aafc0b
BLAKE2b-256 19d4806d393964f326f6edf1352c23ea03404491fa70b2e4691280cec6ade742

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page