Skip to content

Instantly share code, notes, and snippets.

View AbduEhab's full-sized avatar
🪐
A monke in space

Abdelrahman Ehab AbduEhab

🪐
A monke in space
  • Mercedes-Benz Sindelfingen
  • Stuttgart, Germany
  • X @itsabduehab
View GitHub Profile
@AbduEhab
AbduEhab / wisper.py
Created August 12, 2023 11:35
Wisper quick library lyrics generator
import whisper
import os
# Replace with the path to your input folder
input_folders = ['/mnt/d/OST/Land of the Lustrous/Disk 02/temp']
model_name = 'medium' # Replace with the model name you want to use
print(f'Loading model: {model_name}')
model = whisper.load_model(model_name)
@AbduEhab
AbduEhab / convert_to_opus.bat
Last active May 4, 2023 15:12
This is a bat file that transcodes all audio files in a directory into `.opus` files. I use this neat script to sync my `.flac` library with my mobile library.
@echo off
rem Copies the original directory structure from F:\Music to D:\Music
rem xcopy /T %1 %2
Robocopy %1 %2 /E /XF *.flac *.mp3 *.mp4
for /R %1 %%i in (*.flac;*.mp3;*.mp4) do (
rem check if file exists