Giter Club home page Giter Club logo

apex's Introduction

Apex, Your New Personal Assistant

2023 Hackathon for STEM Club

How It Works

This project takes advantage of Cloudflare's new Workers AI, Meta LLaMA, OpenAI Whisper, and ElevenLabs.io.

When using the client, your voice will first be uploaded to the server, converted into an MP3 using ffmpeg, and transcribed into text using OpenAI Whisper.

After finding the raw text, it will then be run through LLaMA, to create a response to the query. This is where the PocketBase instance comes in, being used for storing message logs and chat history, for the AI to have conversation context.

Then, this response will be sent to ElevenLabs, in order to be processed as a natural sounding human voice to playback to the user.

Requirements

For this project, you will need:

  • A free Cloudflare account
  • A free ElevenLabs.io account
  • A computer or cloud server with NodeJS 16+ and ffmpeg installed
  • A PocketBase instance, run locally, or hosted (ex. pockethost.io)

Organization

This monorepo is organized into a two folders.

Client

This is the SvelteKit client used to access Apex.

Server

This is the server to be run on your personal computer, or a cloud server.

Environment Variables

Server

Note that ELEVENLABS_API is optional, but it will restrict the ability for Apex to talk.

ELEVENLABS_API=
CLOUDFLARE_ACCOUNT=
CLOUDFLARE_API=
PB_EMAIL=
PB_PASSWORD=
Client

This is the URL used to access your server.

Note that VITE_INSPARE_MUSIC_KEY is optional, but it will restrict music playback.

VITE_API_URL=
VITE_INSPARE_MUSIC_KEY=

apex's People

Contributors

directlycrazy avatar

Stargazers

 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.