Skip to content

Instantly share code, notes, and snippets.

View arturbosch's full-sized avatar

Artur Bosch arturbosch

  • 20:05 (UTC +02:00)
View GitHub Profile
@arturbosch
arturbosch / table.py
Created January 8, 2024 12:20
asr evaluation table using jiwer for WER and CER
import argparse
from jiwer import cer
from jiwer import transforms as tr
from jiwer import wer
wer_pipe = tr.Compose(
[
tr.ToLowerCase(),
tr.RemovePunctuation(),
@arturbosch
arturbosch / process_wav_whispers.py
Last active January 8, 2024 12:17
whisper speech-to-text
from pathlib import Path
import whisper
# CHANGE THE MODEL HERE: use "base" or "medium"
MODEL_NAME = "base"
MODEL = whisper.load_model(MODEL_NAME)
with open(MODEL_NAME + ".txt", "a", encoding="utf-8") as result_file:
@arturbosch
arturbosch / onedark.rofi
Created August 24, 2020 18:40 — forked from hatoba29/onedark.rofi
onedark Rofi theme (customed by me)
/*
* ROFI One Dark
*
* Based on OneDark.vim (https://github.com/joshdick/onedark.vim)
*
* Author: Benjamin Stauss
* User: me-benni
* Edit: hatoba29
*
*/