WordPress\AiClient\Builders

PromptBuilder::asOutputSpeechVoicepublicWP 1.3.0

Sets the output speech voice.

Method of the class: PromptBuilder{}

No Hooks.

Returns

self.

Usage

$PromptBuilder = new PromptBuilder();
$PromptBuilder->asOutputSpeechVoice( $voice ): self;
$voice(string) (required)
The output speech voice.

Changelog

Since 1.3.0 Introduced.

PromptBuilder::asOutputSpeechVoice() code WP 7.0

public function asOutputSpeechVoice(string $voice): self
{
    $this->modelConfig->setOutputSpeechVoice($voice);
    return $this;
}