提交 3965dbc2 编写于 作者: H Haoxin Ma

runtime.py

上级 340e6229
......@@ -96,7 +96,7 @@ def start_server(config, args):
# prepare ASR inference handler
def file_to_transcript(filename):
feature = collate_fn.process_utterance(filename, "")
feature = test_loader.collate_fn.process_utterance(filename, "")
audio = np.array([feature[0]]).astype('float32') #[1, T, D]
audio_len = feature[0].shape[0]
audio_len = np.array([audio_len]).astype('int64') # [1]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册