Audio examples in phonetics project












7















I am writing a project about phonetics and would ask if there is a way to include sound files directly in the PDF to be played directly in this file, preferably without any additional files having to be distributed along with the PDF.



I already know that it is possible to include media files in a PDF, but I would like it to be implemented as a short loudspeaker-like button1 next to the word which, when clicked, plays the corresponding audio file (it needs to be this small, since I'm going to use many sound files in the same PDF).



I don't want any player or anything else to appear; the sound should just play quickly and smoothly, end of story, and clicking it again should give the same result. In fact, I would like it to function a bit like the sound file function on this website.



I do realize, of course, that maybe all of this is not even technically possible.





1 Source: ordnet.dk.










share|improve this question

























  • Have you looked at the attachfile package. Or is your question more focused on the actual technical playback functionality? ftp.sun.ac.za/ftp/CTAN/macros/latex/contrib/attachfile/…

    – Forkrul Assail
    Jan 7 '13 at 12:07











  • Yes, I have tested it a bit and looked through the manual, but it only appears to simply open external media players instead of simply playing the sound file within the PDF.

    – Gaussler
    Jan 7 '13 at 13:23
















7















I am writing a project about phonetics and would ask if there is a way to include sound files directly in the PDF to be played directly in this file, preferably without any additional files having to be distributed along with the PDF.



I already know that it is possible to include media files in a PDF, but I would like it to be implemented as a short loudspeaker-like button1 next to the word which, when clicked, plays the corresponding audio file (it needs to be this small, since I'm going to use many sound files in the same PDF).



I don't want any player or anything else to appear; the sound should just play quickly and smoothly, end of story, and clicking it again should give the same result. In fact, I would like it to function a bit like the sound file function on this website.



I do realize, of course, that maybe all of this is not even technically possible.





1 Source: ordnet.dk.










share|improve this question

























  • Have you looked at the attachfile package. Or is your question more focused on the actual technical playback functionality? ftp.sun.ac.za/ftp/CTAN/macros/latex/contrib/attachfile/…

    – Forkrul Assail
    Jan 7 '13 at 12:07











  • Yes, I have tested it a bit and looked through the manual, but it only appears to simply open external media players instead of simply playing the sound file within the PDF.

    – Gaussler
    Jan 7 '13 at 13:23














7












7








7


3






I am writing a project about phonetics and would ask if there is a way to include sound files directly in the PDF to be played directly in this file, preferably without any additional files having to be distributed along with the PDF.



I already know that it is possible to include media files in a PDF, but I would like it to be implemented as a short loudspeaker-like button1 next to the word which, when clicked, plays the corresponding audio file (it needs to be this small, since I'm going to use many sound files in the same PDF).



I don't want any player or anything else to appear; the sound should just play quickly and smoothly, end of story, and clicking it again should give the same result. In fact, I would like it to function a bit like the sound file function on this website.



I do realize, of course, that maybe all of this is not even technically possible.





1 Source: ordnet.dk.










share|improve this question
















I am writing a project about phonetics and would ask if there is a way to include sound files directly in the PDF to be played directly in this file, preferably without any additional files having to be distributed along with the PDF.



I already know that it is possible to include media files in a PDF, but I would like it to be implemented as a short loudspeaker-like button1 next to the word which, when clicked, plays the corresponding audio file (it needs to be this small, since I'm going to use many sound files in the same PDF).



I don't want any player or anything else to appear; the sound should just play quickly and smoothly, end of story, and clicking it again should give the same result. In fact, I would like it to function a bit like the sound file function on this website.



I do realize, of course, that maybe all of this is not even technically possible.





1 Source: ordnet.dk.







pdf audio






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 27 at 8:12









JouleV

4,91111139




4,91111139










asked Jan 7 '13 at 10:06









GausslerGaussler

3,90242064




3,90242064













  • Have you looked at the attachfile package. Or is your question more focused on the actual technical playback functionality? ftp.sun.ac.za/ftp/CTAN/macros/latex/contrib/attachfile/…

    – Forkrul Assail
    Jan 7 '13 at 12:07











  • Yes, I have tested it a bit and looked through the manual, but it only appears to simply open external media players instead of simply playing the sound file within the PDF.

    – Gaussler
    Jan 7 '13 at 13:23



















  • Have you looked at the attachfile package. Or is your question more focused on the actual technical playback functionality? ftp.sun.ac.za/ftp/CTAN/macros/latex/contrib/attachfile/…

    – Forkrul Assail
    Jan 7 '13 at 12:07











  • Yes, I have tested it a bit and looked through the manual, but it only appears to simply open external media players instead of simply playing the sound file within the PDF.

    – Gaussler
    Jan 7 '13 at 13:23

















Have you looked at the attachfile package. Or is your question more focused on the actual technical playback functionality? ftp.sun.ac.za/ftp/CTAN/macros/latex/contrib/attachfile/…

– Forkrul Assail
Jan 7 '13 at 12:07





Have you looked at the attachfile package. Or is your question more focused on the actual technical playback functionality? ftp.sun.ac.za/ftp/CTAN/macros/latex/contrib/attachfile/…

– Forkrul Assail
Jan 7 '13 at 12:07













Yes, I have tested it a bit and looked through the manual, but it only appears to simply open external media players instead of simply playing the sound file within the PDF.

– Gaussler
Jan 7 '13 at 13:23





Yes, I have tested it a bit and looked through the manual, but it only appears to simply open external media players instead of simply playing the sound file within the PDF.

– Gaussler
Jan 7 '13 at 13:23










1 Answer
1






active

oldest

votes


















5














Requires Adobe Reader 9+ on Win or OSX:



documentclass{article}
usepackage{media9,graphicx}

begin{document}
Sound sample: includemedia[
addresource=sound_sample.mp3,
transparent,
flashvars={
source=sound_sample.mp3
&autoPlay=true
},
]{includegraphics[height=1.44ex]{speaker.png}}{APlayer.swf}
end{document}





share|improve this answer


























  • I'm currently installing Media9 to test it... I'm returning as soon as I've tested it. :-)

    – Gaussler
    Jan 7 '13 at 16:02











  • Works almost PERFECTLY!!! The only issue is that a small grey box appears when I hover over the icon with the mouse. But that is probably a limitation we don't get around, and it still functions exactly according to what I needed. THANKS A LOT!! :-D

    – Gaussler
    Jan 7 '13 at 19:18











  • But it appears not to work when linking to something in a parent folder. Is this possible somehow?

    – Gaussler
    Jan 7 '13 at 19:47











  • @Gaussler: The grey box is a progress bar indicating the current playhead position of the sound sample. Maybe the speaker icon is too small to produce a clickable link/progress bar of sufficient width.

    – AlexG
    Jan 7 '13 at 22:08











  • @Gaussler: To include a media file in the parent folder, put addmediapath{..} to the preamble.

    – AlexG
    Jan 8 '13 at 7:38













Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f89706%2faudio-examples-in-phonetics-project%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









5














Requires Adobe Reader 9+ on Win or OSX:



documentclass{article}
usepackage{media9,graphicx}

begin{document}
Sound sample: includemedia[
addresource=sound_sample.mp3,
transparent,
flashvars={
source=sound_sample.mp3
&autoPlay=true
},
]{includegraphics[height=1.44ex]{speaker.png}}{APlayer.swf}
end{document}





share|improve this answer


























  • I'm currently installing Media9 to test it... I'm returning as soon as I've tested it. :-)

    – Gaussler
    Jan 7 '13 at 16:02











  • Works almost PERFECTLY!!! The only issue is that a small grey box appears when I hover over the icon with the mouse. But that is probably a limitation we don't get around, and it still functions exactly according to what I needed. THANKS A LOT!! :-D

    – Gaussler
    Jan 7 '13 at 19:18











  • But it appears not to work when linking to something in a parent folder. Is this possible somehow?

    – Gaussler
    Jan 7 '13 at 19:47











  • @Gaussler: The grey box is a progress bar indicating the current playhead position of the sound sample. Maybe the speaker icon is too small to produce a clickable link/progress bar of sufficient width.

    – AlexG
    Jan 7 '13 at 22:08











  • @Gaussler: To include a media file in the parent folder, put addmediapath{..} to the preamble.

    – AlexG
    Jan 8 '13 at 7:38


















5














Requires Adobe Reader 9+ on Win or OSX:



documentclass{article}
usepackage{media9,graphicx}

begin{document}
Sound sample: includemedia[
addresource=sound_sample.mp3,
transparent,
flashvars={
source=sound_sample.mp3
&autoPlay=true
},
]{includegraphics[height=1.44ex]{speaker.png}}{APlayer.swf}
end{document}





share|improve this answer


























  • I'm currently installing Media9 to test it... I'm returning as soon as I've tested it. :-)

    – Gaussler
    Jan 7 '13 at 16:02











  • Works almost PERFECTLY!!! The only issue is that a small grey box appears when I hover over the icon with the mouse. But that is probably a limitation we don't get around, and it still functions exactly according to what I needed. THANKS A LOT!! :-D

    – Gaussler
    Jan 7 '13 at 19:18











  • But it appears not to work when linking to something in a parent folder. Is this possible somehow?

    – Gaussler
    Jan 7 '13 at 19:47











  • @Gaussler: The grey box is a progress bar indicating the current playhead position of the sound sample. Maybe the speaker icon is too small to produce a clickable link/progress bar of sufficient width.

    – AlexG
    Jan 7 '13 at 22:08











  • @Gaussler: To include a media file in the parent folder, put addmediapath{..} to the preamble.

    – AlexG
    Jan 8 '13 at 7:38
















5












5








5







Requires Adobe Reader 9+ on Win or OSX:



documentclass{article}
usepackage{media9,graphicx}

begin{document}
Sound sample: includemedia[
addresource=sound_sample.mp3,
transparent,
flashvars={
source=sound_sample.mp3
&autoPlay=true
},
]{includegraphics[height=1.44ex]{speaker.png}}{APlayer.swf}
end{document}





share|improve this answer















Requires Adobe Reader 9+ on Win or OSX:



documentclass{article}
usepackage{media9,graphicx}

begin{document}
Sound sample: includemedia[
addresource=sound_sample.mp3,
transparent,
flashvars={
source=sound_sample.mp3
&autoPlay=true
},
]{includegraphics[height=1.44ex]{speaker.png}}{APlayer.swf}
end{document}






share|improve this answer














share|improve this answer



share|improve this answer








edited Jan 7 '13 at 15:32

























answered Jan 7 '13 at 15:21









AlexGAlexG

33.9k480149




33.9k480149













  • I'm currently installing Media9 to test it... I'm returning as soon as I've tested it. :-)

    – Gaussler
    Jan 7 '13 at 16:02











  • Works almost PERFECTLY!!! The only issue is that a small grey box appears when I hover over the icon with the mouse. But that is probably a limitation we don't get around, and it still functions exactly according to what I needed. THANKS A LOT!! :-D

    – Gaussler
    Jan 7 '13 at 19:18











  • But it appears not to work when linking to something in a parent folder. Is this possible somehow?

    – Gaussler
    Jan 7 '13 at 19:47











  • @Gaussler: The grey box is a progress bar indicating the current playhead position of the sound sample. Maybe the speaker icon is too small to produce a clickable link/progress bar of sufficient width.

    – AlexG
    Jan 7 '13 at 22:08











  • @Gaussler: To include a media file in the parent folder, put addmediapath{..} to the preamble.

    – AlexG
    Jan 8 '13 at 7:38





















  • I'm currently installing Media9 to test it... I'm returning as soon as I've tested it. :-)

    – Gaussler
    Jan 7 '13 at 16:02











  • Works almost PERFECTLY!!! The only issue is that a small grey box appears when I hover over the icon with the mouse. But that is probably a limitation we don't get around, and it still functions exactly according to what I needed. THANKS A LOT!! :-D

    – Gaussler
    Jan 7 '13 at 19:18











  • But it appears not to work when linking to something in a parent folder. Is this possible somehow?

    – Gaussler
    Jan 7 '13 at 19:47











  • @Gaussler: The grey box is a progress bar indicating the current playhead position of the sound sample. Maybe the speaker icon is too small to produce a clickable link/progress bar of sufficient width.

    – AlexG
    Jan 7 '13 at 22:08











  • @Gaussler: To include a media file in the parent folder, put addmediapath{..} to the preamble.

    – AlexG
    Jan 8 '13 at 7:38



















I'm currently installing Media9 to test it... I'm returning as soon as I've tested it. :-)

– Gaussler
Jan 7 '13 at 16:02





I'm currently installing Media9 to test it... I'm returning as soon as I've tested it. :-)

– Gaussler
Jan 7 '13 at 16:02













Works almost PERFECTLY!!! The only issue is that a small grey box appears when I hover over the icon with the mouse. But that is probably a limitation we don't get around, and it still functions exactly according to what I needed. THANKS A LOT!! :-D

– Gaussler
Jan 7 '13 at 19:18





Works almost PERFECTLY!!! The only issue is that a small grey box appears when I hover over the icon with the mouse. But that is probably a limitation we don't get around, and it still functions exactly according to what I needed. THANKS A LOT!! :-D

– Gaussler
Jan 7 '13 at 19:18













But it appears not to work when linking to something in a parent folder. Is this possible somehow?

– Gaussler
Jan 7 '13 at 19:47





But it appears not to work when linking to something in a parent folder. Is this possible somehow?

– Gaussler
Jan 7 '13 at 19:47













@Gaussler: The grey box is a progress bar indicating the current playhead position of the sound sample. Maybe the speaker icon is too small to produce a clickable link/progress bar of sufficient width.

– AlexG
Jan 7 '13 at 22:08





@Gaussler: The grey box is a progress bar indicating the current playhead position of the sound sample. Maybe the speaker icon is too small to produce a clickable link/progress bar of sufficient width.

– AlexG
Jan 7 '13 at 22:08













@Gaussler: To include a media file in the parent folder, put addmediapath{..} to the preamble.

– AlexG
Jan 8 '13 at 7:38







@Gaussler: To include a media file in the parent folder, put addmediapath{..} to the preamble.

– AlexG
Jan 8 '13 at 7:38




















draft saved

draft discarded




















































Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f89706%2faudio-examples-in-phonetics-project%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

mysqli_query(): Empty query in /home/lucindabrummitt/public_html/blog/wp-includes/wp-db.php on line 1924

How to change which sound is reproduced for terminal bell?

Can I use Tabulator js library in my java Spring + Thymeleaf project?