Update audio_buffer_processor.py (#1266)
This commit is contained in:
@@ -22,9 +22,8 @@ from pipecat.processors.frame_processor import FrameDirection, FrameProcessor
|
||||
|
||||
class AudioBufferProcessor(FrameProcessor):
|
||||
"""This processor buffers audio raw frames (input and output). The mixed
|
||||
audio can be obtained by calling `get_audio()` (if `buffer_size` is 0) or by
|
||||
registering an "on_audio_data" event handler. The event handler will be
|
||||
called every time `buffer_size` is reached.
|
||||
audio can be obtained by registering an "on_audio_data" event handler.
|
||||
The event handler will be called every time `buffer_size` is reached.
|
||||
|
||||
You can provide the desired output `sample_rate` and incoming audio frames
|
||||
will resampled to match it. Also, you can provide the number of channels, 1
|
||||
|
||||
Reference in New Issue
Block a user