mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
Update asr_inference_mfcca.py
This commit is contained in:
parent
7231fa0767
commit
56d13e2370
@ -194,8 +194,8 @@ class Speech2Text:
|
||||
# Input as audio signal
|
||||
if isinstance(speech, np.ndarray):
|
||||
speech = torch.tensor(speech)
|
||||
|
||||
|
||||
if(speech.dim()==3):
|
||||
speech = torch.squeeze(speech, 2)
|
||||
#speech = speech.unsqueeze(0).to(getattr(torch, self.dtype))
|
||||
speech = speech.to(getattr(torch, self.dtype))
|
||||
# lenghts: (1,)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user