| [ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Summary view] [Print] [Text view]
1 <?php 2 3 declare (strict_types=1); 4 namespace WordPress\AiClient\Providers\Models\TextToSpeechConversion\Contracts; 5 6 use WordPress\AiClient\Messages\DTO\Message; 7 use WordPress\AiClient\Results\DTO\GenerativeAiResult; 8 /** 9 * Interface for models that support text-to-speech conversion. 10 * 11 * Provides synchronous methods for converting text to speech audio. 12 * 13 * @since 0.1.0 14 */ 15 interface TextToSpeechConversionModelInterface 16 { 17 /** 18 * Converts text to speech. 19 * 20 * @since 0.1.0 21 * 22 * @param list<Message> $prompt Array of messages containing the text to convert to speech. 23 * @return GenerativeAiResult Result containing generated speech audio. 24 */ 25 public function convertTextToSpeechResult(array $prompt): GenerativeAiResult; 26 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated : Sat Jun 13 09:38:55 2026 | Cross-referenced by PHPXref |