class QueuedAudioPrompt

Methods

__construct(string $text, string $voice, string|null $instructions, Provider|Lab|array|string|null $provider, string|null $model, int $timeout = 30, array $providerOptions = [])

Create a queued audio prompt.

bool
contains(string $string)

Determine if the text contains the given string.

bool
isMale()

Determine if the voice is male.

bool
isFemale()

Determine if the voice is female.

Details

at line 18
__construct(string $text, string $voice, string|null $instructions, Provider|Lab|array|string|null $provider, string|null $model, int $timeout = 30, array $providerOptions = [])

Create a queued audio prompt.

Parameters

string $text
string $voice
string|null $instructions
Provider|Lab|array|string|null $provider
string|null $model
int $timeout
array $providerOptions

at line 32
bool contains(string $string)

Determine if the text contains the given string.

Parameters

string $string

Return Value

bool

at line 40
bool isMale()

Determine if the voice is male.

Return Value

bool

at line 48
bool isFemale()

Determine if the voice is female.

Return Value

bool