Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 14 additions & 7 deletions OpenRTXVoicePromptsBuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,23 +169,30 @@ def buildDataPack(filename,voiceName,outputFileName):
reader = csv.DictReader(filter(lambda row: row[0]!='#', csvfile))
for row in reader:
promptName = row['PromptName'].strip()
infile = voiceName+"/" + promptName+".c2"
infile = voiceName + "/" + promptName + "_" + atempo + ".c2"
with open(infile,'rb') as f:
promptsDict[promptName] = bytearray(f.read())
f.close()
promptName = "PROMPT_VOICE_NAME"
infile = voiceName+"/" + promptName+".c2"
infile = voiceName + "/" + promptName + "_" + atempo + ".c2"
with open(infile,'rb') as f:
promptsDict[promptName] = bytearray(f.read())
f.close()


wordlistamount = sum(1 for key in promptsDict if not key.startswith('PROMPT_'))
MAX_PROMPTS = 350
headerTOCSize = (MAX_PROMPTS * 4) + 4 + 4
headerTOCSize = (MAX_PROMPTS * 4) + 4 + 4 + 4
outBuf = bytearray(headerTOCSize)
outBuf[0:3] = bytes([0x56, 0x50, 0x00, 0x00])#Magic number
outBuf[4:7] = bytes([0x00, 0x10, 0x00, 0x00])#Version number
outBuf[8:11] = bytes([0x00, 0x00, 0x00, 0x00])#First prompt audio is at offset zero
bufPos=12
outBuf[8:12] = bytes([
(wordlistamount >> 24) & 0xFF,
(wordlistamount >> 16) & 0xFF,
(wordlistamount >> 8) & 0xFF,
(wordlistamount >> 0) & 0xFF,
])#Amount of voice lines without the prompts
outBuf[12:15] = bytes([0x00, 0x00, 0x00, 0x00])#First prompt audio is at offset zero
bufPos=16
cumulativelength=0
for prompt in promptsDict:
cumulativelength = cumulativelength + len(promptsDict[prompt])
Expand All @@ -203,7 +210,7 @@ def buildDataPack(filename,voiceName,outputFileName):
print("Built voice pack "+outputFileName)


PROGRAM_VERSION = "0.0.3"
PROGRAM_VERSION = "0.1.0"

