1

AFAIK the natural choice for playing sounds in beamer is the multimedia package

But the beamer documentation says it only works with pdflatex:

∙ The sound objects do not work together with dvips and ps2pdf. They only work with pdflatex.

This is a similar question but for videos (I don't know if this changes things here). The author suggests moving to the media9 package but it is designed to work with Adobe Acrobat and Flash Player and I don't want to use it

The answer of this question suggests using a package called movie15_dvipdfmx but a quick search in CTAN found no results for it, which I find weird. I suppose this would require a manual installation of the package?

Are there any easier solutions?

  • Have you tried with LuaTeX instead of XeTeX (with no other changes)? – Orestes Mas May 25 '16 at 8:58
0

One solution for this is simply using \href

\begin{frame}
    \href{run:../relative/path/to/file.wav}{Example}
\end{frame}

There are no additional packages needed

The disadvantages of this approach are:

  1. It will run your standard audio player which can open a big window in front of your slides
  2. This does not work for some pdf visualizers such as pdfpc

Marking this as correct until someone comes up with something better

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.