Skip to content

Commit

Permalink
rev
Browse files Browse the repository at this point in the history
  • Loading branch information
ksyeo1010 committed Oct 19, 2023
1 parent d5e4ac4 commit 833ba8f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
2 changes: 1 addition & 1 deletion binding/unity/Assets/Rhino/Rhino.cs
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ public Inference GetInference()
}

/// <summary>
/// Resets the internal state of Picovoice. It should be called before processing a new stream of audio
/// Resets the internal state of Rhino. It should be called before processing a new stream of audio
/// or when process was stopped while processing a stream of audio.
/// </summary>
public void Reset()
Expand Down
13 changes: 0 additions & 13 deletions binding/unity/Assets/Rhino/RhinoManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,19 +130,6 @@ public void Process()
VoiceProcessor.Instance.StartRecording(_rhino.FrameLength, _rhino.SampleRate);
}

/// <summary>
/// Resets the internal state of Picovoice. It should be called before processing a new stream of audio
/// or when process was stopped while processing a stream of audio.
/// </summary>
public void Reset()
{
if (_rhino == null)
{
throw new RhinoInvalidStateException("Cannot reset RhinoManager - resources have already been released");
}
_rhino.Reset();
}

/// <summary>
/// Free resources that were allocated to Rhino and the voice processor
/// </summary>
Expand Down

0 comments on commit 833ba8f

Please sign in to comment.