• Stefy Lanza (nextime / spora )'s avatar
    return the timings whisper.cpp sends · 56af3f00
    Stefy Lanza (nextime / spora ) authored
    Every whisper.cpp model answered with text and nothing else -- no segments, no
    words -- while the HF and Vosk backends on the same endpoint returned both,
    which reads as whisper being the broken one. Two reasons, in sequence: the
    server was never asked for a verbose reply, and the route passed a hard-coded
    empty segment list to _finalize whatever came back.
    
    So the server is asked for verbose_json (one extra form field, ignored by a
    caller that wanted plain json), and the reply is mapped in both shapes it comes
    in: OpenAI-style "segments" in float seconds, and whisper.cpp's own
    "transcription" entries whose "offsets" are MILLISECONDS -- read as seconds
    those would place a 2-second clip 2000 s in. Per-word entries are picked up from
    the top level or from inside each segment, wherever a DTW build puts them.
    
    Nothing is invented: a field the server did not send stays missing. And when
    word timings were REQUESTED but none came back, that is now said out loud,
    because whisper.cpp emits them only with DTW enabled and a silent empty list is
    indistinguishable from a model that found no speech.
    Co-Authored-By: 's avatarClaude Opus 5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_014T3rZozi1Ehk96NG1WesgC
    56af3f00
Name
Last commit
Last update
codai Loading commit data...
docs Loading commit data...
packaging Loading commit data...
samples Loading commit data...
tests Loading commit data...
third_party Loading commit data...
tools Loading commit data...
.dockerignore Loading commit data...
.gitignore Loading commit data...
AI.PROMPT Loading commit data...
CODERAI_API_DOCUMENTATION.md Loading commit data...
CoderAI.gif Loading commit data...
DISTRIBUTION.md Loading commit data...
LICENSE.md Loading commit data...
MULTIMODAL_CAPABILITIES.md Loading commit data...
MULTIMODAL_UI_EXAMPLES.md Loading commit data...
README.md Loading commit data...
REQUEST-geoclip-embeddings.md Loading commit data...
REQUEST-vpr-embeddings.md Loading commit data...
amdgpu-coredump-05000.bin Loading commit data...
build-oci.sh Loading commit data...
build.ps1 Loading commit data...
build.sh Loading commit data...
coderai Loading commit data...
coderai-broker-implementation-reference.md Loading commit data...
coderai-integration.md Loading commit data...
commands Loading commit data...
osxbuild.sh Loading commit data...
package-oci.sh Loading commit data...
package-tarball.sh Loading commit data...
requirements-acestep.txt Loading commit data...
requirements-crisperwhisper.txt Loading commit data...
requirements-h3.txt Loading commit data...
requirements-latentsync.txt Loading commit data...
requirements-longcat-train.txt Loading commit data...
requirements-longcat.txt Loading commit data...
requirements-melotts.txt Loading commit data...
requirements-musetalk.txt Loading commit data...
requirements-nemo.txt Loading commit data...
requirements-nvidia.txt Loading commit data...
requirements-ocr-paddle.txt Loading commit data...
requirements-ocr.txt Loading commit data...
requirements-parler.txt Loading commit data...
requirements-pyannote.txt Loading commit data...
requirements-surya.txt Loading commit data...
requirements-vllm.txt Loading commit data...
requirements-vulkan.txt Loading commit data...
requirements-xtts.txt Loading commit data...
requirements.txt Loading commit data...
run-oci.sh Loading commit data...
smoke-test-oci.sh Loading commit data...
todo.md Loading commit data...