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

changing language #8

Open
huyuhua33 opened this issue May 24, 2021 · 3 comments
Open

changing language #8

huyuhua33 opened this issue May 24, 2021 · 3 comments

Comments

@huyuhua33
Copy link

Hello, thanks for developing this package. It is good to use.
but is it possible to change the language? cause when I want to change the source code, it will always change back to "en"?
thanks

@sewonist
Copy link

This plugin is working like charm.
Just I want to know that how to change language.
Is it possible?

@sewonist
Copy link

I found solution ;-)
You can change LanguageCode what you want in StreamingRecognizer.cs 293 line.

await _streamingCall.WriteAsync(new StreamingRecognizeRequest() {
                StreamingConfig = new StreamingRecognitionConfig() {
                    Config = new RecognitionConfig() {
                        Encoding = RecognitionConfig.Types.AudioEncoding.Linear16,
                        SampleRateHertz = audioConfiguration.sampleRate,
                        LanguageCode = "ko",
                        MaxAlternatives = 1
                    },
                    InterimResults = returnInterimResults,
                }
            });

@huyuhua33
Copy link
Author

Good, I saw that, thanks for helping.

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

2 participants