#include <online-endpoint.h>
Public Member Functions | |
OnlineEndpointConfig () | |
void | Register (OptionsItf *opts) |
Public Attributes | |
std::string | silence_phones |
OnlineEndpointRule | rule1 |
e.g. More... | |
OnlineEndpointRule | rule2 |
rule2 times out after 0.5 seconds of silence if we reached the final-state with good probability (relative_cost < 2.0) after decoding something. More... | |
OnlineEndpointRule | rule3 |
rule3 times out after 1.0 seconds of silence if we reached the final-state with OK probability (relative_cost < 8.0) after decoding something More... | |
OnlineEndpointRule | rule4 |
rule4 times out after 2.0 seconds of silence after decoding something, even if we did not reach a final-state at all. More... | |
OnlineEndpointRule | rule5 |
rule5 times out after the utterance is 20 seconds long, regardless of anything else. More... | |
Definition at line 127 of file online-endpoint.h.
|
inline |
Definition at line 152 of file online-endpoint.h.
|
inline |
Definition at line 159 of file online-endpoint.h.
References kaldi::EndpointDetected(), OptionsItf::Register(), OnlineEndpointRule::RegisterWithPrefix(), and kaldi::TrailingSilenceLength().
Referenced by main().
OnlineEndpointRule rule1 |
e.g.
1:2:3:4, colon separated list of phones that we consider as silence for purposes of endpointing. We support four rules. We terminate decoding if ANY of these rules evaluates to "true". If you want to add more rules, do it by changing this code. If you want to disable a rule, you can set the silence-timeout for that rule to a very large number. rule1 times out after 5 seconds of silence, even if we decoded nothing.
Definition at line 138 of file online-endpoint.h.
Referenced by kaldi::EndpointDetected().
OnlineEndpointRule rule2 |
rule2 times out after 0.5 seconds of silence if we reached the final-state with good probability (relative_cost < 2.0) after decoding something.
Definition at line 141 of file online-endpoint.h.
Referenced by kaldi::EndpointDetected().
OnlineEndpointRule rule3 |
rule3 times out after 1.0 seconds of silence if we reached the final-state with OK probability (relative_cost < 8.0) after decoding something
Definition at line 144 of file online-endpoint.h.
Referenced by kaldi::EndpointDetected().
OnlineEndpointRule rule4 |
rule4 times out after 2.0 seconds of silence after decoding something, even if we did not reach a final-state at all.
Definition at line 147 of file online-endpoint.h.
Referenced by kaldi::EndpointDetected().
OnlineEndpointRule rule5 |
rule5 times out after the utterance is 20 seconds long, regardless of anything else.
Definition at line 150 of file online-endpoint.h.
Referenced by kaldi::EndpointDetected().
std::string silence_phones |
Definition at line 128 of file online-endpoint.h.
Referenced by kaldi::EndpointDetected().