WebRTCOutputConfig
Configuration for WebRTCOutput.
Defined in: src/providers/output/WebRTCOutput.ts:73
Configuration for WebRTCOutput.
Example
import { WebRTCOutput } from 'composite-voice';
const output = new WebRTCOutput({ sampleRate: 48000, debug: true });
See
WebRTCOutput for where this config is consumed
Properties
| Property | Type | Default value | Description | Defined in |
|---|---|---|---|---|
debug? | boolean | false | Whether to enable debug logging for this provider. | src/providers/output/WebRTCOutput.ts:91 |
sampleRate? | number | undefined | Sample rate (Hz) for the underlying AudioContext. Remarks WebRTC transports typically run Opus at 48000 Hz, so matching that rate avoids one resampling step in the browser. TTS audio at other rates is resampled automatically by the Web Audio API when the AudioBuffer sample rate differs from the context rate. If omitted, the browser’s default rate is used. | src/providers/output/WebRTCOutput.ts:84 |