Button for recording and uploading an audio

To add the voice record and upload button to the task, use the {{field type="file" sources="RECORDER" fileType="AUDIO" name="<field ID>"}} component. Field ID must match the field name in the output data description. For example:

{{field type="file" name="result" sources="RECORDER" fileType="AUDIO" label="Записать аудио"}}
Full list of parameters

Parameter

Description

Required

Default value

type

Field type: file — Button for file upload.

yes

no

name

Field ID. Must match the field name in the output data description.

yes

no

sources File source: RECORDER — Built-in voice recorder in the device. yes no
fileType File type: AUDIO — Audio recording. yes no

label

The button label. For example, label="Click me".

no

Depending on the interface language “Загрузить файл” (Russian), “Upload file” (English), “Dosya yükle” (Turkish), “Unggah file” (Indonesian).

validation-show

The position of popup hints (displayed if the response didn't pass validation). The position is relative to the input field.

Supported values:

  • Above the input field: "top-left", "top-center", "top-right".

  • Below the input field: "bottom-left", "bottom-center", "bottom-right".

  • To the left of the input field: "left-top", "left-center", "left-bottom".

  • To the right of the input field: "right-top", "right-center", "right-bottom".

  • Don't display the message ("false").

no

"top-left"

Add a field of file type into the output data description. For example:

{
  "result": {
    "type": "file",
    "required": true
  }
}

Launch the tasks with the audio record and upload button for mobile devices, because they have a built-in voice recorder. Set the Client = Mobile Toloka filter in the pool or choose a ready set of mobile users.