Skip to content

Commit 10516a5

Browse files
authored
Update elevenlabs_transcribe.py
1 parent 4e94237 commit 10516a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/all_whisper_methods/elevenlabs_transcribe.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def transcribe_audio_elevenlabs(raw_audio_path: str, vocal_audio_path: str, star
8686
y, sr = librosa.load(vocal_audio_path, sr=16000)
8787
audio_duration = len(y) / sr
8888

89-
if not start or not end:
89+
if start is None or end is None:
9090
start = 0
9191
end = audio_duration
9292

@@ -172,4 +172,4 @@ def transcribe_audio_elevenlabs(raw_audio_path: str, vocal_audio_path: str, star
172172

173173
# Save result to file
174174
with open("output/transcript.json", "w", encoding="utf-8") as f:
175-
json.dump(result, f, ensure_ascii=False, indent=4)
175+
json.dump(result, f, ensure_ascii=False, indent=4)

0 commit comments

Comments
 (0)