Skip to main content

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

Project description

ReplyOnOver FastRTC

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.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-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fastrtc_walkie_talkie-0.0.3.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

Hashes for fastrtc_walkie_talkie-0.0.3.tar.gz
Algorithm Hash digest
SHA256 fa0e686f5eccbe53a71452bfbf647e49d095fba43b768ff910d818b1da1fabce
MD5 1eacb64ecddc95623b2f349f0fed809f
BLAKE2b-256 1b98fd02dfdcde7fa65854aee92866a1b327278fafd0dd6f6cd86e2978803a4b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fastrtc_walkie_talkie-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b08eab0b1f281f88fc1db039e6d094220baf8b2ab1e336ab822978cf8af9b7de
MD5 57d4b806da2722e62ad2dedb0c1e44fc
BLAKE2b-256 d37a9c2a76d6cebebf9b1fe4d7d86a2cc9537eb276c27325a217cf0848b49362

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