balena

BALanced Execution through Natural Activation : a human-computer interaction methodology for code running.

https://github.com/louisbrulenaudet/balena

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (15.5%) to scientific vocabulary

Keywords

execution python3 sentence-similarity sentence-transformers speech-recognition speech-to-function speech-to-text terminal transformers wav2vec2
Last synced: 6 months ago · JSON representation ·

Repository

BALanced Execution through Natural Activation : a human-computer interaction methodology for code running.

Basic Info
  • Host: GitHub
  • Owner: louisbrulenaudet
  • License: apache-2.0
  • Language: Python
  • Default Branch: main
  • Homepage: https://lemone.io
  • Size: 229 KB
Statistics
  • Stars: 7
  • Watchers: 1
  • Forks: 1
  • Open Issues: 0
  • Releases: 1
Topics
execution python3 sentence-similarity sentence-transformers speech-recognition speech-to-function speech-to-text terminal transformers wav2vec2
Created about 2 years ago · Last pushed about 2 years ago
Metadata Files
Readme Funding License Citation Security

README.md

BALanced Execution through Natural Activation : a human-computer interaction methodology for code running.

Python License Maintainer

BALENA is a voice interaction framework utilizing state-of-the-art natural language processing and audio processing models to create a system that can interpret voice commands and associate them with predefined actions. The framework leverages the power of transformers and signal processing to understand user intent via spoken language and correlates them with a series of predefined actionable responses.

Plot

Features

  • Real-time audio streaming and recording: Record audio from the microphone in real time for processing.
  • Speech recognition with Wav2Vec 2.0: Use a pre-trained Wav2Vec 2.0 model to convert speech to text.
  • Text similarity and action triggering: Encode the transcribed text to a vector space and find the closest action using sentence similarity techniques.
  • High-pass filtering: Process the audio signal with a high-pass filter to enhance signal quality.
  • Auto-correction: Utilize the Jaccard distance to correct words in the transcribed text auto-magically.
  • Framework flexibility: Support for different device execution contexts, allowing for usage on both CPU and CUDA devices.

Dependencies

Below is a list of the main dependencies for Speech2Interact: - ssl: To handle SSL/TLS encryption for establishing secure connections. - time: For timing operations, such as streaming duration. - warnings: To manage runtime warnings produced during execution. - nltk: Utilized for natural language processing tasks like Jaccard distance calculations. - numpy: Provides support for large, multi-dimensional arrays and matrices, along with a collection of mathematical functions to operate on these arrays. - pyaudio: Allows for real-time audio recording and playback. - scipy: Used for signal processing, including applying the high-pass filter. - torch: An open-source machine learning framework that accelerates the path from research prototyping to production deployment. - transformers: Provides thousands of pre-trained models to perform tasks on texts such as classification, information extraction, question answering, and more. - sentence_transformers: A Python framework for state-of-the-art sentence and text embeddings.

Pre-trained Models

  • Wav2Vec 2.0: facebook/wav2vec2-large-960h
  • Sentence Similarity: sentence-transformers/all-mpnet-base-v2

Usage

Here's how you can use apple-ocr:

  1. Installation: Install the required libraries, including Torch, NumPy...
  2. Initialization: Create an instance of the OCR class, providing an image to be processed.

```python from balena.hci import Speech2Interact

actions = { "validate": [ "confirm", "approve", "verify", "validate", "authenticate", "ratify", "endorse", "certify", "pass", "authorize", "accredit", "yes" ], "invalidate": [ "reject", "deny", "invalidate", "disapprove", "refuse", "void", "nullify", "revoke", "discredit", "disqualify", "abrogate", "annul", "no" ] }

instance = Speech2Interact( actions=actions, wav2vecmodel="facebook/wav2vec2-large-960h", sentencesimilarity_model="sentence-transformers/all-mpnet-base-v2" )

action = instance.recognizespeech( duration=3 ) `` Therecognizespeech` function captures audio for a set duration, processes the audio, and attempts to match the spoken words with a predefined action.

Citing this project

If you use this code in your research, please use the following BibTeX entry.

```BibTeX @misc{louisbrulenaudet2023, author = {Louis Brulé Naudet}, title = {BALanced Execution through Natural Activation : a human-computer interaction methodology for code running}, howpublished = {\url{https://github.com/louisbrulenaudet/balena}}, year = {2023} }

```

Feedback

If you have any feedback, please reach out at louisbrulenaudet@icloud.com.

Owner

  • Name: Louis Brulé Naudet
  • Login: louisbrulenaudet
  • Kind: user
  • Location: Paris
  • Company: Université Paris-Dauphine (Paris Sciences et Lettres - PSL)

Research in business taxation and development (NLP, LLM, Computer vision...), University Dauphine-PSL 📖 | Backed by the Microsoft for Startups Hub program

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Brulé Naudet"
  given-names: "Louis"
  orcid: "https://orcid.org/0000-0001-9111-4879"
title: "BALanced Execution through Natural Activation : a human-computer interaction methodology for code running"
version: 1.0.0
date-released: 2023-12-31

GitHub Events

Total
  • Watch event: 1
Last Year
  • Watch event: 1

Issues and Pull Requests

Last synced: about 1 year ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Dependencies

pyproject.toml pypi