Button for recording and uploading an audio file
Note
The task interface configuration guide describes the features of the HTML/JS/CSS editor. You can also try creating a button for recording and uploading audio files in Template Builder.
To add a button for audio recording and upload to the task, use the {{field type="file" sources="RECORDER" fileType="AUDIO" name="<output field name>" sources="<sources parameter>" fileType="<fileType parameter>"}}
component. Example:
{{field type="file" name="result" sources="RECORDER" fileType="AUDIO" label="Record audio"}}
For a complete list of parameters, see the table.
Add a field with the file
type in the output data description. Example:
{
"result": {
"type": "file",
"required": true
}
}
Create tasks for mobile devices if you want to use the button for recording and uploading audio files, because these devices have a built-in voice recorder. Set the Client = Mobile Toloka filter in the pool.
Parameters
Parameter |
Description |
Required |
Default value |
|
Field type: |
yes |
no |
|
Attribute for the output data field. Contains the output field name. |
yes |
no |
|
Note This parameter applies to the tasks completed in the mobile app. The file source. You can set several values in the format Supported values:
|
yes |
no |
|
Note This parameter applies to the tasks completed in the mobile app. File type: |
yes |
no |
|
The button label. For example, |
no |
Depending on the interface language, “Upload file” (English), “Загрузить файл” (Russian), “Dosya yükle” (Turkish), “Faylni yuklash” (Uzbek). |
|
The number of files to download at the same time. For the single file upload, set the value to For upload of multiple files:
|
no |
|
|
The position of popup hints (displayed if the response didn't pass validation). The position is relative to the input field. Supported values:
|
no |
|