Method GetSupportedLanguages
GetSupportedLanguages()
Returns the list of languages supported by the underlying language model.
public List<string> GetSupportedLanguages()
Returns
- List<string>
A list of language identifiers accepted by this model, typically ISO-639-1 codes (e.g.,
"en","fr","de","es").
Examples
var langs = engine.GetSupportedLanguages();
Console.WriteLine(string.Join(", ", langs));
Remarks
Use this method to discover the exact set of values you can pass to Transcribe(WaveFile, string, CancellationToken) and TranscribeAsync(WaveFile, string, CancellationToken).
The special value "auto" is also accepted for transcription to enable language auto-detection,
even though it may not appear in this list.
Exceptions
- NotSupportedException
Thrown if the model weights do not support language enumeration.