[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/php-ai-client/src/Providers/Models/SpeechGeneration/Contracts/ -> SpeechGenerationModelInterface.php (source)

   1  <?php
   2  
   3  declare (strict_types=1);
   4  namespace WordPress\AiClient\Providers\Models\SpeechGeneration\Contracts;
   5  
   6  use WordPress\AiClient\Messages\DTO\Message;
   7  use WordPress\AiClient\Results\DTO\GenerativeAiResult;
   8  /**
   9   * Interface for models that support speech generation.
  10   *
  11   * Provides synchronous methods for generating speech from prompts.
  12   *
  13   * @since 0.1.0
  14   */
  15  interface SpeechGenerationModelInterface
  16  {
  17      /**
  18       * Generates speech from a prompt.
  19       *
  20       * @since 0.1.0
  21       *
  22       * @param list<Message> $prompt Array of messages containing the speech generation prompt.
  23       * @return GenerativeAiResult Result containing generated speech audio.
  24       */
  25      public function generateSpeechResult(array $prompt): GenerativeAiResult;
  26  }


Generated : Sat Jun 13 09:38:55 2026 Cross-referenced by PHPXref