Playing back audio

In this section, we'll show how you can embed an audio player into the interface, and how you can make sure that a Toloker listened to your file.


You can add media files (audio files, videos, images) from your own server, a cloud storage like Google Cloud, Amazon AWS, or Yandex Cloud.

Add an audio player to the interface

To insert an audio file into the task interface, add the component to the template. In the url property, specify a direct link to the file (we recommend that you use the MP3 format):

"type": "",
"url": ""

If you pass a link to an audio file in the input data, use the data.input component in the url property.

To loop audio playback automatically, put true in the loop property.

View example

Make sure that the Toloker listened to the audio

Started listening
Listened completely

To make sure that the Toloker played back the audio and at least started listening to it, use the condition.played component in the validation property.

"type": "",
"url": "",
"validation": {
"type": "condition.played"
View example

Record audio

To allow Tolokers to upload their audio files, use the component.

On the website, allows Tolokers to upload audio files, and in the app, it opens the sound recorder.

"type": "",
"data": {
"type": "data.output",
"path": "path",
View example

Create a task to transcribe audio

To create a template for audio transcription tasks, we used the following components:

View example

Contact support

Last updated: August 2, 2023

Getting started
Important tips
Useful recommendations
Working with Toloka
Project analysis
Toloka settings
Task interface
Template Builder
HTML/CSS/JS editor
Help and support