Adri6336 / gpt-voice-conversation-chatbot

Allows you to have an engaging and safely emotive spoken / CLI conversation with the AI ChatGPT / GPT-4 while giving you the option to let it remember things discussed.
GNU General Public License v3.0
298 stars 50 forks source link

how ido i get this to run? #10

Closed bot199proverbs closed 1 year ago

bot199proverbs commented 1 year ago

sorry for being a noob

Adri6336 commented 1 year ago

Heyo! It's all good yo, I'm happy to help if I can.

Are you having issues getting the things you need (like the API key), starting the bot (like trying python main.py but having it not work), or installing the other requirements?

bot199proverbs commented 1 year ago

Hey thank you very much

I can't seem to get pyaudio to recognize an audio input, I can get the bot working on the textninput

I'm running it all in codespace

On Sat, 25 Mar 2023, 05:07 Adrian, @.***> wrote:

Heyo! It's all good yo, I'm happy to help if I can.

Are you having issues getting the things you need (like the API key), starting the bot (like trying python main.py but having it not work), or installing the other requirements?

— Reply to this email directly, view it on GitHub https://github.com/Adri6336/gpt-voice-conversation-chatbot/issues/10#issuecomment-1483054031, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6WOXY6WU2COFLBOKMDE343W5XBDVANCNFSM6AAAAAAWGPPIS4 . You are receiving this because you authored the thread.Message ID: @.***>

Adri6336 commented 1 year ago

I think the issue might be caused by running it in codespace. GitHub codespace is a cloud hosted virtual machine, which means it does not have access to your microphone. This bot needs to be ran on your computer directly to work for the most part.

Try installing it with the steps listed in the readme file on your computer. I think that may solve your issue

bot199proverbs commented 1 year ago

I will try that next dude Thank you so much for coming back to me

I'm just a noob but I'm really excited by what you built here

On Sat, 25 Mar 2023, 13:28 Adrian, @.***> wrote:

I think the issue might be caused by running it in codespace. GitHub codespace is a cloud hosted virtual machine, which means it does not have access to your microphone. This bot needs to be ran on your computer directly to work for the most part.

Try installing it with the steps listed in the readme file on your computer. I think that may solve your issue

— Reply to this email directly, view it on GitHub https://github.com/Adri6336/gpt-voice-conversation-chatbot/issues/10#issuecomment-1483632939, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6WOXY6TZVYQVVXKU5C6LVTW5Y33RANCNFSM6AAAAAAWGPPIS4 . You are receiving this because you authored the thread.Message ID: @.***>

Adri6336 commented 1 year ago

Np yo, I'm happy to help! Please be sure to let me know if it works for you

bot199proverbs commented 1 year ago

So I rebuild it in vs code , now the terminal stalls with a red square window..... terminal reads Session Created With Ai

On Sat, 25 Mar 2023, 13:41 Adrian, @.***> wrote:

Np yo, I'm happy to help! Please be sure to let me know if it works for you

— Reply to this email directly, view it on GitHub https://github.com/Adri6336/gpt-voice-conversation-chatbot/issues/10#issuecomment-1483638429, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6WOXY7SAE3KJN2PVLMPBE3W5Y5MHANCNFSM6AAAAAAWGPPIS4 . You are receiving this because you authored the thread.Message ID: @.***>

bot199proverbs commented 1 year ago

Nothing is happening beyond that

On Sat, 25 Mar 2023, 16:12 Bot Shed, @.***> wrote:

So I rebuild it in vs code , now the terminal stalls with a red square window..... terminal reads Session Created With Ai

On Sat, 25 Mar 2023, 13:41 Adrian, @.***> wrote:

Np yo, I'm happy to help! Please be sure to let me know if it works for you

— Reply to this email directly, view it on GitHub https://github.com/Adri6336/gpt-voice-conversation-chatbot/issues/10#issuecomment-1483638429, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6WOXY7SAE3KJN2PVLMPBE3W5Y5MHANCNFSM6AAAAAAWGPPIS4 . You are receiving this because you authored the thread.Message ID: @.***>

Adri6336 commented 1 year ago

So that's a good sign! Try pressing your space bar when you have that square open and focused (sometimes you may need to click on it). If the color changes to green, try saying something. It may take a couple of tries

bot199proverbs commented 1 year ago

It says Error trying to speak errno 13 permission denied

On Sat, 25 Mar 2023, 16:29 Adrian, @.***> wrote:

So that's a good sign! Try pressing your space bar when you have that square open and focused (sometimes you may need to click on it). If the color changes to green, try saying something. It may take a couple of tries

— Reply to this email directly, view it on GitHub https://github.com/Adri6336/gpt-voice-conversation-chatbot/issues/10#issuecomment-1483705178, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6WOXYYCEUQE6YFVFPKYW3DW5ZRA3ANCNFSM6AAAAAAWGPPIS4 . You are receiving this because you authored the thread.Message ID: @.***>

Adri6336 commented 1 year ago

That may be an issue with the installed playsound version. Try running this command:

pip install playsound==1.2.2
Adri6336 commented 1 year ago

Also you may need to uninstall it before you reinstall it. You can do this with:

pip uninstall playsound
bot199proverbs commented 1 year ago

Second I thought as much but I did manage to get play sound to play an MP3 file on my computer

On Sat, 25 Mar 2023, 16:38 Adrian, @.***> wrote:

Also you may need to uninstall it before you reinstall it. You can do this with:

pip uninstall playsound

— Reply to this email directly, view it on GitHub https://github.com/Adri6336/gpt-voice-conversation-chatbot/issues/10#issuecomment-1483707137, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6WOXY3JBX2DK7MEQHA7VHDW5ZSEPANCNFSM6AAAAAAWGPPIS4 . You are receiving this because you authored the thread.Message ID: @.***>

bot199proverbs commented 1 year ago

Got it's working!!!!! Hahahahaha it's alive

On Sat, 25 Mar 2023, 16:49 Bot Shed, @.***> wrote:

Second I thought as much but I did manage to get play sound to play an MP3 file on my computer

On Sat, 25 Mar 2023, 16:38 Adrian, @.***> wrote:

Also you may need to uninstall it before you reinstall it. You can do this with:

pip uninstall playsound

— Reply to this email directly, view it on GitHub https://github.com/Adri6336/gpt-voice-conversation-chatbot/issues/10#issuecomment-1483707137, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6WOXY3JBX2DK7MEQHA7VHDW5ZSEPANCNFSM6AAAAAAWGPPIS4 . You are receiving this because you authored the thread.Message ID: @.***>

Adri6336 commented 1 year ago

Noice, I'm super happy it's working on your end! Hope you enjoy it

bot199proverbs commented 1 year ago

You sir ....are a legend!

On Sat, 25 Mar 2023, 16:55 Adrian, @.***> wrote:

Closed #10 https://github.com/Adri6336/gpt-voice-conversation-chatbot/issues/10 as completed.

— Reply to this email directly, view it on GitHub https://github.com/Adri6336/gpt-voice-conversation-chatbot/issues/10#event-8844535922, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6WOXYYS2M4URFJ6NNWPJ5TW5ZUDFANCNFSM6AAAAAAWGPPIS4 . You are receiving this because you authored the thread.Message ID: <Adri6336/gpt-voice-conversation-chatbot/issue/10/issue_event/8844535922@ github.com>