We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1442154 commit 17e5146Copy full SHA for 17e5146
src/edge_tts/submaker.py
@@ -31,8 +31,8 @@ def feed(self, msg: TTSChunk) -> None:
31
self.cues.append(
32
srt.Subtitle(
33
index=len(self.cues) + 1,
34
- start=srt.timedelta(microseconds=msg["duration"] / 10),
35
- end=srt.timedelta(microseconds=(msg["duration"] + msg["offset"]) / 10),
+ start=srt.timedelta(microseconds=msg["offset"] / 10),
+ end=srt.timedelta(microseconds=(msg["offset"] + msg["duration"]) / 10),
36
content=msg["text"],
37
)
38
0 commit comments