org.llm4s.speech.config
Members list
Type members
Classlikes
Configuration for a cloud STT provider, as produced by SpeechConfigLoader.stt.
Configuration for a cloud STT provider, as produced by SpeechConfigLoader.stt.
Value parameters
- apiKey
-
API key for the provider
- baseUrl
-
API base URL, without a trailing path (the endpoint path is added by the client)
- model
-
Model identifier (OpenAI:
whisper-1; Azure: the default recognition language, e.g.en-US) - provider
-
Provider name: "openai" or "azure"
- region
-
Azure Speech region, when the provider is Azure
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Loads TTSConfig and STTConfig from the llm4s.speech block of the application configuration, whose defaults and environment variables are declared in this module's reference.conf.
Loads TTSConfig and STTConfig from the llm4s.speech block of the application configuration, whose defaults and environment variables are declared in this module's reference.conf.
Provider selection is the provider/model form used for chat models:
SPEECH_TTS_MODEL=openai/tts-1 OPENAI_API_KEY=...
SPEECH_TTS_MODEL=elevenlabs/<voice-id> ELEVENLABS_API_KEY=...
SPEECH_TTS_MODEL=azure/en-US-JennyNeural AZURE_SPEECH_KEY=... AZURE_SPEECH_REGION=...
SPEECH_STT_MODEL=openai/whisper-1 OPENAI_API_KEY=...
SPEECH_STT_MODEL=azure/en-US AZURE_SPEECH_KEY=... AZURE_SPEECH_REGION=...
Only the selected provider's credentials are required.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
SpeechConfigLoader.type
Configuration for a cloud TTS provider, as produced by SpeechConfigLoader.tts.
Configuration for a cloud TTS provider, as produced by SpeechConfigLoader.tts.
Value parameters
- apiKey
-
API key for the provider
- baseUrl
-
API base URL, without a trailing path (the endpoint path is added by the client)
- model
-
Model identifier (OpenAI:
tts-1; ElevenLabs: themodel_id; Azure: unused) - provider
-
Provider name: "openai", "elevenlabs", or "azure"
- region
-
Azure Speech region, when the provider is Azure
- voice
-
Voice (OpenAI:
alloy; ElevenLabs: voice id; Azure: voice name)
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all