@@ -205,16 +205,15 @@ def save(
205205 and corresponding codec libraries such as ``libmad`` or ``libmp3lame`` etc.
206206
207207 Args:
208- filepath (str or pathlib.Path):
209- Path to save file. This function also handles ``pathlib.Path`` objects, but is annotated
208+ filepath (str or pathlib.Path): Path to save file.
209+ This function also handles ``pathlib.Path`` objects, but is annotated
210210 as ``str`` for TorchScript compiler compatibility.
211- tensor (torch.Tensor): Audio data to save. must be 2D tensor.
211+ src (torch.Tensor): Audio data to save. must be 2D tensor.
212212 sample_rate (int): sampling rate
213- channels_first (bool):
214- If ``True``, the given tensor is interpreted as ``[channel, time]``,
213+ channels_first (bool): If ``True``, the given tensor is interpreted as ``[channel, time]``,
215214 otherwise ``[time, channel]``.
216- compression (Optional[float]):
217- Used for formats other than WAV. This corresponds to ``-C`` option of ``sox`` command.
215+ compression (Optional[float]): Used for formats other than WAV.
216+ This corresponds to ``-C`` option of ``sox`` command.
218217
219218 * | ``MP3``: Either bitrate (in ``kbps``) with quality factor, such as ``128.2``, or
220219 | VBR encoding with quality factor such as ``-4.2``. Default: ``-4.5``.
@@ -224,11 +223,10 @@ def save(
224223 | and lowest quality. Default: ``3``.
225224
226225 See the detail at http://sox.sourceforge.net/soxformat.html.
227- format (str, optional):
228- Output audio format. This is required when the output audio format cannot be infered from
226+ format (str, optional): Output audio format.
227+ This is required when the output audio format cannot be infered from
229228 ``filepath``, (such as file extension or ``name`` attribute of the given file object).
230- dtype (str, optional)
231- Output tensor dtype.
229+ dtype (str, optional): Output tensor dtype.
232230 Valid values: ``"uint8", "int16", "int32", "float32", "float64", None``
233231 ``dtype=None`` means no conversion is performed.
234232 ``dtype`` parameter is only effective for ``float32`` Tensor.
0 commit comments