private void OnStartRecordingTimer_Elapsed(object sender, EventArgs e) { _startRecordingTimer.Stop(); Debug.WriteLine("Start actual recording"); try { Recorder.BeginRecording(PathToTemporaryWav); _webSocketServer.SendString(kWebsocketContext, "recordStartStatus", "success"); } catch (InvalidOperationException) { // Likely a case of BL-7568, which as far as we can figure isn't Bloom's fault. // Show a friendly message in the TalkingBook toolbox. _webSocketServer.SendString(kWebsocketContext, "recordStartStatus", "failure"); } }
private void OnStartRecordingTimer_Elapsed(object sender, EventArgs e) { _startRecordingTimer.Stop(); Debug.WriteLine("Start actual recording"); Recorder.BeginRecording(PathToTemporaryWav); }