Skip to content

Instantly share code, notes, and snippets.

View bfpill's full-sized avatar
🤘

max bfpill

🤘
  • undergrad @ the university of melbourne
  • 09:13 (UTC -12:00)
View GitHub Profile
@thomwolf
thomwolf / fast_speech_text_speech.py
Last active July 30, 2024 14:56
speech to text to speech
""" To use: install LLM studio (or Ollama), clone OpenVoice, run this script in the OpenVoice directory
git clone https://github.com/myshell-ai/OpenVoice
cd OpenVoice
git clone https://huggingface.co/myshell-ai/OpenVoice
cp -r OpenVoice/* .
pip install whisper pynput pyaudio
"""
from openai import OpenAI
import time
@PotOfCoffee2Go
PotOfCoffee2Go / cellular automata RLE parser.md
Last active March 15, 2024 08:52
Javascript cellular automata RLE parser

RLE parser usage

See the RLE section for definition of RLE format.

This class expects the (extended) RLE input to be correctly formatted. It is a two state parser, thus multi-state RLE will not parse properly.

The output this.pattern is a string with spaces(dead)/zero(alive) with lines separated by '\n'.