Document ClassesBeamer: Play a Sound does not work

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
pooz
Posts: 65
Joined: Sat Apr 11, 2009 10:47 am

Beamer: Play a Sound does not work

Post by pooz »

Hi,

I am trying to play a soundfile (a wave-file) in my Beamer-Class. But it doesnt work, allthough I followed the instructions of the beamer manual.

Here is my sample:

Code: Select all

% !TEX encoding = UTF-8 Unicode
\documentclass{beamer}

\usepackage{multimedia}
\usepackage{hyperref}

\begin{document}

\frame
{
\sound[inline, samplingrate=44100,bitspersample=16]{Click me to Play Sound}{always_700cp_000cf.wav}
\\
\sound[]{Click me to Play Sound Nr.2}{always_700cp_000cf.wav}
}
\end{document}
Is someone able to compile this (with a test file) and play that sound when clicking on it? (you can download an appropriate soundfile here: http://www.findsounds.com/
try this for example)

I would be thankful for anyhelp.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Beamer: Play a Sound does not work

Post by localghost »

Take a close look at Section 14.2 (Sounds, p. 130ff) of the beamer manual.


Best regards
Thorsten
pooz
Posts: 65
Joined: Sat Apr 11, 2009 10:47 am

Re: Beamer: Play a Sound does not work

Post by pooz »

Thanks,

I already read these pages.

It is written, that uncompressed files do work and the audio file types .au and .aif are recommended. Of course, I tried with those too!
But is doesn´t work either ... :-(

Have you been able to compile and play that sound?
Thank you very much!
pooz
Posts: 65
Joined: Sat Apr 11, 2009 10:47 am

Beamer: Play a Sound does not work

Post by pooz »

I also corrected one line in my given code above:

Code: Select all

\sound[inline...] -> \sound[inlinesound, ...]
But now the sound file is played back absolut noisy and distorted.
This is strange.

Any suggestions?
pooz
Posts: 65
Joined: Sat Apr 11, 2009 10:47 am

Re: Beamer: Play a Sound does not work

Post by pooz »

noone?
pooz
Posts: 65
Joined: Sat Apr 11, 2009 10:47 am

Re: Beamer: Play a Sound does not work

Post by pooz »

Dissapointing,
I guess I am on an Latex-Forum, but noone has any suggestion how to fix this problem? I think Latex-Beamer is quite a standard, so I won´t be the first one having such a problem

:cry: :?:
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Beamer: Play a Sound does not work

Post by localghost »

pooz wrote:Dissapointing,
I guess I am on an Latex-Forum, but noone has any suggestion how to fix this problem? […]
And what do you expect now? If somebody knows a solution, I'm sure it will be posted. I tested your code with an AIF and an AU sound but didn't success (Windows XP, Adobe Reader 9.3). Think about contacting the maintainers of beamer [1]. If not done yet, you should post that issue to their help forum. Feel free to report new insights here (despite your disappointment). But somehow I think that this is not a problem on the LaTeX side on the viewer side.

[1] SourceForge.net: The LaTeX Beamer Class: Topics for Help
pooz
Posts: 65
Joined: Sat Apr 11, 2009 10:47 am

Beamer: Play a Sound does not work

Post by pooz »

I posted this problem to maintainer´s bug tracker here and forum here, but unfortunately noone answered yet :-(

a) What could do now?
b) You tested this code on a Windows machine and it didn´t work. So we can exclude the possibility, that it could be an error from my Mac OS X System and Adobe Viewer (among other viewers...)
c) I can´t imagine, that the code above is messed up...because I looked it up in the userguide ... :-(

Maybe someone has an idea.
pooz
Posts: 65
Joined: Sat Apr 11, 2009 10:47 am

Re: Beamer: Play a Sound does not work

Post by pooz »

Hi localghost, hi at all,

does anyone have a suggestion (aka *Push* ;-) ?
nostris
Posts: 1
Joined: Mon Mar 07, 2011 4:39 pm

Re: Beamer: Play a Sound does not work

Post by nostris »

Hi,
Just use \movie instead of \sound and it works perfectly! I had exactly the same problem with sound before...
Regards
Post Reply