EPUBCheck OPF-095: voicing link not audio
Updated:
EPUBCheck OPF-095 is an error message: “The "media-type" attribute of "voicing" links must be an audio MIME type, but found "…".” A voicing link in the metadata declares a media type that is not audio. A voicing link points to a recording of a title or name being spoken, so its media type must be an audio type.
The official message
The "media-type" attribute of "voicing" links must be an audio MIME type, but found "%1$s".
- Default severity
- Error. The EPUB breaks a rule of the specification and is invalid. Stores and Send to Kindle may reject it, and EPUBCheck exits with status 1.
- EPUBCheck version
- 5.4.0
%1$s, %2$s… are filled in with the file, value or element EPUBCheck found.
Typical causes
- A media type typo, such as audio/mp3 written as application/mp3.
- A link to a non-audio file marked as voicing by mistake.
- A media type copied from another link.
How to fix it
- Find the link EPUBCheck points to and check the file it links to.
- Set media-type to the file's real audio type, for example audio/mpeg for MP3 or audio/mp4 for AAC.
- If the file is not audio, change rel or remove the link.
When it's not this
If the voicing link has no media type at all, that is OPF-094.
Terms used here
Other OPF messages
OPF-094The "media-type" attribute is required for "…" links.OPF-096Non-linear content must be reachable, but found no hyperlink to "…".OPF-096bNo hyperlink was found to non-linear document "…", please check that it can be reached from scripted content.OPF-093The "media-type" attribute is required for linked resources located in the EPUB containerOPF-097Resource "…" is listed in the manifest, but no reference to it was found in content documents.OPF-092Language tag "…" is not well-formed: …
Sources
- EPUB 3.3, §D.4.1.6 voicing · read
Message text and severity from EPUBCheck 5.4.0 (W3C, BSD-3-Clause). Explanation by EpubCC.