Skip to content

Commit

Permalink
correct path
Browse files Browse the repository at this point in the history
  • Loading branch information
Ughuuu committed Nov 25, 2023
1 parent c32e585 commit f692689
Show file tree
Hide file tree
Showing 12 changed files with 95 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ env.Prepend(CPPPATH=["thirdparty", "include"])
env.Append(CPPPATH=["src/"])
env.Append(CPPDEFINES=['WHISPER_SHARED', 'GGML_SHARED'])
sources = [Glob("src/*.cpp")]
sources.extend([Glob("libsamplerate/src/*.c"), Glob("thirdparty/whisper.cpp/*.c"), Glob("thirdparty/whisper.cpp/whisper.cpp")])
sources.extend([Glob("thirdparty/libsamplerate/src/*.c"), Glob("thirdparty/whisper.cpp/*.c"), Glob("thirdparty/whisper.cpp/whisper.cpp")])
if env["platform"] == "macos":
library = env.SharedLibrary(
"bin/addons/godot_whisper/bin/libgodot_whisper.{}.{}.framework/libgodot_whisper.{}.{}".format(
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleExecutable</key>
<string>libgodot_whisper.macos.template_debug</string>
<key>CFBundleIdentifier</key>
<string>org.godot_whisper.godot_whisper</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>Godot_Whisper</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0.0</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>MacOSX</string>
</array>
<key>NSHumanReadableCopyright</key>
<string>Copyright (c) 2022-present Ricardo Buring and Dragos Daian.</string>
<key>CFBundleVersion</key>
<string>1.0.0</string>
<key>LSMinimumSystemVersion</key>
<string>10.12</string>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleExecutable</key>
<string>libgodot_whisper.macos.template_release</string>
<key>CFBundleIdentifier</key>
<string>org.godot_whisper.godot_whisper</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>Godot_Whisper</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0.0</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>MacOSX</string>
</array>
<key>NSHumanReadableCopyright</key>
<string>Copyright (c) 2022-present Ricardo Buring and Dragos Daian.</string>
<key>CFBundleVersion</key>
<string>1.0.0</string>
<key>LSMinimumSystemVersion</key>
<string>10.12</string>
</dict>
</plist>
28 changes: 28 additions & 0 deletions demo/addons/godot_whisper/godot_whisper.gdextension
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[configuration]

entry_symbol = "godot_whisper_library_init"
compatibility_minimum = 4.1
reloadable = true

[libraries]

macos.debug = "res://addons/godot_whisper/bin/libgodot_whisper.macos.template_debug.framework"
macos.release = "res://addons/godot_whisper/bin/libgodot_whisper.macos.template_release.framework"
ios.debug = "res://addons/godot_whisper/bin/libgodot_whisper.ios.template_debug.arm64.dylib"
ios.release = "res://addons/godot_whisper/bin/libgodot_whisper.ios.template_release.arm64.dylib"
windows.debug.x86_32 = "res://addons/godot_whisper/bin/libgodot_whisper.windows.template_debug.x86_32.dll"
windows.release.x86_32 = "res://addons/godot_whisper/bin/libgodot_whisper.windows.template_release.x86_32.dll"
windows.debug.x86_64 = "res://addons/godot_whisper/bin/libgodot_whisper.windows.template_debug.x86_64.dll"
windows.release.x86_64 = "res://addons/godot_whisper/bin/libgodot_whisper.windows.template_release.x86_64.dll"
linux.debug.x86_64 = "res://addons/godot_whisper/bin/libgodot_whisper.linux.template_debug.x86_64.so"
linux.release.x86_64 = "res://addons/godot_whisper/bin/libgodot_whisper.linux.template_release.x86_64.so"
android.debug.x86_64 = "res://addons/godot_whisper/bin/libgodot_whisper.android.template_debug.x86_64.so"
android.release.x86_64 = "res://addons/godot_whisper/bin/libgodot_whisper.android.template_release.x86_64.so"
android.debug.x86_32 = "res://addons/godot_whisper/bin/libgodot_whisper.android.template_debug.x86_32.so"
android.release.x86_32 = "res://addons/godot_whisper/bin/libgodot_whisper.android.template_release.x86_32.so"
android.debug.arm64 = "res://addons/godot_whisper/bin/libgodot_whisper.android.template_debug.arm64.so"
android.release.arm64 = "res://addons/godot_whisper/bin/libgodot_whisper.android.template_release.arm64.so"
android.debug.arm32 = "res://addons/godot_whisper/bin/libgodot_whisper.android.template_debug.arm32.so"
android.release.arm32 = "res://addons/godot_whisper/bin/libgodot_whisper.android.template_release.arm32.so"
web.debug.wasm32 = "res://addons/godot_whisper/bin/libgodot_whisper.web.template_debug.wasm32.wasm"
web.release.wasm32 = "res://addons/godot_whisper/bin/libgodot_whisper.web.template_release.wasm32.wasm"
5 changes: 5 additions & 0 deletions demo/addons/godot_whisper/plugin.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[plugin]

name="Godot Whisper"
description="OpenAI's Whisper model in Godot using Whipser.CPP"
version="0.1"
2 changes: 1 addition & 1 deletion demo/project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ config_version=5

config/name="Speech Voip Demo"
run/main_scene="res://vsk_speech/scenes/entry_point.tscn"
config/features=PackedStringArray("4.2", "Double Precision")
config/features=PackedStringArray("4.2")
config/icon="res://icon.png"

[audio]
Expand Down
4 changes: 4 additions & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
scons target=template_debug generate_bindings=no arch=arm64 dev_build=yes
rm -rf demo/addons
cp -rf bin/addons demo/addons

0 comments on commit f692689

Please sign in to comment.