8000 GitHub - Eikewi/CLAP: CLAP is your Local Audio Partner (CLAP)
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Eikewi/CLAP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 < 8000 /div>
 
 
 
 
 
 
 

Repository files navigation

ollama

CLAP

An awesome voice assistant with a keyword-detection-neural-network running on an Arduino and a configurable AI-Pipeline!

Arduino

What you need:

  • ei-clap-arduino-1.0.8.zip included as ZIP-Library in Arduino IDE
  • A working Arduino Nano 33 BLE Sense Rev2
  • A USB-to-Micro-USB cable
  • A working computer with USB ports

Demo Video

demo.mov

Keyword-Detection

Transition: Starts automatically at first and restarts after it receives 2 or '2' in serial

LED: #f03c15 Green

Serial: Empty, when SHOW_RESULTS is false

Stream-Audio

Transition: When keyword was detected starts automatically

LED: #f03c15 Red

Serial: All the info

Audio-Stopped

Transition: Starts when it receives 1 or '1' in serial

LED: #f03c15 Blue

Serial: Empty

Getting Started

Python

Tested on Python v3.12.3 Download-Link

Packages

For Linux and Windows

pip install pyserial numpy pydub openai-whisper pyttsx3 python-dotenv openai

For MacOS

pip install pyserial numpy pydub whisper-mps pyttsx3 python-dotenv openai

Ollama

Download-Link

ffmpeg

Linux: sudo apt-get update && sudo apt-get install ffmpeg

Windows: winget install "FFmpeg (Essentials Build)"

MacOS: brew install ffmpeg

OpenAI API Key

Add that key into a .env-file within CLAP like OPENAI_API_KEY=<secret-key-we-dont-share-on-github>

Running the python script

Simply run pipeline.py in CLAP/pipeline

Things that you can modify

useOpenAI in the first lines of pipeline.py can be set to True, if you want to have ChatGPT as the LLM, it is using Ollama in case it is set to False.

About

CLAP is your Local Audio Partner (CLAP)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
0