Upload app.py
Browse files
app.py
CHANGED
|
@@ -202,7 +202,7 @@ async def create_audio_file(project_dir, captions, speeches):
|
|
| 202 |
# 每个面板的旁白
|
| 203 |
if caption:
|
| 204 |
caption_audio = os.path.join(project_dir, f"caption_{i}.mp3")
|
| 205 |
-
result = await generate_speech(caption, "
|
| 206 |
if result:
|
| 207 |
duration = get_audio_duration(caption_audio)
|
| 208 |
audio_durations[f"caption_{i}"] = duration
|
|
@@ -212,7 +212,7 @@ async def create_audio_file(project_dir, captions, speeches):
|
|
| 212 |
# 每个面板的对话
|
| 213 |
if speech:
|
| 214 |
speech_audio = os.path.join(project_dir, f"speech_{i}.mp3")
|
| 215 |
-
result = await generate_speech(speech, "
|
| 216 |
if result:
|
| 217 |
duration = get_audio_duration(speech_audio)
|
| 218 |
audio_durations[f"speech_{i}"] = duration
|
|
|
|
| 202 |
# 每个面板的旁白
|
| 203 |
if caption:
|
| 204 |
caption_audio = os.path.join(project_dir, f"caption_{i}.mp3")
|
| 205 |
+
result = await generate_speech(caption, "f2ed19ca0ea246bf9cbc6382be00e4fc", caption_audio)
|
| 206 |
if result:
|
| 207 |
duration = get_audio_duration(caption_audio)
|
| 208 |
audio_durations[f"caption_{i}"] = duration
|
|
|
|
| 212 |
# 每个面板的对话
|
| 213 |
if speech:
|
| 214 |
speech_audio = os.path.join(project_dir, f"speech_{i}.mp3")
|
| 215 |
+
result = await generate_speech(speech, "3b55b3d84d2f453a98d8ca9bb24182d6", speech_audio)
|
| 216 |
if result:
|
| 217 |
duration = get_audio_duration(speech_audio)
|
| 218 |
audio_durations[f"speech_{i}"] = duration
|