CoreFiles by mySites.guru
TextToSpeechConversionModelInterface.php26 lines, 764 bytes, from wordpress-7.2-beta2.zip
Raw History Compare with 7.2-beta1
md5
477b6203d5fbd71059362d7c503cede7
sha1
746c36252a48af5c537d7b31974286dcc082fa0d
sha256
a496c44cf23dab4adcc8448a8a3645980061d80beef8f3940c240ff2bdcde618
<?php

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

use WordPress\AiClient\Messages\DTO\Message;
use WordPress\AiClient\Results\DTO\GenerativeAiResult;
/**
 * Interface for models that support text-to-speech conversion.
 *
 * Provides synchronous methods for converting text to speech audio.
 *
 * @since 0.1.0
 */
interface TextToSpeechConversionModelInterface
{
    /**
     * Converts text to speech.
     *
     * @since 0.1.0
     *
     * @param list<Message> $prompt Array of messages containing the text to convert to speech.
     * @return GenerativeAiResult Result containing generated speech audio.
     */
    public function convertTextToSpeechResult(array $prompt): GenerativeAiResult;
}

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