Skip to content

Instantly share code, notes, and snippets.

View JarbasAl's full-sized avatar
🏠
Working from home

JarbasAI JarbasAl

🏠
Working from home
View GitHub Profile
@JarbasAl
JarbasAl / busmon.py
Created November 15, 2024 12:42
OVOS live bus monitor utility
import threading
from ovos_bus_client import MessageBusClient, Message
from ovos_bus_client.session import SessionManager
from rich.console import Console
from rich.table import Table
console = Console()
@JarbasAl
JarbasAl / color.md
Last active November 10, 2024 00:35

What does this have to do with voice?

  • "change the lamp color to moss green"
  • "make it darker"
  • "more saturated"
  • "a bit more yellowish"
  • "perfect"

NOTE: physicists are huge nerds, so they might say something like "change the lamp wave lenght to X nanometers", this is a terrible way to talk about color and innacurate but we also added basic support for this

HiveMind Server Setups

When building your HiveMind servers there are many ways to go about it, with many optional components

Common setups:

  • OVOS Device, a full OVOS install without hivemind
  • Hivemind Device, a OVOS device also running hivemind, eg. a Mark2 with it's own satellites.
  • Hivemind Skills Server, a minimal HiveMind server that satellites can connect to, supports text utterances only
Feature HiveMind Voice Satellite HiveMind Voice Relay HiveMind Microphone Satellite
Use Case Full voice satellite with local processing Offloads voice processing to HiveMind Listener, better suited for secure environments Super lightweight satellite for remote audio streaming
Audio Processing Local (STT, TTS, Wake Word, VAD) STT and TTS handled on HiveMind Listener Wake Word, STT and TTS handled on HiveMind Listener
Server Requirements Req
@JarbasAl
JarbasAl / number_parsing_pt.py
Created October 8, 2024 15:46
extracting numbers from portuguese text
import enum
from dataclasses import dataclass
from typing import List, Iterable, Union, Optional, Tuple
from quebra_frases import word_tokenize
class DisambiguationStrategy(enum.IntEnum):
ASSUME_ORDINALS = 0
ASSUME_FRACTIONS = 1
import dataclasses
import logging
import os
import re
import tempfile
import warnings
from typing import List, Iterable, Optional, Union, Tuple
import numpy as np
from json_database import JsonStorage
import re
from typing import List, Optional
def sotaque_minho(text: str) -> str:
words = text.split()
for idx, w in enumerate(words):
# Substituição do som 'v' por 'b'. exemplos: Vila-Bila, Votar-Botar, Dívida-Díbida.
w = _v2b(w)
@JarbasAl
JarbasAl / triples.py
Last active December 4, 2024 01:54
extract triples with spacy and https://spacy.io/universe/project/coreferee
from typing import Tuple, Dict, List
import spacy
from spacy.cli import download
from spacy.tokens import Token
class DependencyParser:
def __init__(self):
self.NEGATION = {"no", "not", "n't", "never", "none"}