# Audio input

The *audio-recorder.* It is used to record snippets of audio and send them.

An example on how to use it is:

```python
form_groups = {
    'Audio recorder': [
        {
            'mapping': 'voice',
            'fieldName': 'Audio recorder',
            'inputType': 'audio',
        }
    ]
}
s.plt.generate_input_form_groups(
    order=0, form_groups=form_groups
)
```

results in:

<figure><img src="https://3782181538-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUlHTfmIZY46Z1EDfyGMz%2Fuploads%2Fw32o1EygT50klUW5GpPI%2FAudio%20Recorder.png?alt=media&#x26;token=045f7892-edff-4a93-b13b-bee1b0dc0cf0" alt=""><figcaption><p>Audio recorder component</p></figcaption></figure>

To begin recording, the user just has to press the button with the microphone symbol:

<figure><img src="https://3782181538-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUlHTfmIZY46Z1EDfyGMz%2Fuploads%2FxfwYw3jymmgXqMtrXzzy%2FAudio%20Recorder%201.png?alt=media&#x26;token=a5963668-7bb4-4d15-92c6-5867519dc5af" alt=""><figcaption></figcaption></figure>

And press it again to stop recording:

<figure><img src="https://3782181538-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUlHTfmIZY46Z1EDfyGMz%2Fuploads%2FM69XQUngSsUEflimeFRX%2FAudio%20Recorder%202.png?alt=media&#x26;token=df734f35-69f0-4000-a444-47b732f91848" alt=""><figcaption></figcaption></figure>

Multiple audios can be recorded:

<figure><img src="https://3782181538-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUlHTfmIZY46Z1EDfyGMz%2Fuploads%2FHzgDonP56mJftX5bqtK7%2FAudio%20Recorder%203.png?alt=media&#x26;token=6c43c363-73db-4e6b-bfb6-30b32f6003af" alt=""><figcaption></figcaption></figure>
