public SpeechRecManager() { cloudCreds = CloudCreds.GetInstance(); speechClient = SpeechRecognitionServiceFactory.CreateMicrophoneClient(SpeechRecognitionMode.LongDictation, "en-US", cloudCreds.SpeechAPIKey); speechClient.OnPartialResponseReceived += OnPartialResponseReceived; speechClient.OnResponseReceived += OnResponseReceived; speechClient.OnMicrophoneStatus += (s, e) => Console.WriteLine(e.Recording); }
public static CloudCreds GetInstance() { if (instance == null) { instance = new CloudCreds(); } return(instance); }
public FaceRecManager() { cloudCreds = CloudCreds.GetInstance(); faceServiceClient = new FaceServiceClient(cloudCreds.FaceAPIKey, cloudCreds.FaceAPIUrl); }
public OCRRecMananger() { cloudCreds = CloudCreds.GetInstance(); ocrServiceClient = new VisionServiceClient(cloudCreds.VisionAPIKey, cloudCreds.VisionAPIUrl); }