Skip to content

Instantly share code, notes, and snippets.

View xavierfiechter's full-sized avatar

Xavier Fiechter xavierfiechter

View GitHub Profile
@xavierfiechter
xavierfiechter / yt-whisper
Created March 18, 2023 22:52 — forked from jooray/yt-whisper
A script to download an audio from a video from a streaming platform such as youtube and transcribe it to text using whisper.cpp
#!/bin/bash
# Usage: yt-whisper URL [OUTPUT_FILENAME_TEMPLATE [LANGUAGE]]
# If OUTPUT_FILENAME_TEMPLATE is empty, output is yt-whisper-video
# If LANGAUGE is empty, it is set to "auto"
# General settings (paths) for whisper.cpp
# Note - this uses whisper.cpp, not official whisper. Get it at
# https://github.com/ggerganov/whisper.cpp
# You will have to adjust these