mirror of
https://github.com/snakers4/silero-vad.git
synced 2026-02-05 09:59:20 +08:00
Merge pull request #45 from IamSVP94/patch-1
Added dimension to tensor to save audio
This commit is contained in:
@@ -41,7 +41,7 @@ def read_audio(path: str,
|
||||
def save_audio(path: str,
|
||||
tensor: torch.Tensor,
|
||||
sr: int = 16000):
|
||||
torchaudio.save(path, tensor, sr)
|
||||
torchaudio.save(path, tensor.unsqueeze(0), sr)
|
||||
|
||||
|
||||
def init_jit_model(model_path: str,
|
||||
|
||||
Reference in New Issue
Block a user