summaryrefslogtreecommitdiffstats
path: root/GUI/Libraries
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2023-02-26 20:12:36 -0800
committeryum <yum.food.vr@gmail.com>2023-02-26 20:12:36 -0800
commitd96851f716b9e18d827ba7795a343dbf3cf529c4 (patch)
tree64e437c54f4e39048d3a169b619272f998dd1386 /GUI/Libraries
parent61681895c14923f20dbd21aa821f4d2be8f7635d (diff)
Improve behavior around VAD segmentation events
Use forked Whisper implementation which has tweaks to reduce dropped words around the beginning VAD segments. * Retain audio after VAD segmentation events
Diffstat (limited to 'GUI/Libraries')
-rw-r--r--GUI/Libraries/fetch.ps126
1 files changed, 6 insertions, 20 deletions
diff --git a/GUI/Libraries/fetch.ps1 b/GUI/Libraries/fetch.ps1
index ac9ccd5..d71ce44 100644
--- a/GUI/Libraries/fetch.ps1
+++ b/GUI/Libraries/fetch.ps1
@@ -12,10 +12,6 @@ $WX_3_2_1_URL = "https://github.com/wxWidgets/wxWidgets/releases/download/v3.2.1
$WX_URL = $WX_3_2_1_URL
$WX_FILE = $(Split-Path -Path $WX_URL -Leaf)
-$WHISPER_1_7_0_URL = "https://github.com/Const-me/Whisper/releases/download/1.7.0/Library.zip"
-$WHISPER_URL = $WHISPER_1_7_0_URL
-$WHISPER_FILE = $(Split-Path -Path $WHISPER_URL -Leaf)
-
pushd $PSScriptRoot
# WX
@@ -31,24 +27,14 @@ if (-Not (Test-Path wx)) {
popd > $null
}
-if ((Test-Path whisper) -And ($overwrite)) {
- rm -Recurse whisper
-}
-if (-Not (Test-Path whisper)) {
- mkdir whisper
- pushd whisper > $null
- Invoke-WebRequest $WHISPER_URL -OutFile $WHISPER_FILE
- Expand-Archive $WHISPER_FILE -DestinationPath .
- if (Test-Path ../../GUI/GUI/whisper/) {
- rm -Recurse ../../GUI/GUI/whisper/
- }
- mkdir ../../GUI/GUI/whisper/
- cp Include/*.h ../../GUI/GUI/whisper/
- cp Linker/*.lib ../../GUI/GUI/whisper/Whisper.lib
- cp Binary/*.dll ../../GUI/GUI/whisper/Whisper.dll
- popd > $null
+if (Test-Path ../GUI/GUI/whisper/) {
+ rm -Recurse ../GUI/GUI/whisper/
}
+mkdir ../GUI/GUI/whisper/
+cp ../../TaSTT-Whisper/Whisper/API/*.h ../GUI/GUI/whisper/
+cp ../../TaSTT-Whisper/x64/Release/Whisper.lib ../GUI/GUI/whisper/
+
popd > $null # $PSScriptRoot