stop_recording
Signature:
BoosterAudioManager.stop_recording() -> AudioData
Description:
Stops the current recording session, releases the capture stream, and returns the merged audio data.
Parameters:
No parameters.
Returns:
AudioData, see "Perception and State Data / AudioData"
Raises:
RuntimeError: No recording is in progress, or no valid audio was captured during recording.
Example:
from boosteros.robots.booster import BoosterRobot
robot = BoosterRobot()
robot.audio_manager.start_recording()
input("Recording... press Enter to stop")
audio = robot.audio_manager.stop_recording()
audio.save("recorded.wav")