PromptBuilder::convertTextToSpeech(): WordPressAiClientFilesDTOFile

In this article

Converts text to speech.

Return

WordPressAiClientFilesDTOFile The generated speech audio file.

Source

public function convertTextToSpeech(): File
{
    return $this->convertTextToSpeechResult()->toFile();
}

Changelog

VersionDescription
0.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.