Giter Site home page Giter Site logo

aavato-c / 20231124_ai_voice_camera_demo Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 19 KB

A set of scripts to capture pictures from a webcam feed and then getting the description of them from openai. After that, we covert the text to speech using Elevenlabs.

License: MIT License

Python 100.00%
api elevenlabs narration openai python tts video webcam

20231124_ai_voice_camera_demo's Introduction

Elevenlabs webcam descriptor

The source is quite simple. Go ahead and check it out, I don't think it's necessary to explain everything here but in short:

  • This will save frames from your webcam and store them in the media -folder
    • The most current frame will be updated
  • The other app makes calls to openai to get a description of the image, then send a request to elevenlabs to make a dub.
    • The sound files will also be stored

To start using this little thing do the following:

  • Make a venv using python3.8
    • python3.8 venv -m venv
  • Activate the environment
    • source venv/bin/activate
  • Install dependencies
    • pip install -r requirements.txt
  • Make your own env
    • You can use the env.example provided, remove the .example extension and fill in your api keys
  • Run the save_video_frames.py
    • python3 save_video_frames.py
  • Run the main_app.py
    • python3 main_app.py
  • Enjoy

Made with a mac M1

20231124_ai_voice_camera_demo's People

Contributors

aavato-c avatar

Stargazers

Christian Hochfilzer avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.