Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

speech

import { speech } from "https://googleapis.deno.dev/v1/speech:v1.ts";

Converts audio to text by applying powerful neural network models.

class speech {
constructor(client?: CredentialsClient, baseUrl?: string);
async operationsGet(name: string): Promise<Operation>;
async operationsList(opts?: OperationsListOptions): Promise<ListOperationsResponse>;
async projectsLocationsCustomClassesCreate(parent: string, req: CreateCustomClassRequest): Promise<CustomClass>;
async projectsLocationsCustomClassesDelete(name: string): Promise<Empty>;
async projectsLocationsCustomClassesGet(name: string): Promise<CustomClass>;
async projectsLocationsCustomClassesList(parent: string, opts?: ProjectsLocationsCustomClassesListOptions): Promise<ListCustomClassesResponse>;
async projectsLocationsCustomClassesPatch(
name: string,
): Promise<CustomClass>;
async projectsLocationsPhraseSetsCreate(parent: string, req: CreatePhraseSetRequest): Promise<PhraseSet>;
async projectsLocationsPhraseSetsDelete(name: string): Promise<Empty>;
async projectsLocationsPhraseSetsGet(name: string): Promise<PhraseSet>;
async projectsLocationsPhraseSetsList(parent: string, opts?: ProjectsLocationsPhraseSetsListOptions): Promise<ListPhraseSetResponse>;
async projectsLocationsPhraseSetsPatch(
name: string,
req: PhraseSet,
): Promise<PhraseSet>;
async speechLongrunningrecognize(req: LongRunningRecognizeRequest): Promise<Operation>;
async speechRecognize(req: RecognizeRequest): Promise<RecognizeResponse>;
}

§Constructors

§
new speech(client?: CredentialsClient, baseUrl?: string)
[src]

§Methods

§
operationsGet(name: string): Promise<Operation>
[src]

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.

@param name

The name of the operation resource.

§
operationsList(opts?: OperationsListOptions): Promise<ListOperationsResponse>
[src]

Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.

§
projectsLocationsCustomClassesCreate(parent: string, req: CreateCustomClassRequest): Promise<CustomClass>
[src]

Create a custom class.

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

§
projectsLocationsCustomClassesDelete(name: string): Promise<Empty>
[src]

Delete a custom class.

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

§
projectsLocationsCustomClassesGet(name: string): Promise<CustomClass>
[src]

Get a custom class.

@param name

Required. The name of the custom class to retrieve. Format: projects/{project}/locations/{location}/customClasses/{custom_class}

§
projectsLocationsCustomClassesList(parent: string, opts?: ProjectsLocationsCustomClassesListOptions): Promise<ListCustomClassesResponse>
[src]

List custom classes.

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

§
projectsLocationsCustomClassesPatch(name: string, req: CustomClass, opts?: ProjectsLocationsCustomClassesPatchOptions): Promise<CustomClass>
[src]

Update a custom class.

@param name

The resource name of the custom class.

§
projectsLocationsPhraseSetsCreate(parent: string, req: CreatePhraseSetRequest): Promise<PhraseSet>
[src]

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.

@param 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.

§
projectsLocationsPhraseSetsDelete(name: string): Promise<Empty>
[src]

Delete a phrase set.

@param name

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

§
projectsLocationsPhraseSetsGet(name: string): Promise<PhraseSet>
[src]

Get a phrase set.

@param 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.

§
projectsLocationsPhraseSetsList(parent: string, opts?: ProjectsLocationsPhraseSetsListOptions): Promise<ListPhraseSetResponse>
[src]

List phrase sets.

@param 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.

§
projectsLocationsPhraseSetsPatch(name: string, req: PhraseSet, opts?: ProjectsLocationsPhraseSetsPatchOptions): Promise<PhraseSet>
[src]

Update a phrase set.

@param name

The resource name of the phrase set.

§
speechLongrunningrecognize(req: LongRunningRecognizeRequest): Promise<Operation>
[src]

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.

§
speechRecognize(req: RecognizeRequest): Promise<RecognizeResponse>
[src]

Performs synchronous speech recognition: receive results after all audio has been sent and processed.