# SpeechRecognizerResponse.WordTiming


```
public final class SpeechRecognizerResponse.WordTiming
```

<br />

*** ** * ** ***

Represents timing metadata for a recognized word.

## Summary

| ### Public constructors |
|---|
| `https://developers.google.com/android/reference/com/google/mlkit/genai/speechrecognition/SpeechRecognizerResponse.WordTiming#WordTiming(kotlin.String,kotlin.Long)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html text, long timestampMs)` |

| ### 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/speechrecognition/SpeechRecognizerResponse.WordTiming#getText()()` The recognized word text. |
| `final long` | `https://developers.google.com/android/reference/com/google/mlkit/genai/speechrecognition/SpeechRecognizerResponse.WordTiming#getTimestampMs()()` The start offset in milliseconds from the start of the recognition session. |

## Public constructors

### WordTiming

```
public WordTiming(@NonNull String text, long timestampMs)
```

## Public methods

### getText

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

The recognized word text.

### getTimestampMs

```
public final long getTimestampMs()
```

The start offset in milliseconds from the start of the recognition session.