sonilo 0.2.0__tar.gz → 0.2.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sonilo-0.2.0 → sonilo-0.2.1}/PKG-INFO +2 -3
- {sonilo-0.2.0 → sonilo-0.2.1}/README.md +1 -2
- {sonilo-0.2.0 → sonilo-0.2.1}/pyproject.toml +1 -1
- {sonilo-0.2.0 → sonilo-0.2.1}/src/sonilo/types.py +2 -0
- {sonilo-0.2.0 → sonilo-0.2.1}/.github/workflows/ci.yml +0 -0
- {sonilo-0.2.0 → sonilo-0.2.1}/.github/workflows/publish.yml +0 -0
- {sonilo-0.2.0 → sonilo-0.2.1}/.gitignore +0 -0
- {sonilo-0.2.0 → sonilo-0.2.1}/LICENSE +0 -0
- {sonilo-0.2.0 → sonilo-0.2.1}/examples/generate.py +0 -0
- {sonilo-0.2.0 → sonilo-0.2.1}/examples/sfx.py +0 -0
- {sonilo-0.2.0 → sonilo-0.2.1}/src/sonilo/__init__.py +0 -0
- {sonilo-0.2.0 → sonilo-0.2.1}/src/sonilo/_async_client.py +0 -0
- {sonilo-0.2.0 → sonilo-0.2.1}/src/sonilo/_client.py +0 -0
- {sonilo-0.2.0 → sonilo-0.2.1}/src/sonilo/_requests.py +0 -0
- {sonilo-0.2.0 → sonilo-0.2.1}/src/sonilo/_streaming.py +0 -0
- {sonilo-0.2.0 → sonilo-0.2.1}/src/sonilo/_version.py +0 -0
- {sonilo-0.2.0 → sonilo-0.2.1}/src/sonilo/errors.py +0 -0
- {sonilo-0.2.0 → sonilo-0.2.1}/src/sonilo/py.typed +0 -0
- {sonilo-0.2.0 → sonilo-0.2.1}/src/sonilo/resources/__init__.py +0 -0
- {sonilo-0.2.0 → sonilo-0.2.1}/src/sonilo/resources/account.py +0 -0
- {sonilo-0.2.0 → sonilo-0.2.1}/src/sonilo/resources/tasks.py +0 -0
- {sonilo-0.2.0 → sonilo-0.2.1}/src/sonilo/resources/text_to_music.py +0 -0
- {sonilo-0.2.0 → sonilo-0.2.1}/src/sonilo/resources/text_to_sfx.py +0 -0
- {sonilo-0.2.0 → sonilo-0.2.1}/src/sonilo/resources/video_to_music.py +0 -0
- {sonilo-0.2.0 → sonilo-0.2.1}/src/sonilo/resources/video_to_sfx.py +0 -0
- {sonilo-0.2.0 → sonilo-0.2.1}/tests/__init__.py +0 -0
- {sonilo-0.2.0 → sonilo-0.2.1}/tests/test_async_client.py +0 -0
- {sonilo-0.2.0 → sonilo-0.2.1}/tests/test_errors.py +0 -0
- {sonilo-0.2.0 → sonilo-0.2.1}/tests/test_requests.py +0 -0
- {sonilo-0.2.0 → sonilo-0.2.1}/tests/test_sfx.py +0 -0
- {sonilo-0.2.0 → sonilo-0.2.1}/tests/test_sfx_async.py +0 -0
- {sonilo-0.2.0 → sonilo-0.2.1}/tests/test_sfx_types.py +0 -0
- {sonilo-0.2.0 → sonilo-0.2.1}/tests/test_streaming.py +0 -0
- {sonilo-0.2.0 → sonilo-0.2.1}/tests/test_sync_client.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sonilo
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.1
|
|
4
4
|
Summary: Official Python client for the Sonilo API
|
|
5
5
|
Project-URL: Repository, https://github.com/sonilo-ai/sonilo-python
|
|
6
6
|
Author: Sonilo AI
|
|
@@ -107,8 +107,7 @@ task = client.video_to_sfx.submit(
|
|
|
107
107
|
audio_format="wav",
|
|
108
108
|
)
|
|
109
109
|
result = client.tasks.wait(task.task_id, poll_interval=2.0, timeout=600.0)
|
|
110
|
-
result.save("audio.wav")
|
|
111
|
-
result.save("with_audio.mp4", which="video") # video-to-sfx also returns the muxed video
|
|
110
|
+
result.save("audio.wav") # video-to-sfx returns the generated audio only
|
|
112
111
|
```
|
|
113
112
|
|
|
114
113
|
`tasks.get(task_id)` fetches state once and never raises on a failed task;
|
|
@@ -90,8 +90,7 @@ task = client.video_to_sfx.submit(
|
|
|
90
90
|
audio_format="wav",
|
|
91
91
|
)
|
|
92
92
|
result = client.tasks.wait(task.task_id, poll_interval=2.0, timeout=600.0)
|
|
93
|
-
result.save("audio.wav")
|
|
94
|
-
result.save("with_audio.mp4", which="video") # video-to-sfx also returns the muxed video
|
|
93
|
+
result.save("audio.wav") # video-to-sfx returns the generated audio only
|
|
95
94
|
```
|
|
96
95
|
|
|
97
96
|
`tasks.get(task_id)` fetches state once and never raises on a failed task;
|
|
@@ -60,6 +60,8 @@ class SfxResult:
|
|
|
60
60
|
status: str
|
|
61
61
|
type: Optional[str] = None
|
|
62
62
|
audio: Optional[SfxMedia] = None
|
|
63
|
+
# video-to-sfx now returns audio only; `video` is kept for backward
|
|
64
|
+
# compatibility but is no longer populated by the API.
|
|
63
65
|
video: Optional[SfxMedia] = None
|
|
64
66
|
cost: Optional[float] = None
|
|
65
67
|
error: Optional[Dict[str, Any]] = None
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|