bugfix
This commit is contained in:
parent
83388ba0cc
commit
29de7d4673
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user