WordPress\AiClient\Providers\Models\TextToSpeechConversion\Contracts
TextToSpeechConversionOperationModelInterface::convertTextToSpeechOperation
Creates a text-to-speech conversion operation.
Method of the class: TextToSpeechConversionOperationModelInterface{}
No Hooks.
Returns
GenerativeAiOperation. The initiated text-to-speech conversion operation.
Usage
$TextToSpeechConversionOperationModelInterface = new TextToSpeechConversionOperationModelInterface(); $TextToSpeechConversionOperationModelInterface->convertTextToSpeechOperation( $prompt ): GenerativeAiOperation;
- $prompt(list
) (required) - Array of messages containing the text to convert to speech.
Changelog
| Since 0.1.0 | Introduced. |
TextToSpeechConversionOperationModelInterface::convertTextToSpeechOperation() TextToSpeechConversionOperationModelInterface::convertTextToSpeechOperation code WP 7.0
public function convertTextToSpeechOperation(array $prompt): GenerativeAiOperation;