-
Notifications
You must be signed in to change notification settings - Fork 17
/
voxhub_config.py
33 lines (25 loc) · 1.36 KB
/
voxhub_config.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
# This Python file uses the following encoding: utf-8
"""
VoxhubEngine engine configuration module.
"""
# Speech-recognition server (Default: localhost)
SERVER = "silvius-server.voxhub.io"
# Server port
PORT = "8018"
# Use the specified content type (default is " + content_type + ")"
CONTENT_TYPE = "audio/x-raw, layout=(string)interleaved, rate=(int)16000, format=(string)S16LE, channels=(int)1"
# Default path to access in server
PATH = 'client/ws/speech'
MISC_CONFIG = {
'device': 9, # Select a different microphone (give device ID)
'keep_going': False, # Keep reconnecting to the server after periods of silence
'hypotheses': True, # Show partial recognition hypotheses (default: True)
'audio_gate': 0, # Audio-gate level to reduce detections when not talking
'byte_rate': 16000, # Rate in bytes/sec at which audio should be sent to the server.
'send_adaptation_state': None, # Send adaptation state from file
'save_adaptation_state': None, # Save adaptation state to file
'chunk': 2048 * 2 # Try adjusting this if you want fewer network packets
}
QUIT_PHRASE = "rate"
SLEEP_PHRASE = "go to sleep"
WAKE_UP_PHRASE = "wake up"