snowboy_ros
Classes | Functions | Variables
snowboydecoder Namespace Reference

Classes

class  HotwordDetector
 
class  RingBuffer
 

Functions

def play_audio_file (fname=DETECT_DING)
 

Variables

 DETECT_DING = os.path.join(TOP_DIR, "resources/ding.wav")
 
 DETECT_DONG = os.path.join(TOP_DIR, "resources/dong.wav")
 
 logger = logging.getLogger("snowboy")
 
 RESOURCE_FILE = os.path.join(TOP_DIR, "resources/common.res")
 
 TOP_DIR = os.path.dirname(os.path.abspath(__file__))
 

Function Documentation

◆ play_audio_file()

def snowboydecoder.play_audio_file (   fname = DETECT_DING)
Simple callback function to play a wave file. By default it plays
a Ding sound.

:param str fname: wave file name
:return: None

Definition at line 37 of file snowboydecoder.py.

Variable Documentation

◆ DETECT_DING

snowboydecoder.DETECT_DING = os.path.join(TOP_DIR, "resources/ding.wav")

Definition at line 17 of file snowboydecoder.py.

◆ DETECT_DONG

snowboydecoder.DETECT_DONG = os.path.join(TOP_DIR, "resources/dong.wav")

Definition at line 18 of file snowboydecoder.py.

◆ logger

snowboydecoder.logger = logging.getLogger("snowboy")

Definition at line 12 of file snowboydecoder.py.

◆ RESOURCE_FILE

snowboydecoder.RESOURCE_FILE = os.path.join(TOP_DIR, "resources/common.res")

Definition at line 16 of file snowboydecoder.py.

◆ TOP_DIR

snowboydecoder.TOP_DIR = os.path.dirname(os.path.abspath(__file__))

Definition at line 14 of file snowboydecoder.py.