private void ExecuteResetWasapiDeviceCommand() { SoundPlayerWrapper.Init(); Thread.Sleep(10); SoundPlayerWrapper.LoadTTSCache(); this.Logger.Info("Reset WASAPI Player, and Reload TTS chache."); }
private async void ExecuteResetWasapiDeviceCommand() { SoundPlayerWrapper.Init(); await Task.Delay(10); SoundPlayerWrapper.LoadTTSCache(); this.Logger.Info("Reset WASAPI Player, and Reload TTS chache."); }