Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@ task = client.video_to_sfx.submit(
audio_format="wav",
)
result = client.tasks.wait(task.task_id, poll_interval=2.0, timeout=600.0)
result.save("audio.wav")
result.save("with_audio.mp4", which="video") # video-to-sfx also returns the muxed video
result.save("audio.wav") # video-to-sfx returns the generated audio only
```

`tasks.get(task_id)` fetches state once and never raises on a failed task;
Expand Down
2 changes: 2 additions & 0 deletions src/sonilo/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ class SfxResult:
status: str
type: Optional[str] = None
audio: Optional[SfxMedia] = None
# video-to-sfx now returns audio only; `video` is kept for backward
# compatibility but is no longer populated by the API.
video: Optional[SfxMedia] = None
cost: Optional[float] = None
error: Optional[Dict[str, Any]] = None
Expand Down
Loading