StreamingRecognitionConfig constructor
StreamingRecognitionConfig({
- RecognitionConfig? config,
- bool? singleUtterance,
- bool? interimResults,
- bool? enableVoiceActivityEvents,
- StreamingRecognitionConfig_VoiceActivityTimeout? voiceActivityTimeout,
Implementation
factory StreamingRecognitionConfig({
RecognitionConfig? config,
$core.bool? singleUtterance,
$core.bool? interimResults,
$core.bool? enableVoiceActivityEvents,
StreamingRecognitionConfig_VoiceActivityTimeout? voiceActivityTimeout,
}) {
final $result = create();
if (config != null) {
$result.config = config;
}
if (singleUtterance != null) {
$result.singleUtterance = singleUtterance;
}
if (interimResults != null) {
$result.interimResults = interimResults;
}
if (enableVoiceActivityEvents != null) {
$result.enableVoiceActivityEvents = enableVoiceActivityEvents;
}
if (voiceActivityTimeout != null) {
$result.voiceActivityTimeout = voiceActivityTimeout;
}
return $result;
}