# How to include audio file in PDF

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.

Button for playing audio from document that uses this trick.

• The docs for that package say it is obsolete and suggest media9. – Matthew Leingang Nov 14 '13 at 18:09
Though suggested packages are very good, after quite of looking around, I've found attachfile the best for my purpose.
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.