1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-18 22:05:10 +03:00

Prep RC23

This commit is contained in:
3djc 2019-09-11 10:32:48 +02:00
parent e96a41f460
commit c68086c561
4 changed files with 314 additions and 0 deletions

14
tools/rc23/tts_common.py Normal file
View file

@ -0,0 +1,14 @@
NO_ALTERNATE = 1024
PROMPT_CUSTOM_BASE = 256
PROMPT_SYSTEM_BASE = 0
board = "taranis"
import sys
def filename(idx, alternate=0):
ext = ".wav"
if isinstance(idx, int):
result = "%04d%s" % (idx, ext)
elif board in ('sky9x', 'taranis'):
result = idx + ext
return result