I am using “Mobile Speech Recognizer”, and it works great,
but i am trying to record audio while the speech recognizer is on and i doesnt work,
is there a way to fix it? is there a way to use recorded audio (an audio clip object)
to generate text with speech recognizer?
Yeah, I think it might be in conflict with plugin recording audio at the same time.
My idea for fixing that is adding a callback which will pass recorded chunks to C# callback, something like OnAudioRecorded(audioChunk: byteArrayOrSomething).
But… that would take some time. Would be able to contribute and add this feature on any platform?
Internally plugin receives audio chunks as a byte array and sends it to recognition engine and then send result to Unity. There could be another optional callback which would take those bytes before sending to engine so anyone from outside could use it measure volume, convert to mp3 etc.
OK, but how do I do that? SpeechRecognizer has only start and stop recording function and no callback for what you say, I dont see any options to change what is sent to the recognition engine or catch it before sending, if you could please explain what functions or callback can I us, there is nothing related to it in the code or the documentations