Skip to content
Discussion options

You must be logged in to vote

Yes, that's how the reference transcribe() works.

If you don't pass language, it detects the language once, on the first 30-second window only (pad_or_trim(mel, N_FRAMES) then model.detect_language()), and keeps that language for the whole file:

if decode_options.get("language", None) is None:
if not model.is_multilingual:
decode_options["language"] = "en"
else:
if verbose:
print(
"Detecting language using up to the first 30 seconds. Use `--language` to specify the language"
)
mel_segment = pad_or_trim(mel, N_FRAMES).to(model.device).to(dtype)
_, probs = model.detect_language(m…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by Shardz4
Comment options

You must be logged in to vote
1 reply
@Yuno15-bb
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants