Code relocation

This commit is contained in:
superobk
2024-04-13 00:14:26 +08:00
parent f606db69c7
commit c46c0ff7f2
4 changed files with 2 additions and 27494 deletions

View File

@ -24,7 +24,7 @@ def mul(a,b):
return a*b return a*b
if __name__ == "__main__": if __name__ == "__main__":
f = open("./test_data/testone.wav", "rb") f = open("../test_data/testone.wav", "rb")
audio_data = f.read() audio_data = f.read()
f.close() f.close()
tts = TextToAudio() tts = TextToAudio()
@ -45,7 +45,7 @@ if __name__ == "__main__":
script_output = runtime.run(ast, { script_output = runtime.run(ast, {
"audio": audio_data, "audio": audio_data,
}) })
f = open("./test_data/tmp.wav", "wb") f = open("../test_data/tmp.wav", "wb")
print("script:", type(script_output)) print("script:", type(script_output))
f.write(script_output.read()) f.write(script_output.read())
f.close() f.close()

View File

@ -1 +0,0 @@
# asr

File diff suppressed because it is too large Load Diff