def usage(message=""):
print("OpenRTX voice prompts creator. v" + PROGRAM_VERSION)
Expand Down
Binary file added languages/english_UK/Amy/Both.mp3
Binary file not shown.
Binary file added languages/english_UK/Amy/CAN.mp3
Binary file not shown.
Binary file added languages/english_UK/Amy/CTCSSEn.mp3
Binary file not shown.
Binary file added languages/english_UK/Amy/CTCSSTone.mp3
Binary file not shown.
Binary file added languages/english_UK/Amy/Decode.mp3
Binary file not shown.
Binary file added languages/english_UK/Amy/Encode.mp3
Binary file not shown.
Binary file added languages/english_UK/Amy/None.mp3
Binary file not shown.
Binary file added languages/english_UK/Amy/canRxCheck.mp3
Binary file not shown.
Binary file added languages/english_UK/Amy/direction.mp3
Binary file not shown.
Binary file added languages/english_UK/Amy/metaText.mp3
Binary file not shown.
Binary file added languages/english_UK/Amy/offset.mp3
Binary file not shown.
Binary file added languages/english_UK/Amy/radio.mp3
Binary file not shown.
Binary file added languages/english_UK/Amy/step.mp3
Binary file not shown.
Binary file added languages/english_UK/Brian/Both.mp3
Binary file not shown.
Binary file added languages/english_UK/Brian/CAN.mp3
Binary file not shown.
Binary file added languages/english_UK/Brian/CTCSSEn.mp3
Binary file not shown.
Binary file added languages/english_UK/Brian/CTCSSTone.mp3
Binary file not shown.
Binary file added languages/english_UK/Brian/Decode.mp3
Binary file not shown.
Binary file added languages/english_UK/Brian/Encode.mp3
Binary file not shown.
Binary file added languages/english_UK/Brian/None.mp3
Binary file not shown.
Binary file added languages/english_UK/Brian/canRxCheck.mp3
Binary file not shown.
Binary file added languages/english_UK/Brian/direction.mp3
Binary file not shown.
Binary file added languages/english_UK/Brian/metaText.mp3
Binary file not shown.
Binary file added languages/english_UK/Brian/offset.mp3
Binary file not shown.
Binary file added languages/english_UK/Brian/radio.mp3
Binary file not shown.
Binary file added languages/english_UK/Brian/step.mp3
Binary file not shown.
Binary file added languages/english_UK/Emma/Both.mp3
Binary file not shown.
Binary file added languages/english_UK/Emma/CAN.mp3
Binary file not shown.
Binary file added languages/english_UK/Emma/CTCSSEn.mp3
Binary file not shown.
Binary file added languages/english_UK/Emma/CTCSSTone.mp3
Binary file not shown.
Binary file added languages/english_UK/Emma/Decode.mp3
Binary file not shown.
Binary file added languages/english_UK/Emma/Encode.mp3
Binary file not shown.
Binary file added languages/english_UK/Emma/None.mp3
Binary file not shown.
Binary file added languages/english_UK/Emma/canRxCheck.mp3
Binary file not shown.
Binary file added languages/english_UK/Emma/direction.mp3
Binary file not shown.
Binary file added languages/english_UK/Emma/metaText.mp3
Binary file not shown.
Binary file added languages/english_UK/Emma/offset.mp3
Binary file not shown.
Binary file added languages/english_UK/Emma/radio.mp3
Binary file not shown.
Binary file added languages/english_UK/Emma/step.mp3
Binary file not shown.
Binary file added languages/english_UK/Matthew/offset.mp3
Binary file not shown.
Binary file added languages/english_UK/Nicole/Both.mp3
Binary file not shown.
Binary file added languages/english_UK/Nicole/CAN.mp3
Binary file not shown.
Binary file added languages/english_UK/Nicole/CTCSSEn.mp3
Binary file not shown.
Binary file added languages/english_UK/Nicole/CTCSSTone.mp3
Binary file not shown.
Binary file added languages/english_UK/Nicole/Decode.mp3
Binary file not shown.
Binary file added languages/english_UK/Nicole/Encode.mp3
Binary file not shown.
Binary file added languages/english_UK/Nicole/None.mp3
Binary file not shown.
Binary file added languages/english_UK/Nicole/canRxCheck.mp3
Binary file not shown.
Binary file added languages/english_UK/Nicole/direction.mp3
Binary file not shown.
Binary file added languages/english_UK/Nicole/metaText.mp3
Binary file not shown.
Binary file added languages/english_UK/Nicole/offset.mp3
Binary file not shown.
Binary file added languages/english_UK/Nicole/radio.mp3
Binary file not shown.
Binary file added languages/english_UK/Nicole/step.mp3
Binary file not shown.
Binary file added languages/english_UK/Russell/Both.mp3
Binary file not shown.
Binary file added languages/english_UK/Russell/CAN.mp3
Binary file not shown.
Binary file added languages/english_UK/Russell/CTCSSEn.mp3
Binary file not shown.
Binary file added languages/english_UK/Russell/CTCSSTone.mp3
Binary file not shown.
Binary file added languages/english_UK/Russell/Decode.mp3
Binary file not shown.
Binary file added languages/english_UK/Russell/Encode.mp3
Binary file not shown.
Binary file added languages/english_UK/Russell/None.mp3
Binary file not shown.
Binary file added languages/english_UK/Russell/canRxCheck.mp3
Binary file not shown.
Binary file added languages/english_UK/Russell/direction.mp3
Binary file not shown.
Binary file added languages/english_UK/Russell/metaText.mp3
Binary file not shown.
Binary file added languages/english_UK/Russell/offset.mp3
Binary file not shown.
Binary file added languages/english_UK/Russell/radio.mp3
Binary file not shown.
Binary file added languages/english_UK/Russell/step.mp3
Binary file not shown.
12 changes: 6 additions & 6 deletions languages/english_UK/config.csv
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Wordlist_file,Voice_name,Voice_pack_name,Download,Encode,Createpack,Volume_change_db,Remove_silence,Audio_tempo
wordlist_english_UK.csv,Matthew,english_uk_matthew.vpc,y,y,y,0,n,1.5
wordlist_english_UK.csv,Amy,english_uk_amy.vpc,y,y,y,0,n,1.5
wordlist_english_UK.csv,Brian,english_uk_brian.vpc,y,y,y,0,n,1.5
wordlist_english_UK.csv,Nicole,english_au_nicole.vpc,y,y,y,0,n,1.5
wordlist_english_UK.csv,Emma,english_uk_emma.vpc,y,y,y,0,n,1.5
wordlist_english_UK.csv,Russell,english_au_russell.vpc,y,y,y,0,n,1.5
wordlist_english_UK.csv,Matthew,english_uk_matthew.vpc,y,y,y,0,n,
wordlist_english_UK.csv,Amy,english_uk_amy.vpc,y,y,y,0,n,
wordlist_english_UK.csv,Brian,english_uk_brian.vpc,y,y,y,0,n,
wordlist_english_UK.csv,Nicole,english_au_nicole.vpc,y,y,y,0,n,
wordlist_english_UK.csv,Emma,english_uk_emma.vpc,y,y,y,0,n,
wordlist_english_UK.csv,Russell,english_au_russell.vpc,y,y,y,0,n,
12 changes: 6 additions & 6 deletions languages/english_UK/config_1.5.csv
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Wordlist_file,Voice_name,Voice_pack_name,Download,Encode,Createpack,Volume_change_db,Remove_silence,Audio_tempo
wordlist_english_UK.csv,Matthew,english_uk_matthew.vpc,y,y,y,0,n,
wordlist_english_UK.csv,Amy,english_uk_amy.vpc,y,y,y,0,n,
wordlist_english_UK.csv,Brian,english_uk_brian.vpc,y,y,y,0,n,
wordlist_english_UK.csv,Nicole,english_au_nicole.vpc,y,y,y,0,n,
wordlist_english_UK.csv,Emma,english_uk_emma.vpc,y,y,y,0,n,
wordlist_english_UK.csv,Russell,english_au_russell.vpc,y,y,y,0,n,
wordlist_english_UK.csv,Matthew,english_uk_matthew.vpc,y,y,y,0,n,1.5
wordlist_english_UK.csv,Amy,english_uk_amy.vpc,y,y,y,0,n,1.5
wordlist_english_UK.csv,Brian,english_uk_brian.vpc,y,y,y,0,n,1.5
wordlist_english_UK.csv,Nicole,english_au_nicole.vpc,y,y,y,0,n,1.5
wordlist_english_UK.csv,Emma,english_uk_emma.vpc,y,y,y,0,n,1.5
wordlist_english_UK.csv,Russell,english_au_russell.vpc,y,y,y,0,n,1.5
Binary file modified languages/english_UK/english_AU_nicole-1.25.vpc
Binary file not shown.
Binary file modified languages/english_UK/english_AU_nicole-1.5.vpc
Binary file not shown.
Binary file modified languages/english_UK/english_au_russell-1.25.vpc
Binary file not shown.
Binary file modified languages/english_UK/english_au_russell-1.5.vpc
Binary file not shown.
Binary file modified languages/english_UK/english_uk_amy-1.25.vpc
Binary file not shown.
Binary file modified languages/english_UK/english_uk_amy-1.5.vpc
Binary file not shown.
Binary file modified languages/english_UK/english_uk_brian-1.25.vpc
Binary file not shown.
Binary file modified languages/english_UK/english_uk_brian-1.5.vpc
Binary file not shown.
Binary file modified languages/english_UK/english_uk_emma-1.25.vpc
Binary file not shown.
Binary file modified languages/english_UK/english_uk_emma-1.5.vpc
Binary file not shown.
Binary file modified languages/english_UK/english_uk_matthew-1.25.vpc
Binary file not shown.
Binary file modified languages/english_UK/english_uk_matthew-1.5.vpc
Binary file not shown.
Binary file added languages/english_USA/Joanna/Both.mp3
Binary file not shown.
Binary file added languages/english_USA/Joanna/CAN.mp3
Binary file not shown.
Binary file added languages/english_USA/Joanna/CTCSSEn.mp3
Binary file not shown.
Binary file added languages/english_USA/Joanna/CTCSSTone.mp3
Binary file not shown.
Binary file added languages/english_USA/Joanna/Decode.mp3
Binary file not shown.
Binary file added languages/english_USA/Joanna/Encode.mp3
Binary file not shown.
Binary file added languages/english_USA/Joanna/None.mp3
Binary file not shown.
Binary file added languages/english_USA/Joanna/canRxCheck.mp3
Binary file not shown.
Binary file added languages/english_USA/Joanna/direction.mp3
Binary file not shown.
Binary file added languages/english_USA/Joanna/metaText.mp3
Binary file not shown.
Binary file added languages/english_USA/Joanna/offset.mp3
Binary file not shown.
Binary file added languages/english_USA/Joanna/radio.mp3
Binary file not shown.
Binary file added languages/english_USA/Joanna/step.mp3
Binary file not shown.
Binary file added languages/english_USA/Joey/Both.mp3
Binary file not shown.
Binary file added languages/english_USA/Joey/CAN.mp3
Binary file not shown.
Binary file added languages/english_USA/Joey/CTCSSEn.mp3
Binary file not shown.
Binary file added languages/english_USA/Joey/CTCSSTone.mp3
Binary file not shown.
Binary file added languages/english_USA/Joey/Decode.mp3
Binary file not shown.
Binary file added languages/english_USA/Joey/Encode.mp3
Binary file not shown.
Binary file added languages/english_USA/Joey/None.mp3
Binary file not shown.
Binary file added languages/english_USA/Joey/canRxCheck.mp3
Binary file not shown.
Binary file added languages/english_USA/Joey/direction.mp3
Binary file not shown.
Binary file added languages/english_USA/Joey/metaText.mp3
Binary file not shown.
Binary file added languages/english_USA/Joey/offset.mp3
Binary file not shown.
Binary file added languages/english_USA/Joey/radio.mp3
Binary file not shown.
Binary file added languages/english_USA/Joey/step.mp3
Binary file not shown.
Binary file added languages/english_USA/Kendra/Both.mp3
Binary file not shown.
Binary file added languages/english_USA/Kendra/CAN.mp3
Binary file not shown.
Binary file added languages/english_USA/Kendra/CTCSSEn.mp3
Binary file not shown.
Binary file added languages/english_USA/Kendra/CTCSSTone.mp3
Binary file not shown.
Binary file added languages/english_USA/Kendra/Decode.mp3
Binary file not shown.
Binary file added languages/english_USA/Kendra/Encode.mp3
Binary file not shown.
Binary file added languages/english_USA/Kendra/None.mp3
Binary file not shown.
Binary file added languages/english_USA/Kendra/canRxCheck.mp3
Binary file not shown.
Binary file added languages/english_USA/Kendra/direction.mp3
Binary file not shown.
Binary file added languages/english_USA/Kendra/metaText.mp3
Binary file not shown.
Binary file added languages/english_USA/Kendra/offset.mp3
Binary file not shown.
Binary file added languages/english_USA/Kendra/radio.mp3
Binary file not shown.
Binary file added languages/english_USA/Kendra/step.mp3
Binary file not shown.
Binary file added languages/english_USA/Kimberly/Both.mp3
Binary file not shown.
Binary file added languages/english_USA/Kimberly/CAN.mp3
Binary file not shown.
Binary file added languages/english_USA/Kimberly/CTCSSEn.mp3
Binary file not shown.
Binary file added languages/english_USA/Kimberly/CTCSSTone.mp3
Binary file not shown.
Binary file added languages/english_USA/Kimberly/Decode.mp3
Binary file not shown.
Binary file added languages/english_USA/Kimberly/Encode.mp3
Binary file not shown.
Binary file added languages/english_USA/Kimberly/None.mp3
Binary file not shown.
Binary file added languages/english_USA/Kimberly/canRxCheck.mp3
Binary file not shown.
Binary file added languages/english_USA/Kimberly/direction.mp3
Binary file not shown.
Binary file added languages/english_USA/Kimberly/metaText.mp3
Binary file not shown.
Binary file added languages/english_USA/Kimberly/offset.mp3
Binary file not shown.
Binary file added languages/english_USA/Kimberly/radio.mp3
Binary file not shown.
Binary file added languages/english_USA/Kimberly/step.mp3
Binary file not shown.
Binary file added languages/english_USA/Matthew/offset.mp3
Binary file not shown.
Binary file modified languages/english_USA/english_usa_joanna-1.25.vpc
Binary file not shown.
Binary file modified languages/english_USA/english_usa_joanna-1.5.vpc
Binary file not shown.
Binary file modified languages/english_USA/english_usa_joey-1.25.vpc
Binary file not shown.
Binary file modified languages/english_USA/english_usa_joey-1.5.vpc
Binary file not shown.
Binary file modified languages/english_USA/english_usa_kendra-1.25.vpc
Binary file not shown.
Binary file modified languages/english_USA/english_usa_kendra-1.5.vpc
Binary file not shown.
Binary file modified languages/english_USA/english_usa_kimberly-1.25.vpc
Binary file not shown.
Binary file modified languages/english_USA/english_usa_kimberly-1.5.vpc
Binary file not shown.
Binary file modified languages/english_USA/english_usa_matthew-1.25.vpc
Binary file not shown.
Binary file modified languages/english_USA/english_usa_matthew-1.5.vpc
Binary file not shown.