
Public Member Functions | |
| def | __enter__ (self) |
| def | __exit__ (self, type, value, traceback) |
| def | __init__ (self, rate=RATE, chunk=CHUNK) |
| def | generator (self) |
Public Attributes | |
| closed | |
Private Member Functions | |
| def | _fill_buffer (self, in_data, frame_count, time_info, status_flags) |
Private Attributes | |
| _audio_interface | |
| _audio_stream | |
| _buff | |
| _chunk | |
| _rate | |
Opens a recording stream as a generator yielding the audio chunks.
Definition at line 9 of file MicrophoneStream.py.
Definition at line 11 of file MicrophoneStream.py.
| def dialogflow_ros.MicrophoneStream.MicrophoneStream.__enter__ | ( | self | ) |
Definition at line 19 of file MicrophoneStream.py.
| def dialogflow_ros.MicrophoneStream.MicrophoneStream.__exit__ | ( | self, | |
| type, | |||
| value, | |||
| traceback | |||
| ) |
Definition at line 35 of file MicrophoneStream.py.
|
private |
Continuously collect data from the audio stream, into the buffer.
Definition at line 44 of file MicrophoneStream.py.
| def dialogflow_ros.MicrophoneStream.MicrophoneStream.generator | ( | self | ) |
Definition at line 49 of file MicrophoneStream.py.
|
private |
Definition at line 20 of file MicrophoneStream.py.
|
private |
Definition at line 21 of file MicrophoneStream.py.
|
private |
Definition at line 16 of file MicrophoneStream.py.
|
private |
Definition at line 13 of file MicrophoneStream.py.
|
private |
Definition at line 12 of file MicrophoneStream.py.
| dialogflow_ros.MicrophoneStream.MicrophoneStream.closed |
Definition at line 17 of file MicrophoneStream.py.