mirror of
https://github.com/snakers4/silero-vad.git
synced 2026-02-05 18:09:22 +08:00
utils_vad save_audio force bits_per_sample=16
This commit is contained in:
@@ -95,7 +95,7 @@ def read_audio(path: str,
|
|||||||
def save_audio(path: str,
|
def save_audio(path: str,
|
||||||
tensor: torch.Tensor,
|
tensor: torch.Tensor,
|
||||||
sampling_rate: int = 16000):
|
sampling_rate: int = 16000):
|
||||||
torchaudio.save(path, tensor.unsqueeze(0), sampling_rate)
|
torchaudio.save(path, tensor.unsqueeze(0), sampling_rate, bits_per_sample=16)
|
||||||
|
|
||||||
|
|
||||||
def init_jit_model(model_path: str,
|
def init_jit_model(model_path: str,
|
||||||
|
|||||||
Reference in New Issue
Block a user