mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
fix bytes
This commit is contained in:
parent
22b928dd3f
commit
92586a4a90
@ -138,7 +138,10 @@ def load_audio_text_image_video(
|
||||
|
||||
|
||||
def load_bytes(input):
|
||||
# input = validate_frame_rate(input)
|
||||
try:
|
||||
input = validate_frame_rate(input)
|
||||
except:
|
||||
pass
|
||||
middle_data = np.frombuffer(input, dtype=np.int16)
|
||||
middle_data = np.asarray(middle_data)
|
||||
if middle_data.dtype.kind not in "iu":
|
||||
|
||||
Loading…
Reference in New Issue
Block a user