DewiBrynJones commited on
Commit
be40fff
1 Parent(s): 54ab56e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -7
app.py CHANGED
@@ -5,10 +5,14 @@ import collections
5
  import scipy.signal
6
  import numpy as np
7
  from functools import partial
 
8
  from openwakeword.model import Model
9
 
10
  # Load openWakeWord models
11
- model = Model(inference_framework="onnx")
 
 
 
12
 
13
  # Define function to process audio
14
  def process_audio(audio, state=collections.defaultdict(partial(collections.deque, maxlen=60))):
@@ -70,12 +74,7 @@ you should see a spike in the score for a given model after speaking a related w
70
 
71
  | Model Name | Word/Phrase |
72
  | --- | --- |
73
- | alexa | "alexa" |
74
- | hey_mycroft | "hey mycroft"|
75
- | hey_jarvis | "hey jarvis"|
76
- | hey_rhasspy | "hey rhasspy"|
77
- | weather | "what's the weather", "tell me today's weather" |
78
- | x_minute_timer | "set a timer for 1 minute", "create 1 hour alarm" |
79
 
80
  """
81
 
 
5
  import scipy.signal
6
  import numpy as np
7
  from functools import partial
8
+
9
  from openwakeword.model import Model
10
 
11
  # Load openWakeWord models
12
+ model = Model(
13
+ inference_framework="onnx",
14
+ wakeword_models=["borah_da.onnx"], # can also leave this argument empty to load all of the included pre-trained models
15
+ )
16
 
17
  # Define function to process audio
18
  def process_audio(audio, state=collections.defaultdict(partial(collections.deque, maxlen=60))):
 
74
 
75
  | Model Name | Word/Phrase |
76
  | --- | --- |
77
+ | bora da | "bora da" |
 
 
 
 
 
78
 
79
  """
80