InputAudioConfig constructor
InputAudioConfig({
- AudioEncoding? audioEncoding,
- int? sampleRateHertz,
- Iterable<
String> ? phraseHints, - String? model,
- bool? singleUtterance,
- SpeechModelVariant? modelVariant,
- bool? enableWordInfo,
Implementation
factory InputAudioConfig({
AudioEncoding? audioEncoding,
$core.int? sampleRateHertz,
$core.Iterable<$core.String>? phraseHints,
$core.String? model,
$core.bool? singleUtterance,
SpeechModelVariant? modelVariant,
$core.bool? enableWordInfo,
}) {
final _result = create();
if (audioEncoding != null) {
_result.audioEncoding = audioEncoding;
}
if (sampleRateHertz != null) {
_result.sampleRateHertz = sampleRateHertz;
}
if (phraseHints != null) {
_result.phraseHints.addAll(phraseHints);
}
if (model != null) {
_result.model = model;
}
if (singleUtterance != null) {
_result.singleUtterance = singleUtterance;
}
if (modelVariant != null) {
_result.modelVariant = modelVariant;
}
if (enableWordInfo != null) {
_result.enableWordInfo = enableWordInfo;
}
return _result;
}