WordPress\AiClient\Providers\Models\SpeechGeneration\Contracts
SpeechGenerationModelInterface::generateSpeechResult
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() SpeechGenerationModelInterface::generateSpeechResult code WP 7.0
public function generateSpeechResult(array $prompt): GenerativeAiResult;