WordPress\AiClient\Providers\Models\SpeechGeneration\Contracts

SpeechGenerationModelInterface::generateSpeechResultpublicWP 0.1.0

Generates speech from a prompt.

Method of the class: SpeechGenerationModelInterface{}

No Hooks.

Returns

GenerativeAiResult. Result containing generated speech audio.

Usage

$SpeechGenerationModelInterface = new SpeechGenerationModelInterface();
$SpeechGenerationModelInterface->generateSpeechResult( $prompt ): GenerativeAiResult;
$prompt(list) (required)
Array of messages containing the speech generation prompt.

Changelog

Since 0.1.0 Introduced.

SpeechGenerationModelInterface::generateSpeechResult() code WP 7.0

public function generateSpeechResult(array $prompt): GenerativeAiResult;