/// <summary> /// Called when the microphone status has changed. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="MicrophoneEventArgs"/> instance containing the event data.</param> private void OnMicrophoneStatus(object sender, MicrophoneEventArgs e) { if (e.Recording) { Query = ("Please start speaking."); } }
public static void onMicrophoneStatusHandler(object sender, MicrophoneEventArgs e) { if (!e.Recording) { ((MicrophoneRecognitionClient)sender).StartMicAndRecognition(); } }
/// <summary> /// Called when the microphone status has changed. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="MicrophoneEventArgs"/> instance containing the event data.</param> private void OnMicrophoneStatus(object sender, MicrophoneEventArgs e) { Dispatcher.Invoke(() => { /* * WriteLine($"--- Microphone status change received by OnMicrophoneStatus() --- {sw.ElapsedMilliseconds}"); * WriteLine("********* Microphone status: {0} *********", e.Recording); * if (e.Recording) * { * WriteLine("Please start speaking."); * } * * WriteLine(); */ if (e.Recording) { this.RecordingOn(); } else { this.RecordingOff(); } }); }
/// <summary> /// Called when the microphone status has changed. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="MicrophoneEventArgs"/> instance containing the event data.</param> private void OnMicrophoneStatus(object sender, MicrophoneEventArgs e) { Dispatcher.Invoke(() => { WriteLine(); }); }
/// <summary> /// Called when the microphone status has changed. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="MicrophoneEventArgs"/> instance containing the event data.</param> private void OnMicrophoneStatus(object sender, MicrophoneEventArgs e) { Dispatcher.Invoke(() => { if (e.Recording) { } }); }
// ---------------------------------------------------------------------------------------------------------------------------------------- private void OnMicrophoneStatus(object sender, MicrophoneEventArgs e) { Console.WriteLine("--- Microphone status change received by OnMicrophoneStatus() ---"); Console.WriteLine("********* Microphone status: {0} *********", e.Recording); if (e.Recording) { Console.WriteLine("Please start speaking."); } }
/// <summary> /// Called when the microphone status has changed. /// </summary> void OnMicrophoneStatus(object sender, MicrophoneEventArgs e) { Console.WriteLine("********* Microphone status: {0} *********", e.Recording); if (!e.Recording) { m_micClient.EndMicAndRecognition(); } Console.WriteLine(); }
/// <summary> /// Called when the microphone status has changed. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="MicrophoneEventArgs"/> instance containing the event data.</param> private void OnMicrophoneStatus(object sender, MicrophoneEventArgs e) { if (e.Recording) { WriteLine("Please start speaking."); } WriteLine(); }
private void OnMicrophoneStatus(object sender, MicrophoneEventArgs e) { if (e.Recording) { WriteLine("Please start speaking." + Environment.NewLine); } else { WriteLine("Mic not ready or not working." + Environment.NewLine); } }
private void OnMicrophoneStatus(object sender, MicrophoneEventArgs e) { Dispatcher.Invoke(() => { Debug.WriteLine("********* Microphone status: {0} *********", e.Recording); if (e.Recording) { Debug.WriteLine("Please start speaking."); txtText.Text = "Listening.."; } }); }
/// <summary> /// Called when the microphone status has changed. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="MicrophoneEventArgs"/> instance containing the event data.</param> private void OnMicrophoneStatus(object sender, MicrophoneEventArgs e) { Dispatcher.Invoke(() => { WriteLine("********* 麥克風是否開啟: {0} *********", e.Recording); if (e.Recording) { WriteLine("請開始說話!"); } WriteLine(); }); }
/// <summary> /// 麦克风状态改变时调用。 /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="MicrophoneEventArgs"/> instance containing the event data.</param> private void OnMicrophoneStatus(object sender, MicrophoneEventArgs e) { Dispatcher.Invoke(() => { WriteLine("", e.Recording); if (e.Recording) { WriteLine("请开始你的表演"); } WriteLine("\n"); }); }
private void OnMicrophoneStatus(object sender, MicrophoneEventArgs e) { // Dispatcher dispatcherUI = Dispatcher.CurrentDispatcher; Dispatcher.Invoke(() => { if (e.Recording) { WriteLine("Please start speaking ... :)"); } WriteLine(""); }); }
private void OnMicrophoneStatus(object sender, MicrophoneEventArgs e) { this.BeginInvoke((MethodInvoker) delegate() { // WriteLine("--- Microphone status change received by OnMicrophoneStatus() ---"); // WriteLine("********* Microphone status: {0} *********", e.Recording); if (e.Recording) { WriteLine("Please start speaking."); } WriteLine(); }); }
/// <summary> /// Called when the microphone status has changed. /// </summary> void OnMicrophoneStatus(object sender, MicrophoneEventArgs e) { Dispatcher.Invoke(() => { WriteLine("--- Microphone status change received by OnMicrophoneStatus() ---"); WriteLine("********* Microphone status: {0} *********", e.Recording); if (e.Recording) { WriteLine("Please start speaking."); } WriteLine(); }); }
private void OnMicrophoneStatus(object sender, MicrophoneEventArgs e) { Dispatcher.Invoke(() => { if (e.Recording) { Debug.WriteLine("Please start speaking."); } else if (!e.Recording) { //e.Recording = FALSE when: this.micClient.EndMicAndRecognition(); } }); }
/// <summary> /// Called when the microphone status has changed. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="MicrophoneEventArgs"/> instance containing the event data.</param> private void OnMicrophoneStatus(object sender, MicrophoneEventArgs e) { Dispatcher.Invoke(() => { Console.WriteLine("--- Microphone status change received by OnMicrophoneStatus() ---"); Console.WriteLine("********* Microphone status: {0} *********", e.Recording); if (e.Recording) { Console.WriteLine("Please start speaking."); this.UpdateStr("Please start speaking.", 12); } Console.WriteLine(); }); }
/// <summary> /// Called when the microphone status has changed. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="MicrophoneEventArgs"/> instance containing the event data.</param> private void OnMicrophoneStatus(object sender, MicrophoneEventArgs e) { Dispatcher.Invoke(() => { StartButton.IsEnabled = !e.Recording; if (e.Recording) { this.imageAnimationController?.Play(); } else { this.imageAnimationController?.Pause(); } }); }
/// <summary> /// Called when the microphone status has changed. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="MicrophoneEventArgs"/> instance containing the event data.</param> private void OnMicrophoneStatus(object sender, MicrophoneEventArgs e) { Dispatcher.Invoke(() => { // WriteLine("--- Microphone status change received by OnMicrophoneStatus() ---"); // WriteLine("********* Microphone status: {0} *********", e.Recording); if (e.Recording) { WriteLine("Meeting start!."); } else { // forward(); } WriteLine(); }); }
private void MicClient_OnMicrophoneStatus(object sender, MicrophoneEventArgs e) { Application.Current.Dispatcher.BeginInvoke(DispatcherPriority.Normal, new Action(() => { if (e.Recording) { this.status.Text = "Escuchando..."; this.RecordingBar.Visibility = Visibility.Visible; } else { this.status.Text = "No Escuchando..."; this.RecordingBar.Visibility = Visibility.Collapsed; } })); }
/// <summary> /// Called when the microphone status has changed. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="MicrophoneEventArgs"/> instance containing the event data.</param> private void OnMicrophoneStatus(object sender, MicrophoneEventArgs e) { Dispatcher.Invoke(() => { WriteLine("--- Microphone status change received by OnMicrophoneStatus() ---"); WriteLine("********* Microphone status: {0} *********", e.Recording); if (e.Recording) { WriteLine("Please start speaking."); } else { //this.micClient.EndMicAndRecognition(); //CreateMicrophoneRecoClient(); //this.micClient.StartMicAndRecognition(); } WriteLine(); }); }
private void OnMicrophoneStatus(object sender, MicrophoneEventArgs e) { this.SetText(metaText, "--- OnMicrophoneStatus ---"); }
private void OnMicrophoneStatus(object sender, MicrophoneEventArgs e) { }
/// <summary> /// Event handler function for changes in microphone status. Will print status in the debug console /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void OnMicrophoneStatus(object sender, MicrophoneEventArgs e) { Debug.WriteLine($"Microphone status changed to recording: {e.Recording}"); }
private void OnMicrophoneStatus(object sender, MicrophoneEventArgs e) { isMicrophoneActive = e.Recording; }
private void OnMicrophoneStatus(object sender, MicrophoneEventArgs e) { this.SetText(MessageType.Metadata, "--- OnMicrophoneStatus ---"); }
private void OnMicrophoneStatus(object sender, MicrophoneEventArgs e) { //WriteToLog(e.Recording // ? "****************** I'm recording ************************" // : "================== I'm NO recording ====================="); }
private void OnMicrophoneStatus(object sender, MicrophoneEventArgs e) { WriteTextBoxLine(txtPartial, e.Recording ? "LISTENING..." : "NOT LISTENING (for some reason...)"); WriteTextBoxLine(txtPartial, String.Empty); }
//Event handler that is called when the microphone status is ready private void OnMicrophoneStatus(object sender, MicrophoneEventArgs e) { WriteLine(e.Recording ? "Mic Recording. Please start speaking." : "Mic Stopped."); }
private void Client_OnMicrophoneStatus(object sender, MicrophoneEventArgs e) { systemLog.Debug($"{ prefix } Microphone status changed (recording: { e.Recording })"); }