async def stop_recording(self):
        """Stop recording and trigger final audio data handlers.

        Calls audio handlers with any remaining buffered audio before stopping.
        """
        await self._call_on_audio_data_handler()
        self._recording = False
Stop recording and trigger final audio data handlers.

        Calls audio handlers with any remaining buffered audio before stopping.
        
src/pipecat/processors/audio/audio_buffer_processor.py