Toloka documentation

AudioViewV1

toloka.client.project.template_builder.view.AudioViewV1 | Source code

AudioViewV1(
    self,
    url: Optional[Any] = None,
    *,
    loop: Optional[Union[BaseComponent, bool]] = None,
    hint: Optional[Any] = None,
    label: Optional[Any] = None,
    validation: Optional[BaseComponent] = None,
    version: Optional[str] = '1.0.0'
)

The component plays audio.

Format support depends on the user's browser, OS, and device. We recommend using MP3.

Parameters Description

Parameters Type Description
url Optional[Any]

Audio link.

loop Optional[Union[BaseComponent, bool]]

Automatically replay audio.

hint Optional[Any]

Hint text.

label Optional[Any]

Label above the component.

validation Optional[BaseComponent]

Validation based on condition.