-
Notifications
You must be signed in to change notification settings - Fork 0
/
lang.sh
58 lines (53 loc) · 1.68 KB
/
lang.sh
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
#!/usr/bin/env bash
cp -r ~/mycroft-core/skills/fallback-unknown.mycroftai/vocab/en-us ~/mycroft-core/skills/fallback-unknown.mycroftai/vocab/no-no
cp -r ~/mycroft-core/skills/fallback-unknown.mycroftai/dialog/en-us ~/mycroft-core/skills/fallback-unknown.mycroftai/dialog/no-no
echo "." > ~/mycroft-core/skills/fallback-unknown.mycroftai/dialog/no-no/unknown.dialog
cp -r ~/mycroft-core/skills/mycroft-volume.mycroftai/vocab/en-us ~/mycroft-core/skills/mycroft-volume.mycroftai/vocab/no-no
cp -r ~/mycroft-core/skills/mycroft-volume.mycroftai/dialog/en-us ~/mycroft-core/skills/mycroft-volume.mycroftai/dialog/no-no
echo "til" > ~/mycroft-core/skills/mycroft-volume.mycroftai/vocab/no-no/To.voc
echo "volum" > ~/mycroft-core/skills/mycroft-volume.mycroftai/vocab/no-no/Volume.voc
echo "sett" > ~/mycroft-core/skills/mycroft-volume.mycroftai/vocab/no-no/Set.voc
cat > ~/mycroft-core/skills/mycroft-volume.mycroftai/vocab/no-no/Level.voc <<- EOM
0
1
2
3
4
5
6
7
8
9
10
11
en
to
tre
fire
fem
seks
sju
åtte
ni
ti
elleve
EOM
cat > ~/mycroft-core/skills/mycroft-volume.mycroftai/dialog/no-no/set.volume.dialog <<- EOM
Volum er satt til {{volume}}
Volum endret til {{volume}}
EOM
echo "volum er på høyeste nivå" > ~/mycroft-core/skills/mycroft-volume.mycroftai/dialog/no-no/max.volume.dialog
echo "volum er allerede på høyeste nivå" > ~/mycroft-core/skills/mycroft-volume.mycroftai/dialog/no-no/already.max.volume.dialog
echo "Volum er satt til {{volume}}" > ~/mycroft-core/skills/mycroft-volume.mycroftai/dialog/no-no/volume.is.dialog
cat > ~/.mycroft/mycroft.conf <<- EOM
{
"max_allowed_core_version": 20.8,
"lang": "no-no",
"tts": {
"module": "google",
"google": {
"lang": "no"
}
}
}
EOM