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

Invalid input device #7

Open
trytofly94 opened this issue Apr 23, 2023 · 0 comments
Open

Invalid input device #7

trytofly94 opened this issue Apr 23, 2023 · 0 comments

Comments

@trytofly94
Copy link

When I have the app running and press the key combination I get this OSError.
Is there a way to set the input device to the standard input of the system?

Listening...
Exception in thread Thread-20:
Traceback (most recent call last):
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/threading.py", line 973, in _bootstrap_inner
    self.run()
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/threading.py", line 910, in run
    self._target(*self._args, **self._kwargs)
  File "/Users/lennart/whisper-dictation/whisper-dictation.py", line 47, in _record_impl
    stream = p.open(format=pyaudio.paInt16,
  File "/Users/lennart/whisper-dictation/venv/lib/python3.9/site-packages/pyaudio/__init__.py", line 639, in open
    stream = PyAudio.Stream(self, *args, **kwargs)
  File "/Users/lennart/whisper-dictation/venv/lib/python3.9/site-packages/pyaudio/__init__.py", line 441, in __init__
    self._stream = pa.open(**arguments)
OSError: [Errno -9996] Invalid input device (no default output device)
Transcribing...
Done.

Thanks!

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

1 participant