diff --git a/src/lerobot/microphones/portaudio/microphone_portaudio.py b/src/lerobot/microphones/portaudio/microphone_portaudio.py index 1fca952ab..95414ae5c 100644 --- a/src/lerobot/microphones/portaudio/microphone_portaudio.py +++ b/src/lerobot/microphones/portaudio/microphone_portaudio.py @@ -95,7 +95,6 @@ class PortAudioMicrophone(Microphone): self.audio_callback_start_event = process_Event() # Process-safe concurrent queue to send audio from the recording process to the writing process/thread - # TODO(CarolinePascal): replace by a Pipe (more efficient !) self.write_queue = process_Queue() # SharedArray to store audio from the recording process. @@ -108,6 +107,9 @@ class PortAudioMicrophone(Microphone): self.logs = {} + def __str__(self) -> str: + return f"{self.__class__.__name__}({self.microphone_index})" + @property def is_connected(self) -> bool: return self.record_process is not None and self.record_process.is_alive()