File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
1515Save 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
You can’t perform that action at this time.
0 commit comments