示例#1
0
        private SpeechConfig GetClient()
        {
            var subscriptionKey = configurationReader.GetKey();
            var region          = configurationReader.GetRegion();

            return(SpeechConfig.FromSubscription(subscriptionKey, region));
        }
示例#2
0
        private ComputerVisionClient GetClient()
        {
            var subscriptionKey = configurationReader.GetKey();
            var endpoint        = configurationReader.GetEndpoint();

            var client = new ComputerVisionClient(new ApiKeyServiceClientCredentials(subscriptionKey))
            {
                Endpoint = endpoint
            };

            return(client);
        }