SevaSk / ecoute

Ecoute is a live transcription tool that provides real-time transcripts for both the user's microphone input (You) and the user's speakers output (Speaker) in a textbox. It also generates a suggested response using OpenAI's GPT-3.5 for the user to say based on the live transcription of the conversation.
https://github.com/SevaSk/ecoute
MIT License
5.89k stars 827 forks source link

An error occurred while Running Ecoute #39

Closed ravichandrachevula04 closed 1 year ago

ravichandrachevula04 commented 1 year ago

after executing the command "python main.py" I came across below issue

Screenshot 2023-05-30 183200

SevaSk commented 1 year ago

Did you install the requirements?

ravichandrachevula04 commented 1 year ago

Yes, I did.

  1. Installed Python 3.11
  2. Created an account in Open AI and took its Open API Key.
  3. Installing this on Windows OS
  4. Installed FFmpeg

Did I do it right ?

SevaSk commented 1 year ago

Do you do this command? image

ravichandrachevula04 commented 1 year ago

I uninstalled and installed everything from the scratch and I can see below warnings

Screenshot 2023-05-30 203644

and for your above comment, that commend was not working for me so I have used below python -m pip install -r requirement.txt

SevaSk commented 1 year ago

Not really sure, try using the whisper import in a simple script and go from there.

ravichandrachevula04 commented 1 year ago

I did a small mistake in my installation now I found the cause and I fixed it, but now I'm facing below issue. Can you please look into it ?

Screenshot 2023-05-30 211046

SevaSk commented 1 year ago

You need to run that command

python -c "with open('keys.py', 'w', encoding='utf-8') as f: f.write('OPENAI_API_KEY=\"API KEY\"')"

in the terminal

the file should look like:

OPENAI_API_KEY="API KEY"

ravichandrachevula04 commented 1 year ago

After completing 3rd installation point

  1. I have created a keys.py (in notepad++ as UTF-8 - manually) file saved it in Ecoute folder
  2. The file contain my OPENAI_API_KEY="API KEY"
  3. I have executed below command python -c "with open('keys.py', 'w', encoding='utf-8') as f: f.write('OPENAI_API_KEY=\"API KEY\"')"
  4. and I see below issue

Screenshot 2023-05-30 220036

Am I missing something here ?

SevaSk commented 1 year ago

If you have a keys.py file containing OPENAI_API_KEY="API KEY" with you actual key then run ecoute and it should work