/// <summary> /// Event handler for text-to-speech errors /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void _textToSpeak_OnError(object sender, AudioErrorEventArgs e) { StatusText = $"Status: Audio service failed - {e.ErrorMessage}"; }
/// <summary> /// Event handler function for <see cref="TextToSpeech"/> errors. /// Prints errors to the debug console /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void OnTtsError(object sender, AudioErrorEventArgs e) { Debug.WriteLine($"Status: Audio service failed - {e.ErrorMessage}"); }