8000 GitHub - topher515/aiframe
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

topher515/aiframe

Repository files navigation

AI Frame

An eInk picture frame that you can describe the picture you want, and it will display it.

Designed for Inky Impression's 5.7" 7 color eInk display.

It uses Google API speech to text to transform your words into text; it uses OpenAI's Dalle to AI generate the prompt into an iamge.

Setup APIs

Dev Setup on Mac

  • run pipenv install
  • install pyaudio with:
    • CFLAGS="-I/opt/homebrew/include -L/opt/homebrew/lib" python3 -m pip install pyaudio
    • or, maybe: CFLAGS="-I/opt/homebrew/include -L/opt/homebrew/lib" pipenv install pyaudio

Setup RPi

  • Setup ssh: export RPI_IP={the rpi ip address}

  • SSH to RPi

  • curl https://get.pimoroni.com/ink | bash

  • Install some packages:

    • sudo apt-get install portaudio19-dev (support for pyaudio)
  • Then manually use pip3 to install all the stuff in Pipfile (pipenv isnt working on my rpi as of now)

  • Deploy (i.e., "copy") software to rpi (from host): ./deploy.sh

  • Enable the service on RPi:

    • sudo cp aiframe.service /etc/systemd/system/
    • sudo systemctl enable aiframe # So it starts on startup
    • sudo systemctl start aiframe
    • sudo systemctl status aiframe # Check the status
    • tail -f /var/log/aiframe.log # Tail the logs
  • Add ENV VARS to service:

[Service]
Environment="OPENAPI_BEARER_TOKEN=sess-dYH.....hfFdkA"
Environment="GOOGLE_APPLICATION_CREDENTIALS='/home/pi/app/speech-to-text-key.json'"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0