WordPress\AiClient\Providers\Models\SpeechGeneration\Contracts
SpeechGenerationOperationModelInterface::generateSpeechOperation
Creates a speech generation operation.
Method of the class: SpeechGenerationOperationModelInterface{}
No Hooks.
Returns
GenerativeAiOperation. The initiated speech generation operation.
Usage
$SpeechGenerationOperationModelInterface = new SpeechGenerationOperationModelInterface(); $SpeechGenerationOperationModelInterface->generateSpeechOperation( $prompt ): GenerativeAiOperation;
- $prompt(list
) (required) - Array of messages containing the speech generation prompt.
Changelog
| Since 0.1.0 | Introduced. |
SpeechGenerationOperationModelInterface::generateSpeechOperation() SpeechGenerationOperationModelInterface::generateSpeechOperation code WP 7.0
public function generateSpeechOperation(array $prompt): GenerativeAiOperation;