summaryrefslogtreecommitdiffstats
path: root/Evaluate/setup.ps1
blob: 0741aebc385385eb7850560ac8a7130afa589229 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
cp ../x64/Debug/WhisperCLI.exe .
cp ../x64/Debug/Whisper.dll .

$MODEL_URL = "https://huggingface.co/datasets/ggerganov/whisper.cpp/resolve/main/ggml-medium.bin"
$MODEL_FILE = $(Split-Path -Path $MODEL_URL -Leaf)
if (-Not (Test-Path $MODEL_FILE)) {
  echo "Fetch model"
  Invoke-WebRequest $MODEL_URL -OutFile $MODEL_FILE
}

$AUDIO_URL = "https://www.archive.org/download/usconstitution_1610_librivox/constitution_01_unitedstates_64kb.mp3"
#$AUDIO_URL = "https://www.archive.org/download/usconstitution_1610_librivox/constitution_02_unitedstates_128kb.mp3"
$AUDIO_FILE = $(Split-Path -Path $AUDIO_URL -Leaf)
if (-Not (Test-Path $AUDIO_FILE)) {
  echo "Fetch audio"
  Invoke-WebRequest $AUDIO_URL -OutFile $AUDIO_FILE
}