Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
dialogflow_ros.MicrophoneStream.MicrophoneStream Class Reference
Inheritance diagram for dialogflow_ros.MicrophoneStream.MicrophoneStream:
Inheritance graph
[legend]

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
 

Detailed Description

Opens a recording stream as a generator yielding the audio chunks.

Definition at line 9 of file MicrophoneStream.py.

Constructor & Destructor Documentation

def dialogflow_ros.MicrophoneStream.MicrophoneStream.__init__ (   self,
  rate = RATE,
  chunk = CHUNK 
)

Definition at line 11 of file MicrophoneStream.py.

Member Function Documentation

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.

def dialogflow_ros.MicrophoneStream.MicrophoneStream._fill_buffer (   self,
  in_data,
  frame_count,
  time_info,
  status_flags 
)
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.

Member Data Documentation

dialogflow_ros.MicrophoneStream.MicrophoneStream._audio_interface
private

Definition at line 20 of file MicrophoneStream.py.

dialogflow_ros.MicrophoneStream.MicrophoneStream._audio_stream
private

Definition at line 21 of file MicrophoneStream.py.

dialogflow_ros.MicrophoneStream.MicrophoneStream._buff
private

Definition at line 16 of file MicrophoneStream.py.

dialogflow_ros.MicrophoneStream.MicrophoneStream._chunk
private

Definition at line 13 of file MicrophoneStream.py.

dialogflow_ros.MicrophoneStream.MicrophoneStream._rate
private

Definition at line 12 of file MicrophoneStream.py.

dialogflow_ros.MicrophoneStream.MicrophoneStream.closed

Definition at line 17 of file MicrophoneStream.py.


The documentation for this class was generated from the following file:


dialogflow_ros
Author(s): Anas Abou Allaban
autogenerated on Mon Jun 10 2019 13:02:59