V-Sekai / godot-whisper

An GDExtension addon for the Godot Engine that enables realtime audio transcription, supports OpenCL for most platforms, Metal for Apple devices, and runs on a separate thread.
MIT License
69 stars 7 forks source link

Quest 3: Not loading libOpenCL #83

Open luckybit4755 opened 2 days ago

luckybit4755 commented 2 days ago

I copied the addon from Godot_Whisper.zip (md5:21746d4bb59dea36eb1159447d9b8539) into a blank project running on the quest native version of godot. It fails to load on startup:

  Can't open dynamic library: /.../addons/godot_whisper/bin/libgodot_whisper.android.template_release.arm64.so. Error: dlopen failed: cannot locate symbol "clGetPlatformIDs" referenced by "/data/data/org.godotengine.editor.v4.meta/cache/dynamic_libraries/.../addons/godot_whisper/bin/libgodot_whisper.android.template_release.arm64.so"....
  Can't open GDExtension dynamic library: res://addons/godot_whisper/godot_whisper.gdextension
  res://addons/godot_whisper/audio_stream_to_text.gd:4 - Parse Error: Could not find base class "SpeechToText".
  modules/gdscript/gdscript.cpp:3005 - Failed to load script "res://addons/godot_whisper/audio_stream_to_text.gd" with error "Parse error".
  res://addons/godot_whisper/capture_stream_to_text.gd:3 - Parse Error: Could not find base class "SpeechToText".
  modules/gdscript/gdscript.cpp:3005 - Failed to load script "res://addons/godot_whisper/capture_stream_to_text.gd" with error "Parse error".

The libOpenCL shared objects live here

/system/vendor/lib/libOpenCL.so                 /system/vendor/lib64/libOpenCL.so
/system/vendor/lib/libOpenCL_adreno.so  /system/vendor/lib64/libOpenCL_adreno.so

It seems like it must be a Godot library path issue, but I have no idea how to resolve it. Perhaps it is an export issue?