szczyglis-dev / py-gpt

Desktop AI Assistant powered by GPT-4, GPT-4 Vision, GPT-3.5, DALL-E 3, Langchain, Llama-index, chat, vision, voice control, image generation and analysis, autonomous agents, code and command execution, file upload and download, speech synthesis and recognition, access to Web, memory, prompt presets, plugins, assistants & more. Linux, Windows, Mac.
https://pygpt.net
MIT License
449 stars 92 forks source link

Unable to open the microphone #58

Open kernelhacks opened 3 weeks ago

kernelhacks commented 3 weeks ago

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 commented 3 weeks ago

I ran the source code, and it is working fine. it seems that the snap installation process has the issues described above.