csukuangfj
commited on
Commit
·
ef3927c
1
Parent(s):
2f90547
small fixes
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ def convert_to_wav(in_filename: str) -> str:
|
|
42 |
_ = os.system(f"ffmpeg -hide_banner -i '{in_filename}' -ar 16000 '{out_filename}'")
|
43 |
with open(out_filename, "rb") as f:
|
44 |
s = "\n" + out_filename + "\n"
|
45 |
-
s += base64.b64encode(f.read())
|
46 |
logging.info(s)
|
47 |
return out_filename
|
48 |
|
|
|
42 |
_ = os.system(f"ffmpeg -hide_banner -i '{in_filename}' -ar 16000 '{out_filename}'")
|
43 |
with open(out_filename, "rb") as f:
|
44 |
s = "\n" + out_filename + "\n"
|
45 |
+
s += base64.b64encode(f.read()).decode()
|
46 |
logging.info(s)
|
47 |
return out_filename
|
48 |
|