-
Notifications
You must be signed in to change notification settings - Fork 58
Explicit --format is ignored when --output has a recognized extension #21
Copy link
Copy link
Closed
Labels
P2Normal priority bug or improvement with limited blast radius.Normal priority bug or improvement with limited blast radius.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.This issue has meaningful maintainer-visible impact outside the owned taxonomy.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Description
Metadata
Metadata
Assignees
Labels
P2Normal priority bug or improvement with limited blast radius.Normal priority bug or improvement with limited blast radius.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.This issue has meaningful maintainer-visible impact outside the owned taxonomy.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Hi, I hit a format precedence bug in
sag0.4.0.Repro
Expected:
out.mp3is requested/generated asmp3_44100_192.Actual: the saved file is still 128 kbps.
I also verified the same ElevenLabs format directly against the API (
output_format=mp3_44100_192) and that returns a true 192 kbps MP3, so the mismatch appears to be in sag's CLI/request construction rather than ElevenLabs.Root cause
cmd/speak.gocurrently re-infers the format from--outputunconditionally:--output out.mp3resetsopts.outputFmtback to the inferred.mp3default (mp3_44100_128)--formatwas explicitly setThat contradicts the docs, which say explicit
--formatshould win.Proposed fix
Only infer from the output extension when
--formatwas not explicitly provided. I have a small patch + regression test ready and will open a PR right after filing this.