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

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

# Interface SpeechSynthesisVoice

The **`SpeechSynthesisVoice`** interface of the Web Speech API represents a voice that the system supports. Every SpeechSynthesisVoice has its own relative speech service including information about language, name and URI.

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

interface SpeechSynthesisVoice {  
    [default](#default): boolean;  
    [lang](#lang): string;  
    [localService](#localservice): boolean;  
    [name](#name): string;  
    [voiceURI](#voiceuri): string;  
}

##### Index

### Properties[](#properties)

[default](#default) [lang](#lang) [localService](#localservice) [name](#name) [voiceURI](#voiceuri)

## Properties[](#properties-1)

### `Readonly`default[](#default)

default: boolean

The **`default`** read-only property of the SpeechSynthesisVoice interface returns a boolean value indicating whether the voice is the default voice for the current app (true), or not (false.)

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

### `Readonly`lang[](#lang)

lang: string

The **`lang`** read-only property of the SpeechSynthesisVoice interface returns a BCP 47 language tag indicating the language of the voice.

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

### `Readonly`localService[](#localservice)

localService: boolean

The **`localService`** read-only property of the SpeechSynthesisVoice interface returns a boolean value indicating whether the voice is supplied by a local speech synthesizer service (true), or a remote speech synthesizer service (false.)

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

### `Readonly`name[](#name)

name: string

The **`name`** read-only property of the SpeechSynthesisVoice interface returns a human-readable name that represents the voice.

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

### `Readonly`voiceURI[](#voiceuri)

voiceURI: string

The **`voiceURI`** read-only property of the SpeechSynthesisVoice interface returns the type of URI and location of the speech synthesis service for this voice.

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