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

Public Member Functions

def __init__ (self, size=4096)
 
def extend (self, data)
 
def get (self)
 

Private Attributes

 _buf
 

Detailed Description

Ring buffer to hold audio from PortAudio

Definition at line 21 of file snowboydecoder.py.

Constructor & Destructor Documentation

def snowboy.snowboydecoder.RingBuffer.__init__ (   self,
  size = 4096 
)

Definition at line 23 of file snowboydecoder.py.

Member Function Documentation

def snowboy.snowboydecoder.RingBuffer.extend (   self,
  data 
)
Adds data to the end of buffer

Definition at line 26 of file snowboydecoder.py.

def snowboy.snowboydecoder.RingBuffer.get (   self)
Retrieves data from the beginning of buffer and clears it

Definition at line 30 of file snowboydecoder.py.

Member Data Documentation

snowboy.snowboydecoder.RingBuffer._buf
private

Definition at line 24 of file snowboydecoder.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