Skip to content

release: v1.0.13 — audio format validation & lint cleanup#128

Merged
RyanLee-Dev merged 3 commits intomainfrom
release/1.0.13
May 11, 2026
Merged

release: v1.0.13 — audio format validation & lint cleanup#128
RyanLee-Dev merged 3 commits intomainfrom
release/1.0.13

Conversation

@RyanLee-Dev
Copy link
Copy Markdown
Collaborator

Summary

  • Centralized audio format validation with per-API domain format sets
    • T2A: mp3, pcm, flac, wav, pcmu_raw, pcmu_wav, opus
    • Music: mp3, wav, pcm
  • Auto-select compatible sample rate per format (opus → 24kHz, pcmu_* → 8kHz)
  • Enforce wav non-streaming constraint for T2A
  • Dynamic help text generated from format lists
  • Fix all pre-existing lint errors across test files
  • Bump version to 1.0.13

Supersedes #116

Verified by real API calls

Command Result
speech synthesize mp3/opus/pcmu_raw/pcmu_wav/stream/subtitles All pass
speech invalid format / wav+stream Correctly rejected
music generate mp3/wav/pcm All pass
music generate flac/opus Correctly rejected
image generate Pass
video generate Pass
text chat Pass
search query Pass
quota show / auth status / config Pass
bun test 191 pass, 0 fail bun run lint 0 errors

Test plan

  • 191 unit tests pass
  • Lint clean
  • Build produces 133KB CLI + 115KB SDK
  • All commands verified with real API calls

opus defaults to 24000 Hz, pcmu_raw/pcmu_wav default to 8000 Hz.
Explicit --sample-rate still takes precedence.
Real API testing confirmed music only supports mp3, wav, pcm.
@RyanLee-Dev RyanLee-Dev merged commit 65aed9c into main May 11, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant