WordPress\AiClient\Providers\Models\TextToSpeechConversion\Contracts

TextToSpeechConversionOperationModelInterface{}interfaceWP 0.1.0

Interface for models that support asynchronous text-to-speech conversion operations.

Provides methods for initiating long-running text-to-speech conversion tasks.

No Hooks.

Usage

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

Methods

  1. public convertTextToSpeechOperation(array $prompt)

Changelog

Since 0.1.0 Introduced.

TextToSpeechConversionOperationModelInterface{} code WP 7.0

interface TextToSpeechConversionOperationModelInterface
{
    /**
     * Creates a text-to-speech conversion operation.
     *
     * @since 0.1.0
     *
     * @param list<Message> $prompt Array of messages containing the text to convert to speech.
     * @return GenerativeAiOperation The initiated text-to-speech conversion operation.
     */
    public function convertTextToSpeechOperation(array $prompt): GenerativeAiOperation;
}