From 62dc1eaf949a07877e807d5abedb6b4741937d23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Schl=C3=BCter?= Date: Fri, 8 Sep 2023 10:39:42 +0200 Subject: [PATCH] Fix docstring of sample_rate in AudioSignal constructor --- audiotools/core/audio_signal.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/audiotools/core/audio_signal.py b/audiotools/core/audio_signal.py index fb6d751c..0fd87a46 100644 --- a/audiotools/core/audio_signal.py +++ b/audiotools/core/audio_signal.py @@ -78,9 +78,8 @@ class AudioSignal( Object to create AudioSignal from. Can be a tensor, numpy array, or a path to a file. The file is always reshaped to sample_rate : int, optional - Sample rate of the audio. If different from underlying file, resampling is - performed. If passing in an array or tensor, this must be defined, - by default None + Sample rate of the audio. Required if creating an AudioSignal from + a tensor or numpy array, ignored otherwise. stft_params : STFTParams, optional Parameters of STFT to use. , by default None offset : float, optional