diff --git a/scripts/whisper/test.py b/scripts/whisper/test.py index 5f3d02c2..6941d347 100755 --- a/scripts/whisper/test.py +++ b/scripts/whisper/test.py @@ -259,7 +259,7 @@ def compute_features(filename: str) -> torch.Tensor: # We pad 50 frames at the end so that it is able to detect eot # You can use another value instead of 50. - mel = torch.nn.functional.pad(mel, (0, 0, 0, 50), "constant", 0) + mel = torch.nn.functional.pad(mel, (0, 0, 0, 1000), "constant", 0) # Note that if it throws for a multilingual model, # please use a larger value, say 300