VoiceAgentConfig constructor

VoiceAgentConfig({
  1. String? llmModelId,
  2. String? sttModelId,
  3. String? ttsModelId,
  4. String? vadModelId,
  5. int? sampleRateHz,
  6. int? chunkMs,
  7. AudioSource? audioSource,
  8. bool? enableBargeIn,
  9. int? bargeInThresholdMs,
  10. String? systemPrompt,
  11. int? maxContextTokens,
  12. double? temperature,
  13. bool? emitPartials,
  14. bool? emitThoughts,
  15. String? audioFilePath,
  16. SolutionType? typeKind,
  17. String? ttsVoiceId,
})

Implementation

factory VoiceAgentConfig({
  $core.String? llmModelId,
  $core.String? sttModelId,
  $core.String? ttsModelId,
  $core.String? vadModelId,
  $core.int? sampleRateHz,
  $core.int? chunkMs,
  AudioSource? audioSource,
  $core.bool? enableBargeIn,
  $core.int? bargeInThresholdMs,
  $core.String? systemPrompt,
  $core.int? maxContextTokens,
  $core.double? temperature,
  $core.bool? emitPartials,
  $core.bool? emitThoughts,
  $core.String? audioFilePath,
  SolutionType? typeKind,
  $core.String? ttsVoiceId,
}) {
  final result = create();
  if (llmModelId != null) result.llmModelId = llmModelId;
  if (sttModelId != null) result.sttModelId = sttModelId;
  if (ttsModelId != null) result.ttsModelId = ttsModelId;
  if (vadModelId != null) result.vadModelId = vadModelId;
  if (sampleRateHz != null) result.sampleRateHz = sampleRateHz;
  if (chunkMs != null) result.chunkMs = chunkMs;
  if (audioSource != null) result.audioSource = audioSource;
  if (enableBargeIn != null) result.enableBargeIn = enableBargeIn;
  if (bargeInThresholdMs != null)
    result.bargeInThresholdMs = bargeInThresholdMs;
  if (systemPrompt != null) result.systemPrompt = systemPrompt;
  if (maxContextTokens != null) result.maxContextTokens = maxContextTokens;
  if (temperature != null) result.temperature = temperature;
  if (emitPartials != null) result.emitPartials = emitPartials;
  if (emitThoughts != null) result.emitThoughts = emitThoughts;
  if (audioFilePath != null) result.audioFilePath = audioFilePath;
  if (typeKind != null) result.typeKind = typeKind;
  if (ttsVoiceId != null) result.ttsVoiceId = ttsVoiceId;
  return result;
}