Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
audio_server.AudioServer Class Reference

Public Member Functions

def __del__ (self)
 
def __init__ (self)
 
def start (self)
 

Public Attributes

 audio
 
 read_list
 
 serversocket
 
 stream
 

Private Member Functions

def _callback (self, in_data, frame_count, time_info, status)
 
def _connect (self)
 

Private Attributes

 _port
 
 _server_name
 

Detailed Description

Definition at line 9 of file audio_server.py.

Constructor & Destructor Documentation

def audio_server.AudioServer.__init__ (   self)

Definition at line 10 of file audio_server.py.

def audio_server.AudioServer.__del__ (   self)

Definition at line 74 of file audio_server.py.

Member Function Documentation

def audio_server.AudioServer._callback (   self,
  in_data,
  frame_count,
  time_info,
  status 
)
private
PyAudio callback to continuously get audio data from the mic and put
it in a buffer.
 :param in_data: Audio data received from mic.
 :return: A tuple with a signal to keep listening to audio input device
 :rtype: tuple(None, int)

Definition at line 35 of file audio_server.py.

def audio_server.AudioServer._connect (   self)
private
Create a socket, listen on the server:port and wait for a connection.

Definition at line 28 of file audio_server.py.

def audio_server.AudioServer.start (   self)
Main function that attempts to create a socket and establish a
connection with a client.

Definition at line 46 of file audio_server.py.

Member Data Documentation

audio_server.AudioServer._port
private

Definition at line 24 of file audio_server.py.

audio_server.AudioServer._server_name
private

Definition at line 22 of file audio_server.py.

audio_server.AudioServer.audio

Definition at line 15 of file audio_server.py.

audio_server.AudioServer.read_list

Definition at line 20 of file audio_server.py.

audio_server.AudioServer.serversocket

Definition at line 19 of file audio_server.py.

audio_server.AudioServer.stream

Definition at line 16 of file audio_server.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