From 2f2233a9afd12b17d229f1efa302c309c491e274 Mon Sep 17 00:00:00 2001 From: makaveli10 Date: Fri, 22 Sep 2023 12:51:21 +0530 Subject: [PATCH] update resmaple_file docstring --- whisper_live/client.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/whisper_live/client.py b/whisper_live/client.py index 76363a5..4d44438 100644 --- a/whisper_live/client.py +++ b/whisper_live/client.py @@ -19,12 +19,13 @@ def resample(file: str, sr: int = 16000): # https://github.com/openai/whisper/blob/7858aa9c08d98f75575035ecd6481f462d66ca27/whisper/audio.py#L22 Open an audio file and read as mono waveform, resampling as necessary, save the resampled audio - Parameters - ---------- - file: str - The audio file to open - sr: int - The sample rate to resample the audio if necessary + + Args: + file (str): The audio file to open + sr (int): The sample rate to resample the audio if necessary + + Returns: + resampled_file (str): The resampled audio file """ try: # This launches a subprocess to decode audio while down-mixing and resampling as necessary.