This commit is contained in:
yumoqing 2024-08-06 12:04:38 +08:00
parent 83388ba0cc
commit 29de7d4673

View File

@ -41,7 +41,8 @@ class WhisperFile(WhisperBase):
class WhisperBase64(WhisperBase): class WhisperBase64(WhisperBase):
def _stt(self, audio): def _stt(self, audio):
audiolist = audio.values() audiolist = audio.values()
nparr = np.array(audiolist) nparr = np.array(audiolist, dtype=np.float32)
nparr=np.vstack(nparr).astype(np.float)
""" """
raw = base64_decode(audio_base64) raw = base64_decode(audio_base64)