Class AutomaticActivityDetection.Builder
-
- All Implemented Interfaces:
public abstract class AutomaticActivityDetection.BuilderBuilder for AutomaticActivityDetection.
-
-
Constructor Summary
Constructors Constructor Description AutomaticActivityDetection.Builder()
-
Method Summary
Modifier and Type Method Description abstract AutomaticActivityDetection.Builderdisabled(boolean disabled)Setter for disabled. AutomaticActivityDetection.BuilderclearDisabled()Clears the value of disabled field. abstract AutomaticActivityDetection.BuilderstartOfSpeechSensitivity(StartSensitivity startOfSpeechSensitivity)Setter for startOfSpeechSensitivity. AutomaticActivityDetection.BuilderclearStartOfSpeechSensitivity()Clears the value of startOfSpeechSensitivity field. AutomaticActivityDetection.BuilderstartOfSpeechSensitivity(StartSensitivity.Known knownType)Setter for startOfSpeechSensitivity given a known enum. AutomaticActivityDetection.BuilderstartOfSpeechSensitivity(String startOfSpeechSensitivity)Setter for startOfSpeechSensitivity given a string. abstract AutomaticActivityDetection.BuilderendOfSpeechSensitivity(EndSensitivity endOfSpeechSensitivity)Setter for endOfSpeechSensitivity. AutomaticActivityDetection.BuilderclearEndOfSpeechSensitivity()Clears the value of endOfSpeechSensitivity field. AutomaticActivityDetection.BuilderendOfSpeechSensitivity(EndSensitivity.Known knownType)Setter for endOfSpeechSensitivity given a known enum. AutomaticActivityDetection.BuilderendOfSpeechSensitivity(String endOfSpeechSensitivity)Setter for endOfSpeechSensitivity given a string. abstract AutomaticActivityDetection.BuilderprefixPaddingMs(Integer prefixPaddingMs)Setter for prefixPaddingMs. AutomaticActivityDetection.BuilderclearPrefixPaddingMs()Clears the value of prefixPaddingMs field. abstract AutomaticActivityDetection.BuildersilenceDurationMs(Integer silenceDurationMs)Setter for silenceDurationMs. AutomaticActivityDetection.BuilderclearSilenceDurationMs()Clears the value of silenceDurationMs field. abstract AutomaticActivityDetectionbuild()-
-
Method Detail
-
disabled
abstract AutomaticActivityDetection.Builder disabled(boolean disabled)
Setter for disabled.
disabled: If enabled, detected voice and text input count as activity. If disabled, the client must send activity signals.
-
clearDisabled
@CanIgnoreReturnValue() AutomaticActivityDetection.Builder clearDisabled()
Clears the value of disabled field.
-
startOfSpeechSensitivity
abstract AutomaticActivityDetection.Builder startOfSpeechSensitivity(StartSensitivity startOfSpeechSensitivity)
Setter for startOfSpeechSensitivity.
startOfSpeechSensitivity: Determines how likely speech is to be detected.
-
clearStartOfSpeechSensitivity
@CanIgnoreReturnValue() AutomaticActivityDetection.Builder clearStartOfSpeechSensitivity()
Clears the value of startOfSpeechSensitivity field.
-
startOfSpeechSensitivity
@CanIgnoreReturnValue() AutomaticActivityDetection.Builder startOfSpeechSensitivity(StartSensitivity.Known knownType)
Setter for startOfSpeechSensitivity given a known enum.
startOfSpeechSensitivity: Determines how likely speech is to be detected.
-
startOfSpeechSensitivity
@CanIgnoreReturnValue() AutomaticActivityDetection.Builder startOfSpeechSensitivity(String startOfSpeechSensitivity)
Setter for startOfSpeechSensitivity given a string.
startOfSpeechSensitivity: Determines how likely speech is to be detected.
-
endOfSpeechSensitivity
abstract AutomaticActivityDetection.Builder endOfSpeechSensitivity(EndSensitivity endOfSpeechSensitivity)
Setter for endOfSpeechSensitivity.
endOfSpeechSensitivity: Determines how likely detected speech is ended.
-
clearEndOfSpeechSensitivity
@CanIgnoreReturnValue() AutomaticActivityDetection.Builder clearEndOfSpeechSensitivity()
Clears the value of endOfSpeechSensitivity field.
-
endOfSpeechSensitivity
@CanIgnoreReturnValue() AutomaticActivityDetection.Builder endOfSpeechSensitivity(EndSensitivity.Known knownType)
Setter for endOfSpeechSensitivity given a known enum.
endOfSpeechSensitivity: Determines how likely detected speech is ended.
-
endOfSpeechSensitivity
@CanIgnoreReturnValue() AutomaticActivityDetection.Builder endOfSpeechSensitivity(String endOfSpeechSensitivity)
Setter for endOfSpeechSensitivity given a string.
endOfSpeechSensitivity: Determines how likely detected speech is ended.
-
prefixPaddingMs
abstract AutomaticActivityDetection.Builder prefixPaddingMs(Integer prefixPaddingMs)
Setter for prefixPaddingMs.
prefixPaddingMs: The required duration of detected speech before start-of-speech is committed. The lower this value the more sensitive the start-of-speech detection is and the shorter speech can be recognized. However, this also increases the probability of false positives.
-
clearPrefixPaddingMs
@CanIgnoreReturnValue() AutomaticActivityDetection.Builder clearPrefixPaddingMs()
Clears the value of prefixPaddingMs field.
-
silenceDurationMs
abstract AutomaticActivityDetection.Builder silenceDurationMs(Integer silenceDurationMs)
Setter for silenceDurationMs.
silenceDurationMs: The required duration of detected non-speech (e.g. silence) before end-of-speech is committed. The larger this value, the longer speech gaps can be without interrupting the user's activity but this will increase the model's latency.
-
clearSilenceDurationMs
@CanIgnoreReturnValue() AutomaticActivityDetection.Builder clearSilenceDurationMs()
Clears the value of silenceDurationMs field.
-
build
abstract AutomaticActivityDetection build()
-
-
-
-