コード例 #1
0
ファイル: SpeechRecManager.cs プロジェクト: ArielY15/AIPhone
 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);
 }
コード例 #2
0
ファイル: CloudCreds.cs プロジェクト: ArielY15/AIPhone
 public static CloudCreds GetInstance()
 {
     if (instance == null)
     {
         instance = new CloudCreds();
     }
     return(instance);
 }
コード例 #3
0
 public FaceRecManager()
 {
     cloudCreds        = CloudCreds.GetInstance();
     faceServiceClient = new FaceServiceClient(cloudCreds.FaceAPIKey, cloudCreds.FaceAPIUrl);
 }
コード例 #4
0
 public OCRRecMananger()
 {
     cloudCreds       = CloudCreds.GetInstance();
     ocrServiceClient = new VisionServiceClient(cloudCreds.VisionAPIKey, cloudCreds.VisionAPIUrl);
 }