UNPKG

voice-stream

Version:

A powerful React hook for real-time voice streaming, designed for AI-powered applications. Perfect for real-time transcription, voice assistants, and audio processing with features like silence detection and configurable audio processing.

6 lines (5 loc) 233 B
export var DEFAULT_TARGET_SAMPLE_RATE = 16000; export var DEFAULT_BUFFER_SIZE = 8192; export var DEFAULT_SILENCE_THRESHOLD = -50; // dB export var DEFAULT_SILENCE_DURATION = 1000; // ms export var DEFAULT_INCLUDE_DESTINATION = true;