From dbe12d24aba4397c949ae9c8364999c5fa2c5ba0 Mon Sep 17 00:00:00 2001 From: zzstoatzz Date: Wed, 1 May 2024 16:55:28 -0500 Subject: [PATCH 1/2] rm extra return --- src/marvin/audio.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/marvin/audio.py b/src/marvin/audio.py index cb7f67a92..24b790807 100644 --- a/src/marvin/audio.py +++ b/src/marvin/audio.py @@ -119,7 +119,6 @@ def record(duration: int = None) -> Audio: audio = sr.audio.AudioData(frame_data, source.SAMPLE_RATE, source.SAMPLE_WIDTH) return audio - return Audio(data=audio.get_wav_data(), format="wav") def record_phrase( From 90713876f79aa7ab171ee8109fb8fc923e12d49b Mon Sep 17 00:00:00 2001 From: zzstoatzz Date: Wed, 1 May 2024 17:04:05 -0500 Subject: [PATCH 2/2] rm extra return --- src/marvin/audio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/marvin/audio.py b/src/marvin/audio.py index 24b790807..2d76c4945 100644 --- a/src/marvin/audio.py +++ b/src/marvin/audio.py @@ -118,7 +118,7 @@ def record(duration: int = None) -> Audio: frames.close() audio = sr.audio.AudioData(frame_data, source.SAMPLE_RATE, source.SAMPLE_WIDTH) - return audio + return Audio(data=audio.get_wav_data(), format="wav") def record_phrase(