CoreFiles by mySites.guru
TextToSpeechConversionOperationModelInterface.php26 lines, 855 bytes, from wordpress-7.0.zip
Raw History Compare with 6.9.11
md5
4687a943b65a0429dbb2e7884f02102d
sha1
11c01eeabd10705b4e8eca9603de8a62f0799137
sha256
d539853cb49a832ca72028dc8e05f58a9386dbc64223631e75ea589289fdd913
<?php

declare (strict_types=1);
namespace WordPress\AiClient\Providers\Models\TextToSpeechConversion\Contracts;

use WordPress\AiClient\Messages\DTO\Message;
use WordPress\AiClient\Operations\DTO\GenerativeAiOperation;
/**
 * Interface for models that support asynchronous text-to-speech conversion operations.
 *
 * Provides methods for initiating long-running text-to-speech conversion tasks.
 *
 * @since 0.1.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;
}

The same content is in 41 releases, WordPress 7.0-beta1 to 7.2-RC1. See them all, or every version of this file.