Classes | Functions | Variables
snowboy.snowboydecoder Namespace Reference


class  HotwordDetector
class  RingBuffer


def play_audio_file (fname=DETECT_DING)


 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

def snowboy.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

Variable Documentation

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

Definition at line 17 of file

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

Definition at line 18 of file

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

Definition at line 12 of file

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

Definition at line 16 of file

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

Definition at line 14 of file

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