-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.js
67 lines (66 loc) · 2.02 KB
/
config.js
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*******************************************************************************
* Copyright (c) 2015 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*******************************************************************************/
/*eslint-env node */
module.exports = {
/*options : {
//vad_threshold: '3.5',
//upperf: '1000',
//hmm: './deps/pocketsphinx-5prealpha/model/en-us/en-us',
//http://www.speech.cs.cmu.edu/tools/lmtool.html use this website
//to generate lm and dict file based on your keyword-name
//lm: './lm/humix.lm',
//dict: './lm/humix.dic',
//keyword-name: 'HUMIX', //all capital characters
//samprate: '16000',
//maxwpf: '5',
//topn: '2',
//maxhmmpf: '3000',
//pl_window: '7',
//ds: '2',
//cmdproc: './util/processcmd.sh',
//lang: 'zh-tw',
//wav-proc: './voice/interlude/beep2.wav',
//wav-bye: './voice/interlude/beep1.wav',
//logfn: '/dev/null'
},*/
lang: 'en', // 'en', 'cht' or 'chs'
'stt-engine': 'watson', // 'watson' or 'google',
'tts-engine': 'watson', // 'watson' or 'itri' or 'iflytek'
stt: {
watson: {
username: '<your_username>',
passwd: '<your_password>'
},
google: {
username: 'xxxxx',
passwd: '<replace as your appid>'
}
},
tts: {
watson: {
username: '<your_username>',
passwd: '<your_password>'
},
iflytek: {
appid: '<app_id>'
},
itri: {
username: '<your_username>',
passwd: '<your_password>',
speaker: 'Bruce',
}
}
};