# SpannedSubject.VoiceText

Artifact: [androidx.media3:media3-test-utils](https://developer.android.com/jetpack/androidx/releases/media3) [View Source](https://cs.android.com/search?q=file:androidx/media3/test/utils/truth/SpannedSubject.java+class:androidx.media3.test.utils.truth.SpannedSubject.VoiceText)

*** ** * ** ***


```
public interface SpannedSubject.VoiceText
```

<br />

*** ** * ** ***

Allows assertions about a span's voice its position.

## Summary

| ### Public methods |
|---|---|
| `abstract https://developer.android.com/reference/androidx/media3/test/utils/truth/SpannedSubject.AndSpanFlags` | `https://developer.android.com/reference/androidx/media3/test/utils/truth/SpannedSubject.VoiceText#withName(java.lang.String)(https://developer.android.com/reference/java/lang/String.html name)` Checks that at least one of the matched spans has the expected `name`. |

## Public methods

### withName

```
abstract SpannedSubject.AndSpanFlags withName(String name)
```

Checks that at least one of the matched spans has the expected `name`.

| Parameters |
|---|---|
| `https://developer.android.com/reference/java/lang/String.html name` | The expected name of the voice. |

| Returns |
|---|---|
| `https://developer.android.com/reference/androidx/media3/test/utils/truth/SpannedSubject.AndSpanFlags` | A `https://developer.android.com/reference/androidx/media3/test/utils/truth/SpannedSubject.AndSpanFlags` object for optional additional assertions on the flags. |