class ProjectsLocationsPhraseSets extends Resource (View source)

The "phraseSets" collection of methods.

Typical usage is:

 $speechService = new Google\Service\Speech(...);
 $phraseSets = $speechService->projects_locations_phraseSets;

Methods

create(string $parent, CreatePhraseSetRequest $postBody, array $optParams = [])

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)

delete(string $name, array $optParams = [])

Delete a phrase set. (phraseSets.delete)

get(string $name, array $optParams = [])

Get a phrase set. (phraseSets.get)

listProjectsLocationsPhraseSets(string $parent, array $optParams = [])

List phrase sets. (phraseSets.listProjectsLocationsPhraseSets)

patch(string $name, PhraseSet $postBody, array $optParams = [])

Update a phrase set. (phraseSets.patch)

Details

PhraseSet create(string $parent, CreatePhraseSetRequest $postBody, array $optParams = [])

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)

Parameters

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 with matching us or eu location value.

CreatePhraseSetRequest $postBody
array $optParams

Optional parameters.

Return Value

PhraseSet

Exceptions

Exception

SpeechEmpty delete(string $name, array $optParams = [])

Delete a phrase set. (phraseSets.delete)

Parameters

string $name

Required. The name of the phrase set to delete. Format: projects/{project}/locations/{location}/phraseSets/{phrase_set}

array $optParams

Optional parameters.

Return Value

SpeechEmpty

Exceptions

Exception

PhraseSet get(string $name, array $optParams = [])

Get a phrase set. (phraseSets.get)

Parameters

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 with matching us or eu location value.

array $optParams

Optional parameters.

Return Value

PhraseSet

Exceptions

Exception

ListPhraseSetResponse listProjectsLocationsPhraseSets(string $parent, array $optParams = [])

List phrase sets. (phraseSets.listProjectsLocationsPhraseSets)

Parameters

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 with matching us or eu location value.

array $optParams

Optional parameters.

Return Value

ListPhraseSetResponse

Exceptions

Exception

PhraseSet patch(string $name, PhraseSet $postBody, array $optParams = [])

Update a phrase set. (phraseSets.patch)

Parameters

string $name

The resource name of the phrase set.

PhraseSet $postBody
array $optParams

Optional parameters.

Return Value

PhraseSet

Exceptions

Exception