Update modules/utils/subtitle_manager.py
Browse files
modules/utils/subtitle_manager.py
CHANGED
@@ -115,7 +115,7 @@ def get_txt(segments):
|
|
115 |
speaker_text = (segment['text']).strip()
|
116 |
output += f"{timeformat_txt(segment['start'])}\t{speaker_text}\n"
|
117 |
|
118 |
-
return output
|
119 |
|
120 |
def get_plaintext(segments):
|
121 |
bDiarization = False
|
@@ -136,7 +136,7 @@ def get_plaintext(segments):
|
|
136 |
speaker_text = (segment['text']).strip()
|
137 |
output += f"{speaker_text}\n"
|
138 |
|
139 |
-
return output
|
140 |
|
141 |
def parse_srt(file_path):
|
142 |
"""Reads SRT file and returns as dict"""
|
|
|
115 |
speaker_text = (segment['text']).strip()
|
116 |
output += f"{timeformat_txt(segment['start'])}\t{speaker_text}\n"
|
117 |
|
118 |
+
return output
|
119 |
|
120 |
def get_plaintext(segments):
|
121 |
bDiarization = False
|
|
|
136 |
speaker_text = (segment['text']).strip()
|
137 |
output += f"{speaker_text}\n"
|
138 |
|
139 |
+
return output
|
140 |
|
141 |
def parse_srt(file_path):
|
142 |
"""Reads SRT file and returns as dict"""
|