Type Alias LanguageDetectionOptions

LanguageDetectionOptions: {
    expected_languages?: string[] | null;
    fallback_language?: string | null;
}

Options for controlling the behavior of Automatic Language Detection

Type declaration

  • Optionalexpected_languages?: string[] | null

    A list of languages that the audio could be expected to be.

  • Optionalfallback_language?: string | null

    The language to fallback to in case the language detection does not predict any of the expected ones.