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

[Speech not recognized] it stops at audio = r.listen(source) #31

Open
manami-bunbun opened this issue Jun 14, 2023 · 1 comment
Open

Comments

@manami-bunbun
Copy link

Hello, firstly, thank you for the development!

This could be a hardware issue rather than code, but I would like to ask you a question as no matter how many solutions I have tried, it does not resolve the issue.

Issue

Sometimes the voice is not recognized for about 2 hours.

Where the problem occurs

In cli.py, line 51, audio = r.listen(source) in record_audio() does not work.

Environment

Macbook M2 Air, (I tried python3.9, 3.10, 3.11)

Steps so far

After the first smooth use of whisper-mic, it stopped working about 24 hours later.
For that, the following method works occasionally.

  • pip install whisper-mic again
  • turn off permission for microphone once from control panel on macbook and turn it on and restart
    However, even if it works occasionally with these methods, it stops after about 2 hours.

The following methods did not work.

  • simply restart

  • shut down macbook and wait for 1mins , then start (for pram things)

  • reduce noise reduction (r.adjust_for_ambient_noise(source,duration=1))

  • Specify device_index, with sr.Microphone(device_index = None / also in 3 after checking)

  • For Speech recognition, python3 -m speech_recognition used in sr part doesn't work either

  • Create an environment with venv and try again -> it stops with "say something...".

  • Create an environment with pipenv and try again -> stops with "say something..." * Create an environment with docker and try again -> stops with "say something...

  • Create an environment with docker and try again

I've been stuck in this problem for 3 weeks.
I appreciate your any help!!

@mallorbc
Copy link
Owner

Does this still happen with the latest release?

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