RecognitionConfig constructor
RecognitionConfig({
- RecognitionFeatures? features,
- SpeechAdaptation? adaptation,
- AutoDetectDecodingConfig? autoDecodingConfig,
- ExplicitDecodingConfig? explicitDecodingConfig,
- String? model,
- Iterable<
String> ? languageCodes,
Implementation
factory RecognitionConfig({
RecognitionFeatures? features,
SpeechAdaptation? adaptation,
AutoDetectDecodingConfig? autoDecodingConfig,
ExplicitDecodingConfig? explicitDecodingConfig,
$core.String? model,
$core.Iterable<$core.String>? languageCodes,
}) {
final $result = create();
if (features != null) {
$result.features = features;
}
if (adaptation != null) {
$result.adaptation = adaptation;
}
if (autoDecodingConfig != null) {
$result.autoDecodingConfig = autoDecodingConfig;
}
if (explicitDecodingConfig != null) {
$result.explicitDecodingConfig = explicitDecodingConfig;
}
if (model != null) {
$result.model = model;
}
if (languageCodes != null) {
$result.languageCodes.addAll(languageCodes);
}
return $result;
}