WordPress\AiClient\Providers\Models\SpeechGeneration\Contracts
SpeechGenerationOperationModelInterface{}
Interface for models that support asynchronous speech generation operations.
Provides methods for initiating long-running speech generation tasks.
Хуков нет.
Использование
$SpeechGenerationOperationModelInterface = new SpeechGenerationOperationModelInterface(); // use class methods
Методы
Список изменений
| С версии 0.1.0 | Введена. |
Код SpeechGenerationOperationModelInterface{} SpeechGenerationOperationModelInterface{} WP 7.1.3
interface SpeechGenerationOperationModelInterface
{
/**
* Creates a speech generation operation.
*
* @since 0.1.0
*
* @param list<Message> $prompt Array of messages containing the speech generation prompt.
* @return GenerativeAiOperation The initiated speech generation operation.
*/
public function generateSpeechOperation(array $prompt): GenerativeAiOperation;
}