# SpeechSynthesizerRequest.Input.Text


```
public final class SpeechSynthesizerRequest.Input.Text extends SpeechSynthesizerRequest.Input
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [com.google.mlkit.genai.texttospeech.SpeechSynthesizerRequest.Input](https://developers.google.com/android/reference/com/google/mlkit/genai/texttospeech/SpeechSynthesizerRequest.Input) ||
|   | ↳ | [com.google.mlkit.genai.texttospeech.SpeechSynthesizerRequest.Input.Text](https://developers.google.com/android/reference/com/google/mlkit/genai/texttospeech/SpeechSynthesizerRequest.Input.Text) |

*** ** * ** ***

A text input containing the raw string to be synthesized.

## Summary

| ### Public constructors |
|---|
| `https://developers.google.com/android/reference/com/google/mlkit/genai/texttospeech/SpeechSynthesizerRequest.Input.Text#Text(kotlin.String,com.google.mlkit.genai.texttospeech.VoiceInfo)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html value, @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/android/reference/com/google/mlkit/genai/texttospeech/VoiceInfo voiceInfo)` |

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html` | `https://developers.google.com/android/reference/com/google/mlkit/genai/texttospeech/SpeechSynthesizerRequest.Input.Text#getValue()()` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/android/reference/com/google/mlkit/genai/texttospeech/VoiceInfo` | `https://developers.google.com/android/reference/com/google/mlkit/genai/texttospeech/SpeechSynthesizerRequest.Input.Text#getVoiceInfo()()` |

## Public constructors

### Text

```
public Text(@NonNull String value, @NonNull VoiceInfo voiceInfo)
```

## Public methods

### getValue

```
public final @NonNull String getValue()
```

### getVoiceInfo

```
public final @NonNull VoiceInfo getVoiceInfo()
```