Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
C
coderai
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexlab
coderai
Commits
d343d706
Commit
d343d706
authored
Mar 09, 2026
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Debug: Show whisper.cpp CLI command in debug mode
parent
a388b95e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
coderai
coderai
+17
-1
No files found.
coderai
View file @
d343d706
...
...
@@ -2655,14 +2655,30 @@ async def create_transcription(
try:
import subprocess
# Determine the model path
model_path = model_to_use if os.path.isfile(model_to_use) else None
if not model_path:
# Check cache for downloaded model
cached = get_cached_model_path(model_to_use)
if cached and os.path.isfile(cached):
model_path = cached
print(f"DEBUG: Whisper model: {model_to_use}")
print(f"DEBUG: Whisper model path (resolved): {model_path}")
# Run whisper.cpp CLI
cmd = [whisper_cpp_path, "--model", model_to_use, "--output", "/tmp/whisper_output.txt", tmp_path]
cmd = [whisper_cpp_path]
if model_path:
cmd.extend(["--model", model_path])
cmd.extend(["--output", "/tmp/whisper_output.txt", tmp_path])
# Add Vulkan device if specified
audio_vulkan_device = getattr(global_args, '
audio_vulkan_device
', 0)
if audio_vulkan_device is not None:
cmd.extend(["--device", str(audio_vulkan_device)])
print(f"DEBUG: Running whisper.cpp command: {'
'.join(cmd)}")
result = subprocess.run(cmd, capture_output=True, text=True, timeout=300)
if result.returncode == 0:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment