-
Notifications
You must be signed in to change notification settings - Fork 126
/
text2speech.yaml
29 lines (24 loc) · 957 Bytes
/
text2speech.yaml
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
# This is an example source file for a TipToi file, showing the text-to-speech
# feature
# You write your yaml file as usual, and include a language field.
product-id: 42
welcome: hello
language: en
scripts:
8066:
- $mode==1? P(mode_one)
- $mode==2? P(mode_two)
- $mode==3? P(mode_three)
# But instead of manually creating files hello.ogg, mode_one.ogg and
# mode_two.ogg, you can specify text to be spoken for them.
speak:
hello: "Hello!"
mode_one: "We are in mode one."
mode_two: "We are in mode two."
mode_three: "We are in mode three, where I have a little bit more to talk about."
# tttool will write the synthesized files to disk, so that the next execution
# of "tttool assemble" will be quick.
# You can mix synthesized and normal files; if there is no entry in the speak
# section, tttool will look for an ogg file as normal.
# See text2speech-multi-lang.yaml for how to mix several languages in the text
# to speech mode.