# VoiceInfo.Gender


```
public enum VoiceInfo.Gender extends Enum
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [kotlin.Enum](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html) ||
|   | ↳ | [com.google.mlkit.genai.texttospeech.VoiceInfo.Gender](https://developers.google.com/android/reference/com/google/mlkit/genai/texttospeech/VoiceInfo.Gender) |

*** ** * ** ***

The gender of a voice.

## Summary

| ### Enum Values |
|---|---|
| `https://developers.google.com/android/reference/com/google/mlkit/genai/texttospeech/VoiceInfo.Gender#FEMALE` |   |
| `https://developers.google.com/android/reference/com/google/mlkit/genai/texttospeech/VoiceInfo.Gender#MALE` |   |
| `https://developers.google.com/android/reference/com/google/mlkit/genai/texttospeech/VoiceInfo.Gender#UNKNOWN` |   |

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/android/reference/kotlin/enums/EnumEntries<@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/android/reference/com/google/mlkit/genai/texttospeech/VoiceInfo.Gender>` | `https://developers.google.com/android/reference/com/google/mlkit/genai/texttospeech/VoiceInfo.Gender#getEntries()()` The gender of a voice. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/android/reference/com/google/mlkit/genai/texttospeech/VoiceInfo.Gender` | `https://developers.google.com/android/reference/com/google/mlkit/genai/texttospeech/VoiceInfo.Gender#valueOf(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html value)` Returns the enum constant of this type with the specified name. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull.html VoiceInfo.Gender[]` | `https://developers.google.com/android/reference/com/google/mlkit/genai/texttospeech/VoiceInfo.Gender#values()()` Returns an array containing the constants of this enum type, in the order they're declared. |

## Enum Values

### FEMALE

```
VoiceInfo.Gender VoiceInfo.Gender.FEMALE
```

### MALE

```
VoiceInfo.Gender VoiceInfo.Gender.MALE
```

### UNKNOWN

```
VoiceInfo.Gender VoiceInfo.Gender.UNKNOWN
```

## Public methods

### getEntries

```
public final @NonNull EnumEntries<@NonNull VoiceInfo.Gender> getEntries()
```

The gender of a voice.

### valueOf

```
public final @NonNull VoiceInfo.Gender valueOf(@NonNull String value)
```

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

| Throws |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-illegal-argument-exception/index.html` | if this enum type has no constant with the specified name |

### values

```
public final @NonNull VoiceInfo.Gender[] values()
```

Returns an array containing the constants of this enum type, in the order they're declared.

This method may be used to iterate over the constants.