---
title: "SpeechRecognitionAlternative | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs-qmgv.pages.dev/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Interface SpeechRecognitionAlternative

The **`SpeechRecognitionAlternative`** interface of the Web Speech API represents a single word that has been recognized by the speech recognition service. Available only in secure contexts.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionAlternative)

interface SpeechRecognitionAlternative {  
    [confidence](#confidence): number;  
    [transcript](#transcript): string;  
}

##### Index

### Properties[](#properties)

[confidence](#confidence) [transcript](#transcript)

## Properties[](#properties-1)

### `Readonly`confidence[](#confidence)

confidence: number

The **`confidence`** read-only property of the SpeechRecognitionResult interface returns a numeric estimate of how confident the speech recognition system is that the recognition is correct.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionAlternative/confidence)

### `Readonly`transcript[](#transcript)

transcript: string

The **`transcript`** read-only property of the SpeechRecognitionResult interface returns a string containing the transcript of the recognized word(s).

[MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionAlternative/transcript)
