AudioPrompt
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.
at line 31
bool
contains(string $string)
Determine if the text contains the given string.
at line 39
bool
isMale()
Determine if the voice is male.
at line 47
bool
isFemale()
Determine if the voice is female.