Setting lengthSec longer than duration, ending it early, causes strange behavior
Describe the bug I'm trying to make the clip length dynamic by toggling the recording with a button instead of fixed length recording. So I set the lengthSec to 89 as whisper probably rounds it to the nearest second anyway, but it gives odd results.
This is not the case with using the default duration of 5 and letting the timer end the recording.
To Reproduce Steps to reproduce the behavior:
- clip = Microphone.Start(dropdown.options[index].text, false, 89, 44100);
- Fire Microphone.End(null) before the time limit
Expected behavior Should end the recording and process it.
Screenshots
-
Said "1 2 3 4 5 6 7 8" only, but the transcript repeats it multiple times and sent even a URL back.
-
Said "1 2 3 4 3 2 1" only, but the transcript not only repeated it, it started counting up out of nowhere.
-
Said "1 2 3 4 3 2 1" only, but in the transcript was repeated many times
Environment (please complete the following information):
- OS: Windows 10
- Unity Version [e.g. 2022.3.1f1]
- Plugin Version [e.g. 0.1.0]
Additional context Is this because the recording doesn't end there? Or when setting a clip length it creates a file that long and fills it up with data? How could this be achieved to have a conversation and not wait until the timer ends?
It seems this issue is still present -- I am running into the same thing today. Did you find a way around it?
edit: Unity Version: 2022.3.19f1 Plugin version: 0.2.0 OS: Windows 11