Skip to content

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

PropertyTypeDefault valueDescriptionDefined in
debug?booleanfalseWhether to enable debug logging for this provider.src/providers/output/WebRTCOutput.ts:91
sampleRate?numberundefinedSample 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

© 2026 CompositeVoice. All rights reserved.

Font size
Contrast
Motion
Transparency