TransformersTextToSpeech

Text to speech task

Subclass of Task.

Module: implementation.tasks

Default predictor

This task uses TransformersPipeline by default with this configuration:

TransformersPipeline(
    cfg=TransformersPipelineConfig(
        task="text-to-speech",
        model="suno/bark-small",
        model_kwargs={
            "do_sample": True,
        },
    ),
    input_class=TransformersTextToSpeechInput,
    output_class=TransformersTextToSpeechOutput
)

See:

Methods and properties

Main methods and properties


__init__

Arguments:

  • predictor (Predictor[Any, Any], optional): Predictor that will be used in task. If equals to None, default predictor will be used. Defaults to None.

  • preprocess (Optional[Component], optional): Component executed before predictor. Defaults to None.

  • postprocess (Optional[Component], optional): Component executed after predictor. Defaults to None.

  • input_class (Type[Input], optional): Class for input validation. Defaults to TransformersTextToSpeechInput.

  • output_class (Type[Output], optional): Class for output validation. Defaults to TransformersTextToSpeechOutput.

  • name (Optional[str], optional): Name for identification. If equals to None, class name will be used. Defaults to None.



Last updated