tts-api-client / generate_dex_script.py
wonderit's picture
initial commit
7cc71bf
Raw History Blame Contribute Delete
411 Bytes
import csv
csv_file = open("./typecast-dex-script.csv", "r")
f = csv.DictReader(csv_file, delimiter=",", doublequote=True, lineterminator="\r\n", quotechar='"', skipinitialspace=True)
with open("./dex_filelist.txt", "w") as file:
for row in f:
index = row['\ufeffIndex']
# get_audio(wrapper(file_name))
file.write(f"assets/dex-typecast/{index}.mp3|0|{row['Text']}\n")
file.close()