id | name | rule_type | description | accessibility_requirements | input_aspects | acknowledgments | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2eb176 |
`audio` element content has transcript |
atomic |
This rule checks that `audio` elements have a transcript that includes all auditory information.
|
|
|
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.
Note: A play button is an interactive element that when activated, plays the audio.
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.
This rule assumes that the language of each test target can be correctly determined (either programmatically or by analyzing the content), and sufficiently understood.
There are no major accessibility support issues known for this rule.
- 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.txt">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.txt">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.txt">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.txt">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>