From 0cbc70320b0a0399447ed2f5280a2ed293a5f14f Mon Sep 17 00:00:00 2001 From: DJ2LS <75909252+DJ2LS@users.noreply.github.com> Date: Thu, 4 Mar 2021 15:14:10 +0100 Subject: [PATCH] removed list audio devices --- helpers.py | 16 ---------------- main.py | 3 --- 2 files changed, 19 deletions(-) diff --git a/helpers.py b/helpers.py index 4da88103..bfb749d0 100644 --- a/helpers.py +++ b/helpers.py @@ -113,19 +113,3 @@ def setup_logging(): #'ERROR' : 31, # red #'CRITICAL': 41, # white on red bg - - -def list_audio_devices(): - p = pyaudio.PyAudio() - devices = [] - for x in range(0, p.get_device_count()): - devices.append(f"{x} - {p.get_device_info_by_index(x)['name']}") - - for line in devices: - print(line) - - - - - - diff --git a/main.py b/main.py index cb09fe6c..05234e9c 100644 --- a/main.py +++ b/main.py @@ -23,9 +23,6 @@ if __name__ == '__main__': # config logging helpers.setup_logging() - - # list audio devices - helpers.list_audio_devices() #--------------------------------------------GET PARAMETER INPUTS