forked from secretsauceai/wakeword-data-collector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcollect_wakeword_cli.py
33 lines (23 loc) · 1.03 KB
/
collect_wakeword_cli.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
from functions import show_hint, collect_number_of_recordings, collect_background_noise, collect_wakewords
def collect_wakeword_part_one_cli(slug, onboarding, wakeword):
'''
if onboarding:
show_hint()
'''
recordings_count = 16 #collect_number_of_recordings()
if wakeword:
collect_background_noise(slug, nr=1)
collect_wakewords(0, recordings_count, wakeword, slug)
collect_background_noise(slug, nr=2)
def collect_wakeword_part_two_cli(slug, onboarding, wakeword):
recordings_count = 32 #collect_number_of_recordings()
if wakeword:
collect_background_noise(slug, nr=5)
collect_wakewords(16, recordings_count, wakeword, slug)
collect_background_noise(slug, nr=6)
def collect_wakeword_part_three_cli(slug, onboarding, wakeword):
recordings_count = 44 #collect_number_of_recordings()
if wakeword:
collect_background_noise(slug, nr=9)
collect_wakewords(32, recordings_count, wakeword, slug)
collect_background_noise(slug, nr=10)