TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I include audio file, or should I say, link to audio file in PDF?

  1. Audio should be playable "from PDF directly", without opening any additional window.
  2. Is it possible to attach audios to PDF then so I can manipulate only with that file, without being bothered with copying folders where those audio files would reside?

I saw that 1. is definitely doable (but don't know how) and I'm interested if second one is also possible (while compiling .tex file) since I know that some files (like graphs and tables) can be attached in PDF, but after it's generated.

alt text Button for playing audio from document that uses this trick.

share|improve this question
Keep in mind that most methods for embedding audio/video are not implemented in many PDF readers. It may very likely be the case that the audio link will only work in Adobe Acrobat/Reader. – ESultanik Dec 21 '10 at 13:47
I am reminded of Knuth's recent talk: river-valley.tv/tug-2010/an-earthshaking-announcement – Ryan Reich Dec 23 '10 at 18:41

Best package to use is the movie15 package. It comes with a variety of examples.

share|improve this answer
That's right!!! The movie15 package is in my opinion the best. You can include movie and audio files and 3D models also. – rgallego Dec 28 '10 at 23:06
The docs for that package say it is obsolete and suggest media9. – Matthew Leingang Nov 14 '13 at 18:09

Try the multimedia package, which is part of the beamer distribution. It's documented in Section 14.2 of the beamer 2.10 manual, and it does provide the ability to embed sound files into the pdf. Not all sound formats are supported, and I'm sure not all pdf viewers can play sounds natively. So YMMV.

share|improve this answer
up vote 6 down vote accepted

Though suggested packages are very good, after quite of looking around, I've found attachfile the best for my purpose.

share|improve this answer
@user1996 I up voted your self proposed solution. I was not aware of attach file before. Could you describe how does it work? Do you have to unpack PDF file before you play? I see pdftk listed as one way to do that but that is pdf manipulator not a viewer. Does your solution suffer from the same problem as movie15 it depends on Acroread. – Predrag Punosevac May 21 '13 at 12:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.