STTOptions constructor
STTOptions({
- STTLanguage? language,
- bool? enablePunctuation,
- bool? enableDiarization,
- int? maxSpeakers,
- Iterable<
String> ? vocabularyList, - bool? enableWordTimestamps,
- int? beamSize,
- String? languageCode,
- bool? detectLanguage,
- AudioFormat? audioFormat,
- int? sampleRate,
- int? maxAlternatives,
- int? chunkDurationMs,
- int? endpointSilenceMs,
- bool? suppressBlank,
- bool? translateToEnglish,
Implementation
factory STTOptions({
STTLanguage? language,
$core.bool? enablePunctuation,
$core.bool? enableDiarization,
$core.int? maxSpeakers,
$core.Iterable<$core.String>? vocabularyList,
$core.bool? enableWordTimestamps,
$core.int? beamSize,
$core.String? languageCode,
$core.bool? detectLanguage,
$0.AudioFormat? audioFormat,
$core.int? sampleRate,
$core.int? maxAlternatives,
$core.int? chunkDurationMs,
$core.int? endpointSilenceMs,
$core.bool? suppressBlank,
$core.bool? translateToEnglish,
}) {
final result = create();
if (language != null) result.language = language;
if (enablePunctuation != null) result.enablePunctuation = enablePunctuation;
if (enableDiarization != null) result.enableDiarization = enableDiarization;
if (maxSpeakers != null) result.maxSpeakers = maxSpeakers;
if (vocabularyList != null) result.vocabularyList.addAll(vocabularyList);
if (enableWordTimestamps != null)
result.enableWordTimestamps = enableWordTimestamps;
if (beamSize != null) result.beamSize = beamSize;
if (languageCode != null) result.languageCode = languageCode;
if (detectLanguage != null) result.detectLanguage = detectLanguage;
if (audioFormat != null) result.audioFormat = audioFormat;
if (sampleRate != null) result.sampleRate = sampleRate;
if (maxAlternatives != null) result.maxAlternatives = maxAlternatives;
if (chunkDurationMs != null) result.chunkDurationMs = chunkDurationMs;
if (endpointSilenceMs != null) result.endpointSilenceMs = endpointSilenceMs;
if (suppressBlank != null) result.suppressBlank = suppressBlank;
if (translateToEnglish != null)
result.translateToEnglish = translateToEnglish;
return result;
}