interface TranscriptionProvider 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
transcribe(TranscribableAudio $audio, string|null $language = null, bool $diarize = false, string|null $model = null, int|null $timeout = null, array $providerOptions = [])

Generate text from the given audio.

transcriptionGateway()

Get the provider's transcription gateway.

useTranscriptionGateway(TranscriptionGateway $gateway)

Set the provider's transcription gateway.

string
defaultTranscriptionModel()

Get the name of the default transcription (STT) 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 19
TranscriptionResponse transcribe(TranscribableAudio $audio, string|null $language = null, bool $diarize = false, string|null $model = null, int|null $timeout = null, array $providerOptions = [])

Generate text from the given audio.

Parameters

TranscribableAudio $audio
string|null $language
bool $diarize
string|null $model
int|null $timeout
array $providerOptions

Return Value

TranscriptionResponse

at line 31
TranscriptionGateway transcriptionGateway()

Get the provider's transcription gateway.

Return Value

TranscriptionGateway

at line 36
TranscriptionProvider useTranscriptionGateway(TranscriptionGateway $gateway)

Set the provider's transcription gateway.

Parameters

TranscriptionGateway $gateway

Return Value

TranscriptionProvider

at line 42
string defaultTranscriptionModel()

Get the name of the default transcription (STT) model.

Return Value

string