chore: add documentation RI
Code functionality left unchanged, only added docs where missing close: N25B-298
This commit is contained in:
@@ -7,6 +7,17 @@ from common.microphone_utils import MicrophoneUtils
|
||||
|
||||
@pytest.fixture
|
||||
def pyaudio_instance():
|
||||
"""
|
||||
A pytest fixture that provides an initialized PyAudio instance for tests
|
||||
requiring microphone access.
|
||||
|
||||
It first initializes PyAudio. If a default input device (microphone) is not
|
||||
found, the test is skipped to avoid failures in environments
|
||||
without a mic.
|
||||
|
||||
:return: An initialized PyAudio instance.
|
||||
:rtype: pyaudio.PyAudio
|
||||
"""
|
||||
audio = pyaudio.PyAudio()
|
||||
try:
|
||||
audio.get_default_input_device_info()
|
||||
|
||||
Reference in New Issue
Block a user