Skip to content

Commit

Permalink
fix save&&set_backend exmaple
Browse files Browse the repository at this point in the history
  • Loading branch information
SmileGoat committed Oct 20, 2022
1 parent 160b50e commit 2c6742f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/paddle/audio/backends/backend.py
Expand Up @@ -124,6 +124,9 @@ def save(
encoding:encoding format, wave_backend only support PCM16 now.
bits_per_sample: bits per sample, wave_backend only support 16 bits now.
Returns:
None
Examples:
.. code-block:: python
Expand Down
3 changes: 3 additions & 0 deletions python/paddle/audio/backends/init_backend.py
Expand Up @@ -136,6 +136,9 @@ def set_backend(backend_name: str):
Args:
backend (str): one of the list_audio_backend. "wave_backend" is the default. "soundfile" imported from paddleaudio.
Returns:
None
Examples:
.. code-block:: python
Expand Down
3 changes: 3 additions & 0 deletions python/paddle/audio/backends/wave_backend.py
Expand Up @@ -182,6 +182,9 @@ def save(
encoding: audio encoding format, wave_backend only support PCM16 now.
bits_per_sample: bits per sample, wave_backend only support 16 bits now.
Returns:
None
Examples:
.. code-block:: python
Expand Down

0 comments on commit 2c6742f

Please sign in to comment.