py-gpt icon indicating copy to clipboard operation
py-gpt copied to clipboard

Unable to open the microphone

Open kernelhacks opened this issue 8 months ago • 1 comments

Hi I'm unable to open the MIC on the APP, this is the error

Exception: [Errno -9996] Invalid input device (no default output device) Type: OSErrorMessage: [Errno -9996] Invalid input device (no default output device) Traceback: File "/snap/pygpt/238/src/pygpt_net/plugin/audio_input/simple.py", line 88, in start_recording self.stream = self.p.open(format=pyaudio.paInt16, File "/snap/pygpt/238/lib/python3.10/site-packages/pyaudio/init.py", line 639, in open stream = PyAudio.Stream(self, *args, **kwargs) File "/snap/pygpt/238/lib/python3.10/site-packages/pyaudio/init.py", line 441, in init self._stream = pa.open(**arguments)

I thought that the issues were related to Pyaudio so I tested the Pyaudio library with a little script to record my voice and is working, so I'm not sure what is causing this. My Environment: OS: Ubuntu 22.04.4 LTS CPU: Intel® Xeon(R) CPU E5-2690 v4 @ 2.60GHz × 56 Mem: 128 Python Ver: 3

kernelhacks avatar Jun 14 '24 05:06 kernelhacks