rogerxavier
commited on
Commit
•
06b483d
1
Parent(s):
2f85ded
Update 3mergeDialogToVideo.py
Browse files- 3mergeDialogToVideo.py +1 -1
3mergeDialogToVideo.py
CHANGED
@@ -149,7 +149,7 @@ def get_audio_data(text:str)-> "返回audio data io句柄, duration":
|
|
149 |
# print("音频持续时间是",response.audio_duration)
|
150 |
# print("音频数据是",response.content)
|
151 |
# 创建临时文件 -当前路径下面
|
152 |
-
with tempfile.NamedTemporaryFile(dir='/',delete=False) as temp_file:
|
153 |
temp_file.write(response.content)
|
154 |
temp_file.close()
|
155 |
audio = MP3(temp_file.name)
|
|
|
149 |
# print("音频持续时间是",response.audio_duration)
|
150 |
# print("音频数据是",response.content)
|
151 |
# 创建临时文件 -当前路径下面
|
152 |
+
with tempfile.NamedTemporaryFile(dir='/mp3_out',delete=False) as temp_file:
|
153 |
temp_file.write(response.content)
|
154 |
temp_file.close()
|
155 |
audio = MP3(temp_file.name)
|