How we actually measure latency in kaldi online

81 views
Skip to first unread message

ita...@gmail.com

unread,
Jan 7, 2021, 7:54:52 AM1/7/21
to kaldi-help

I’m trying to measure real-time performance in kaldi , and got stuck with measuring latency. 

I’m running server side with “online2-tcp-nnet3-decode-faster”     , and stream wav by “sox <wav> -t wav -r 8000 -b 16 - | /usr/bin/nc <hostname> <port> “  on the client side.

 I don’t find any internal calculation of latency , and I don’t have timestamp in either side of the transcription.  

 

I tried to increase the verbose level  in kaldi  “online2-tcp-nnet3-decode-faster”      , and got logs messages  about the initial and final transcription of each “segments” 

there is   --produce-time=true   option which is nice , it adds timestamp in the audio itself , but does not help me figure up how much time it was processed. 

maybe  adding somehow timestamp of the logs in kaldi , i'm not sure how 


thanks everyone , 

Itai 

 

Beside adding the calculation in the  “online2-tcp-nnet3-decode-faster.cc”        , do you know on fast way to measure latency in kaldi ? 

Daniel Povey

unread,
Jan 7, 2021, 8:01:04 AM1/7/21
to kaldi-help
Getting effective latency might be easier to do from the client side.

--
Go to http://kaldi-asr.org/forums.html to find out how to join the kaldi-help group
---
You received this message because you are subscribed to the Google Groups "kaldi-help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kaldi-help+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kaldi-help/effb69b4-4b6b-4694-8c05-002519c912a1n%40googlegroups.com.

Itai Peer

unread,
Jan 8, 2021, 12:44:35 PM1/8/21
to kaldi...@googlegroups.com
yep , and it becomes a question of how to stream it.. 
thanks Dan 

You received this message because you are subscribed to a topic in the Google Groups "kaldi-help" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kaldi-help/hMYseRTYsks/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kaldi-help+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kaldi-help/CAEWAuyTt2ZTywBF3KdCbPkXY6vpnfJ60AH4R-mYvPM3GjGtS1Q%40mail.gmail.com.


--
Itai Peer
Reply all
Reply to author
Forward
0 new messages