PromptBuilder::convertTextToSpeeches( int|null $candidateCount = null ): WordPressAiClientBuilderslist<File>

In this article

Converts text to multiple speech outputs.

Parameters

$candidateCountint|nulloptional
The number of speech outputs to generate.

Default:null

Return

WordPressAiClientBuilderslist<File> The generated speech audio files.

Source

public function convertTextToSpeeches(?int $candidateCount = null): array
{
    if ($candidateCount !== null) {
        $this->usingCandidateCount($candidateCount);
    }
    return $this->convertTextToSpeechResult()->toFiles();
}

Changelog

VersionDescription
0.1.0Introduced.

User Contributed Notes

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