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

Uploaded Python 3

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

Hashes for fastrtc_walkie_talkie-0.0.2.tar.gz
Algorithm Hash digest
SHA256 66eb94cbf4e2aa156324e0e964033ea52e0d372e3741c7dbc4ec786ea57dafb8
MD5 cb53177235a2004b3864c00a4f6a83a0
BLAKE2b-256 93ebd9728608a90e9958c2d2cbdb7312d35f90cd58bbaa261d200f03df953146

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fastrtc_walkie_talkie-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 89d7a0f224d18648fc0449224818fb6127da523ff43c4becc200ebf965b2a593
MD5 51f2d56e42972bb0d33457b4dd8444e2
BLAKE2b-256 b46bc639962ca2364f15c635b64142fa6cf6be479235eecd7049a2f424dfba42

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