openai_text_to_speech_driver
OpenAiTextToSpeechDriver
Bases: BaseTextToSpeechDriver
OpenAiTextToSpeechDriver
Bases: BaseTextToSpeechDriver
griptape/drivers/text_to_speech/openai_text_to_speech_driver.py
api_key: Optional[str] = field(default=None, kw_only=True)
class-attribute
instance-attribute
api_type: Optional[str] = field(default=openai.api_type, kw_only=True)
class-attribute
instance-attribute
api_version: Optional[str] = field(default=openai.api_version, kw_only=True, metadata={'serializable': True})
class-attribute
instance-attribute
base_url: Optional[str] = field(default=None, kw_only=True, metadata={'serializable': True})
class-attribute
instance-attribute
format: Literal['mp3', 'opus', 'aac', 'flac'] = field(default='mp3', kw_only=True, metadata={'serializable': True})
class-attribute
instance-attribute
model: str = field(default='tts-1', kw_only=True, metadata={'serializable': True})
class-attribute
instance-attribute
organization: Optional[str] = field(default=openai.organization, kw_only=True, metadata={'serializable': True})
class-attribute
instance-attribute
voice: Literal['alloy', 'echo', 'fable', 'onyx', 'nova', 'shimmer'] = field(default='alloy', kw_only=True, metadata={'serializable': True})
class-attribute
instance-attribute
client()
try_text_to_audio(prompts)
griptape/drivers/text_to_speech/openai_text_to_speech_driver.py