Definition at line 48 of file mic.py.
def mycroft.client.speech.mic.MutableStream.__init__ |
( |
|
self, |
|
|
|
wrapped_stream, |
|
|
|
format, |
|
|
|
muted = False |
|
) |
| |
def mycroft.client.speech.mic.MutableStream.close |
( |
|
self | ) |
|
def mycroft.client.speech.mic.MutableStream.is_stopped |
( |
|
self | ) |
|
def mycroft.client.speech.mic.MutableStream.mute |
( |
|
self | ) |
|
Stop the stream and set the muted flag
Definition at line 60 of file mic.py.
def mycroft.client.speech.mic.MutableStream.read |
( |
|
self, |
|
|
|
size, |
|
|
|
of_exc = False |
|
) |
| |
Read data from stream.
Arguments:
size (int): Number of bytes to read
of_exc (bool): flag determining if the audio producer thread
should throw IOError at overflows.
Returns:
Data read from device
Definition at line 70 of file mic.py.
def mycroft.client.speech.mic.MutableStream.stop_stream |
( |
|
self | ) |
|
def mycroft.client.speech.mic.MutableStream.unmute |
( |
|
self | ) |
|
Start the stream and clear the muted flag
Definition at line 65 of file mic.py.
mycroft.client.speech.mic.MutableStream.muted |
mycroft.client.speech.mic.MutableStream.muted_buffer |
mycroft.client.speech.mic.MutableStream.SAMPLE_WIDTH |
mycroft.client.speech.mic.MutableStream.wrapped_stream |
The documentation for this class was generated from the following file: