Skip to content

Commit

Permalink
Merge pull request #30 from TechSmith/update/whispercpp-1.6.2
Browse files Browse the repository at this point in the history
Update whisper.cpp to 1.6.2
  • Loading branch information
mike-malburg authored Jun 10, 2024
2 parents b61a946 + 657ebd6 commit 2e41b0b
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 13 deletions.
20 changes: 14 additions & 6 deletions custom-ports/whispercpp/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,23 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO ggerganov/whisper.cpp
REF e72e4158debb04126a0fabedf0452a5551780ea0
SHA512 67939e665542931a75a5ea05a873e5e0a73fc18b443720bcfeb340eb7e39818937c0078976320d9799f0643d8759a64adcb2da371e072f1053232802c1c107af
REF "v${VERSION}"
SHA512 17e0485fb93fdea1a89f584a64db35f05371e0b8710a539f0dffca30bd3a2fff44c72ea754556566ca3cc55415b1e8f2bb868665437f5c93b9ce666b4fe53fb3
HEAD_REF master
)

vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
)
if(APPLE)
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
OPTIONS
-DWHISPER_METAL_EMBED_LIBRARY=ON
-DWHISPER_METAL_NDEBUG=ON
)
else()
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
)
endif()

vcpkg_install_cmake()
vcpkg_copy_pdbs()
Expand Down
2 changes: 1 addition & 1 deletion custom-ports/whispercpp/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "whispercpp",
"version": "1.5.4",
"version": "1.6.2",
"port-version": 1,
"description": "A high-performance inference of OpenAI's Whisper automatic speech recognition (ASR) model.",
"homepage": "https://github.com/ggerganov/whisper.cpp",
Expand Down
7 changes: 5 additions & 2 deletions custom-steps/whispercpp/post-build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ if(-not (Get-Module -Name $moduleName)) {
Import-Module "$ModulesRoot/$moduleName" -Force -DisableNameChecking
}

if((Get-IsOnWindowsOS)) {
if ((Get-IsOnMacOS)) {
Remove-DylibSymlinks -BuildArtifactsPath $BuildArtifactsPath
}
elseif((Get-IsOnWindowsOS)) {
Update-VersionInfoForDlls -buildArtifactsPath $buildArtifactsPath -versionInfoJsonPath "$PSScriptRoot/version-info.json"
}
}
8 changes: 4 additions & 4 deletions custom-steps/whispercpp/version-info.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"files": [
{
"filename": "bin/whisper.dll",
"fileDescription": "Whisper speech recognition",
"fileVersion": "1.5.4",
"fileDescription": "High-performance inference of OpenAI's Whisper automatic speech recognition (ASR) model.",
"fileVersion": "1.6.2",
"productName": "WhisperCpp",
"productVersion": "1.5.4",
"copyright": "Copyright (c) 2023 Georgi Gerganov"
"productVersion": "1.6.2",
"copyright": "Copyright (c) 2023-2024 The ggml authors"
}
]
}

0 comments on commit 2e41b0b

Please sign in to comment.