Documentation
¶
Overview ¶
Package config provides configuration management for agentcall.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Server settings
Port int
// Phone provider settings (Twilio)
PhoneProvider string // "twilio" or "telnyx"
PhoneAccountSID string
PhoneAuthToken string
PhoneNumber string // E.164 format, e.g., +15551234567
UserPhoneNumber string // E.164 format
// ElevenLabs TTS settings
ElevenLabsAPIKey string
TTSVoice string // ElevenLabs voice ID (e.g., "Rachel")
TTSModel string // ElevenLabs model (e.g., "eleven_turbo_v2_5")
// Deepgram STT settings
DeepgramAPIKey string
STTModel string // Deepgram model (e.g., "nova-2")
STTLanguage string // BCP-47 language code (e.g., "en-US")
STTSilenceDurationMS int // milliseconds of silence to detect end of speech
// ngrok settings
NgrokAuthToken string
NgrokDomain string // optional custom domain
// Timeouts
TranscriptTimeoutMS int
}
Config holds all configuration for the agentcall server.
func DefaultConfig ¶
func DefaultConfig() *Config
DefaultConfig returns a Config with sensible defaults.
func LoadFromEnv ¶
LoadFromEnv loads configuration from environment variables.
Click to show internal directories.
Click to hide internal directories.