-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathconstants_defaults.js
More file actions
executable file
·156 lines (112 loc) · 4.72 KB
/
constants_defaults.js
File metadata and controls
executable file
·156 lines (112 loc) · 4.72 KB
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
/*******************************************************************
Adrian Application Config File
This file stores all important
Application varaibales
DataBase Connection Parameters
Account Keys
Modules Settings
Other Settings
******************************************************************/
/**
* constants.define
*
* sets a value in the constant object
*
* @param name
* @param value
*/
function define(name, value) {
Object.defineProperty(exports, name, {
value: value,
enumerable: true
});
}
/*******************************************************************
* Adrian Main File Loactions - change is not recommended
******************************************************************/
// Main App Location
define("APP_LOCATION", __dirname);
// Command queue file location
define("QUEUE", __dirname + "/queue.json");
// BaseModule file location
define("BASE_MODULE", __dirname + "/Modules/BaseModule.js");
/*******************************************************************
* Database connection params
******************************************************************/
define("DB_NAME", "adrian_new");
define("DB_USER", "root");
define("DB_PASS", "root");
/*******************************************************************
* Core Modules Settings
* THESE MUST SET UP. ALL MANDATORY
******************************************************************/
/*
For Seech to Text Service
If you dont have get one at
https://cloud.google.com/speech
To get the GOOGLE_APPLICATION_CREDENTIALS file you need to download it form your google developer console
and copy it to Library/googleSpeech/Account/ folder
Example :
define("GOOGLE_APPLICATION_CREDENTIALS", __dirname + "/Library/googleSpeech/Account/your-project-file-xxxxaaaabbb.json")
define("GCLOUD_PROJECT", "project-name--xxxx") */
define("GOOGLE_APPLICATION_CREDENTIALS", __dirname + "/Library/googleSpeech/Account/")
define("GCLOUD_PROJECT", "")
// Google Speech Service final response text log
define("GOOGLESPEECH_LIVE_RESPONSE_LOG", __dirname + "/Modules/Listener/Log/lastSentense.json")
/* Google Search Settings */
define("GOOGLE_TEMP", __dirname + "/Modules/Google/Temp/Google.html");
define("GOOGLE_LANG", __dirname + "en");
/* Ivona
For Text to Speech Service
If you dont have one get it at
https://www.ivona.com */
define("IVONA_ACCESSKEY", "");
define("IVONA_SECRETKEY", "");
define("IVONA_TEMP_DIR", __dirname + "/Modules/Speaker/Temp/");
define("IVONA_VOICE", "Brian");
define("IVONA_LANG", "en-GB");
define("IVONA_GENDER", "Male");
/* Speaker module */
define("SPEAKER_TEMP_DIR", __dirname + "/Modules/Speaker/Temp/");
/*******************************************************************
* Optional Factory Modules
******************************************************************/
/* New Module for BBC new */
define("NEWS_TEMP_FILE", __dirname + "/Modules/News/Temp/newTemp.xml");
define("NEWS_LIMIT", 5 );
/* Spotify Module*/
//define("SPOTIFY_USERNAME", "");
//define("SPOTIFY_PASSWORD", "");
define("MOPIDY_CONFIG_FILE","/etc/mopidy/mopidy.conf");
define("SPOTIFY_SEARCH_LOG", __dirname + "/Modules/Spotify/Temp/spotify.json");
/* Youtube for ChromeCast Module
If you dont have one get it at
https://developers.google.com/youtube/v3/getting-started */
//define("YOTUBE_API_KEY", "");
/* Facebbok for Adrian App */
//define("FACEBOOK_USERNAME", "");
//define("FACEBOOK_PASSWORD", "" );
/*******************************************************************
* Optional Modules
* Example Module and it's settings
******************************************************************/
/* Jokes module */
define("JOKES_TEMP_JSON", __dirname + "/Modules/Jokes/Temp/jokes.json");
/*******************************************************************
* Snowboy Settings
* Hotword recognition library settings
******************************************************************/
//Default adrian snowboy file location
define("SNOWBOY_DEFAULT", "Library/Snowboy/Adrian.pmdl");
//Custome snowboy file location
define("SNOWBOY_CUSTOM", "Library/Snowboy/Custom.pmdl");
/*******************************************************************
* Other Settings Application Settings
******************************************************************/
/* Volume level */
define("MASTER_VOLUME",16);
/* Volume level
1 - all main info (default for normal usage in beta stage)
2 - all main info and all module response, recommended for development
*/
define("DEBUG_LEVEL",2);