WordPress\AiClient\Providers\Models\SpeechGeneration\Contracts

SpeechGenerationOperationModelInterface{}interfaceWP 0.1.0

Interface for models that support asynchronous speech generation operations.

Provides methods for initiating long-running speech generation tasks.

No Hooks.

Usage

$SpeechGenerationOperationModelInterface = new SpeechGenerationOperationModelInterface();
// use class methods

Methods

  1. public generateSpeechOperation(array $prompt)

Changelog

Since 0.1.0 Introduced.

SpeechGenerationOperationModelInterface{} code WP 7.0

interface SpeechGenerationOperationModelInterface
{
    /**
     * Creates a speech generation operation.
     *
     * @since 0.1.0
     *
     * @param list<Message> $prompt Array of messages containing the speech generation prompt.
     * @return GenerativeAiOperation The initiated speech generation operation.
     */
    public function generateSpeechOperation(array $prompt): GenerativeAiOperation;
}