VoiceAgentComposeConfig constructor

VoiceAgentComposeConfig({
  1. String? sttModelPath,
  2. String? sttModelId,
  3. String? sttModelName,
  4. String? llmModelPath,
  5. String? llmModelId,
  6. String? llmModelName,
  7. String? ttsVoicePath,
  8. String? ttsVoiceId,
  9. String? ttsVoiceName,
  10. int? vadSampleRate,
  11. double? vadFrameLength,
  12. double? vadEnergyThreshold,
  13. VoiceSessionConfig? sessionConfig,
  14. AudioPipelineConfig? audioPipelineConfig,
  15. String? sessionId,
  16. 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;
}