class RecognitionConfig extends Collection (View source)

Properties

protected $collection_key
protected $adaptationType
protected $adaptationDataType
string[] $alternativeLanguageCodes
int $audioChannelCount
protected $diarizationConfigType
protected $diarizationConfigDataType
bool $enableAutomaticPunctuation
bool $enableSeparateRecognitionPerChannel
bool $enableSpokenEmojis
bool $enableSpokenPunctuation
bool $enableWordConfidence
bool $enableWordTimeOffsets
string $encoding
string $languageCode
int $maxAlternatives
protected $metadataType
protected $metadataDataType
string $model
bool $profanityFilter
int $sampleRateHertz
protected $speechContextsType
protected $speechContextsDataType
protected $transcriptNormalizationType
protected $transcriptNormalizationDataType
bool $useEnhanced

Methods

setAdaptation(SpeechAdaptation $adaptation)

No description

getAdaptation()

No description

setAlternativeLanguageCodes($alternativeLanguageCodes)

No description

string[]
getAlternativeLanguageCodes()

No description

setAudioChannelCount($audioChannelCount)

No description

int
getAudioChannelCount()

No description

setDiarizationConfig(SpeakerDiarizationConfig $diarizationConfig)

No description

setEnableAutomaticPunctuation($enableAutomaticPunctuation)

No description

bool
setEnableSeparateRecognitionPerChannel($enableSeparateRecognitionPerChannel)

No description

setEnableSpokenEmojis($enableSpokenEmojis)

No description

bool
getEnableSpokenEmojis()

No description

setEnableSpokenPunctuation($enableSpokenPunctuation)

No description

bool
getEnableSpokenPunctuation()

No description

setEnableWordConfidence($enableWordConfidence)

No description

bool
getEnableWordConfidence()

No description

setEnableWordTimeOffsets($enableWordTimeOffsets)

No description

bool
getEnableWordTimeOffsets()

No description

setEncoding($encoding)

No description

string
getEncoding()

No description

setLanguageCode($languageCode)

No description

string
getLanguageCode()

No description

setMaxAlternatives($maxAlternatives)

No description

int
getMaxAlternatives()

No description

setMetadata(RecognitionMetadata $metadata)

No description

getMetadata()

No description

setModel($model)

No description

string
getModel()

No description

setProfanityFilter($profanityFilter)

No description

bool
getProfanityFilter()

No description

setSampleRateHertz($sampleRateHertz)

No description

int
getSampleRateHertz()

No description

setSpeechContexts($speechContexts)

No description

getSpeechContexts()

No description

setTranscriptNormalization(TranscriptNormalization $transcriptNormalization)

No description

setUseEnhanced($useEnhanced)

No description

bool
getUseEnhanced()

No description

Details

setAdaptation(SpeechAdaptation $adaptation)

No description

Parameters

SpeechAdaptation $adaptation

SpeechAdaptation getAdaptation()

No description

Return Value

SpeechAdaptation

setAlternativeLanguageCodes($alternativeLanguageCodes)

No description

Parameters

$alternativeLanguageCodes

string[] getAlternativeLanguageCodes()

No description

Return Value

string[]

setAudioChannelCount($audioChannelCount)

No description

Parameters

$audioChannelCount

int getAudioChannelCount()

No description

Return Value

int

setDiarizationConfig(SpeakerDiarizationConfig $diarizationConfig)

No description

Parameters

SpeakerDiarizationConfig $diarizationConfig

SpeakerDiarizationConfig getDiarizationConfig()

No description

setEnableAutomaticPunctuation($enableAutomaticPunctuation)

No description

Parameters

$enableAutomaticPunctuation

bool getEnableAutomaticPunctuation()

No description

Return Value

bool

setEnableSeparateRecognitionPerChannel($enableSeparateRecognitionPerChannel)

No description

Parameters

$enableSeparateRecognitionPerChannel

bool getEnableSeparateRecognitionPerChannel()

No description

Return Value

bool

setEnableSpokenEmojis($enableSpokenEmojis)

No description

Parameters

$enableSpokenEmojis

bool getEnableSpokenEmojis()

No description

Return Value

bool

setEnableSpokenPunctuation($enableSpokenPunctuation)

No description

Parameters

$enableSpokenPunctuation

bool getEnableSpokenPunctuation()

No description

Return Value

bool

setEnableWordConfidence($enableWordConfidence)

No description

Parameters

$enableWordConfidence

bool getEnableWordConfidence()

No description

Return Value

bool

setEnableWordTimeOffsets($enableWordTimeOffsets)

No description

Parameters

$enableWordTimeOffsets

bool getEnableWordTimeOffsets()

No description

Return Value

bool

setEncoding($encoding)

No description

Parameters

$encoding

string getEncoding()

No description

Return Value

string

setLanguageCode($languageCode)

No description

Parameters

$languageCode

string getLanguageCode()

No description

Return Value

string

setMaxAlternatives($maxAlternatives)

No description

Parameters

$maxAlternatives

int getMaxAlternatives()

No description

Return Value

int

setMetadata(RecognitionMetadata $metadata)

No description

Parameters

RecognitionMetadata $metadata

RecognitionMetadata getMetadata()

No description

Return Value

RecognitionMetadata

setModel($model)

No description

Parameters

$model

string getModel()

No description

Return Value

string

setProfanityFilter($profanityFilter)

No description

Parameters

$profanityFilter

bool getProfanityFilter()

No description

Return Value

bool

setSampleRateHertz($sampleRateHertz)

No description

Parameters

$sampleRateHertz

int getSampleRateHertz()

No description

Return Value

int

setSpeechContexts($speechContexts)

No description

Parameters

$speechContexts

SpeechContext[] getSpeechContexts()

No description

Return Value

SpeechContext[]

setTranscriptNormalization(TranscriptNormalization $transcriptNormalization)

No description

Parameters

TranscriptNormalization $transcriptNormalization

TranscriptNormalization getTranscriptNormalization()

No description

setUseEnhanced($useEnhanced)

No description

Parameters

$useEnhanced

bool getUseEnhanced()

No description

Return Value

bool