5 |
5 |
6 """ |
6 """ |
7 Module containing stubs for API generation of the 'speech' module. |
7 Module containing stubs for API generation of the 'speech' module. |
8 """ |
8 """ |
9 |
9 |
|
10 from microbit import pin0 |
|
11 |
10 def translate(words): |
12 def translate(words): |
11 pass |
13 pass |
12 |
14 |
13 def pronounce(phonemes, *, pitch=64, speed=72, mouth=128, throat=128): |
15 def pronounce(phonemes, *, pitch=64, speed=72, mouth=128, throat=128, |
|
16 pin=pin0): |
14 pass |
17 pass |
15 |
18 |
16 def say(words, *, pitch=64, speed=72, mouth=128, throat=128): |
19 def say(words, *, pitch=64, speed=72, mouth=128, throat=128, pin=pin0): |
17 pass |
20 pass |
18 |
21 |
19 def sing(phonemes, *, pitch=64, speed=72, mouth=128, throat=128): |
22 def sing(phonemes, *, pitch=64, speed=72, mouth=128, throat=128, pin=pin0): |
20 pass |
23 pass |