partial void listenButton_TouchUpInside(UIButton sender)
 {
     InvokeInBackground(() => {
         AVAudioSession.SharedInstance().SetActive(true);
         aiService.StartListening();
     });
 }
Esempio n. 2
0
        partial void listenButton_TouchUpInside(UIButton sender)
        {
            InvokeInBackground(() => {
                AVAudioSession.SharedInstance().SetActive(true);
                aiService.StartListening();
            });


            aiService.ListeningStarted  += AiService_ListeningStarted;
            aiService.ListeningFinished += AiService_ListeningFinished;
            aiService.AudioLevelChanged += AiService_AudioLevelChanged;
        }
Esempio n. 3
0
 void buttonListen_Click(object sender, EventArgs e)
 {
     StartParallel(() => aiService.StartListening());
 }
Esempio n. 4
0
 public void StartApiAiService()
 {
     _aiService.StartListening();
 }
Esempio n. 5
0
 public void StartListening()
 {
     InvokeInBackground(() => aiService.StartListening());
 }
Esempio n. 6
0
 partial void listenButton_TouchUpInside(UIButton sender)
 {
     InvokeInBackground(() => aiService.StartListening());
 }