tcz / rotary-gpt

I turned my old rotary phone into a ChatGPT-based home assistant and now you can too
MIT License
43 stars 8 forks source link

: [Errno 2] No such file or directory: '/tmp/conversation.wav' #5

Closed MacINN01 closed 8 months ago

MacINN01 commented 8 months ago

picked up the phone and got this:
self._target(*self._args, **self._kwargs) File "C:\Users\ethan\Downloads\rotary-gpt-main\rotary-gpt-main\rotarygpt\sip.py", line 37, in start self._handle_request(request) File "C:\Users\ethan\Downloads\rotary-gpt-main\rotary-gpt-main\rotarygpt\sip.py", line 135, in _handle_request callback(request.from_address[0], port) File "C:\Users\ethan\Downloads\rotary-gpt-main\rotary-gpt-main\rotarygpt.py", line 33, in start_rpt rtp_sender = RTPSender(shared_socket, ip, port, audio_queue_out) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\ethan\Downloads\rotary-gpt-main\rotary-gpt-main\rotarygpt\rtp.py", line 53, in init self.file = open('/tmp/conversation.wav', 'wb') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: '/tmp/conversation.wav'

tcz commented 8 months ago

Most likely the /tmp directory doesn't exist. You need to create it. Sorry, this was developed on Mac/Linux so the /tmp is usually there.

MacINN01 commented 8 months ago

thanks! That seemed to do the trick. I have just one more question, Now I'm getting an API key fails where do I import my API keys?

tcz commented 8 months ago

As described in the README file, API keys are configured as environmental variables. On Windows you can do it like this: https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/set_1