We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 31a9ec7 + 601c911 commit e24ca9eCopy full SHA for e24ca9e
whisperx/alignment.py
@@ -450,8 +450,8 @@ def get_raw_text(word_row):
450
"end": srow["end"],
451
"text": text,
452
"words": word_list,
453
- # "word-segments": wseg,
454
- # "char-segments": cseg
+ "word-segments": wseg,
+ "char-segments": cseg
455
}
456
)
457
whisperx/transcribe.py
@@ -203,6 +203,12 @@ def cli():
203
204
# >> Write
205
for result, audio_path in results:
206
+ # Remove pandas dataframes from result so that
207
+ # we can serialize the result with json
208
+ for seg in result["segments"]:
209
+ seg.pop("word-segments", None)
210
+ seg.pop("char-segments", None)
211
+
212
writer(result, audio_path, writer_args)
213
214
if __name__ == "__main__":
0 commit comments