Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting lengthSec longer than duration, ending it early, causes strange behavior #86

Open
unleashed7 opened this issue Sep 29, 2023 · 1 comment

Comments

@unleashed7
Copy link

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:

  1. clip = Microphone.Start(dropdown.options[index].text, false, 89, 44100);
  2. Fire Microphone.End(null) before the time limit

Expected behavior
Should end the recording and process it.

Screenshots

  1. Said "1 2 3 4 5 6 7 8" only, but the transcript repeats it multiple times and sent even a URL back.
    Screenshot 2023-09-29 121035

  2. Said "1 2 3 4 3 2 1" only, but the transcript not only repeated it, it started counting up out of nowhere.
    Screenshot 2023-09-29 115604

  3. Said "1 2 3 4 3 2 1" only, but in the transcript was repeated many times
    Screenshot 2023-09-29 123031

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?

@sipkode
Copy link

sipkode commented May 30, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants