当前位置: 首页 > 知识库问答 >
问题:

应用程序默认凭据不可用-本地主机项目

袁单鹗
2023-03-14
 var speech = SpeechClient.Create();
            var response = speech.Recognize(new RecognitionConfig()
            {
                Encoding = RecognitionConfig.Types.AudioEncoding.Linear16,

                LanguageCode = languageCode,
            }, RecognitionAudio.FromFile(file));
"type": "service_account",

共有1个答案

梁宪
2023-03-14
System.Environment.SetEnvironmentVariable("GOOGLE_APPLICATION_CREDENTIALS", <<path>>);
 类似资料: