Skip to content

Commit 8775178

Browse files
committed
fix a small bug in ASR
1 parent 6dca83c commit 8775178

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

batchalign/pipelines/asr/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def process_generation(output, lang="eng", utterance_engine=None):
167167
# which is ['word', [start_ms, end_ms]]. Yes, this would
168168
# involve multiplying by 1000 to s => ms
169169
words = [[i["value"], [round(i["ts"]*1000) if i.get("ts") != None else None,
170-
round(i["end_ts"]*1000) if i.get("end_ts") != None else the]] # None shape
170+
round(i["end_ts"]*1000) if i.get("end_ts") != None else None]] # the shape
171171
for i in words # for each word
172172
if i["value"].strip() != "" and
173173
not re.match(r'<.*>', i["value"])] # if its text (i.e. not "pause")

batchalign/version

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
0.7.20-post.16
2-
August 05, 2025
3-
some ud parsing fixes
1+
0.7.20-post.17
2+
August 18, 2025
3+
ASR fixes

0 commit comments

Comments
 (0)