### Run Next.js Development Server Source: https://github.com/rohanprichard/fastrtc-demo/blob/main/frontend/fastrtc-demo/README.md Commands to start the Next.js development server locally. This allows you to view the application in your browser at `http://localhost:3000` and enables hot-reloading for development. ```bash npm run dev # or yarn dev # or pnpm dev # or bun dev ``` -------------------------------- ### Setup Python Virtual Environment and Dependencies Source: https://github.com/rohanprichard/fastrtc-demo/blob/main/README.md Commands to create a Python virtual environment, activate it, and install project dependencies for both Linux/macOS and Windows. ```bash python3 -m venv env source env/bin/activate pip install -r requirements.txt ``` ```bash python -m venv env .\env\Scripts\activate pip install -r requirements.txt ``` -------------------------------- ### Install and Run Frontend Application Source: https://github.com/rohanprichard/fastrtc-demo/blob/main/README.md Commands to install Node.js dependencies and start the development server for the frontend application. ```bash npm install npm run dev ``` -------------------------------- ### Run FastRTC Backend Server Source: https://github.com/rohanprichard/fastrtc-demo/blob/main/README.md Commands to start the FastRTC backend server on different operating systems. ```bash ./run.sh ``` ```bash uvicorn backend.server:app --host 0.0.0.0 --port 8000 ``` -------------------------------- ### Navigate to Frontend Directory Source: https://github.com/rohanprichard/fastrtc-demo/blob/main/README.md Command to change the current directory to the frontend application's root. ```bash cd frontend/fastrtc-demo ``` -------------------------------- ### Audio Processing Algorithm Options (AlgoOptions) Source: https://github.com/rohanprichard/fastrtc-demo/blob/main/README.md Configuration parameters for the core audio processing algorithm, affecting chunking and speech detection thresholds. ```APIDOC AlgoOptions: audio_chunk_duration: Length of audio chunks in seconds. Smaller values allow for faster processing but may be less accurate. started_talking_threshold: If a chunk has more than this many seconds of speech, the system considers that the user has started talking. speech_threshold: After the user has started speaking, if a chunk has less than this many seconds of speech, the system considers that the user has paused. ``` -------------------------------- ### Silero VAD (Voice Activity Detection) Options Source: https://github.com/rohanprichard/fastrtc-demo/blob/main/README.md Configuration parameters for the Silero Voice Activity Detection model, controlling speech probability, duration filtering, and silence detection. ```APIDOC SileroVadOptions: threshold: Speech probability threshold (0.0-1.0). Values above this are considered speech. Higher values are more strict. min_speech_duration_ms: Speech segments shorter than this (in milliseconds) are filtered out. min_silence_duration_ms: The system waits for this duration of silence (in milliseconds) before considering speech to be finished. speech_pad_ms: Padding added to both ends of detected speech segments to prevent cutting off words. max_speech_duration_s: Maximum allowed duration for a speech segment in seconds. Prevents indefinite listening. ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.