VoiceAgentComposeConfig constructor
VoiceAgentComposeConfig({
- String? sttModelPath,
- String? sttModelId,
- String? sttModelName,
- String? llmModelPath,
- String? llmModelId,
- String? llmModelName,
- String? ttsVoicePath,
- String? ttsVoiceId,
- String? ttsVoiceName,
- int? vadSampleRate,
- double? vadFrameLength,
- double? vadEnergyThreshold,
- VoiceSessionConfig? sessionConfig,
- AudioPipelineConfig? audioPipelineConfig,
- String? sessionId,
- String? defaultLanguageCode,
Implementation
factory VoiceAgentComposeConfig({
$core.String? sttModelPath,
$core.String? sttModelId,
$core.String? sttModelName,
$core.String? llmModelPath,
$core.String? llmModelId,
$core.String? llmModelName,
$core.String? ttsVoicePath,
$core.String? ttsVoiceId,
$core.String? ttsVoiceName,
$core.int? vadSampleRate,
$core.double? vadFrameLength,
$core.double? vadEnergyThreshold,
VoiceSessionConfig? sessionConfig,
AudioPipelineConfig? audioPipelineConfig,
$core.String? sessionId,
$core.String? defaultLanguageCode,
}) {
final result = create();
if (sttModelPath != null) result.sttModelPath = sttModelPath;
if (sttModelId != null) result.sttModelId = sttModelId;
if (sttModelName != null) result.sttModelName = sttModelName;
if (llmModelPath != null) result.llmModelPath = llmModelPath;
if (llmModelId != null) result.llmModelId = llmModelId;
if (llmModelName != null) result.llmModelName = llmModelName;
if (ttsVoicePath != null) result.ttsVoicePath = ttsVoicePath;
if (ttsVoiceId != null) result.ttsVoiceId = ttsVoiceId;
if (ttsVoiceName != null) result.ttsVoiceName = ttsVoiceName;
if (vadSampleRate != null) result.vadSampleRate = vadSampleRate;
if (vadFrameLength != null) result.vadFrameLength = vadFrameLength;
if (vadEnergyThreshold != null)
result.vadEnergyThreshold = vadEnergyThreshold;
if (sessionConfig != null) result.sessionConfig = sessionConfig;
if (audioPipelineConfig != null)
result.audioPipelineConfig = audioPipelineConfig;
if (sessionId != null) result.sessionId = sessionId;
if (defaultLanguageCode != null)
result.defaultLanguageCode = defaultLanguageCode;
return result;
}