From 95b5ded6d5c0294c6d0873653389739c6c4f0ce6 Mon Sep 17 00:00:00 2001 From: Filho Date: Tue, 16 Jul 2024 18:00:59 -0300 Subject: [PATCH] Add subprocess DEVNUL to stderr param to avoid process conflict when run in ISS server --- speech_recognition/audio.py | 1 + 1 file changed, 1 insertion(+) diff --git a/speech_recognition/audio.py b/speech_recognition/audio.py index 2322f36e..7e0c3ee6 100644 --- a/speech_recognition/audio.py +++ b/speech_recognition/audio.py @@ -250,6 +250,7 @@ def get_flac_data(self, convert_rate=None, convert_width=None): "--best", # highest level of compression available "-", # the input FLAC file contents will be given in stdin ], + stderr=subprocess.DEVNULL, stdin=subprocess.PIPE, stdout=subprocess.PIPE, startupinfo=startup_info,