mirror of
https://github.com/wassname/BitLit_test1.git
synced 2026-07-09 19:04:58 +08:00
ding, logger
This commit is contained in:
@@ -60,6 +60,13 @@ def play_audio_file(fname=DETECT_DING):
|
||||
audio.terminate()
|
||||
|
||||
|
||||
def play_ding():
|
||||
play_audio_file(fname=DETECT_DING)
|
||||
|
||||
def play_dong():
|
||||
play_audio_file(fname=DETECT_DONG)
|
||||
|
||||
|
||||
class HotwordDetector(object):
|
||||
"""
|
||||
Snowboy decoder to detect whether a keyword specified by `decoder_model`
|
||||
|
||||
Reference in New Issue
Block a user