Merge dev with main #27

Merged
8464960 merged 89 commits from dev into main 2026-01-28 10:54:23 +00:00
Showing only changes of commit 64c6f0addb - Show all commits

View File

@@ -29,7 +29,7 @@ def choose_mic_interactive(audio):
:type audio: pyaudio.PyAudio :type audio: pyaudio.PyAudio
:return: A dictionary from PyAudio containing information about the microphone to use, or None :return: A dictionary from PyAudio containing information about the microphone to use, or None
if there is no microphone. if there is no microphone.
:rtype: dict | None :rtype: dict | None
""" """
microphones = list(get_microphones(audio)) microphones = list(get_microphones(audio))
@@ -61,7 +61,7 @@ def choose_mic_default(audio):
:type audio: pyaudio.PyAudio :type audio: pyaudio.PyAudio
:return: A dictionary from PyAudio containing information about the microphone to use, or None :return: A dictionary from PyAudio containing information about the microphone to use, or None
if there is no microphone. if there is no microphone.
:rtype: dict | None :rtype: dict | None
""" """
try: try:
@@ -78,7 +78,7 @@ def choose_mic_arguments(audio):
:type audio: pyaudio.PyAudio :type audio: pyaudio.PyAudio
:return: A dictionary from PyAudio containing information about the microphone to use, or None :return: A dictionary from PyAudio containing information about the microphone to use, or None
if there is no microphone satisfied by the arguments. if there is no microphone satisfied by the arguments.
:rtype: dict | None :rtype: dict | None
""" """
microphone_name = None microphone_name = None
@@ -112,7 +112,7 @@ def choose_mic(audio):
:type audio: pyaudio.PyAudio :type audio: pyaudio.PyAudio
:return: A dictionary from PyAudio containing information about the microphone to use, or None :return: A dictionary from PyAudio containing information about the microphone to use, or None
if there is no microphone. if there is no microphone.
:rtype: dict | None :rtype: dict | None
""" """
chosen_mic = choose_mic_arguments(audio) chosen_mic = choose_mic_arguments(audio)