# VoiceInfo


```
class VoiceInfo
```

<br />

*** ** * ** ***

Represents information about a supported text-to-speech voice.

Instances are created by the SDK and returned from `https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/texttospeech/SpeechSynthesizer#getSupportedVoices(java.util.Locale)`.

## Summary

| ### Nested types |
|---|
| `enum https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/texttospeech/VoiceInfo.Gender : https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html` The gender of a voice. |

| ### Public properties |
|---|---|
| `https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/texttospeech/VoiceInfo.Gender` | `https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/texttospeech/VoiceInfo#gender()` The gender of the voice. |
| `https://developer.android.com/reference/java/util/Locale.html` | `https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/texttospeech/VoiceInfo#locale()` The concrete locale of the voice, which may be more specific than the one it was looked up with. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/texttospeech/VoiceInfo#name()` The unique name of the voice. |

## Public properties

### gender

```
val gender: VoiceInfo.Gender
```

The gender of the voice.

### locale

```
val locale: Locale
```

The concrete locale of the voice, which may be more specific than the one it was looked up with. `https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/texttospeech/SpeechSynthesizer#checkStatus(com.google.mlkit.genai.texttospeech.VoiceInfo)`, `https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/texttospeech/SpeechSynthesizer#download(com.google.mlkit.genai.texttospeech.VoiceInfo)`, and the language fallback in `https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/texttospeech/SpeechSynthesizer#synthesize(com.google.mlkit.genai.texttospeech.SpeechSynthesizerRequest)` all key off this rather than the locale configured in `https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/texttospeech/SpeechSynthesizerOptions`.

### name

```
val name: String
```

The unique name of the voice.