-
Notifications
You must be signed in to change notification settings - Fork 6
/
pva.conf.default
312 lines (278 loc) · 13.9 KB
/
pva.conf.default
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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
#
# Config for PVA
#
# TRANSLATOR-ADVICE:
#
# if you see multiply words i.e. ".*(musik|musikstück).*" it does not mean, that you need the same amount of words, you can have everything from 0 to ... depending on the needs if your language
#
#all "conf" options are for common options
conf:"keyword","carola"
# ATTN: the term "x:x" is used to replace " " in cmds that have options. This is needed as filenames can contain " " in theire name, which makes option-splitting a nightmare
# you can change this, but then you need to a) find a better sequence and b) change it in every config line it's used.
conf:"splitter","x:x"
conf:"lang","de_DE"
conf:"lang_short","de"
# we need this for the weather service
conf:"location","Braunschweig"
#vosk model to use, this is the "big" 1.2 GB german model dated 16.7.2021
#
# atm pva has fixed german wording in it's code, until this is changed, this option does not have a meaning.
#
vosk:"model","vosk-model-de-0.6"
# add as many caldav objects as you like
# syntax:
# calender:"https://cal.domainname.com/index.php/calendars/%USERNAME/default/","%USERNAME:%PASSWORD"
# add as many carddav objects as you like
# addressbook:"https://cal.domainname.com/index.php/addressbooks/%USERNAME/default/","%USERNAME:%PASSWORD"
# simple videoplayer config
videoplayer:"cmd","/usr/bin/celluloid"
videoplayer:"pname","celluloid"
videoplayer:"enqueue","/usr/bin/celluloidx:x--enqueue
audioplayer:"cmd","/usr/bin/qmmp"
audioplayer:"enqueue","/usr/bin/qmmpx:x--enqueue"
audioplayer:"raisevolume","/usr/bin/qmmpx:x--volume-inc"
audioplayer:"lowervolume","/usr/bin/qmmpx:x--volume-dec"
audioplayer:"play","/usr/bin/qmmpx:x-p"
audioplayer:"stop","/usr/bin/qmmpx:x-s"
audioplayer:"pause","/usr/bin/qmmpx:x-u"
audioplayer:"nexttrack","/usr/bin/qmmpx:x--next"
audioplayer:"lasttrack","/usr/bin/qmmpx:x--previous"
audioplayer:"tooglemute","/usr/bin/qmmpx:x--toggle-mute"
audioplayer:"pname","qmmp"
audioplayer:"clear","/usr/bin/qmmpx:x--pl-clear"
audioplayer:"playpl","/usr/bin/qmmpx:x--pl-play 1 1"
audioplayer:"status","/usr/bin/qmmpx:x--status"
audioplayer:"forward","/usr/bin/qmmpx:x--seek-fwdx:x"
audioplayer:"backward","/usr/bin/qmmpx:x--seek-bwdx:x"
# paths to search for music files, videos and documents
# avoid ":" in pathnames, it won't work ( make a symbolic link to circumvent it, in case it's needed, which it shouldn't )
path:"music","path1:path2:...:pathx"
path:"video","path1:path2:...:pathx"
path:"docs","path1:path2:...:pathx"
path:"pics","path1:path2:...:pathx"
# Easily switched to libreoffice
app:"office","openoffice4"
app:"txt","gedit"
app:"pdf","evince"
app:"gfx","gnome-open"
app:"mail","thunderbird"
app:"web","firefox"
app:"phone","/usr/bin/jitsi"
app:"say","/usr/local/sbin/say"
app:"searchengine","duckduckgo"
app:"screenshot","gnome-screenshot"
app:"bildbetrachter","eog -n -s %F"
# CUSTOM
app:"runes of magic","runesofmagic"
app:"blender","blender"
app:"wetter","gnome-weather"
app:"karte","gnome-maps"
app:"firefox","firefox"
app:"netflix","firefox https://www.netflix.com/browse/my-list"
app:"windy","firefox https://www.windy.com/52.263/10.528?52.263,10.529,18"
app:"openoffice","openoffice4"
# Aliases
app:"emailprogramm","%mail%"
app:"webbrowser","%web%"
# search
searchengines:"duckduckgo","https://html.duckduckgo.com/html?q=<query>"
searchengines:"google","https://www.google.com/search?q=<query>"
# codes are used to grant access to special features
code:"alpha","alpha default"
code:"beta","beta default"
# alternatives are prefered apps to use in case we offer alternatives . PVA command to change "%NAME benutze %KEYWORD"
# alternatives:"%KEYWORD","%FOR-APP","%CMD-TO-USE"
alternatives:"normale sprachausgabe","say","/usr/local/sbin/say"
alternatives:"google sprachausgabe","say","/usr/local/sbin/gsay"
alternatives:"samsung sprachausgabe","say","/usr/local/sbin/samsungtts"
alternatives:"firefox","web","firefox"
alternatives:"google chrome","web","google-chrome"
alternatives:"chromium free","web"," chromium-freeworld"
alternatives:"chromium privacy","web"," chromium-privacy-browser"
alternatives:"duckduckgo","searchengine","duckduckgo"
alternatives:"googlesuche","searchengine","google"
alternatives:"openoffice","office","openoffice4"
alternatives:"libreoffice","office","libreoffice"
# correct language depended mistakes in vosk
replacements:"^einen",""
replacements:"hi länder","highlander"
replacements:"fehler ausgabe","fehlerausgabe"
replacements:"sprächen","sprechen"
replacements:"hofer","rufe"
replacements:"a c d c","acdc"
replacements:"flüge","füge"
replacements:"kombiniere","kompiliere"
replacements:"cash","cache"
# context related replacements
contextreplacements:"STARTAPP","öffner","öffne"
contextreplacements:"STARTAPP","starter","start"
contextreplacements:"STARTAPP","starte","start"
contextreplacements:"STARTAPP","kreta","krita"
# Stateless reactions to key phrases
# the "make it react more human" part
reaction:"ha ha ha","","Was gibt es da so zu lachen?"
reaction:" danke ","","ich helfe gerne"
reaction:"sehr witzig","","ich kann nichts dafür, wenn Du Dich ungenau ausdrückst :)"
reaction:"das funktioniert","nicht","Hattest Du etwas anderes erwartet?"
reaction:"das funktioniert nicht","","Ups... Bugreports bitte an meinen Schöpfer"
reaction:"wie ist dein name","","Mein name ist %KEYWORD"
reaction:"ich habe gar nichts gesagt","","Das glaubst auch nur Du!"
# Translation for GERMAN (de) . You can have multiply languages in your config at the same time, which is used depends on "config","lang_short"
text:"de","SWAPALTERNATIVES1","Ich ersetze <TERM1> mit <TERM2>"
text:"de","SWAPALTERNATIVES2","Ich kenne die Alternative <TERM1> nicht"
text:"de","RECREATECACHE","Musik Cache wurde erzeugt"
text:"de","RECOMPILE1","Es ist ein Fehler beim Kompilieren aufgetreten!"
text:"de","RECOMPILE2","Ich habe mich selbst erfolgreich kompiliert!"
text:"de","EXIT","Authorisierungscode Alpha erforderlich!"
text:"de","STOPAPP","Ich beende <TERM1>"
text:"de","MAKESCREENSHOT","Ich mache ein Bildschirmfoto."
text:"de","REPORTTIME","Es ist <TERM1> Uhr <TERM2>"
text:"de","REPORTLOAD","Die Last liegt bei <TERM1>"
text:"de","WEATHERLINE0","Das Wetter für <TERM1> :"
text:"de","WEATHERLINE2","es ist <TERM1> ."
text:"de","WEATHERLINE3","Temperatur: <TERM1> . "
text:"de","upto"," bis "
text:"de","°C","Grad Celsius"
text:"de","WEATHERLINE4","Der Wind beträgt <TERM1> ."
text:"de","km/h","Kilometer pro Stunde"
text:"de","m/s","meter pro Sekunde"
text:"de","WEATHERLINE6","Niederschlag: <TERM1> ."
text:"de","mm","Millimeter Niederschlag"
text:"de","mmwith","Millimeter Niederschlag mit"
text:"de","%HUMIDITY","Prozent Luftfeuchtigkeit"
text:"de","TIMEOFDAYARRAY","Morgens:Mittags:Abends:in der Nacht:später:sehr viel später"
text:"de","WEATHERNEXT","Das Wetter für <TERM1> : <TERM2> wird es "
text:"de","WEATHERNEXT2",". <TERM1> wird es"
text:"de","WEATHERTOMORROW","Die Wetteraussichten für Morgen in <TERM1> ::: <TERM2> wird es "
text:"de","OPENSOURCECODE","Ich öffne meinen Quellkod"
text:"de","OPENCONFIG","Ich öffne meine Konfiguration"
text:"de","OPENAPP-KEYWORD"," mit "
text:"de","OPENAPP-FILTER",".*(texte|bilder|video|dokumente|musik).*"
text:"de","OPENAPP-FILTER-PICS",".*(bilder|bildern).*"
text:"de","OPENAPP-FILTER-MUSIC",".*(musik|musikstück).*"
text:"de","OPENAPP-FILTER-VIDEO",".*(videos|filme).*"
text:"de","OPENAPP-FILTER-DOCS",".*(dokumente|texte).*"
text:"de","OPENAPP-RESPONSE","Ich öffne <TERM1>."
text:"de","STARTAPP-RESPONSE","Ich starte <TERM1>."
text:"de","OPENAPP-RESPONSE-FAIL","Ich habe leider keine Anwendung zu <TERM1> gefunden."
text:"de","PLAYAUDIOADD",".*(noch|dazu).*"
text:"de","PLAYAUDIOFOUNDN","Ich habe <TERM1> Titel gefunden, dies kann nicht stimmen."
text:"de","PLAYAUDIOFOUND","Ich habe <TERM1> Titel gefunden."
text:"de","PLAYAUDIOFOUNDNOTHING","Ich habe leider nichts gefunden, was zu <TERM1> paßt!"
text:"de","COMPOSETO","an"
text:"de","COMPOSESUBJECT","betreff"
text:"de","COMPOSEBODY","inhalt"
text:"de","COMPOSEBLOCK","absatz"
text:"de","COMPOSEPOINT","punkt"
text:"de","COMPOSECOMMA","komma"
text:"de","COMPOSEERROR","Die Emailadresse von <TERM1> ist unbekannt"
text:"de","AUDIOSECONDS","sekunden"
text:"de","READPHONEBOOK","Ich lese die Addressbücher ein, das kann einige Minuten dauern"
text:"de","QUIT","Ich beende mich"
text:"de","RECOMPILING","Ich kompiliere mich neu"
text:"de","FALSEAUTHCODE","Der Sicherheitscode ist falsch!"
text:"de","CANTDECIDEWHOMTOCALL","Ich weiß nicht, welche Nummer ich anrufen soll."
text:"de","NUMBERNOTFOUND","Ich habe die Telefonnumer von <TERM1> nicht gefunden"
text:"de","PHONEMOBILE",".*(mobil|handy|cellphone).*"
text:"de","PHONEWORK",".*(arbeit|work).*"
text:"de","PHONELANDLINE",".*(festnetz|zuhause).*"
text:"de","EMAILFOUNDR1","Die Emailadresse von <TERM1> ist <TERM2>"
text:"de","EMAILFOUNDR2","Die Emailadresse von <TERM1> ist unbekannt"
text:"de","PHONENUMBERFOUNDR1","Die Mobilfunknummer von <TERM1> ist <TERM2>"
text:"de","PHONENUMBERFOUNDR2","Die Festnetznummer von <TERM1> ist <TERM2>"
text:"de","PHONENUMBERFOUNDR3","Die Nummer von <TERM1> auf der Arbeit ist <TERM2>"
text:"de","PHONENUMBERFOUNDR0","Die Telefonnummer von <TERM1> ist unbekannt"
text:"de","OPENRESULTWITHAPP",".(öffnen|öffne).*"
text:"de","PICSEARCHRESULT1","Ich habe <TERM1> Treffer, was soll ich damit machen?"
text:"de","PICSEARCHRESULT2","Ich öffne <TERM1> Treffer"
text:"de","PICSEARCHRESULT3","Ich habe nichts gefunden, was zu <TERM1> paßt."
text:"de","DOCREADRESPONSE","Ich habe <TERM1> Texte gefunden, das sind leider zu viele!"
text:"de","PLAYMUSICRANDOM",".*(zufällig).*"
text:"de","PLAYMUSICRADD",".*(noch|dazu).*"
text:"de","KEYWORDMUSIC","musik"
# command:"list of words","ACTIONCODE","WORDS-FILTERED-OUT","BLOCKER-WORDS"
# to understand this better, check the weather cmds.
command:"liste telefonbuch auf","LISTPHONEBOOK",""
command:"beende","STOPAPP","jetzt"
command:"stoppe","STOPAPP","jetzt"
command:"ich|möchte|hören","PLAYAUDIO","noch|dazu"
command:"nochmal","REPEATLASTCOMMAND",""
command:"erstelle|cache","RECREATECACHE",""
command:"erneuere|cache","RECREATECACHE","",""
command:"benutze","SWAPALTERNATIVES","benutzer"
command:"was|wie|war|der|letzte|fehler","LASTERROR",""
command:"was|war|die|fehlermeldung","LASTERROR",""
command:"kompiliere|dich|neu|fehlermeldung","RECOMPILEWITHERRORREPORT","mit|fehlermeldungen"
command:"kompiliere|dich|selbst|fehlermeldung","RECOMPILEWITHERRORREPORT","mit|fehlermeldungen"
command:"kompiliere|dich|neu","RECOMPILE",""
command:"kompiliere|dich|selbst","RECOMPILE",""
command:"schalte|dich|ab","EXIT","jetzt"
command:"schalte|dich|aus","EXIT","jetzt"
command:"beende|dich","EXIT","jetzt"
command:"rufe|an","MAKEPHONECALL",""
command:"anrufen","MAKEPHONECALL",""
command:"ich|möchte|sprechen","MAKEPHONECALL","anrufen|sprechen|möchte|reden|rufe|mit|ich|an|mobil|arbeit|festnetz"
command:"ich|möchte|reden","MAKEPHONECALL","anrufen|sprechen|möchte|reden|rufe|mit|ich|an|mobil|arbeit|festnetz"
command:"mach|einen|screenshot","MAKESCREENSHOT",""
command:"mache|einen|screenshot","MAKESCREENSHOT",""
command:"wie|spät|ist|es","REPORTTIME",""
command:"sag|mir|die|uhrzeit","REPORTTIME",""
command:"wie|hoch|last","REPORTLOAD","die"
command:"wie|hoch|load","REPORTLOAD","die"
command:"wie|ist|das|wetter","CURRENTWEATHERNOW","","morgen"
command:"wie|wird|das|wetter","CURRENTWEATHERNEXT","","morgen"
command:"wie|wird|das|wetter|morgen","CURRENTWEATHERTOMORROW","",""
command:"öffne deinen sourcecode","OPENSOURCECODE","",""
command:"öffne deinen quellcode","OPENSOURCECODE","",""
command:"öffne deine config","OPENCONFIG","",""
command:"start","STARTAPP","app",""
command:"öffne","OPENAPP","app",""
command:"was|ist|da|zu|hören","LISTENTO"
command:"was|ist|gerade|zu|hören","LISTENTO"
command:"was|du|spielst|gerade","LISTENTO"
command:"was|höre|ich","LISTENTO"
command:"was|du|spielst|da","LISTENTO"
command:"hilfe|zu","HELP"
command:"ich|möchte|sehen","PLAYVIDEO"
command:"schreibe email","COMPOSEEMAIL"
command:"schreibe e-mail","COMPOSEEMAIL"
command:"ton an","AUDIOTOGGLE"
command:"ton aus","AUDIOTOGGLE"
command:"springe|zurück","AUDIOSEEKBACK"
command:"suche|email","SEARCH4EMAIL","e-mail-adresse|emailaddresse|nach|von"
command:"suche|e-mail-adresse","SEARCH4EMAIL","e-mail-adresse|emailaddresse|nach|von"
command:"suche|e-mail adresse","SEARCH4EMAIL","e-mail-adresse|emailaddresse|nach|von"
command:"suche|telefon","SEARCH4PHONENUMBER","e-mail-adresse|telefonnummer|nach|von"
command:"suche|web","WEBSEARCH","websuche|web suche|nach"
command:"such|bild","PICSEARCH","sucher|suche|bilder|nach|öffnen|öffne"
command:"suche dokument","DOCSEARCH","nach|öffnen|öffne"
command:"suche pdf","DOCSEARCH","nach|öffnen|öffne"
command:"suche text","DOCSEARCH","nach|öffnen|öffne"
command:"lies dokument","DOCREAD","vor|laut|einen|ersten|zweiten|dritten|von"
command:"lies pdf","DOCREAD","vor|laut|einen|ersten|zweiten|dritten|von"
command:"lies text","DOCREAD","vor|laut|einen|ersten|zweiten|dritten|von"
command:"spiele|musik","PLAYMUSIC",""
command:"spiel|musik","PLAYMUSIC",""
command:"spielmusik","PLAYMUSIC",""
command:"füge|lieder|hinzu","ADDTITLE",""
command:"füge|titel|hinzu","ADDTITLE",""
command:".*(stoppen|stoppe|halte.*an|aus|anhalten|stop).*","STOPAPP",""
command:".*mach.*leiser.*","DECVOLUME","mache"
command:".*mach.*lauter.*","INCVOLUME","mache"
command:"musik|leiser","DECVOLUMESMALL","mache","viel"
command:"musik|lauter","INCVOLUMESMALL","mache","viel"
command:"viel|musik|leiser","DECVOLUME","mache"
command:"viel|musik|lauter","INCVOLUME","mache"
command:"nächster|titel","AUDIONEXTTRACK",""
command:"nächstes|stück","AUDIONEXTTRACK",""
command:"nächstes|lied","AUDIONEXTTRACK",""
command:"letzter|titel","AUDIOPREVTRACK",""
command:"letztes|stück","AUDIOPREVTRACK",""
command:"letztes|lied","AUDIOPREVTRACK",""
command:"ein|lied|zurück","AUDIOPREVTRACK",""
command:".*(lieder|lied).*weiter","AUDIONTRACKSFORWARD",""
command:".*(lieder|lied).*zurück","AUDIONTRACKSBACKWARDS",""
command:"springe|vor","AUDIOSKIPFORWARD",""
command:"springe|sekunden|vor","AUDIOSKIPFORWARDN",""
command:"springe|zurück","AUDIOSKIPBACKWARD",""
command:"springe|sekunden|zurück","AUDIOSKIPBACKWARDN",""