Skip to content

Commit

Permalink
streaming st
Browse files Browse the repository at this point in the history
  • Loading branch information
D-Keqi authored Apr 7, 2022
1 parent e69a6d8 commit 812a527
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion egs2/TEMPLATE/st1/st.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ hf_repo=

# Decoding related
use_k2=false # Whether to use k2 based decoder
use_streaming=false # Whether to use streaming decoding
batch_size=1
inference_tag= # Suffix to the result dir for decoding.
inference_config= # Config for decoding.
Expand Down Expand Up @@ -1412,7 +1413,11 @@ if ! "${skip_eval}"; then
key_file=${_data}/${_scp}
split_scps=""
_nj=$(min "${inference_nj}" "$(<${key_file} wc -l)")
st_inference_tool="espnet2.bin.st_inference"
if "${use_streaming}"; then
st_inference_tool="espnet2.bin.st_inference_streaming"
else
st_inference_tool="espnet2.bin.st_inference"
fi

for n in $(seq "${_nj}"); do
split_scps+=" ${_logdir}/keys.${n}.scp"
Expand Down

0 comments on commit 812a527

Please sign in to comment.