Skip to content

Commit 8c4f945

Browse files
authored
Merge pull request #136 from sheldonxxxx/main
fix: adjust language detection loop to include max language ID
2 parents 41c168f + 089f01f commit 8c4f945

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pywhispercpp/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def available_languages() -> list[str]:
244244
"""
245245
n = pw.whisper_lang_max_id()
246246
res = []
247-
for i in range(n):
247+
for i in range(n+1):
248248
res.append(pw.whisper_lang_str(i))
249249
return res
250250

0 commit comments

Comments
 (0)