Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ways to add language identification (Interface Scalability) #212

Open
DavidJiang9 opened this issue Aug 24, 2023 · 0 comments
Open

Ways to add language identification (Interface Scalability) #212

DavidJiang9 opened this issue Aug 24, 2023 · 0 comments

Comments

@DavidJiang9
Copy link

I encounter a use case where we want to add multi-language speech recognizer for English and Chinese. The below code is the sample code provided by Micrsoft Azure.

var autoDetectSourceLanguageConfig = SpeechSDK.AutoDetectSourceLanguageConfig.fromLanguages(["en-US", "de-DE"]);
var speechRecognizer = SpeechSDK.SpeechRecognizer.FromConfig(speechConfig, autoDetectSourceLanguageConfig, audioConfig);
speechRecognizer.recognizeOnceAsync((result: SpeechSDK.SpeechRecognitionResult) => {
        var languageDetectionResult = SpeechSDK.AutoDetectSourceLanguageResult.fromResult(result);
        var detectedLanguage = languageDetectionResult.language;
},
{});

I didn't see a way to add the configuration like above. Is there a way to do this? Thanks. @compulim @traviscibot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant