You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit afaa1c3
Browse filesBrowse the repository at this point in the historyBrowse files
feat: make duration optional on text-to-music and text-to-sfx (#41)
The API resolves an omitted duration itself, so the client's job is to leave
the field out rather than invent a number:
* text-to-music infers the length from the prompt, or from `segments` when
they are given (the last segment's start plus 30 seconds).
* text-to-sfx generates its own default length (8 seconds).
Both builders sent `duration` unconditionally, so passing None would have put
the literal string "None" on the wire; they now omit the field.
text-to-sfx's duration is also a float now, not an int: the API's minimum is
0.5 seconds, and the shortest effects -- a latch, a click, a single footstep --
run well under a second.
sonilo 0.17.0 -> 0.18.0, sonilo-cli 0.16.0 -> 0.17.0, with the CLI's narrow
core pin widened to match. `--duration` is optional on both CLI commands.
0 commit comments