mirror of
https://github.com/dscripka/openWakeWord.git
synced 2026-08-27 18:17:20 -04:00
Added argument to control activation sounds in example script
This commit is contained in:
parent
28105832a0
commit
461d7da628
1 changed files with 8 additions and 2 deletions
|
|
@ -68,13 +68,18 @@ parser.add_argument(
|
|||
default=False,
|
||||
required=False
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
"--model",
|
||||
help="The model to use for openWakeWord, leave blank to use all available models",
|
||||
type=str,
|
||||
required=False
|
||||
)
|
||||
parser.add_argument(
|
||||
"--disable_activation_sound",
|
||||
help="Disables the activation sound, clips are silently captured",
|
||||
action='store_true',
|
||||
required=False
|
||||
)
|
||||
|
||||
args=parser.parse_args()
|
||||
|
||||
|
|
@ -151,4 +156,5 @@ if __name__ == "__main__":
|
|||
fname = detect_time + f"_{mdl}.wav"
|
||||
scipy.io.wavfile.write(os.path.join(os.path.abspath(args.output_dir), fname), 16000, audio_context)
|
||||
|
||||
playBeep(os.path.join(os.path.dirname(__file__), 'audio', 'activation.wav'), audio)
|
||||
if not args.disable_activation_sound:
|
||||
playBeep(os.path.join(os.path.dirname(__file__), 'audio', 'activation.wav'), audio)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue