yum-archive/TaSTT-Whisper
High-performance GPGPU inference of OpenAI's Whisper automatic speech recognition (ASR) model
git clone https://git.yummers.dev/yum-archive/TaSTT-Whisper
aaa0188
master
1 2cp ../x64/Debug/WhisperCLI.exe . 3cp ../x64/Debug/Whisper.dll . 4 5$MODEL_URL ="https://huggingface.co/datasets/ggerganov/whisper.cpp/resolve/main/ggml-medium.bin" 6$MODEL_FILE = $(Split-Path -Path$MODEL_URL -Leaf) 7if (-Not (Test-Path $MODEL_FILE )) { 8echo "Fetch model" 9Invoke-WebRequest $MODEL_URL -OutFile$MODEL_FILE 10} 11 12$AUDIO_URL ="https://www.archive.org/download/usconstitution_1610_librivox/constitution_01_unitedstates_64kb.mp3" 13#$AUDIO_URL = "https://www.archive.org/download/usconstitution_1610_librivox/constitution_02_unitedstates_128kb.mp3" 14$AUDIO_FILE = $(Split-Path -Path$AUDIO_URL -Leaf) 15if (-Not (Test-Path $AUDIO_FILE )) { 16echo "Fetch audio" 17Invoke-WebRequest $AUDIO_URL -OutFile$AUDIO_FILE 18}