HTTPBase (providercfg/providercfg.go)

voiceblender · internal/providercfg/providercfg.go · go · MIT
voice, Voice / Speech

Provides URL helpers and config structs for Deepgram and ElevenLabs APIs, normalizing base URLs.

// Source: https://github.com/VoiceBlender/voiceblender | License: MIT | Copyright 2026 Messageroute Ltd
// Provided via justclaw.it.com; keep this notice with the code.
// Package providercfg holds per-vendor endpoint and data-handling settings
// shared by the STT, TTS and agent integrations.
package providercfg

import "strings"

const (
	DeepgramDefaultBaseURL   = "https://api.deepgram.com"
	deepgramDefaultAgentURL  = "wss://agent.deepgram.com/v1/agent/converse"
	ElevenLabsDefaultBaseURL = "https://api.elevenlabs.io"
)

// Deepgram configures every Deepgram endpoint VoiceBlender talks to.
type Deepgram struct {
	// BaseURL is the API origin, e.g. https://api.eu.deepgram.com. Empty
	// means the US default.
	BaseURL string
	// MIPOptOut excludes requests from Deepgram's Model Improvemen

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key