CoreFiles by mySites.guru
SpeechGenerationModelInterface.php26 lines, 744 bytes, from wordpress-7.0-beta1.zip
Raw History Compare with 6.9-beta4
md5
28fcd9be65c8a1768e87eb015df784d7
sha1
7d7171415368223cace80022161f992cc7ef9d3a
sha256
0a689d2273d817f4975ad86a5c88e07699a2c1e4b8318663a8f7396537025f6c
<?php

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

use WordPress\AiClient\Messages\DTO\Message;
use WordPress\AiClient\Results\DTO\GenerativeAiResult;
/**
 * Interface for models that support speech generation.
 *
 * Provides synchronous methods for generating speech from prompts.
 *
 * @since 0.1.0
 */
interface SpeechGenerationModelInterface
{
    /**
     * Generates speech from a prompt.
     *
     * @since 0.1.0
     *
     * @param list<Message> $prompt Array of messages containing the speech generation prompt.
     * @return GenerativeAiResult Result containing generated speech audio.
     */
    public function generateSpeechResult(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.