Skip to content

Commit c92a8f0

Browse files
fishaudio-bottwangodev
authored andcommitted
chore: update Python SDK API reference
Auto-generated from fishaudio/fish-audio-python@3ac2b9d
1 parent e6af0bf commit c92a8f0

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

api-reference/sdk/python/utils.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ Audio saving utility.
99
#### save
1010

1111
```python
12-
def save(audio: Union[bytes, Iterator[bytes]], filename: str) -> None
12+
def save(audio: Union[bytes, Iterable[bytes]], filename: str) -> None
1313
```
1414

1515
Save audio to a file.
1616

1717
**Arguments**:
1818

19-
- `audio` - Audio bytes or iterator of bytes
19+
- `audio` - Audio bytes or iterable of bytes
2020
- `filename` - Path to save the audio file
2121

2222

@@ -47,7 +47,7 @@ Audio playback utility.
4747
#### play
4848

4949
```python
50-
def play(audio: Union[bytes, Iterator[bytes]],
50+
def play(audio: Union[bytes, Iterable[bytes]],
5151
*,
5252
notebook: bool = False,
5353
use_ffmpeg: bool = True) -> None
@@ -57,7 +57,7 @@ Play audio using various playback methods.
5757

5858
**Arguments**:
5959

60-
- `audio` - Audio bytes or iterator of bytes
60+
- `audio` - Audio bytes or iterable of bytes
6161
- `notebook` - Use Jupyter notebook playback (IPython.display.Audio)
6262
- `use_ffmpeg` - Use ffplay for playback (default, falls back to sounddevice)
6363

0 commit comments

Comments
 (0)