RecognitionFeatures constructor
RecognitionFeatures({
- bool? profanityFilter,
- bool? enableWordTimeOffsets,
- bool? enableWordConfidence,
- bool? enableAutomaticPunctuation,
- SpeakerDiarizationConfig? diarizationConfig,
- bool? enableSpokenPunctuation,
- bool? enableSpokenEmojis,
- int? maxAlternatives,
- RecognitionFeatures_MultiChannelMode? multiChannelMode,
Implementation
factory RecognitionFeatures({
$core.bool? profanityFilter,
$core.bool? enableWordTimeOffsets,
$core.bool? enableWordConfidence,
$core.bool? enableAutomaticPunctuation,
SpeakerDiarizationConfig? diarizationConfig,
$core.bool? enableSpokenPunctuation,
$core.bool? enableSpokenEmojis,
$core.int? maxAlternatives,
RecognitionFeatures_MultiChannelMode? multiChannelMode,
}) {
final $result = create();
if (profanityFilter != null) {
$result.profanityFilter = profanityFilter;
}
if (enableWordTimeOffsets != null) {
$result.enableWordTimeOffsets = enableWordTimeOffsets;
}
if (enableWordConfidence != null) {
$result.enableWordConfidence = enableWordConfidence;
}
if (enableAutomaticPunctuation != null) {
$result.enableAutomaticPunctuation = enableAutomaticPunctuation;
}
if (diarizationConfig != null) {
$result.diarizationConfig = diarizationConfig;
}
if (enableSpokenPunctuation != null) {
$result.enableSpokenPunctuation = enableSpokenPunctuation;
}
if (enableSpokenEmojis != null) {
$result.enableSpokenEmojis = enableSpokenEmojis;
}
if (maxAlternatives != null) {
$result.maxAlternatives = maxAlternatives;
}
if (multiChannelMode != null) {
$result.multiChannelMode = multiChannelMode;
}
return $result;
}