void Update() { if (!_picovoiceManager.IsRecording) { if (_picovoiceManager.IsAudioDeviceAvailable()) { _picovoiceManager.Start(); } else { Debug.LogError("No audio recording device available!"); } } }
void Update() { if (!_picovoiceManager.IsRecording) { if (_picovoiceManager.IsAudioDeviceAvailable()) { _picovoiceManager.Start(); } else { Debug.LogError("No audio recording device available!"); } } float timelineScaleX = (float)(_videoPlayer.time / _videoPlayer.length); _timeline.transform.localScale = new Vector3(timelineScaleX, _timeline.transform.localScale.y, _timeline.transform.localScale.z); }
void Update() { if (!_picovoiceManager.IsRecording) { if (_picovoiceManager.IsAudioDeviceAvailable()) { try { _picovoiceManager.Start(); } catch (Exception ex) { Debug.LogError(ex.ToString()); } } else { Debug.LogError("No audio recording device available!"); } } }