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

Does not work on Export #62

Closed Blackout4344 closed 8 months ago

Blackout4344 commented 8 months ago

The speech to text works fine in the editor, but on export, it doesn't work and gives me these errors.

Godot version: 4.2.1 OS: MacOS Sonoma 14.2.1, M1

Screenshot 2024-03-14 at 3 29 55 PM
Ughuuu commented 8 months ago

On export to what platform? On export to macos? or iOS? are there any there errors?

Ughuuu commented 8 months ago

If it's export to iOS it's related to this, I'm working on it: https://github.com/V-Sekai/godot-whisper/issues/60

Blackout4344 commented 8 months ago

On export to what platform? On export to macos? or iOS? are there any there errors?

For MacOS, and the only errors are

SCRIPT ERROR: Parse Error: Could not resolve class "StreamToText".
          at: GDScript::reload (res://addons/godot_whisper/capture_stream_to_text.gd:0)
ERROR: Failed to load script "res://addons/godot_whisper/capture_stream_to_text.gd" with error "Parse error".
   at: load (modules/gdscript/gdscript.cpp:2788)
ERROR: whisper_backend_init: ggml_backend_metal_init() failed
Ughuuu commented 8 months ago

Is it debug or release export for macOS?

Edit: Reproduced it locally with debug build.

Blackout4344 commented 8 months ago

Is it debug or release export for macOS?

Edit: Reproduced it locally with debug build.

I'm not exactly sure what you mean, but I think it's debug

Ughuuu commented 8 months ago

I created bug on godot-cpp side, seems to come from there: https://github.com/godotengine/godot-cpp/issues/1414 For now as workaround I will hide the problem in godot-whisper by not extending a class more than once from GDExtension.