Commit 4c24c7b9 authored by Your Name's avatar Your Name

Add debug output for whispercpp import errors

parent 966fad45
...@@ -3875,8 +3875,8 @@ def main(): ...@@ -3875,8 +3875,8 @@ def main():
elif os.path.exists('/dev/dri'): elif os.path.exists('/dev/dri'):
whisper_vulkan_available = True whisper_vulkan_available = True
print(f"Whisper Vulkan: Auto-detected GPU, will use device {whisper_vulkan_device}") print(f"Whisper Vulkan: Auto-detected GPU, will use device {whisper_vulkan_device}")
except ImportError: except ImportError as e:
pass print(f"Debug: whispercpp import failed: {e}")
try: try:
import whispercpp import whispercpp
...@@ -3941,9 +3941,9 @@ def main(): ...@@ -3941,9 +3941,9 @@ def main():
else: else:
print(f"Warning: Could not pre-load audio model with whispercpp: {e}") print(f"Warning: Could not pre-load audio model with whispercpp: {e}")
print("Audio model will load on-demand when transcription is requested.") print("Audio model will load on-demand when transcription is requested.")
except ImportError: except ImportError as e:
# Neither faster-whisper nor whispercpp available # Neither faster-whisper nor whispercpp available
print("Warning: No audio transcription library available.") print(f"Warning: No audio transcription library available: {e}")
print("Options:") print("Options:")
print(" 1. Install PyTorch + faster-whisper: pip install torch faster-whisper") print(" 1. Install PyTorch + faster-whisper: pip install torch faster-whisper")
print(" 2. Use a built-in whispercpp model: --audio-model base") print(" 2. Use a built-in whispercpp model: --audio-model base")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment