VoiceAgentComposeConfig constructor

VoiceAgentComposeConfig({
  1. String? sttModelPath,
  2. String? sttModelId,
  3. String? llmModelPath,
  4. String? llmModelId,
  5. String? ttsVoicePath,
  6. String? ttsVoiceId,
  7. VADConfiguration? vadConfig,
  8. LLMGenerationOptions? llmGeneration,
  9. String? instructions,
  10. TurnDetection? turnDetection,
  11. String? language,
})

Implementation

factory VoiceAgentComposeConfig({
  $core.String? sttModelPath,
  $core.String? sttModelId,
  $core.String? llmModelPath,
  $core.String? llmModelId,
  $core.String? ttsVoicePath,
  $core.String? ttsVoiceId,
  $1.VADConfiguration? vadConfig,
  $2.LLMGenerationOptions? llmGeneration,
  $core.String? instructions,
  TurnDetection? turnDetection,
  $core.String? language,
}) {
  final result = create();
  if (sttModelPath != null) result.sttModelPath = sttModelPath;
  if (sttModelId != null) result.sttModelId = sttModelId;
  if (llmModelPath != null) result.llmModelPath = llmModelPath;
  if (llmModelId != null) result.llmModelId = llmModelId;
  if (ttsVoicePath != null) result.ttsVoicePath = ttsVoicePath;
  if (ttsVoiceId != null) result.ttsVoiceId = ttsVoiceId;
  if (vadConfig != null) result.vadConfig = vadConfig;
  if (llmGeneration != null) result.llmGeneration = llmGeneration;
  if (instructions != null) result.instructions = instructions;
  if (turnDetection != null) result.turnDetection = turnDetection;
  if (language != null) result.language = language;
  return result;
}