Giter VIP home page Giter VIP logo

gwaggli's Introduction

Gwaggli

Gwaggli is a simple voice processing tool. It consists of the following components:

  • gwaggli-events: An event system that allows to read and write gwaggli events
  • gwaggli-insights: A web application to show the results of the processing
  • gwaggli-pipeline: A pipeline to process voice streams in real time and output useful information

Installation & Usage

Preparation

Setup an AWS account with permissions to run Amazon Polly and add the credentials into the following file:

./gwaggli-pipeline/.aws/config.json

{
  "accessKeyId": "<YOUR-ACCESS-KEY-ID>",
  "secretAccessKey": "<YOUR-SECRET-ACCESS-KEY>",
  "region": "eu-central-1"
}

Add the OpenAI API-Key to the following file:

./gwaggli-pipeline/.openai/config.json

{
  "apiKey": "<YOUR-API-KEY>
}

Add the Replicate API-Key to the following file:

./gwaggli-pipeline/.replicate/config.json

{
  "apiKey": "<YOUR-API-KEY>
}

Add the elevenlabs.io API-Key to the following file:

./gwaggli-pipeline/.elevenlabs/config.json

{
  "apiKey": "<YOUR-API-KEY>
}

Running the project

Run the following command to install all dependencies:

npm install

Run the following command to build all relevant components:

npm run build

Run the following command to start the application:

npm run start

If you want to start the application with live-reload, run the following command:

npm run dev

gwaggli's People

Contributors

sflepp avatar dependabot[bot] avatar frnkst avatar

Stargazers

Andreas Landerer avatar

Watchers

 avatar  avatar

gwaggli's Issues

Remove memory leak in audio-buffering.ts

audio-buffering.ts is using an in-memory buffer to store all AudioChunks.

This has been done for simplicity but does not scale well, since it fills up memory and is heavy in processing. The whole buffer gets converted to base64 with every new AudioChunk that gets passed trough the EventSystem

To improve the functionality, implement the following idea:

  • Remove the audio-buffering.ts and integrate it directly into voice-activation.ts
  • Implement a ring buffer which has just enough space to fit the observed window-size for voice-activation while it is not active
  • As soon as voice activation is active, fill a dynamically sized buffer with the active voice data
  • Pass data along and clear this active buffer as soon as the voice activation detecs end of active voice data

Good first task ;)

Bin mich noch ein bisschen am einlesen. Wie wärs wenn ich mal als Erstes einen Build mit Github Actions aufsetze? Oder besteht kein Interesse dafür?

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.