-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathtest.ts
More file actions
89 lines (82 loc) · 1.5 KB
/
Copy pathtest.ts
File metadata and controls
89 lines (82 loc) · 1.5 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
/*
* This is a manual test
* Press the A button and listen to the output
*/
let testNumber = 0
input.onButtonPressed(Button.A, function () {
basic.showNumber(testNumber)
switch (testNumber) {
case 0:
test0()
break
case 1:
test1()
break
case 2:
test2()
break
case 3:
test3()
break
case 4:
test4()
break
case 5:
test5()
break
case 6:
test6()
break
default:
break
}
testNumber = (testNumber + 1) % 7
})
/*
* Say a basic sentence using defaults
*/
function test0() {
billy.say("Testing testing 1 2 3")
}
/*
* Use a different voice
*/
function test1() {
billy.voicePreset(BillyVoicePreset.Elf)
billy.say("Testing testing 1 2 3")
}
/*
* Speak faster
*/
function test2() {
billy.configureVoice(220, 64, 128, 128)
billy.say("Testing testing 1 2 3")
}
/*
* Speak slower
*/
function test3() {
billy.configureVoice(30, 64, 128, 128)
billy.say("Testing testing 1 2 3")
}
/*
* speak lower
*/
function test4() {
billy.configureVoice(183, 32, 128, 128)
billy.say("Testing testing 1 2 3")
}
/*
* speak higher
*/
function test5() {
billy.configureVoice(183, 200, 128, 128)
billy.say("Testing testing 1 2 3")
}
/*
* speak using phonemes
*/
function test6() {
billy.voicePreset(BillyVoicePreset.Sam)
billy.pronounce("AY4 AEM AH KUMPYUW3TER")
}