[**@wocart/storefront v3.1.0**](../../README)

***

[@wocart/storefront](../../README) / [review-media](../README) / VoiceRecorder

# Interface: VoiceRecorder

## Properties

### state

> `readonly` **state**: `"idle"` \| `"recording"` \| `"stopped"`

## Methods

### cancel()

> **cancel**(): `void`

Stops and throws the recording away.

#### Returns

`void`

***

### start()

> **start**(): `Promise`\<`void`\>

Asks for the microphone and starts. Rejects when it is refused or unavailable.

#### Returns

`Promise`\<`void`\>

***

### stop()

> **stop**(): `Promise`\<[`RecordedVoice`](RecordedVoice)\>

Stops and gives the recording.

#### Returns

`Promise`\<[`RecordedVoice`](RecordedVoice)\>
