Repository navigation
Persisting chapter labels across Audacity CLI calls and checking a rejected range #756
FenjuFu
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I had two timestamped edit notes and wanted chapter labels I could reopen from a fresh process. I used the Audacity harness in CLI-Anything to own the timestamps and project file. A local llama.cpp server running Spark-X2.6-1.7B-GGUF supplied just the label text.
The detail that made separate CLI invocations work was passing
--project markers.jsonon every subsequent call. Omitting the end time produced a point with zero duration. Supplying both endpoints produced a 6.5-second range.Reproduce on a fresh project. I used Windows 11, Python 3.12.10, CLI-Anything commit
34f519533bc175d2fe287ab8316b0dd99bb9cc43, and Q4_K_M from model revisionc4bc25be0e537d55266d90a08bdef931f4cf580a. From a checkout at that commit, install the harness in a virtual environment and start the CPU server in a separate terminal, substituting your local GGUF filename.What survived a bad edit? I reversed the second range in a third call:
cli-anything-audacity --json --project markers.json label add 14.75 --end 8.25 --text "Invalid range"The command exited with code 1 and returned
Label end (8.25) must be >= start (14.75). The project file had the same SHA-256 before and after the rejected write. Reopening it in another process returned both original labels.This exercise covers chapter metadata in the harness JSON project using two written example notes. The timecodes came from the inputs. Audio transcription, waveform alignment, rendering and import into the Audacity desktop app remain untested.
All reactions