bodhi-realtime-agent / frameworkToTwilio
Function: frameworkToTwilio()
frameworkToTwilio(
pcmInput,inputRate?):string
Defined in: telephony/audio-codec.ts:128
Convert framework PCM audio to Twilio mulaw 8kHz. Input: Buffer of PCM L16 (or base64 string) at the given sample rate. Output: base64-encoded mulaw 8kHz buffer.
Parameters
pcmInput
PCM L16 buffer or base64-encoded PCM string
string | Buffer<ArrayBufferLike>
inputRate?
number = 16000
Sample rate of the input in Hz (default: 16000)
Returns
string