WordPress\AiClient\Providers\Models\TextToSpeechConversion\Contracts
TextToSpeechConversionOperationModelInterface::convertTextToSpeechOperation
Creates a text-to-speech conversion operation.
Метод класса: TextToSpeechConversionOperationModelInterface{}
Хуков нет.
Возвращает
GenerativeAiOperation. The initiated text-to-speech conversion operation.
Использование
$TextToSpeechConversionOperationModelInterface = new TextToSpeechConversionOperationModelInterface(); $TextToSpeechConversionOperationModelInterface->convertTextToSpeechOperation( $prompt ): GenerativeAiOperation;
- $prompt(list
) (обязательный) - Array of messages containing the text to convert to speech.
Список изменений
| С версии 0.1.0 | Введена. |
Код TextToSpeechConversionOperationModelInterface::convertTextToSpeechOperation() TextToSpeechConversionOperationModelInterface::convertTextToSpeechOperation WP 7.1.2
public function convertTextToSpeechOperation(array $prompt): GenerativeAiOperation;