Initial commit

This commit is contained in:
Local Administrator
2025-04-18 10:32:42 +02:00
commit b83134aca3
29643 changed files with 3045897 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Speech;
class ABNFGrammar extends \Google\Collection
{
protected $collection_key = 'abnfStrings';
/**
* @var string[]
*/
public $abnfStrings;
/**
* @param string[]
*/
public function setAbnfStrings($abnfStrings)
{
$this->abnfStrings = $abnfStrings;
}
/**
* @return string[]
*/
public function getAbnfStrings()
{
return $this->abnfStrings;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ABNFGrammar::class, 'Google_Service_Speech_ABNFGrammar');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Speech;
class ClassItem extends \Google\Model
{
/**
* @var string
*/
public $value;
/**
* @param string
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ClassItem::class, 'Google_Service_Speech_ClassItem');

View File

@@ -0,0 +1,60 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Speech;
class CreateCustomClassRequest extends \Google\Model
{
protected $customClassType = CustomClass::class;
protected $customClassDataType = '';
/**
* @var string
*/
public $customClassId;
/**
* @param CustomClass
*/
public function setCustomClass(CustomClass $customClass)
{
$this->customClass = $customClass;
}
/**
* @return CustomClass
*/
public function getCustomClass()
{
return $this->customClass;
}
/**
* @param string
*/
public function setCustomClassId($customClassId)
{
$this->customClassId = $customClassId;
}
/**
* @return string
*/
public function getCustomClassId()
{
return $this->customClassId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CreateCustomClassRequest::class, 'Google_Service_Speech_CreateCustomClassRequest');

View File

@@ -0,0 +1,60 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Speech;
class CreatePhraseSetRequest extends \Google\Model
{
protected $phraseSetType = PhraseSet::class;
protected $phraseSetDataType = '';
/**
* @var string
*/
public $phraseSetId;
/**
* @param PhraseSet
*/
public function setPhraseSet(PhraseSet $phraseSet)
{
$this->phraseSet = $phraseSet;
}
/**
* @return PhraseSet
*/
public function getPhraseSet()
{
return $this->phraseSet;
}
/**
* @param string
*/
public function setPhraseSetId($phraseSetId)
{
$this->phraseSetId = $phraseSetId;
}
/**
* @return string
*/
public function getPhraseSetId()
{
return $this->phraseSetId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CreatePhraseSetRequest::class, 'Google_Service_Speech_CreatePhraseSetRequest');

View File

@@ -0,0 +1,259 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Speech;
class CustomClass extends \Google\Collection
{
protected $collection_key = 'items';
/**
* @var string[]
*/
public $annotations;
/**
* @var string
*/
public $customClassId;
/**
* @var string
*/
public $deleteTime;
/**
* @var string
*/
public $displayName;
/**
* @var string
*/
public $etag;
/**
* @var string
*/
public $expireTime;
protected $itemsType = ClassItem::class;
protected $itemsDataType = 'array';
/**
* @var string
*/
public $kmsKeyName;
/**
* @var string
*/
public $kmsKeyVersionName;
/**
* @var string
*/
public $name;
/**
* @var bool
*/
public $reconciling;
/**
* @var string
*/
public $state;
/**
* @var string
*/
public $uid;
/**
* @param string[]
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* @param string
*/
public function setCustomClassId($customClassId)
{
$this->customClassId = $customClassId;
}
/**
* @return string
*/
public function getCustomClassId()
{
return $this->customClassId;
}
/**
* @param string
*/
public function setDeleteTime($deleteTime)
{
$this->deleteTime = $deleteTime;
}
/**
* @return string
*/
public function getDeleteTime()
{
return $this->deleteTime;
}
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param string
*/
public function setExpireTime($expireTime)
{
$this->expireTime = $expireTime;
}
/**
* @return string
*/
public function getExpireTime()
{
return $this->expireTime;
}
/**
* @param ClassItem[]
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return ClassItem[]
*/
public function getItems()
{
return $this->items;
}
/**
* @param string
*/
public function setKmsKeyName($kmsKeyName)
{
$this->kmsKeyName = $kmsKeyName;
}
/**
* @return string
*/
public function getKmsKeyName()
{
return $this->kmsKeyName;
}
/**
* @param string
*/
public function setKmsKeyVersionName($kmsKeyVersionName)
{
$this->kmsKeyVersionName = $kmsKeyVersionName;
}
/**
* @return string
*/
public function getKmsKeyVersionName()
{
return $this->kmsKeyVersionName;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param bool
*/
public function setReconciling($reconciling)
{
$this->reconciling = $reconciling;
}
/**
* @return bool
*/
public function getReconciling()
{
return $this->reconciling;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param string
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomClass::class, 'Google_Service_Speech_CustomClass');

View File

@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Speech;
class Entry extends \Google\Model
{
/**
* @var bool
*/
public $caseSensitive;
/**
* @var string
*/
public $replace;
/**
* @var string
*/
public $search;
/**
* @param bool
*/
public function setCaseSensitive($caseSensitive)
{
$this->caseSensitive = $caseSensitive;
}
/**
* @return bool
*/
public function getCaseSensitive()
{
return $this->caseSensitive;
}
/**
* @param string
*/
public function setReplace($replace)
{
$this->replace = $replace;
}
/**
* @return string
*/
public function getReplace()
{
return $this->replace;
}
/**
* @param string
*/
public function setSearch($search)
{
$this->search = $search;
}
/**
* @return string
*/
public function getSearch()
{
return $this->search;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Entry::class, 'Google_Service_Speech_Entry');

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Speech;
class ListCustomClassesResponse extends \Google\Collection
{
protected $collection_key = 'customClasses';
protected $customClassesType = CustomClass::class;
protected $customClassesDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param CustomClass[]
*/
public function setCustomClasses($customClasses)
{
$this->customClasses = $customClasses;
}
/**
* @return CustomClass[]
*/
public function getCustomClasses()
{
return $this->customClasses;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListCustomClassesResponse::class, 'Google_Service_Speech_ListCustomClassesResponse');

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Speech;
class ListOperationsResponse extends \Google\Collection
{
protected $collection_key = 'operations';
/**
* @var string
*/
public $nextPageToken;
protected $operationsType = Operation::class;
protected $operationsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Operation[]
*/
public function setOperations($operations)
{
$this->operations = $operations;
}
/**
* @return Operation[]
*/
public function getOperations()
{
return $this->operations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListOperationsResponse::class, 'Google_Service_Speech_ListOperationsResponse');

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Speech;
class ListPhraseSetResponse extends \Google\Collection
{
protected $collection_key = 'phraseSets';
/**
* @var string
*/
public $nextPageToken;
protected $phraseSetsType = PhraseSet::class;
protected $phraseSetsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param PhraseSet[]
*/
public function setPhraseSets($phraseSets)
{
$this->phraseSets = $phraseSets;
}
/**
* @return PhraseSet[]
*/
public function getPhraseSets()
{
return $this->phraseSets;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListPhraseSetResponse::class, 'Google_Service_Speech_ListPhraseSetResponse');

View File

@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Speech;
class LongRunningRecognizeMetadata extends \Google\Model
{
/**
* @var string
*/
public $lastUpdateTime;
/**
* @var int
*/
public $progressPercent;
/**
* @var string
*/
public $startTime;
/**
* @var string
*/
public $uri;
/**
* @param string
*/
public function setLastUpdateTime($lastUpdateTime)
{
$this->lastUpdateTime = $lastUpdateTime;
}
/**
* @return string
*/
public function getLastUpdateTime()
{
return $this->lastUpdateTime;
}
/**
* @param int
*/
public function setProgressPercent($progressPercent)
{
$this->progressPercent = $progressPercent;
}
/**
* @return int
*/
public function getProgressPercent()
{
return $this->progressPercent;
}
/**
* @param string
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
/**
* @param string
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LongRunningRecognizeMetadata::class, 'Google_Service_Speech_LongRunningRecognizeMetadata');

View File

@@ -0,0 +1,74 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Speech;
class LongRunningRecognizeRequest extends \Google\Model
{
protected $audioType = RecognitionAudio::class;
protected $audioDataType = '';
protected $configType = RecognitionConfig::class;
protected $configDataType = '';
protected $outputConfigType = TranscriptOutputConfig::class;
protected $outputConfigDataType = '';
/**
* @param RecognitionAudio
*/
public function setAudio(RecognitionAudio $audio)
{
$this->audio = $audio;
}
/**
* @return RecognitionAudio
*/
public function getAudio()
{
return $this->audio;
}
/**
* @param RecognitionConfig
*/
public function setConfig(RecognitionConfig $config)
{
$this->config = $config;
}
/**
* @return RecognitionConfig
*/
public function getConfig()
{
return $this->config;
}
/**
* @param TranscriptOutputConfig
*/
public function setOutputConfig(TranscriptOutputConfig $outputConfig)
{
$this->outputConfig = $outputConfig;
}
/**
* @return TranscriptOutputConfig
*/
public function getOutputConfig()
{
return $this->outputConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LongRunningRecognizeRequest::class, 'Google_Service_Speech_LongRunningRecognizeRequest');

View File

@@ -0,0 +1,127 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Speech;
class LongRunningRecognizeResponse extends \Google\Collection
{
protected $collection_key = 'results';
protected $outputConfigType = TranscriptOutputConfig::class;
protected $outputConfigDataType = '';
protected $outputErrorType = Status::class;
protected $outputErrorDataType = '';
/**
* @var string
*/
public $requestId;
protected $resultsType = SpeechRecognitionResult::class;
protected $resultsDataType = 'array';
protected $speechAdaptationInfoType = SpeechAdaptationInfo::class;
protected $speechAdaptationInfoDataType = '';
/**
* @var string
*/
public $totalBilledTime;
/**
* @param TranscriptOutputConfig
*/
public function setOutputConfig(TranscriptOutputConfig $outputConfig)
{
$this->outputConfig = $outputConfig;
}
/**
* @return TranscriptOutputConfig
*/
public function getOutputConfig()
{
return $this->outputConfig;
}
/**
* @param Status
*/
public function setOutputError(Status $outputError)
{
$this->outputError = $outputError;
}
/**
* @return Status
*/
public function getOutputError()
{
return $this->outputError;
}
/**
* @param string
*/
public function setRequestId($requestId)
{
$this->requestId = $requestId;
}
/**
* @return string
*/
public function getRequestId()
{
return $this->requestId;
}
/**
* @param SpeechRecognitionResult[]
*/
public function setResults($results)
{
$this->results = $results;
}
/**
* @return SpeechRecognitionResult[]
*/
public function getResults()
{
return $this->results;
}
/**
* @param SpeechAdaptationInfo
*/
public function setSpeechAdaptationInfo(SpeechAdaptationInfo $speechAdaptationInfo)
{
$this->speechAdaptationInfo = $speechAdaptationInfo;
}
/**
* @return SpeechAdaptationInfo
*/
public function getSpeechAdaptationInfo()
{
return $this->speechAdaptationInfo;
}
/**
* @param string
*/
public function setTotalBilledTime($totalBilledTime)
{
$this->totalBilledTime = $totalBilledTime;
}
/**
* @return string
*/
public function getTotalBilledTime()
{
return $this->totalBilledTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LongRunningRecognizeResponse::class, 'Google_Service_Speech_LongRunningRecognizeResponse');

View File

@@ -0,0 +1,114 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Speech;
class Operation extends \Google\Model
{
/**
* @var bool
*/
public $done;
protected $errorType = Status::class;
protected $errorDataType = '';
/**
* @var array[]
*/
public $metadata;
/**
* @var string
*/
public $name;
/**
* @var array[]
*/
public $response;
/**
* @param bool
*/
public function setDone($done)
{
$this->done = $done;
}
/**
* @return bool
*/
public function getDone()
{
return $this->done;
}
/**
* @param Status
*/
public function setError(Status $error)
{
$this->error = $error;
}
/**
* @return Status
*/
public function getError()
{
return $this->error;
}
/**
* @param array[]
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param array[]
*/
public function setResponse($response)
{
$this->response = $response;
}
/**
* @return array[]
*/
public function getResponse()
{
return $this->response;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Operation::class, 'Google_Service_Speech_Operation');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Speech;
class Phrase extends \Google\Model
{
/**
* @var float
*/
public $boost;
/**
* @var string
*/
public $value;
/**
* @param float
*/
public function setBoost($boost)
{
$this->boost = $boost;
}
/**
* @return float
*/
public function getBoost()
{
return $this->boost;
}
/**
* @param string
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Phrase::class, 'Google_Service_Speech_Phrase');

View File

@@ -0,0 +1,259 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Speech;
class PhraseSet extends \Google\Collection
{
protected $collection_key = 'phrases';
/**
* @var string[]
*/
public $annotations;
/**
* @var float
*/
public $boost;
/**
* @var string
*/
public $deleteTime;
/**
* @var string
*/
public $displayName;
/**
* @var string
*/
public $etag;
/**
* @var string
*/
public $expireTime;
/**
* @var string
*/
public $kmsKeyName;
/**
* @var string
*/
public $kmsKeyVersionName;
/**
* @var string
*/
public $name;
protected $phrasesType = Phrase::class;
protected $phrasesDataType = 'array';
/**
* @var bool
*/
public $reconciling;
/**
* @var string
*/
public $state;
/**
* @var string
*/
public $uid;
/**
* @param string[]
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* @param float
*/
public function setBoost($boost)
{
$this->boost = $boost;
}
/**
* @return float
*/
public function getBoost()
{
return $this->boost;
}
/**
* @param string
*/
public function setDeleteTime($deleteTime)
{
$this->deleteTime = $deleteTime;
}
/**
* @return string
*/
public function getDeleteTime()
{
return $this->deleteTime;
}
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param string
*/
public function setExpireTime($expireTime)
{
$this->expireTime = $expireTime;
}
/**
* @return string
*/
public function getExpireTime()
{
return $this->expireTime;
}
/**
* @param string
*/
public function setKmsKeyName($kmsKeyName)
{
$this->kmsKeyName = $kmsKeyName;
}
/**
* @return string
*/
public function getKmsKeyName()
{
return $this->kmsKeyName;
}
/**
* @param string
*/
public function setKmsKeyVersionName($kmsKeyVersionName)
{
$this->kmsKeyVersionName = $kmsKeyVersionName;
}
/**
* @return string
*/
public function getKmsKeyVersionName()
{
return $this->kmsKeyVersionName;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param Phrase[]
*/
public function setPhrases($phrases)
{
$this->phrases = $phrases;
}
/**
* @return Phrase[]
*/
public function getPhrases()
{
return $this->phrases;
}
/**
* @param bool
*/
public function setReconciling($reconciling)
{
$this->reconciling = $reconciling;
}
/**
* @return bool
*/
public function getReconciling()
{
return $this->reconciling;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param string
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PhraseSet::class, 'Google_Service_Speech_PhraseSet');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Speech;
class RecognitionAudio extends \Google\Model
{
/**
* @var string
*/
public $content;
/**
* @var string
*/
public $uri;
/**
* @param string
*/
public function setContent($content)
{
$this->content = $content;
}
/**
* @return string
*/
public function getContent()
{
return $this->content;
}
/**
* @param string
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RecognitionAudio::class, 'Google_Service_Speech_RecognitionAudio');

View File

@@ -0,0 +1,377 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Speech;
class RecognitionConfig extends \Google\Collection
{
protected $collection_key = 'speechContexts';
protected $adaptationType = SpeechAdaptation::class;
protected $adaptationDataType = '';
/**
* @var string[]
*/
public $alternativeLanguageCodes;
/**
* @var int
*/
public $audioChannelCount;
protected $diarizationConfigType = SpeakerDiarizationConfig::class;
protected $diarizationConfigDataType = '';
/**
* @var bool
*/
public $enableAutomaticPunctuation;
/**
* @var bool
*/
public $enableSeparateRecognitionPerChannel;
/**
* @var bool
*/
public $enableSpokenEmojis;
/**
* @var bool
*/
public $enableSpokenPunctuation;
/**
* @var bool
*/
public $enableWordConfidence;
/**
* @var bool
*/
public $enableWordTimeOffsets;
/**
* @var string
*/
public $encoding;
/**
* @var string
*/
public $languageCode;
/**
* @var int
*/
public $maxAlternatives;
protected $metadataType = RecognitionMetadata::class;
protected $metadataDataType = '';
/**
* @var string
*/
public $model;
/**
* @var bool
*/
public $profanityFilter;
/**
* @var int
*/
public $sampleRateHertz;
protected $speechContextsType = SpeechContext::class;
protected $speechContextsDataType = 'array';
protected $transcriptNormalizationType = TranscriptNormalization::class;
protected $transcriptNormalizationDataType = '';
/**
* @var bool
*/
public $useEnhanced;
/**
* @param SpeechAdaptation
*/
public function setAdaptation(SpeechAdaptation $adaptation)
{
$this->adaptation = $adaptation;
}
/**
* @return SpeechAdaptation
*/
public function getAdaptation()
{
return $this->adaptation;
}
/**
* @param string[]
*/
public function setAlternativeLanguageCodes($alternativeLanguageCodes)
{
$this->alternativeLanguageCodes = $alternativeLanguageCodes;
}
/**
* @return string[]
*/
public function getAlternativeLanguageCodes()
{
return $this->alternativeLanguageCodes;
}
/**
* @param int
*/
public function setAudioChannelCount($audioChannelCount)
{
$this->audioChannelCount = $audioChannelCount;
}
/**
* @return int
*/
public function getAudioChannelCount()
{
return $this->audioChannelCount;
}
/**
* @param SpeakerDiarizationConfig
*/
public function setDiarizationConfig(SpeakerDiarizationConfig $diarizationConfig)
{
$this->diarizationConfig = $diarizationConfig;
}
/**
* @return SpeakerDiarizationConfig
*/
public function getDiarizationConfig()
{
return $this->diarizationConfig;
}
/**
* @param bool
*/
public function setEnableAutomaticPunctuation($enableAutomaticPunctuation)
{
$this->enableAutomaticPunctuation = $enableAutomaticPunctuation;
}
/**
* @return bool
*/
public function getEnableAutomaticPunctuation()
{
return $this->enableAutomaticPunctuation;
}
/**
* @param bool
*/
public function setEnableSeparateRecognitionPerChannel($enableSeparateRecognitionPerChannel)
{
$this->enableSeparateRecognitionPerChannel = $enableSeparateRecognitionPerChannel;
}
/**
* @return bool
*/
public function getEnableSeparateRecognitionPerChannel()
{
return $this->enableSeparateRecognitionPerChannel;
}
/**
* @param bool
*/
public function setEnableSpokenEmojis($enableSpokenEmojis)
{
$this->enableSpokenEmojis = $enableSpokenEmojis;
}
/**
* @return bool
*/
public function getEnableSpokenEmojis()
{
return $this->enableSpokenEmojis;
}
/**
* @param bool
*/
public function setEnableSpokenPunctuation($enableSpokenPunctuation)
{
$this->enableSpokenPunctuation = $enableSpokenPunctuation;
}
/**
* @return bool
*/
public function getEnableSpokenPunctuation()
{
return $this->enableSpokenPunctuation;
}
/**
* @param bool
*/
public function setEnableWordConfidence($enableWordConfidence)
{
$this->enableWordConfidence = $enableWordConfidence;
}
/**
* @return bool
*/
public function getEnableWordConfidence()
{
return $this->enableWordConfidence;
}
/**
* @param bool
*/
public function setEnableWordTimeOffsets($enableWordTimeOffsets)
{
$this->enableWordTimeOffsets = $enableWordTimeOffsets;
}
/**
* @return bool
*/
public function getEnableWordTimeOffsets()
{
return $this->enableWordTimeOffsets;
}
/**
* @param string
*/
public function setEncoding($encoding)
{
$this->encoding = $encoding;
}
/**
* @return string
*/
public function getEncoding()
{
return $this->encoding;
}
/**
* @param string
*/
public function setLanguageCode($languageCode)
{
$this->languageCode = $languageCode;
}
/**
* @return string
*/
public function getLanguageCode()
{
return $this->languageCode;
}
/**
* @param int
*/
public function setMaxAlternatives($maxAlternatives)
{
$this->maxAlternatives = $maxAlternatives;
}
/**
* @return int
*/
public function getMaxAlternatives()
{
return $this->maxAlternatives;
}
/**
* @param RecognitionMetadata
*/
public function setMetadata(RecognitionMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return RecognitionMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setModel($model)
{
$this->model = $model;
}
/**
* @return string
*/
public function getModel()
{
return $this->model;
}
/**
* @param bool
*/
public function setProfanityFilter($profanityFilter)
{
$this->profanityFilter = $profanityFilter;
}
/**
* @return bool
*/
public function getProfanityFilter()
{
return $this->profanityFilter;
}
/**
* @param int
*/
public function setSampleRateHertz($sampleRateHertz)
{
$this->sampleRateHertz = $sampleRateHertz;
}
/**
* @return int
*/
public function getSampleRateHertz()
{
return $this->sampleRateHertz;
}
/**
* @param SpeechContext[]
*/
public function setSpeechContexts($speechContexts)
{
$this->speechContexts = $speechContexts;
}
/**
* @return SpeechContext[]
*/
public function getSpeechContexts()
{
return $this->speechContexts;
}
/**
* @param TranscriptNormalization
*/
public function setTranscriptNormalization(TranscriptNormalization $transcriptNormalization)
{
$this->transcriptNormalization = $transcriptNormalization;
}
/**
* @return TranscriptNormalization
*/
public function getTranscriptNormalization()
{
return $this->transcriptNormalization;
}
/**
* @param bool
*/
public function setUseEnhanced($useEnhanced)
{
$this->useEnhanced = $useEnhanced;
}
/**
* @return bool
*/
public function getUseEnhanced()
{
return $this->useEnhanced;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RecognitionConfig::class, 'Google_Service_Speech_RecognitionConfig');

View File

@@ -0,0 +1,170 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Speech;
class RecognitionMetadata extends \Google\Model
{
/**
* @var string
*/
public $audioTopic;
/**
* @var string
*/
public $industryNaicsCodeOfAudio;
/**
* @var string
*/
public $interactionType;
/**
* @var string
*/
public $microphoneDistance;
/**
* @var string
*/
public $originalMediaType;
/**
* @var string
*/
public $originalMimeType;
/**
* @var string
*/
public $recordingDeviceName;
/**
* @var string
*/
public $recordingDeviceType;
/**
* @param string
*/
public function setAudioTopic($audioTopic)
{
$this->audioTopic = $audioTopic;
}
/**
* @return string
*/
public function getAudioTopic()
{
return $this->audioTopic;
}
/**
* @param string
*/
public function setIndustryNaicsCodeOfAudio($industryNaicsCodeOfAudio)
{
$this->industryNaicsCodeOfAudio = $industryNaicsCodeOfAudio;
}
/**
* @return string
*/
public function getIndustryNaicsCodeOfAudio()
{
return $this->industryNaicsCodeOfAudio;
}
/**
* @param string
*/
public function setInteractionType($interactionType)
{
$this->interactionType = $interactionType;
}
/**
* @return string
*/
public function getInteractionType()
{
return $this->interactionType;
}
/**
* @param string
*/
public function setMicrophoneDistance($microphoneDistance)
{
$this->microphoneDistance = $microphoneDistance;
}
/**
* @return string
*/
public function getMicrophoneDistance()
{
return $this->microphoneDistance;
}
/**
* @param string
*/
public function setOriginalMediaType($originalMediaType)
{
$this->originalMediaType = $originalMediaType;
}
/**
* @return string
*/
public function getOriginalMediaType()
{
return $this->originalMediaType;
}
/**
* @param string
*/
public function setOriginalMimeType($originalMimeType)
{
$this->originalMimeType = $originalMimeType;
}
/**
* @return string
*/
public function getOriginalMimeType()
{
return $this->originalMimeType;
}
/**
* @param string
*/
public function setRecordingDeviceName($recordingDeviceName)
{
$this->recordingDeviceName = $recordingDeviceName;
}
/**
* @return string
*/
public function getRecordingDeviceName()
{
return $this->recordingDeviceName;
}
/**
* @param string
*/
public function setRecordingDeviceType($recordingDeviceType)
{
$this->recordingDeviceType = $recordingDeviceType;
}
/**
* @return string
*/
public function getRecordingDeviceType()
{
return $this->recordingDeviceType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RecognitionMetadata::class, 'Google_Service_Speech_RecognitionMetadata');

View File

@@ -0,0 +1,58 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Speech;
class RecognizeRequest extends \Google\Model
{
protected $audioType = RecognitionAudio::class;
protected $audioDataType = '';
protected $configType = RecognitionConfig::class;
protected $configDataType = '';
/**
* @param RecognitionAudio
*/
public function setAudio(RecognitionAudio $audio)
{
$this->audio = $audio;
}
/**
* @return RecognitionAudio
*/
public function getAudio()
{
return $this->audio;
}
/**
* @param RecognitionConfig
*/
public function setConfig(RecognitionConfig $config)
{
$this->config = $config;
}
/**
* @return RecognitionConfig
*/
public function getConfig()
{
return $this->config;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RecognizeRequest::class, 'Google_Service_Speech_RecognizeRequest');

View File

@@ -0,0 +1,113 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Speech;
class RecognizeResponse extends \Google\Collection
{
protected $collection_key = 'results';
/**
* @var string
*/
public $requestId;
protected $resultsType = SpeechRecognitionResult::class;
protected $resultsDataType = 'array';
protected $speechAdaptationInfoType = SpeechAdaptationInfo::class;
protected $speechAdaptationInfoDataType = '';
/**
* @var string
*/
public $totalBilledTime;
/**
* @var bool
*/
public $usingLegacyModels;
/**
* @param string
*/
public function setRequestId($requestId)
{
$this->requestId = $requestId;
}
/**
* @return string
*/
public function getRequestId()
{
return $this->requestId;
}
/**
* @param SpeechRecognitionResult[]
*/
public function setResults($results)
{
$this->results = $results;
}
/**
* @return SpeechRecognitionResult[]
*/
public function getResults()
{
return $this->results;
}
/**
* @param SpeechAdaptationInfo
*/
public function setSpeechAdaptationInfo(SpeechAdaptationInfo $speechAdaptationInfo)
{
$this->speechAdaptationInfo = $speechAdaptationInfo;
}
/**
* @return SpeechAdaptationInfo
*/
public function getSpeechAdaptationInfo()
{
return $this->speechAdaptationInfo;
}
/**
* @param string
*/
public function setTotalBilledTime($totalBilledTime)
{
$this->totalBilledTime = $totalBilledTime;
}
/**
* @return string
*/
public function getTotalBilledTime()
{
return $this->totalBilledTime;
}
/**
* @param bool
*/
public function setUsingLegacyModels($usingLegacyModels)
{
$this->usingLegacyModels = $usingLegacyModels;
}
/**
* @return bool
*/
public function getUsingLegacyModels()
{
return $this->usingLegacyModels;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RecognizeResponse::class, 'Google_Service_Speech_RecognizeResponse');

View File

@@ -0,0 +1,72 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Speech\Resource;
use Google\Service\Speech\ListOperationsResponse;
use Google\Service\Speech\Operation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $speechService = new Google\Service\Speech(...);
* $operations = $speechService->operations;
* </code>
*/
class Operations extends \Google\Service\Resource
{
/**
* Gets the latest state of a long-running operation. Clients can use this
* method to poll the operation result at intervals as recommended by the API
* service. (operations.get)
*
* @param string $name The name of the operation resource.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Operation::class);
}
/**
* Lists operations that match the specified filter in the request. If the
* server doesn't support this method, it returns `UNIMPLEMENTED`.
* (operations.listOperations)
*
* @param array $optParams Optional parameters.
*
* @opt_param string filter The standard list filter.
* @opt_param string name The name of the operation's parent resource.
* @opt_param int pageSize The standard list page size.
* @opt_param string pageToken The standard list page token.
* @return ListOperationsResponse
* @throws \Google\Service\Exception
*/
public function listOperations($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListOperationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Operations::class, 'Google_Service_Speech_Resource_Operations');

View File

@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Speech\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $speechService = new Google\Service\Speech(...);
* $projects = $speechService->projects;
* </code>
*/
class Projects extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Projects::class, 'Google_Service_Speech_Resource_Projects');

View File

@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Speech\Resource;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $speechService = new Google\Service\Speech(...);
* $locations = $speechService->projects_locations;
* </code>
*/
class ProjectsLocations extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocations::class, 'Google_Service_Speech_Resource_ProjectsLocations');

View File

@@ -0,0 +1,143 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Speech\Resource;
use Google\Service\Speech\CreateCustomClassRequest;
use Google\Service\Speech\CustomClass;
use Google\Service\Speech\ListCustomClassesResponse;
use Google\Service\Speech\SpeechEmpty;
/**
* The "customClasses" collection of methods.
* Typical usage is:
* <code>
* $speechService = new Google\Service\Speech(...);
* $customClasses = $speechService->projects_locations_customClasses;
* </code>
*/
class ProjectsLocationsCustomClasses extends \Google\Service\Resource
{
/**
* Create a custom class. (customClasses.create)
*
* @param string $parent Required. The parent resource where this custom class
* will be created. Format:
* `projects/{project}/locations/{location}/customClasses` Speech-to-Text
* supports three locations: `global`, `us` (US North America), and `eu`
* (Europe). If you are calling the `speech.googleapis.com` endpoint, use the
* `global` location. To specify a region, use a [regional
* endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with
* matching `us` or `eu` location value.
* @param CreateCustomClassRequest $postBody
* @param array $optParams Optional parameters.
* @return CustomClass
* @throws \Google\Service\Exception
*/
public function create($parent, CreateCustomClassRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], CustomClass::class);
}
/**
* Delete a custom class. (customClasses.delete)
*
* @param string $name Required. The name of the custom class to delete. Format:
* `projects/{project}/locations/{location}/customClasses/{custom_class}`
* Speech-to-Text supports three locations: `global`, `us` (US North America),
* and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint,
* use the `global` location. To specify a region, use a [regional
* endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with
* matching `us` or `eu` location value.
* @param array $optParams Optional parameters.
* @return SpeechEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], SpeechEmpty::class);
}
/**
* Get a custom class. (customClasses.get)
*
* @param string $name Required. The name of the custom class to retrieve.
* Format:
* `projects/{project}/locations/{location}/customClasses/{custom_class}`
* @param array $optParams Optional parameters.
* @return CustomClass
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], CustomClass::class);
}
/**
* List custom classes. (customClasses.listProjectsLocationsCustomClasses)
*
* @param string $parent Required. The parent, which owns this collection of
* custom classes. Format:
* `projects/{project}/locations/{location}/customClasses` Speech-to-Text
* supports three locations: `global`, `us` (US North America), and `eu`
* (Europe). If you are calling the `speech.googleapis.com` endpoint, use the
* `global` location. To specify a region, use a [regional
* endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with
* matching `us` or `eu` location value.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of custom classes to return. The
* service may return fewer than this value. If unspecified, at most 50 custom
* classes will be returned. The maximum value is 1000; values above 1000 will
* be coerced to 1000.
* @opt_param string pageToken A page token, received from a previous
* `ListCustomClass` call. Provide this to retrieve the subsequent page. When
* paginating, all other parameters provided to `ListCustomClass` must match the
* call that provided the page token.
* @return ListCustomClassesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsCustomClasses($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListCustomClassesResponse::class);
}
/**
* Update a custom class. (customClasses.patch)
*
* @param string $name The resource name of the custom class.
* @param CustomClass $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask The list of fields to be updated.
* @return CustomClass
* @throws \Google\Service\Exception
*/
public function patch($name, CustomClass $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], CustomClass::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsCustomClasses::class, 'Google_Service_Speech_Resource_ProjectsLocationsCustomClasses');

View File

@@ -0,0 +1,142 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Speech\Resource;
use Google\Service\Speech\CreatePhraseSetRequest;
use Google\Service\Speech\ListPhraseSetResponse;
use Google\Service\Speech\PhraseSet;
use Google\Service\Speech\SpeechEmpty;
/**
* The "phraseSets" collection of methods.
* Typical usage is:
* <code>
* $speechService = new Google\Service\Speech(...);
* $phraseSets = $speechService->projects_locations_phraseSets;
* </code>
*/
class ProjectsLocationsPhraseSets extends \Google\Service\Resource
{
/**
* Create a set of phrase hints. Each item in the set can be a single word or a
* multi-word phrase. The items in the PhraseSet are favored by the recognition
* model when you send a call that includes the PhraseSet. (phraseSets.create)
*
* @param string $parent Required. The parent resource where this phrase set
* will be created. Format: `projects/{project}/locations/{location}` Speech-to-
* Text supports three locations: `global`, `us` (US North America), and `eu`
* (Europe). If you are calling the `speech.googleapis.com` endpoint, use the
* `global` location. To specify a region, use a [regional
* endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with
* matching `us` or `eu` location value.
* @param CreatePhraseSetRequest $postBody
* @param array $optParams Optional parameters.
* @return PhraseSet
* @throws \Google\Service\Exception
*/
public function create($parent, CreatePhraseSetRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], PhraseSet::class);
}
/**
* Delete a phrase set. (phraseSets.delete)
*
* @param string $name Required. The name of the phrase set to delete. Format:
* `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
* @param array $optParams Optional parameters.
* @return SpeechEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], SpeechEmpty::class);
}
/**
* Get a phrase set. (phraseSets.get)
*
* @param string $name Required. The name of the phrase set to retrieve. Format:
* `projects/{project}/locations/{location}/phraseSets/{phrase_set}` Speech-to-
* Text supports three locations: `global`, `us` (US North America), and `eu`
* (Europe). If you are calling the `speech.googleapis.com` endpoint, use the
* `global` location. To specify a region, use a [regional
* endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with
* matching `us` or `eu` location value.
* @param array $optParams Optional parameters.
* @return PhraseSet
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], PhraseSet::class);
}
/**
* List phrase sets. (phraseSets.listProjectsLocationsPhraseSets)
*
* @param string $parent Required. The parent, which owns this collection of
* phrase set. Format: `projects/{project}/locations/{location}` Speech-to-Text
* supports three locations: `global`, `us` (US North America), and `eu`
* (Europe). If you are calling the `speech.googleapis.com` endpoint, use the
* `global` location. To specify a region, use a [regional
* endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with
* matching `us` or `eu` location value.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of phrase sets to return. The
* service may return fewer than this value. If unspecified, at most 50 phrase
* sets will be returned. The maximum value is 1000; values above 1000 will be
* coerced to 1000.
* @opt_param string pageToken A page token, received from a previous
* `ListPhraseSet` call. Provide this to retrieve the subsequent page. When
* paginating, all other parameters provided to `ListPhraseSet` must match the
* call that provided the page token.
* @return ListPhraseSetResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsPhraseSets($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListPhraseSetResponse::class);
}
/**
* Update a phrase set. (phraseSets.patch)
*
* @param string $name The resource name of the phrase set.
* @param PhraseSet $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask The list of fields to be updated.
* @return PhraseSet
* @throws \Google\Service\Exception
*/
public function patch($name, PhraseSet $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], PhraseSet::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsPhraseSets::class, 'Google_Service_Speech_Resource_ProjectsLocationsPhraseSets');

View File

@@ -0,0 +1,72 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Speech\Resource;
use Google\Service\Speech\LongRunningRecognizeRequest;
use Google\Service\Speech\Operation;
use Google\Service\Speech\RecognizeRequest;
use Google\Service\Speech\RecognizeResponse;
/**
* The "speech" collection of methods.
* Typical usage is:
* <code>
* $speechService = new Google\Service\Speech(...);
* $speech = $speechService->speech;
* </code>
*/
class Speech extends \Google\Service\Resource
{
/**
* Performs asynchronous speech recognition: receive results via the
* google.longrunning.Operations interface. Returns either an `Operation.error`
* or an `Operation.response` which contains a `LongRunningRecognizeResponse`
* message. For more information on asynchronous speech recognition, see the
* [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
* (speech.longrunningrecognize)
*
* @param LongRunningRecognizeRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function longrunningrecognize(LongRunningRecognizeRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('longrunningrecognize', [$params], Operation::class);
}
/**
* Performs synchronous speech recognition: receive results after all audio has
* been sent and processed. (speech.recognize)
*
* @param RecognizeRequest $postBody
* @param array $optParams Optional parameters.
* @return RecognizeResponse
* @throws \Google\Service\Exception
*/
public function recognize(RecognizeRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('recognize', [$params], RecognizeResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Speech::class, 'Google_Service_Speech_Resource_Speech');

View File

@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Speech;
class SpeakerDiarizationConfig extends \Google\Model
{
/**
* @var bool
*/
public $enableSpeakerDiarization;
/**
* @var int
*/
public $maxSpeakerCount;
/**
* @var int
*/
public $minSpeakerCount;
/**
* @var int
*/
public $speakerTag;
/**
* @param bool
*/
public function setEnableSpeakerDiarization($enableSpeakerDiarization)
{
$this->enableSpeakerDiarization = $enableSpeakerDiarization;
}
/**
* @return bool
*/
public function getEnableSpeakerDiarization()
{
return $this->enableSpeakerDiarization;
}
/**
* @param int
*/
public function setMaxSpeakerCount($maxSpeakerCount)
{
$this->maxSpeakerCount = $maxSpeakerCount;
}
/**
* @return int
*/
public function getMaxSpeakerCount()
{
return $this->maxSpeakerCount;
}
/**
* @param int
*/
public function setMinSpeakerCount($minSpeakerCount)
{
$this->minSpeakerCount = $minSpeakerCount;
}
/**
* @return int
*/
public function getMinSpeakerCount()
{
return $this->minSpeakerCount;
}
/**
* @param int
*/
public function setSpeakerTag($speakerTag)
{
$this->speakerTag = $speakerTag;
}
/**
* @return int
*/
public function getSpeakerTag()
{
return $this->speakerTag;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SpeakerDiarizationConfig::class, 'Google_Service_Speech_SpeakerDiarizationConfig');

View File

@@ -0,0 +1,93 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Speech;
class SpeechAdaptation extends \Google\Collection
{
protected $collection_key = 'phraseSets';
protected $abnfGrammarType = ABNFGrammar::class;
protected $abnfGrammarDataType = '';
protected $customClassesType = CustomClass::class;
protected $customClassesDataType = 'array';
/**
* @var string[]
*/
public $phraseSetReferences;
protected $phraseSetsType = PhraseSet::class;
protected $phraseSetsDataType = 'array';
/**
* @param ABNFGrammar
*/
public function setAbnfGrammar(ABNFGrammar $abnfGrammar)
{
$this->abnfGrammar = $abnfGrammar;
}
/**
* @return ABNFGrammar
*/
public function getAbnfGrammar()
{
return $this->abnfGrammar;
}
/**
* @param CustomClass[]
*/
public function setCustomClasses($customClasses)
{
$this->customClasses = $customClasses;
}
/**
* @return CustomClass[]
*/
public function getCustomClasses()
{
return $this->customClasses;
}
/**
* @param string[]
*/
public function setPhraseSetReferences($phraseSetReferences)
{
$this->phraseSetReferences = $phraseSetReferences;
}
/**
* @return string[]
*/
public function getPhraseSetReferences()
{
return $this->phraseSetReferences;
}
/**
* @param PhraseSet[]
*/
public function setPhraseSets($phraseSets)
{
$this->phraseSets = $phraseSets;
}
/**
* @return PhraseSet[]
*/
public function getPhraseSets()
{
return $this->phraseSets;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SpeechAdaptation::class, 'Google_Service_Speech_SpeechAdaptation');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Speech;
class SpeechAdaptationInfo extends \Google\Model
{
/**
* @var bool
*/
public $adaptationTimeout;
/**
* @var string
*/
public $timeoutMessage;
/**
* @param bool
*/
public function setAdaptationTimeout($adaptationTimeout)
{
$this->adaptationTimeout = $adaptationTimeout;
}
/**
* @return bool
*/
public function getAdaptationTimeout()
{
return $this->adaptationTimeout;
}
/**
* @param string
*/
public function setTimeoutMessage($timeoutMessage)
{
$this->timeoutMessage = $timeoutMessage;
}
/**
* @return string
*/
public function getTimeoutMessage()
{
return $this->timeoutMessage;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SpeechAdaptationInfo::class, 'Google_Service_Speech_SpeechAdaptationInfo');

View File

@@ -0,0 +1,63 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Speech;
class SpeechContext extends \Google\Collection
{
protected $collection_key = 'phrases';
/**
* @var float
*/
public $boost;
/**
* @var string[]
*/
public $phrases;
/**
* @param float
*/
public function setBoost($boost)
{
$this->boost = $boost;
}
/**
* @return float
*/
public function getBoost()
{
return $this->boost;
}
/**
* @param string[]
*/
public function setPhrases($phrases)
{
$this->phrases = $phrases;
}
/**
* @return string[]
*/
public function getPhrases()
{
return $this->phrases;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SpeechContext::class, 'Google_Service_Speech_SpeechContext');

View File

@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Speech;
class SpeechEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SpeechEmpty::class, 'Google_Service_Speech_SpeechEmpty');

View File

@@ -0,0 +1,79 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Speech;
class SpeechRecognitionAlternative extends \Google\Collection
{
protected $collection_key = 'words';
/**
* @var float
*/
public $confidence;
/**
* @var string
*/
public $transcript;
protected $wordsType = WordInfo::class;
protected $wordsDataType = 'array';
/**
* @param float
*/
public function setConfidence($confidence)
{
$this->confidence = $confidence;
}
/**
* @return float
*/
public function getConfidence()
{
return $this->confidence;
}
/**
* @param string
*/
public function setTranscript($transcript)
{
$this->transcript = $transcript;
}
/**
* @return string
*/
public function getTranscript()
{
return $this->transcript;
}
/**
* @param WordInfo[]
*/
public function setWords($words)
{
$this->words = $words;
}
/**
* @return WordInfo[]
*/
public function getWords()
{
return $this->words;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SpeechRecognitionAlternative::class, 'Google_Service_Speech_SpeechRecognitionAlternative');

View File

@@ -0,0 +1,97 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Speech;
class SpeechRecognitionResult extends \Google\Collection
{
protected $collection_key = 'alternatives';
protected $alternativesType = SpeechRecognitionAlternative::class;
protected $alternativesDataType = 'array';
/**
* @var int
*/
public $channelTag;
/**
* @var string
*/
public $languageCode;
/**
* @var string
*/
public $resultEndTime;
/**
* @param SpeechRecognitionAlternative[]
*/
public function setAlternatives($alternatives)
{
$this->alternatives = $alternatives;
}
/**
* @return SpeechRecognitionAlternative[]
*/
public function getAlternatives()
{
return $this->alternatives;
}
/**
* @param int
*/
public function setChannelTag($channelTag)
{
$this->channelTag = $channelTag;
}
/**
* @return int
*/
public function getChannelTag()
{
return $this->channelTag;
}
/**
* @param string
*/
public function setLanguageCode($languageCode)
{
$this->languageCode = $languageCode;
}
/**
* @return string
*/
public function getLanguageCode()
{
return $this->languageCode;
}
/**
* @param string
*/
public function setResultEndTime($resultEndTime)
{
$this->resultEndTime = $resultEndTime;
}
/**
* @return string
*/
public function getResultEndTime()
{
return $this->resultEndTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SpeechRecognitionResult::class, 'Google_Service_Speech_SpeechRecognitionResult');

View File

@@ -0,0 +1,81 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Speech;
class Status extends \Google\Collection
{
protected $collection_key = 'details';
/**
* @var int
*/
public $code;
/**
* @var array[]
*/
public $details;
/**
* @var string
*/
public $message;
/**
* @param int
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return int
*/
public function getCode()
{
return $this->code;
}
/**
* @param array[]
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return array[]
*/
public function getDetails()
{
return $this->details;
}
/**
* @param string
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Status::class, 'Google_Service_Speech_Status');

View File

@@ -0,0 +1,43 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Speech;
class TranscriptNormalization extends \Google\Collection
{
protected $collection_key = 'entries';
protected $entriesType = Entry::class;
protected $entriesDataType = 'array';
/**
* @param Entry[]
*/
public function setEntries($entries)
{
$this->entries = $entries;
}
/**
* @return Entry[]
*/
public function getEntries()
{
return $this->entries;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TranscriptNormalization::class, 'Google_Service_Speech_TranscriptNormalization');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Speech;
class TranscriptOutputConfig extends \Google\Model
{
/**
* @var string
*/
public $gcsUri;
/**
* @param string
*/
public function setGcsUri($gcsUri)
{
$this->gcsUri = $gcsUri;
}
/**
* @return string
*/
public function getGcsUri()
{
return $this->gcsUri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TranscriptOutputConfig::class, 'Google_Service_Speech_TranscriptOutputConfig');

View File

@@ -0,0 +1,134 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Speech;
class WordInfo extends \Google\Model
{
/**
* @var float
*/
public $confidence;
/**
* @var string
*/
public $endTime;
/**
* @var string
*/
public $speakerLabel;
/**
* @var int
*/
public $speakerTag;
/**
* @var string
*/
public $startTime;
/**
* @var string
*/
public $word;
/**
* @param float
*/
public function setConfidence($confidence)
{
$this->confidence = $confidence;
}
/**
* @return float
*/
public function getConfidence()
{
return $this->confidence;
}
/**
* @param string
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* @param string
*/
public function setSpeakerLabel($speakerLabel)
{
$this->speakerLabel = $speakerLabel;
}
/**
* @return string
*/
public function getSpeakerLabel()
{
return $this->speakerLabel;
}
/**
* @param int
*/
public function setSpeakerTag($speakerTag)
{
$this->speakerTag = $speakerTag;
}
/**
* @return int
*/
public function getSpeakerTag()
{
return $this->speakerTag;
}
/**
* @param string
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
/**
* @param string
*/
public function setWord($word)
{
$this->word = $word;
}
/**
* @return string
*/
public function getWord()
{
return $this->word;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(WordInfo::class, 'Google_Service_Speech_WordInfo');