# gsmVoice

Set the GSM voice state on the Android emulator. Valid values: 'unregistered', 'home', 'roaming', 'searching', 'denied', 'off', 'on'.

> **Note:** Falls back to the deprecated Appium 2 protocol endpoint if the driver does not support the `mobile:` execute method.

## Usage[​](#usage "Direct link to Usage")

```
await browser.gsmVoice(state)
```

## Parameters[​](#parameters "Direct link to Parameters")

| Name    | Type     | Details                                                                                            |
| ------- | -------- | -------------------------------------------------------------------------------------------------- |
| `state` | `string` | The GSM voice state to set ('unregistered', 'home', 'roaming', 'searching', 'denied', 'off', 'on') |

## Example[​](#example "Direct link to Example")

gsmVoice.js

```
it('should set GSM voice state to home', async () => {
    await browser.gsmVoice('home')
})
```

## Support[​](#support "Direct link to Support")

![Support for android](/assets/images/android-d941e94d5839760141de31c8446b67ce.svg)

**Supported platforms:** Android

note

Refer to the official [Appium driver documentation](https://appium.io/docs/en/latest/ecosystem/) to see which driver versions support this command.
