interface AudioProvider implements Provider

Methods

string
name()

Get the name of the underlying AI provider.

from  Provider
string
driver()

Get the name of the underlying AI driver.

from  Provider
array
providerCredentials()

Get the credentials for the underlying AI provider.

from  Provider
array
additionalConfiguration()

Get the provider connection configuration other than the driver, key, and name.

from  Provider
withHeaders(array $headers)

Get a provider instance that sends the given HTTP headers with each request.

from  Provider
audio(string $text, string $voice = 'default-female', string|null $instructions = null, string|null $model = null, int $timeout = 30, array $providerOptions = [])

Generate audio from the given text.

audioGateway()

Get the provider's audio gateway.

useAudioGateway(AudioGateway $gateway)

Set the provider's audio gateway.

string
defaultAudioModel()

Get the name of the default audio (TTS) model.

Details

in Provider at line 12
string name()

Get the name of the underlying AI provider.

Return Value

string

in Provider at line 17
string driver()

Get the name of the underlying AI driver.

Return Value

string

in Provider at line 24
array providerCredentials()

Get the credentials for the underlying AI provider.

Return Value

array

in Provider at line 31
array additionalConfiguration()

Get the provider connection configuration other than the driver, key, and name.

Return Value

array

in Provider at line 40
Provider withHeaders(array $headers)

internal  
 

Get a provider instance that sends the given HTTP headers with each request.

Parameters

array $headers

Return Value

Provider

at line 18
AudioResponse audio(string $text, string $voice = 'default-female', string|null $instructions = null, string|null $model = null, int $timeout = 30, array $providerOptions = [])

Generate audio from the given text.

Parameters

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

Return Value

AudioResponse

at line 30
AudioGateway audioGateway()

Get the provider's audio gateway.

Return Value

AudioGateway

at line 35
AudioProvider useAudioGateway(AudioGateway $gateway)

Set the provider's audio gateway.

Parameters

AudioGateway $gateway

Return Value

AudioProvider

at line 41
string defaultAudioModel()

Get the name of the default audio (TTS) model.

Return Value

string