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

SpeechRecognitionResult

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

A speech recognition result corresponding to a portion of the audio.

interface SpeechRecognitionResult {
channelTag?: number;
readonly languageCode?: string;
resultEndTime?: number;
}

§Properties

§

May contain one or more recognition hypotheses (up to the maximum specified in max_alternatives). These alternatives are ordered in terms of accuracy, with the top (first) alternative being the most probable, as ranked by the recognizer.

§
channelTag?: number
[src]

For multi-channel audio, this is the channel number corresponding to the recognized result for the audio from that channel. For audio_channel_count = N, its output values can range from '1' to 'N'.

§
readonly languageCode?: string
[src]

Output only. The BCP-47 language tag of the language in this result. This language code was detected to have the most likelihood of being spoken in the audio.

§
resultEndTime?: number
[src]

Time offset of the end of this result relative to the beginning of the audio.