repo.or.cz
/
opentx.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix doc path
[opentx.git]
/
tools
/
nightly22
/
tts_common.py
blob
b38eb8efacfe695d32baee0ccbb22ca9a9512c38
1
NO_ALTERNATE
=
1024
2
PROMPT_CUSTOM_BASE
=
256
3
PROMPT_SYSTEM_BASE
=
0
4
board
=
"taranis"
5
6
import
sys
7
8
def
filename
(
idx
,
alternate
=
0
):
9
ext
=
".wav"
10
if
isinstance
(
idx
,
int
):
11
result
=
"
%0
4d
%s
"
% (
idx
,
ext
)
12
elif
board
in
(
'sky9x'
,
'taranis'
):
13
result
=
idx
+
ext
14
return
result
15
16
17
18
19