Definition at line 9 of file audio_server.py.
def audio_server.AudioServer.__init__ |
( |
|
self | ) |
|
def audio_server.AudioServer.__del__ |
( |
|
self | ) |
|
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.
audio_server.AudioServer._port |
|
private |
audio_server.AudioServer._server_name |
|
private |
audio_server.AudioServer.audio |
audio_server.AudioServer.read_list |
audio_server.AudioServer.serversocket |
audio_server.AudioServer.stream |
The documentation for this class was generated from the following file: