mirror of
https://github.com/BoardWare-Genius/jarvis-models.git
synced 2025-12-13 16:53:24 +00:00
Code relocation
This commit is contained in:
@ -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()
|
||||||
@ -1 +0,0 @@
|
|||||||
# asr
|
|
||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user