Skip to content

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

Open

Description

@unleashed7

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?

Activity

  1. sipkode commented on May 30, 2024

    @sipkode

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions