Beispiel #1
0
 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);
 }
Beispiel #2
0
 public static CloudCreds GetInstance()
 {
     if (instance == null)
     {
         instance = new CloudCreds();
     }
     return(instance);
 }
Beispiel #3
0
 public FaceRecManager()
 {
     cloudCreds        = CloudCreds.GetInstance();
     faceServiceClient = new FaceServiceClient(cloudCreds.FaceAPIKey, cloudCreds.FaceAPIUrl);
 }
Beispiel #4
0
 public OCRRecMananger()
 {
     cloudCreds       = CloudCreds.GetInstance();
     ocrServiceClient = new VisionServiceClient(cloudCreds.VisionAPIKey, cloudCreds.VisionAPIUrl);
 }