IO¶
spokestack.io.pyaudio¶
This module uses pyaudio for input and output processing
-
class
spokestack.io.pyaudio.
PyAudioInput
(sample_rate, frame_width, exception_on_overflow=True, **kwargs)[source]¶ -
This class retrieves audio from an input device
- Parameters
-
-
sample_rate (int) – desired sample rate for input (Hz)
-
frame_width (int) – desired frame width for input (ms)
-
exception_on_overflow (bool) – produce exception for input overflow
-
-
property
is_active
¶ -
Stream active property
- Returns
-
‘True’ if stream is active, ‘False’ otherwise
- Return type
-
bool
-
property
is_stopped
¶ -
Stream stopped property
- Returns
-
‘True’ if stream is stopped, ‘False’ otherwise
- Return type
-
bool