class AudioPrompt

Methods

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

Create an 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 17
__construct(string $text, string $voice, string|null $instructions, AudioProvider $provider, string $model, int $timeout = 30, array $providerOptions = [])

Create an audio prompt.

Parameters

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

at line 31
bool contains(string $string)

Determine if the text contains the given string.

Parameters

string $string

Return Value

bool

at line 39
bool isMale()

Determine if the voice is male.

Return Value

bool

at line 47
bool isFemale()

Determine if the voice is female.

Return Value

bool