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

Incomplete phrase overwritten by new text #74

Open
MatrikMoon opened this issue Feb 20, 2025 · 1 comment
Open

Incomplete phrase overwritten by new text #74

MatrikMoon opened this issue Feb 20, 2025 · 1 comment

Comments

@MatrikMoon
Copy link

Hi there! Thanks for this awesome tool! My only question is, is this line supposed to be this way?

transcription[-1] = text

If I say a long phrase, the beginning parts are overwritten until I stop. Changing it to

transcription[-1] += text

seems to yield results I understand.

Thanks!

@Schamp1
Copy link

Schamp1 commented Feb 22, 2025

First, increase the --record_timeout argument. This is the maximum length of a recording file.

Then, set the pause_threshold (pause in seconds to determine when the speech ends) of the recorder like this:

recorder.pause_threshold = 1 # waits one second of silence before determining if the speech ended

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