mirror of
https://github.com/chidiwilliams/buzz.git
synced 2024-06-29 05:00:21 +02:00
Fix Whisper.cpp on Windows (#422)
This commit is contained in:
parent
cb5ad74620
commit
66bd9a1834
|
@ -7,4 +7,4 @@ omit =
|
||||||
directory = coverage/html
|
directory = coverage/html
|
||||||
|
|
||||||
[report]
|
[report]
|
||||||
fail_under = 68
|
fail_under = 76
|
||||||
|
|
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
|
@ -72,6 +72,12 @@ jobs:
|
||||||
sudo apt install -y libpulse-mainloop-glib0 libegl1-mesa-dev libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev libportaudio2
|
sudo apt install -y libpulse-mainloop-glib0 libegl1-mesa-dev libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev libportaudio2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$RUNNER_OS" == "Windows" ]; then
|
||||||
|
curl -OL "https://github.com/ggerganov/whisper.cpp/releases/download/v1.3.0/whisper-bin-x64.zip"
|
||||||
|
unzip whisper-bin-x64.zip
|
||||||
|
mv main.exe whisper_cpp.exe
|
||||||
|
fi
|
||||||
|
|
||||||
poetry run make test
|
poetry run make test
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
|
@ -146,7 +152,11 @@ jobs:
|
||||||
poetry run make bundle_mac
|
poetry run make bundle_mac
|
||||||
|
|
||||||
elif [ "$RUNNER_OS" == "Windows" ]; then
|
elif [ "$RUNNER_OS" == "Windows" ]; then
|
||||||
|
|
||||||
|
curl -OL "https://github.com/ggerganov/whisper.cpp/releases/download/v1.3.0/whisper-bin-x64.zip"
|
||||||
|
unzip whisper-bin-x64.zip
|
||||||
|
mv main.exe whisper_cpp.exe
|
||||||
|
|
||||||
poetry run make bundle_windows
|
poetry run make bundle_windows
|
||||||
|
|
||||||
elif [ "$RUNNER_OS" == "Linux" ]; then
|
elif [ "$RUNNER_OS" == "Linux" ]; then
|
||||||
|
|
|
@ -52,7 +52,6 @@ class TestRecordingTranscriber:
|
||||||
assert 'Bienvenue dans Passe' in text
|
assert 'Bienvenue dans Passe' in text
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.skipif(platform.system() == 'Windows', reason='whisper_cpp not printing segments on Windows')
|
|
||||||
class TestWhisperCppFileTranscriber:
|
class TestWhisperCppFileTranscriber:
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
'word_level_timings,expected_segments',
|
'word_level_timings,expected_segments',
|
||||||
|
|
Loading…
Reference in a new issue