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,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\Texttospeech;
class AdvancedVoiceOptions extends \Google\Model
{
/**
* @var bool
*/
public $lowLatencyJourneySynthesis;
/**
* @param bool
*/
public function setLowLatencyJourneySynthesis($lowLatencyJourneySynthesis)
{
$this->lowLatencyJourneySynthesis = $lowLatencyJourneySynthesis;
}
/**
* @return bool
*/
public function getLowLatencyJourneySynthesis()
{
return $this->lowLatencyJourneySynthesis;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AdvancedVoiceOptions::class, 'Google_Service_Texttospeech_AdvancedVoiceOptions');

View File

@@ -0,0 +1,108 @@
<?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\Texttospeech;
class AudioConfig extends \Google\Collection
{
protected $collection_key = 'effectsProfileId';
/**
* @var string
*/
public $audioEncoding;
/**
* @var string[]
*/
public $effectsProfileId;
public $pitch;
/**
* @var int
*/
public $sampleRateHertz;
public $speakingRate;
public $volumeGainDb;
/**
* @param string
*/
public function setAudioEncoding($audioEncoding)
{
$this->audioEncoding = $audioEncoding;
}
/**
* @return string
*/
public function getAudioEncoding()
{
return $this->audioEncoding;
}
/**
* @param string[]
*/
public function setEffectsProfileId($effectsProfileId)
{
$this->effectsProfileId = $effectsProfileId;
}
/**
* @return string[]
*/
public function getEffectsProfileId()
{
return $this->effectsProfileId;
}
public function setPitch($pitch)
{
$this->pitch = $pitch;
}
public function getPitch()
{
return $this->pitch;
}
/**
* @param int
*/
public function setSampleRateHertz($sampleRateHertz)
{
$this->sampleRateHertz = $sampleRateHertz;
}
/**
* @return int
*/
public function getSampleRateHertz()
{
return $this->sampleRateHertz;
}
public function setSpeakingRate($speakingRate)
{
$this->speakingRate = $speakingRate;
}
public function getSpeakingRate()
{
return $this->speakingRate;
}
public function setVolumeGainDb($volumeGainDb)
{
$this->volumeGainDb = $volumeGainDb;
}
public function getVolumeGainDb()
{
return $this->volumeGainDb;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AudioConfig::class, 'Google_Service_Texttospeech_AudioConfig');

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\Texttospeech;
class CancelOperationRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CancelOperationRequest::class, 'Google_Service_Texttospeech_CancelOperationRequest');

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\Texttospeech;
class CustomPronunciationParams extends \Google\Model
{
/**
* @var string
*/
public $phoneticEncoding;
/**
* @var string
*/
public $phrase;
/**
* @var string
*/
public $pronunciation;
/**
* @param string
*/
public function setPhoneticEncoding($phoneticEncoding)
{
$this->phoneticEncoding = $phoneticEncoding;
}
/**
* @return string
*/
public function getPhoneticEncoding()
{
return $this->phoneticEncoding;
}
/**
* @param string
*/
public function setPhrase($phrase)
{
$this->phrase = $phrase;
}
/**
* @return string
*/
public function getPhrase()
{
return $this->phrase;
}
/**
* @param string
*/
public function setPronunciation($pronunciation)
{
$this->pronunciation = $pronunciation;
}
/**
* @return string
*/
public function getPronunciation()
{
return $this->pronunciation;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomPronunciationParams::class, 'Google_Service_Texttospeech_CustomPronunciationParams');

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\Texttospeech;
class CustomPronunciations extends \Google\Collection
{
protected $collection_key = 'pronunciations';
protected $pronunciationsType = CustomPronunciationParams::class;
protected $pronunciationsDataType = 'array';
/**
* @param CustomPronunciationParams[]
*/
public function setPronunciations($pronunciations)
{
$this->pronunciations = $pronunciations;
}
/**
* @return CustomPronunciationParams[]
*/
public function getPronunciations()
{
return $this->pronunciations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomPronunciations::class, 'Google_Service_Texttospeech_CustomPronunciations');

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\Texttospeech;
class CustomVoiceParams extends \Google\Model
{
/**
* @var string
*/
public $model;
/**
* @var string
*/
public $reportedUsage;
/**
* @param string
*/
public function setModel($model)
{
$this->model = $model;
}
/**
* @return string
*/
public function getModel()
{
return $this->model;
}
/**
* @param string
*/
public function setReportedUsage($reportedUsage)
{
$this->reportedUsage = $reportedUsage;
}
/**
* @return string
*/
public function getReportedUsage()
{
return $this->reportedUsage;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomVoiceParams::class, 'Google_Service_Texttospeech_CustomVoiceParams');

View File

@@ -0,0 +1,94 @@
<?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\Texttospeech;
class GenerateVoiceCloningKeyRequest extends \Google\Model
{
/**
* @var string
*/
public $consentScript;
/**
* @var string
*/
public $languageCode;
protected $referenceAudioType = InputAudio::class;
protected $referenceAudioDataType = '';
protected $voiceTalentConsentType = InputAudio::class;
protected $voiceTalentConsentDataType = '';
/**
* @param string
*/
public function setConsentScript($consentScript)
{
$this->consentScript = $consentScript;
}
/**
* @return string
*/
public function getConsentScript()
{
return $this->consentScript;
}
/**
* @param string
*/
public function setLanguageCode($languageCode)
{
$this->languageCode = $languageCode;
}
/**
* @return string
*/
public function getLanguageCode()
{
return $this->languageCode;
}
/**
* @param InputAudio
*/
public function setReferenceAudio(InputAudio $referenceAudio)
{
$this->referenceAudio = $referenceAudio;
}
/**
* @return InputAudio
*/
public function getReferenceAudio()
{
return $this->referenceAudio;
}
/**
* @param InputAudio
*/
public function setVoiceTalentConsent(InputAudio $voiceTalentConsent)
{
$this->voiceTalentConsent = $voiceTalentConsent;
}
/**
* @return InputAudio
*/
public function getVoiceTalentConsent()
{
return $this->voiceTalentConsent;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GenerateVoiceCloningKeyRequest::class, 'Google_Service_Texttospeech_GenerateVoiceCloningKeyRequest');

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\Texttospeech;
class GenerateVoiceCloningKeyResponse extends \Google\Model
{
/**
* @var string
*/
public $voiceCloningKey;
/**
* @param string
*/
public function setVoiceCloningKey($voiceCloningKey)
{
$this->voiceCloningKey = $voiceCloningKey;
}
/**
* @return string
*/
public function getVoiceCloningKey()
{
return $this->voiceCloningKey;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GenerateVoiceCloningKeyResponse::class, 'Google_Service_Texttospeech_GenerateVoiceCloningKeyResponse');

View File

@@ -0,0 +1,71 @@
<?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\Texttospeech;
class GoogleCloudTexttospeechV1SynthesizeLongAudioMetadata extends \Google\Model
{
/**
* @var string
*/
public $lastUpdateTime;
public $progressPercentage;
/**
* @var string
*/
public $startTime;
/**
* @param string
*/
public function setLastUpdateTime($lastUpdateTime)
{
$this->lastUpdateTime = $lastUpdateTime;
}
/**
* @return string
*/
public function getLastUpdateTime()
{
return $this->lastUpdateTime;
}
public function setProgressPercentage($progressPercentage)
{
$this->progressPercentage = $progressPercentage;
}
public function getProgressPercentage()
{
return $this->progressPercentage;
}
/**
* @param string
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudTexttospeechV1SynthesizeLongAudioMetadata::class, 'Google_Service_Texttospeech_GoogleCloudTexttospeechV1SynthesizeLongAudioMetadata');

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\Texttospeech;
class ImportDataRequest extends \Google\Model
{
/**
* @var string
*/
public $csvCloudStorageUri;
/**
* @param string
*/
public function setCsvCloudStorageUri($csvCloudStorageUri)
{
$this->csvCloudStorageUri = $csvCloudStorageUri;
}
/**
* @return string
*/
public function getCsvCloudStorageUri()
{
return $this->csvCloudStorageUri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ImportDataRequest::class, 'Google_Service_Texttospeech_ImportDataRequest');

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\Texttospeech;
class InputAudio extends \Google\Model
{
protected $audioConfigType = InputAudioConfig::class;
protected $audioConfigDataType = '';
/**
* @var string
*/
public $content;
/**
* @param InputAudioConfig
*/
public function setAudioConfig(InputAudioConfig $audioConfig)
{
$this->audioConfig = $audioConfig;
}
/**
* @return InputAudioConfig
*/
public function getAudioConfig()
{
return $this->audioConfig;
}
/**
* @param string
*/
public function setContent($content)
{
$this->content = $content;
}
/**
* @return string
*/
public function getContent()
{
return $this->content;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InputAudio::class, 'Google_Service_Texttospeech_InputAudio');

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\Texttospeech;
class InputAudioConfig extends \Google\Model
{
/**
* @var string
*/
public $audioEncoding;
/**
* @var int
*/
public $sampleRateHertz;
/**
* @param string
*/
public function setAudioEncoding($audioEncoding)
{
$this->audioEncoding = $audioEncoding;
}
/**
* @return string
*/
public function getAudioEncoding()
{
return $this->audioEncoding;
}
/**
* @param int
*/
public function setSampleRateHertz($sampleRateHertz)
{
$this->sampleRateHertz = $sampleRateHertz;
}
/**
* @return int
*/
public function getSampleRateHertz()
{
return $this->sampleRateHertz;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InputAudioConfig::class, 'Google_Service_Texttospeech_InputAudioConfig');

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\Texttospeech;
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_Texttospeech_ListOperationsResponse');

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\Texttospeech;
class ListVoicesResponse extends \Google\Collection
{
protected $collection_key = 'voices';
protected $voicesType = Voice::class;
protected $voicesDataType = 'array';
/**
* @param Voice[]
*/
public function setVoices($voices)
{
$this->voices = $voices;
}
/**
* @return Voice[]
*/
public function getVoices()
{
return $this->voices;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListVoicesResponse::class, 'Google_Service_Texttospeech_ListVoicesResponse');

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\Texttospeech;
class MultiSpeakerMarkup extends \Google\Collection
{
protected $collection_key = 'turns';
protected $turnsType = Turn::class;
protected $turnsDataType = 'array';
/**
* @param Turn[]
*/
public function setTurns($turns)
{
$this->turns = $turns;
}
/**
* @return Turn[]
*/
public function getTurns()
{
return $this->turns;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MultiSpeakerMarkup::class, 'Google_Service_Texttospeech_MultiSpeakerMarkup');

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\Texttospeech;
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_Texttospeech_Operation');

View File

@@ -0,0 +1,76 @@
<?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\Texttospeech\Resource;
use Google\Service\Texttospeech\CancelOperationRequest;
use Google\Service\Texttospeech\TexttospeechEmpty;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $texttospeechService = new Google\Service\Texttospeech(...);
* $operations = $texttospeechService->operations;
* </code>
*/
class Operations extends \Google\Service\Resource
{
/**
* Starts asynchronous cancellation on a long-running operation. The server
* makes a best effort to cancel the operation, but success is not guaranteed.
* If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
* other methods to check whether the cancellation succeeded or whether the
* operation completed despite cancellation. On successful cancellation, the
* operation is not deleted; instead, it becomes an operation with an
* Operation.error value with a google.rpc.Status.code of `1`, corresponding to
* `Code.CANCELLED`. (operations.cancel)
*
* @param string $name The name of the operation resource to be cancelled.
* @param CancelOperationRequest $postBody
* @param array $optParams Optional parameters.
* @return TexttospeechEmpty
* @throws \Google\Service\Exception
*/
public function cancel($name, CancelOperationRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('cancel', [$params], TexttospeechEmpty::class);
}
/**
* Deletes a long-running operation. This method indicates that the client is no
* longer interested in the operation result. It does not cancel the operation.
* If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. (operations.delete)
*
* @param string $name The name of the operation resource to be deleted.
* @param array $optParams Optional parameters.
* @return TexttospeechEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], TexttospeechEmpty::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Operations::class, 'Google_Service_Texttospeech_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\Texttospeech\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $texttospeechService = new Google\Service\Texttospeech(...);
* $projects = $texttospeechService->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_Texttospeech_Resource_Projects');

View File

@@ -0,0 +1,52 @@
<?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\Texttospeech\Resource;
use Google\Service\Texttospeech\Operation;
use Google\Service\Texttospeech\SynthesizeLongAudioRequest;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $texttospeechService = new Google\Service\Texttospeech(...);
* $locations = $texttospeechService->projects_locations;
* </code>
*/
class ProjectsLocations extends \Google\Service\Resource
{
/**
* Synthesizes long form text asynchronously. (locations.synthesizeLongAudio)
*
* @param string $parent The resource states of the request in the form of
* `projects/locations`.
* @param SynthesizeLongAudioRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function synthesizeLongAudio($parent, SynthesizeLongAudioRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('synthesizeLongAudio', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocations::class, 'Google_Service_Texttospeech_Resource_ProjectsLocations');

View File

@@ -0,0 +1,51 @@
<?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\Texttospeech\Resource;
use Google\Service\Texttospeech\ImportDataRequest;
use Google\Service\Texttospeech\Operation;
/**
* The "datasets" collection of methods.
* Typical usage is:
* <code>
* $texttospeechService = new Google\Service\Texttospeech(...);
* $datasets = $texttospeechService->datasets;
* </code>
*/
class ProjectsLocationsDatasets extends \Google\Service\Resource
{
/**
* Imports audio+text data for training custom voice. (datasets.import)
*
* @param string $name The name of the Dataset resource. Format:
* `projects/{project}/locations/{location}/datasets/{dataset}`
* @param ImportDataRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
*/
public function import($name, ImportDataRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('import', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsDatasets::class, 'Google_Service_Texttospeech_Resource_ProjectsLocationsDatasets');

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\Texttospeech\Resource;
use Google\Service\Texttospeech\ListOperationsResponse;
use Google\Service\Texttospeech\Operation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $texttospeechService = new Google\Service\Texttospeech(...);
* $operations = $texttospeechService->projects_locations_operations;
* </code>
*/
class ProjectsLocationsOperations 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.listProjectsLocationsOperations)
*
* @param string $name The name of the operation's parent resource.
* @param array $optParams Optional parameters.
*
* @opt_param string filter The standard list filter.
* @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 listProjectsLocationsOperations($name, $optParams = [])
{
$params = ['name' => $name];
$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(ProjectsLocationsOperations::class, 'Google_Service_Texttospeech_Resource_ProjectsLocationsOperations');

View File

@@ -0,0 +1,51 @@
<?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\Texttospeech\Resource;
use Google\Service\Texttospeech\Operation;
use Google\Service\Texttospeech\SynthesizeLongAudioRequest;
/**
* The "voices" collection of methods.
* Typical usage is:
* <code>
* $texttospeechService = new Google\Service\Texttospeech(...);
* $voices = $texttospeechService->voices;
* </code>
*/
class ProjectsLocationsVoices extends \Google\Service\Resource
{
/**
* Synthesizes long form text asynchronously. (voices.synthesizeLongAudio)
*
* @param string $parent The resource states of the request in the form of
* projects/locations/voices.
* @param SynthesizeLongAudioRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
*/
public function synthesizeLongAudio($parent, SynthesizeLongAudioRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('synthesizeLongAudio', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsVoices::class, 'Google_Service_Texttospeech_Resource_ProjectsLocationsVoices');

View File

@@ -0,0 +1,51 @@
<?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\Texttospeech\Resource;
use Google\Service\Texttospeech\SynthesizeSpeechRequest;
use Google\Service\Texttospeech\SynthesizeSpeechResponse;
/**
* The "text" collection of methods.
* Typical usage is:
* <code>
* $texttospeechService = new Google\Service\Texttospeech(...);
* $text = $texttospeechService->text;
* </code>
*/
class Text extends \Google\Service\Resource
{
/**
* Synthesizes speech synchronously: receive results after all text input has
* been processed. (text.synthesize)
*
* @param SynthesizeSpeechRequest $postBody
* @param array $optParams Optional parameters.
* @return SynthesizeSpeechResponse
* @throws \Google\Service\Exception
*/
public function synthesize(SynthesizeSpeechRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('synthesize', [$params], SynthesizeSpeechResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Text::class, 'Google_Service_Texttospeech_Resource_Text');

View File

@@ -0,0 +1,56 @@
<?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\Texttospeech\Resource;
use Google\Service\Texttospeech\ListVoicesResponse;
/**
* The "voices" collection of methods.
* Typical usage is:
* <code>
* $texttospeechService = new Google\Service\Texttospeech(...);
* $voices = $texttospeechService->voices;
* </code>
*/
class Voices extends \Google\Service\Resource
{
/**
* Returns a list of Voice supported for synthesis. (voices.listVoices)
*
* @param array $optParams Optional parameters.
*
* @opt_param string languageCode Optional. Recommended.
* [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If not
* specified, the API will return all supported voices. If specified, the
* ListVoices call will only return voices that can be used to synthesize this
* language_code. For example, if you specify `"en-NZ"`, all `"en-NZ"` voices
* will be returned. If you specify `"no"`, both `"no-"` (Norwegian) and `"nb-"`
* (Norwegian Bokmal) voices will be returned.
* @return ListVoicesResponse
* @throws \Google\Service\Exception
*/
public function listVoices($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListVoicesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Voices::class, 'Google_Service_Texttospeech_Resource_Voices');

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\Texttospeech;
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_Texttospeech_Status');

View File

@@ -0,0 +1,94 @@
<?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\Texttospeech;
class SynthesisInput extends \Google\Model
{
protected $customPronunciationsType = CustomPronunciations::class;
protected $customPronunciationsDataType = '';
protected $multiSpeakerMarkupType = MultiSpeakerMarkup::class;
protected $multiSpeakerMarkupDataType = '';
/**
* @var string
*/
public $ssml;
/**
* @var string
*/
public $text;
/**
* @param CustomPronunciations
*/
public function setCustomPronunciations(CustomPronunciations $customPronunciations)
{
$this->customPronunciations = $customPronunciations;
}
/**
* @return CustomPronunciations
*/
public function getCustomPronunciations()
{
return $this->customPronunciations;
}
/**
* @param MultiSpeakerMarkup
*/
public function setMultiSpeakerMarkup(MultiSpeakerMarkup $multiSpeakerMarkup)
{
$this->multiSpeakerMarkup = $multiSpeakerMarkup;
}
/**
* @return MultiSpeakerMarkup
*/
public function getMultiSpeakerMarkup()
{
return $this->multiSpeakerMarkup;
}
/**
* @param string
*/
public function setSsml($ssml)
{
$this->ssml = $ssml;
}
/**
* @return string
*/
public function getSsml()
{
return $this->ssml;
}
/**
* @param string
*/
public function setText($text)
{
$this->text = $text;
}
/**
* @return string
*/
public function getText()
{
return $this->text;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SynthesisInput::class, 'Google_Service_Texttospeech_SynthesisInput');

View File

@@ -0,0 +1,71 @@
<?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\Texttospeech;
class SynthesizeLongAudioMetadata extends \Google\Model
{
/**
* @var string
*/
public $lastUpdateTime;
public $progressPercentage;
/**
* @var string
*/
public $startTime;
/**
* @param string
*/
public function setLastUpdateTime($lastUpdateTime)
{
$this->lastUpdateTime = $lastUpdateTime;
}
/**
* @return string
*/
public function getLastUpdateTime()
{
return $this->lastUpdateTime;
}
public function setProgressPercentage($progressPercentage)
{
$this->progressPercentage = $progressPercentage;
}
public function getProgressPercentage()
{
return $this->progressPercentage;
}
/**
* @param string
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SynthesizeLongAudioMetadata::class, 'Google_Service_Texttospeech_SynthesizeLongAudioMetadata');

View File

@@ -0,0 +1,92 @@
<?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\Texttospeech;
class SynthesizeLongAudioRequest extends \Google\Model
{
protected $audioConfigType = AudioConfig::class;
protected $audioConfigDataType = '';
protected $inputType = SynthesisInput::class;
protected $inputDataType = '';
/**
* @var string
*/
public $outputGcsUri;
protected $voiceType = VoiceSelectionParams::class;
protected $voiceDataType = '';
/**
* @param AudioConfig
*/
public function setAudioConfig(AudioConfig $audioConfig)
{
$this->audioConfig = $audioConfig;
}
/**
* @return AudioConfig
*/
public function getAudioConfig()
{
return $this->audioConfig;
}
/**
* @param SynthesisInput
*/
public function setInput(SynthesisInput $input)
{
$this->input = $input;
}
/**
* @return SynthesisInput
*/
public function getInput()
{
return $this->input;
}
/**
* @param string
*/
public function setOutputGcsUri($outputGcsUri)
{
$this->outputGcsUri = $outputGcsUri;
}
/**
* @return string
*/
public function getOutputGcsUri()
{
return $this->outputGcsUri;
}
/**
* @param VoiceSelectionParams
*/
public function setVoice(VoiceSelectionParams $voice)
{
$this->voice = $voice;
}
/**
* @return VoiceSelectionParams
*/
public function getVoice()
{
return $this->voice;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SynthesizeLongAudioRequest::class, 'Google_Service_Texttospeech_SynthesizeLongAudioRequest');

View File

@@ -0,0 +1,90 @@
<?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\Texttospeech;
class SynthesizeSpeechRequest extends \Google\Model
{
protected $advancedVoiceOptionsType = AdvancedVoiceOptions::class;
protected $advancedVoiceOptionsDataType = '';
protected $audioConfigType = AudioConfig::class;
protected $audioConfigDataType = '';
protected $inputType = SynthesisInput::class;
protected $inputDataType = '';
protected $voiceType = VoiceSelectionParams::class;
protected $voiceDataType = '';
/**
* @param AdvancedVoiceOptions
*/
public function setAdvancedVoiceOptions(AdvancedVoiceOptions $advancedVoiceOptions)
{
$this->advancedVoiceOptions = $advancedVoiceOptions;
}
/**
* @return AdvancedVoiceOptions
*/
public function getAdvancedVoiceOptions()
{
return $this->advancedVoiceOptions;
}
/**
* @param AudioConfig
*/
public function setAudioConfig(AudioConfig $audioConfig)
{
$this->audioConfig = $audioConfig;
}
/**
* @return AudioConfig
*/
public function getAudioConfig()
{
return $this->audioConfig;
}
/**
* @param SynthesisInput
*/
public function setInput(SynthesisInput $input)
{
$this->input = $input;
}
/**
* @return SynthesisInput
*/
public function getInput()
{
return $this->input;
}
/**
* @param VoiceSelectionParams
*/
public function setVoice(VoiceSelectionParams $voice)
{
$this->voice = $voice;
}
/**
* @return VoiceSelectionParams
*/
public function getVoice()
{
return $this->voice;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SynthesizeSpeechRequest::class, 'Google_Service_Texttospeech_SynthesizeSpeechRequest');

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\Texttospeech;
class SynthesizeSpeechResponse extends \Google\Model
{
/**
* @var string
*/
public $audioContent;
/**
* @param string
*/
public function setAudioContent($audioContent)
{
$this->audioContent = $audioContent;
}
/**
* @return string
*/
public function getAudioContent()
{
return $this->audioContent;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SynthesizeSpeechResponse::class, 'Google_Service_Texttospeech_SynthesizeSpeechResponse');

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\Texttospeech;
class TexttospeechEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TexttospeechEmpty::class, 'Google_Service_Texttospeech_TexttospeechEmpty');

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\Texttospeech;
class Turn extends \Google\Model
{
/**
* @var string
*/
public $speaker;
/**
* @var string
*/
public $text;
/**
* @param string
*/
public function setSpeaker($speaker)
{
$this->speaker = $speaker;
}
/**
* @return string
*/
public function getSpeaker()
{
return $this->speaker;
}
/**
* @param string
*/
public function setText($text)
{
$this->text = $text;
}
/**
* @return string
*/
public function getText()
{
return $this->text;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Turn::class, 'Google_Service_Texttospeech_Turn');

View File

@@ -0,0 +1,99 @@
<?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\Texttospeech;
class Voice extends \Google\Collection
{
protected $collection_key = 'languageCodes';
/**
* @var string[]
*/
public $languageCodes;
/**
* @var string
*/
public $name;
/**
* @var int
*/
public $naturalSampleRateHertz;
/**
* @var string
*/
public $ssmlGender;
/**
* @param string[]
*/
public function setLanguageCodes($languageCodes)
{
$this->languageCodes = $languageCodes;
}
/**
* @return string[]
*/
public function getLanguageCodes()
{
return $this->languageCodes;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param int
*/
public function setNaturalSampleRateHertz($naturalSampleRateHertz)
{
$this->naturalSampleRateHertz = $naturalSampleRateHertz;
}
/**
* @return int
*/
public function getNaturalSampleRateHertz()
{
return $this->naturalSampleRateHertz;
}
/**
* @param string
*/
public function setSsmlGender($ssmlGender)
{
$this->ssmlGender = $ssmlGender;
}
/**
* @return string
*/
public function getSsmlGender()
{
return $this->ssmlGender;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Voice::class, 'Google_Service_Texttospeech_Voice');

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\Texttospeech;
class VoiceCloneParams extends \Google\Model
{
/**
* @var string
*/
public $voiceCloningKey;
/**
* @param string
*/
public function setVoiceCloningKey($voiceCloningKey)
{
$this->voiceCloningKey = $voiceCloningKey;
}
/**
* @return string
*/
public function getVoiceCloningKey()
{
return $this->voiceCloningKey;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(VoiceCloneParams::class, 'Google_Service_Texttospeech_VoiceCloneParams');

View File

@@ -0,0 +1,112 @@
<?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\Texttospeech;
class VoiceSelectionParams extends \Google\Model
{
protected $customVoiceType = CustomVoiceParams::class;
protected $customVoiceDataType = '';
/**
* @var string
*/
public $languageCode;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $ssmlGender;
protected $voiceCloneType = VoiceCloneParams::class;
protected $voiceCloneDataType = '';
/**
* @param CustomVoiceParams
*/
public function setCustomVoice(CustomVoiceParams $customVoice)
{
$this->customVoice = $customVoice;
}
/**
* @return CustomVoiceParams
*/
public function getCustomVoice()
{
return $this->customVoice;
}
/**
* @param string
*/
public function setLanguageCode($languageCode)
{
$this->languageCode = $languageCode;
}
/**
* @return string
*/
public function getLanguageCode()
{
return $this->languageCode;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setSsmlGender($ssmlGender)
{
$this->ssmlGender = $ssmlGender;
}
/**
* @return string
*/
public function getSsmlGender()
{
return $this->ssmlGender;
}
/**
* @param VoiceCloneParams
*/
public function setVoiceClone(VoiceCloneParams $voiceClone)
{
$this->voiceClone = $voiceClone;
}
/**
* @return VoiceCloneParams
*/
public function getVoiceClone()
{
return $this->voiceClone;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(VoiceSelectionParams::class, 'Google_Service_Texttospeech_VoiceSelectionParams');