Constructors
constructor
- new AudioByteStream(sampleRate, numChannels, samplesPerChannel?): AudioByteStream
Parameters
- sampleRate: number
- numChannels: number
- samplesPerChannel: null | number = null
Methods
flush
- flush(): AudioFrame[]
Returns AudioFrame[]
write
- write(data): AudioFrame[]
Returns AudioFrame[]
AudioByteStream translates between LiveKit AudioFrame packets and raw byte data.