OnlineEndpointConfig Struct Reference

#include <online-endpoint.h>

Collaboration diagram for OnlineEndpointConfig:

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...
 

Detailed Description

Definition at line 127 of file online-endpoint.h.

Constructor & Destructor Documentation

◆ OnlineEndpointConfig()

Definition at line 152 of file online-endpoint.h.

152  :
153  rule1(false, 5.0, std::numeric_limits<BaseFloat>::infinity(), 0.0),
154  rule2(true, 0.5, 2.0, 0.0),
155  rule3(true, 1.0, 8.0, 0.0),
156  rule4(true, 2.0, std::numeric_limits<BaseFloat>::infinity(), 0.0),
157  rule5(false, 0.0, std::numeric_limits<BaseFloat>::infinity(), 20.0) { }
OnlineEndpointRule rule1
e.g.
OnlineEndpointRule rule2
rule2 times out after 0.5 seconds of silence if we reached the final-state with good probability (rel...
OnlineEndpointRule rule5
rule5 times out after the utterance is 20 seconds long, regardless of anything else.
OnlineEndpointRule rule4
rule4 times out after 2.0 seconds of silence after decoding something, even if we did not reach a fin...
OnlineEndpointRule rule3
rule3 times out after 1.0 seconds of silence if we reached the final-state with OK probability (relat...

Member Function Documentation

◆ Register()

void Register ( OptionsItf opts)
inline

Definition at line 159 of file online-endpoint.h.

References kaldi::EndpointDetected(), OptionsItf::Register(), OnlineEndpointRule::RegisterWithPrefix(), and kaldi::TrailingSilenceLength().

Referenced by main().

159  {
160  opts->Register("endpoint.silence-phones", &silence_phones, "List of phones "
161  "that are considered to be silence phones by the "
162  "endpointing code.");
163  rule1.RegisterWithPrefix("endpoint.rule1", opts);
164  rule2.RegisterWithPrefix("endpoint.rule2", opts);
165  rule3.RegisterWithPrefix("endpoint.rule3", opts);
166  rule4.RegisterWithPrefix("endpoint.rule4", opts);
167  rule5.RegisterWithPrefix("endpoint.rule5", opts);
168  }
OnlineEndpointRule rule1
e.g.
OnlineEndpointRule rule2
rule2 times out after 0.5 seconds of silence if we reached the final-state with good probability (rel...
OnlineEndpointRule rule5
rule5 times out after the utterance is 20 seconds long, regardless of anything else.
OnlineEndpointRule rule4
rule4 times out after 2.0 seconds of silence after decoding something, even if we did not reach a fin...
void RegisterWithPrefix(const std::string &prefix, OptionsItf *opts)
OnlineEndpointRule rule3
rule3 times out after 1.0 seconds of silence if we reached the final-state with OK probability (relat...

Member Data Documentation

◆ 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().

◆ 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().

◆ 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().

◆ 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().

◆ 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().

◆ silence_phones

std::string silence_phones

Definition at line 128 of file online-endpoint.h.

Referenced by kaldi::EndpointDetected().


The documentation for this struct was generated from the following file: