WordPress\AiClient\Providers\Models\SpeechGeneration\Contracts

SpeechGenerationModelInterface::generateSpeechResult │ public │ WP 0.1.0

Generates speech from a prompt.

Метод класса: SpeechGenerationModelInterface{}

Хуков нет.

Возвращает

GenerativeAiResult. Result containing generated speech audio.

Использование

$SpeechGenerationModelInterface = new SpeechGenerationModelInterface();
$SpeechGenerationModelInterface->generateSpeechResult( $prompt ): GenerativeAiResult;
$prompt(list) (обязательный)
Array of messages containing the speech generation prompt.

Список изменений

С версии 0.1.0 Введена.

Код SpeechGenerationModelInterface::generateSpeechResult() WP 7.1.4

public function generateSpeechResult(array $prompt): GenerativeAiResult;