-
-
Notifications
You must be signed in to change notification settings - Fork 153
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
Unable to open the microphone #58
Comments
I ran the source code, and it is working fine. it seems that the snap installation process has the issues described above. |
Try this:
|
me neither. I have tried snap and python installation with python 3.11.6 and no way. Audio Input: Exception: 'NoneType' object has no attribute 'agent_call'
Type: AttributeErrorMessage: 'NoneType' object has no attribute 'agent_call'
Traceback: File "/home/user/.pyenv/versions/3.11.6/envs/my-pygpt-env/lib/python3.11/site-packages/pygpt_net/plugin/audio_input/worker.py", line 82, in handle_simple
self.response(transcript)
File "/home/user/.pyenv/versions/3.11.6/envs/my-pygpt-env/lib/python3.11/site-packages/typing_extensions.py", line 2853, in wrapper
return arg(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^
File "/home/user/.pyenv/versions/3.11.6/envs/my-pygpt-env/lib/python3.11/site-packages/pygpt_net/plugin/base/worker.py", line 74, in response
self.reply(response, extra_data)
File "/home/user/.pyenv/versions/3.11.6/envs/my-pygpt-env/lib/python3.11/site-packages/pygpt_net/plugin/base/worker.py", line 84, in reply
if self.ctx.agent_call and self.plugin is not None:
^^^^^^^^^^^^^^^^^^^ System Report DetailsReport Details
Hardware Information:
Software Information:
|
Please try again, the bug mentioned above has been fixed in recent versions (although it has nothing to do with microphone access, and connecting slots in the Snap version is still necessary). |
damn me too i tried hours of troubleshooting. i guess i will look for alternative. jpegg files arent working either. This program worked yesterday on manjaro. Awsome program too |
Has anyone figured this audio issue out yet...??? i am also having an issue just using the basic Chat feature in gpt-4o, or gpt-4, getting this error = Error code: 404 - {'error': {'message': 'The model ...and this is what i get when trying the audio input = Exception: int() argument must be a string, a bytes-like object or a real number, not 'NoneType' ....and when i go to setting in PyGPT there is no mic to chose from, but yet in the OS settings i see all the mics and they work fine on every other program using a mic.... ...and i do use the - sudo snap connect pygpt:audio-record :audio-record ...and still no mic shows up or works....HELP PLEASE...!!! My OS = Zorin OS 17.2 Pro/Ubuntu based |
Just to chime in, the no Mic issue is still hitting me with the snap install on Mint 22. Will test against a manual compile when I have some spare time. |
is this NOT the place to go for support...???? Don't seem to be getting any at all here.... |
Try to connect Alsa if this is not connected yet:
and
|
I have submitted a request for auto-connecting the alsa and audio-record interfaces to Canonical/Snapcraft: https://forum.snapcraft.io/t/request-auto-connect-for-snap-pygpt/44708 Waiting for the Snapcraft team to consider it. |
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
The text was updated successfully, but these errors were encountered: