Beispiel #1
0
 void Update()
 {
     if (!_picovoiceManager.IsRecording)
     {
         if (_picovoiceManager.IsAudioDeviceAvailable())
         {
             _picovoiceManager.Start();
         }
         else
         {
             Debug.LogError("No audio recording device available!");
         }
     }
 }
Beispiel #2
0
    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);
    }
Beispiel #3
0
 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!");
         }
     }
 }