Skip to content

dummy_text_to_speech_driver

DummyTextToSpeechDriver

Bases: BaseTextToSpeechDriver

Source code in griptape/drivers/text_to_speech/dummy_text_to_speech_driver.py
@define
class DummyTextToSpeechDriver(BaseTextToSpeechDriver):
    model: None = field(init=False, default=None, kw_only=True)

    def try_text_to_audio(self, prompts: list[str]) -> AudioArtifact:
        raise DummyError(__class__.__name__, "try_text_to_audio")

model: None = field(init=False, default=None, kw_only=True) class-attribute instance-attribute

try_text_to_audio(prompts)

Source code in griptape/drivers/text_to_speech/dummy_text_to_speech_driver.py
def try_text_to_audio(self, prompts: list[str]) -> AudioArtifact:
    raise DummyError(__class__.__name__, "try_text_to_audio")