alphacep / alphacep/vosk-unity-asr

How to properly disable audio recording

未關閉
#11 5 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
C#
星號
128
分支
26
PR 合併指標
30 天內沒有已合併 PR

描述

Hi, it's not really an issue but more a question but i didn't know where to post it.
I wanted to know what is the best method to turn on and off the audio registration with vosk,
Since my program needs to switch on and off really often, like when a collider enders/exits a trigger area, I have to know the best solution.
By now i'm usin the ToggleRecording() method, but it seems like it also stops the STT process? I didn't really understand the code quite mutch, but if that's the case i don't want it to be this way.

Here's an example of what i want:

- user enters a trigger area
- vosk starts recording
- user starts speaking
- user stops speaking
- vosk calculates the result
- vosk stops recording
- user exits the trigger area

BUT that it can also work this way:
- user enters a trigger area
- vosk starts recording
- user starts speaking
- user stops speaking
- user exits the trigger area
- vosk stops recording
- vosk calculates the result

I hope i made myself clear.

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。