changed type of sr

This commit is contained in:
Jaikinator
2023-06-27 10:20:42 +02:00
parent 88db803bcb
commit 2308a9337c
+2 -2
View File
@@ -1,7 +1,7 @@
import numpy as np
import torch
from subprocess import CalledProcessError, run
from typing import Union
SAMPLE_RATE = 16000
class AudioProcessor:
@@ -9,7 +9,7 @@ class AudioProcessor:
Audio Processor using PyTorchaudio instead of PyDub
"""
def __init__(self, waveform: torch.Tensor, sr : torch.Tensor,
def __init__(self, waveform: torch.Tensor, sr : int = SAMPLE_RATE,
*args, **kwargs) -> None:
"""
Initialise audio processor