# Audio examples in phonetics project

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 -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.

• 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

\documentclass{article}
\usepackage{media9,graphicx}

\begin{document}
Sound sample: \includemedia[

• @Gaussler: To include a media file in the parent folder, put \addmediapath{..} to the preamble. – AlexG Jan 8 '13 at 7:38
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.4402732849121094, "perplexity": 1067.715704895991}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2019-26/segments/1560627998607.18/warc/CC-MAIN-20190618043259-20190618065259-00279.warc.gz"}