| id | 2eb176 | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| name | Audio element content has transcript | ||||||||||
| rules_format | 1.1 | ||||||||||
| rule_type | atomic | ||||||||||
| description | This rule checks that `audio` elements have a transcript that includes all auditory information. | ||||||||||
| accessibility_requirements | |||||||||||
| input_aspects |
|
||||||||||
| acknowledgments |
|
This rule applies to every non-streaming audio element that is:
- playing; or,
- has a play button that is visible and included in the accessibility tree.
The auditory information of each test target is available through a text transcript. That text transcript is visible and included in the accessibility tree, either on the page or through a link.
Note: A "text transcript" in the context of this rule is defined in WCAG 2 as an alternative for time based media.
There are no assumptions.
There are no accessibility support issues known.
- Understanding SC 1.2.1:Audio-only and Video-only (Prerecorded)
- G158: Providing an alternative for time-based media for audio-only content
This audio element has native player controls and an internal transcript.
<html lang="en">
<audio src="/test-assets/moon-audio/moon-speech.mp3" controls></audio>
<p>
The above audio contains the following speech: We choose to go to the moon in this decade and do the other things,
not because they are easy, but because they are hard, because that goal will serve to organize and measure the best
of our energies and skills, because that challenge is one that we are willing to accept, one we are unwilling to
postpone, and one which we intend to win, and the others, too.
</p>
</html>This audio element has native player controls and an external transcript.
<html lang="en">
<audio src="/test-assets/moon-audio/moon-speech.mp3" controls></audio>
<a href="/test-assets/moon-audio/moon-speech-transcript.html">Transcript</a>
</html>This audio element has an autoplay attribute and an external transcript.
<html lang="en">
<audio src="/test-assets/moon-audio/moon-speech.mp3" autoplay></audio>
<a href="/test-assets/moon-audio/moon-speech-transcript.html">Transcript</a>
</html>This audio element has native player controls and no transcript.
<html lang="en">
<audio src="/test-assets/moon-audio/moon-speech.mp3" controls></audio>
</html>This audio element has native player controls and an incorrect internal transcript.
<html lang="en">
<audio src="/test-assets/moon-audio/moon-speech.mp3" controls></audio>
<p>
The above audio contains the following speech: We choose to go to the cheese in this decade and do the other things,
not because they are easy, but because they are hard, because that goal will serve to organize and measure the best
of our energies and skills, because that challenge is one that we are willing to accept, one we are unwilling to
postpone, and one which we intend to win, and the others, too.
</p>
</html>This audio element has native player controls and an incorrect external transcript.
<html lang="en">
<audio src="/test-assets/moon-audio/moon-speech.mp3" controls></audio>
<a href="/test-assets/moon-audio/moon-speech-incorrect-transcript.html">Transcript</a>
</html>This audio element has an autoplay attribute and an incorrect external transcript.
<html lang="en">
<audio src="/test-assets/moon-audio/moon-speech.mp3" autoplay></audio>
<a href="/test-assets/moon-audio/moon-speech-incorrect-transcript.html">Transcript</a>
</html>This audio element has native player controls and a non-visible internal transcript.
<html lang="en">
<audio src="/test-assets/moon-audio/moon-speech.mp3" controls></audio>
<p style="text-indent: -9999px;">
The above audio contains the following speech: We choose to go to the moon in this decade and do the other things,
not because they are easy, but because they are hard, because that goal will serve to organize and measure the best
of our energies and skills, because that challenge is one that we are willing to accept, one we are unwilling to
postpone, and one which we intend to win, and the others, too.
</p>
</html>This audio element has native player controls and an internal transcript that is not exposed to the accessibility tree.
<html lang="en">
<audio src="/test-assets/moon-audio/moon-speech.mp3" controls></audio>
<p aria-hidden="true">
The above audio contains the following speech: We choose to go to the moon in this decade and do the other things,
not because they are easy, but because they are hard, because that goal will serve to organize and measure the best
of our energies and skills, because that challenge is one that we are willing to accept, one we are unwilling to
postpone, and one which we intend to win, and the others, too.
</p>
</html>This audio element has no native player controls.
<html lang="en">
<audio src="/test-assets/moon-audio/moon-speech.mp3"></audio>
</html>This audio element has hidden native player controls.
<html lang="en">
<audio src="/test-assets/moon-audio/moon-speech.mp3" controls style="display: none;"></audio>
</html>