Skip to content

bodhi-realtime-agent / AUDIO_FORMAT

Variable: AUDIO_FORMAT ​

const AUDIO_FORMAT: object

Defined in: src/types/audio.ts:5

PCM 16-bit signed little-endian, 16 kHz mono — Gemini Live API's native audio format. All audio buffers and transport operations assume this format.

Type Declaration ​

bitDepth ​

readonly bitDepth: 16 = 16

bytesPerSample ​

readonly bytesPerSample: 2 = 2

bytesPerSecond ​

readonly bytesPerSecond: 32000 = 32000

16000 samples/s * 2 bytes/sample = 32 000 bytes/s

channels ​

readonly channels: 1 = 1

sampleRate ​

readonly sampleRate: 16000 = 16000

Built with VitePress