TTSConfig

org.llm4s.speech.config.TTSConfig
See theTTSConfig companion object
final case class TTSConfig(provider: String, model: String, voice: String, apiKey: String, baseUrl: String, region: Option[String])

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: the model_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
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product