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

RecognitionMetadata

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

Description of audio data to be recognized.

interface RecognitionMetadata {
audioTopic?: string;
industryNaicsCodeOfAudio?: number;
interactionType?:
| "INTERACTION_TYPE_UNSPECIFIED"
| "DISCUSSION"
| "PRESENTATION"
| "PHONE_CALL"
| "VOICEMAIL"
| "PROFESSIONALLY_PRODUCED"
| "VOICE_SEARCH"
| "VOICE_COMMAND"
| "DICTATION";
microphoneDistance?:
| "MICROPHONE_DISTANCE_UNSPECIFIED"
| "NEARFIELD"
| "MIDFIELD"
| "FARFIELD";
originalMediaType?: "ORIGINAL_MEDIA_TYPE_UNSPECIFIED" | "AUDIO" | "VIDEO";
originalMimeType?: string;
recordingDeviceName?: string;
recordingDeviceType?:
| "RECORDING_DEVICE_TYPE_UNSPECIFIED"
| "SMARTPHONE"
| "PC"
| "PHONE_LINE"
| "VEHICLE"
| "OTHER_OUTDOOR_DEVICE"
| "OTHER_INDOOR_DEVICE";
}

§Properties

§
audioTopic?: string
[src]

Description of the content. Eg. "Recordings of federal supreme court hearings from 2012".

§
industryNaicsCodeOfAudio?: number
[src]

The industry vertical to which this speech recognition request most closely applies. This is most indicative of the topics contained in the audio. Use the 6-digit NAICS code to identify the industry vertical - see https://www.naics.com/search/.

§
interactionType?: "INTERACTION_TYPE_UNSPECIFIED" | "DISCUSSION" | "PRESENTATION" | "PHONE_CALL" | "VOICEMAIL" | "PROFESSIONALLY_PRODUCED" | "VOICE_SEARCH" | "VOICE_COMMAND" | "DICTATION"
[src]

The use case most closely describing the audio content to be recognized.

§
microphoneDistance?: "MICROPHONE_DISTANCE_UNSPECIFIED" | "NEARFIELD" | "MIDFIELD" | "FARFIELD"
[src]

The audio type that most closely describes the audio being recognized.

§
originalMediaType?: "ORIGINAL_MEDIA_TYPE_UNSPECIFIED" | "AUDIO" | "VIDEO"
[src]

The original media the speech was recorded on.

§
originalMimeType?: string
[src]

Mime type of the original audio file. For example audio/m4a, audio/x-alaw-basic, audio/mp3, audio/3gpp. A list of possible audio mime types is maintained at http://www.iana.org/assignments/media-types/media-types.xhtml#audio

§
recordingDeviceName?: string
[src]

The device used to make the recording. Examples 'Nexus 5X' or 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or 'Cardioid Microphone'.

§
recordingDeviceType?: "RECORDING_DEVICE_TYPE_UNSPECIFIED" | "SMARTPHONE" | "PC" | "PHONE_LINE" | "VEHICLE" | "OTHER_OUTDOOR_DEVICE" | "OTHER_INDOOR_DEVICE"
[src]

The type of device the speech was recorded with.