From 49e8e9d8fc1209c347aa2c2c65c6eb067b9f79d4 Mon Sep 17 00:00:00 2001
From: zhu-gu-an <76513567+zhu-gu-an@users.noreply.github.com>
Date: 星期六, 13 一月 2024 13:54:00 +0800
Subject: [PATCH] add triton paraformer large online (#1242)
---
funasr/fileio/sound_scp.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/funasr/fileio/sound_scp.py b/funasr/fileio/sound_scp.py
index b912f1e..b9364c6 100644
--- a/funasr/fileio/sound_scp.py
+++ b/funasr/fileio/sound_scp.py
@@ -4,7 +4,7 @@
import random
import numpy as np
-import soundfile
+import librosa
import librosa
import torch
@@ -116,7 +116,7 @@
def __getitem__(self, key):
wav = self.data[key]
if self.normalize:
- # soundfile.read normalizes data to [-1,1] if dtype is not given
+ # librosa.load normalizes data to [-1,1] if dtype is not given
array, rate = librosa.load(
wav, sr=self.dest_sample_rate, mono=self.always_2d
)
--
Gitblit v1.9.1