We are independent & ad-supported. We may earn a commission for purchases made through our links.
Advertiser Disclosure
Our website is an independent, advertising-supported platform. We provide our content free of charge to our readers, and to keep it that way, we rely on revenue generated through advertisements and affiliate partnerships. This means that when you click on certain links on our site and make a purchase, we may earn a commission. Learn more.
How We Make Money
We sustain our operations through affiliate commissions and advertising. If you click on an affiliate link and make a purchase, we may receive a commission from the merchant at no additional cost to you. We also display advertisements on our website, which help generate revenue to support our work and keep our content free for readers. Our editorial team operates independently of our advertising and affiliate partnerships to ensure that our content remains unbiased and focused on providing you with the best information and recommendations based on thorough research and honest evaluations. To remain transparent, we’ve provided a list of our current affiliate partners here.
Software

Our Promise to you

Founded in 2002, our company has been a trusted resource for readers seeking informative and engaging content. Our dedication to quality remains unwavering—and will never change. We follow a strict editorial policy, ensuring that our content is authored by highly qualified professionals and edited by subject matter experts. This guarantees that everything we publish is objective, accurate, and trustworthy.

Over the years, we've refined our approach to cover a wide range of topics, providing readers with reliable and practical advice to enhance their knowledge and skills. That's why millions of readers turn to us each year. Join us in celebrating the joy of learning, guided by standards you can trust.

What is a Sound Command?

Mary Elizabeth
By
Updated: May 17, 2024
Views: 9,607
Share

As a general term, a sound command could be any computer command that has to do with sound. There are two possible references that are most likely. One is the command used when doing sound recording from the command line. The other is the HTML sound command.

The command line, also called the DOS prompt, when working in a Microsoft® environment, or the shell, when working in a Mac, Linux, or Unix environment, is a user interface that is separate from the graphical user interface (GUI) and can be used to give commands to the operating system. The command for sound recording has six standard parts, including the initial command, the mono/stereo setting, the sampling rate, the threading priority, the recording time limit, and the name for the output file, which also identifies the file format. Since some of these elements are set by default, the simplest example would read:

$ sound-recorder -P recording.wav

It is in HTML (HyperText Markup Language) 4, that there is the item most closely resembling a sound command. Different browsers have different syntax requirements, and for the Mosaic browser to play a background sound, the HTML element <SOUND> is used. <EMBED> was used with Navigator, but is now obsolete. <BGSOUND> is the standard HTML 4 alternative, and those who used <EMBED> were advised to add <BGSOUND>, the standard method used for Internet Explorer®.

Creating a sound command with any of these three methods is similar. All three tags — <SOUND>, <EMBED>, and <BGSOUND> — are followed by command parameters. Three are standard: SRC to set the path; LOOP to allow replaying of the sound a certain number of times or endlessly until the page is closed; and DELAY to institute a delay in seconds before playing an inline sound. Either an absolute or a relative URL can be used for the path. With an infinite loop, each of the three tags playing a file called birdsong.wav would appear like this:

<SOUND SRC="birdsong.wav" LOOP=infinite>
<EMBED SRC="birdsong.wav" LOOP=infinite>
<BGSOUND SRC="birdsong.wav" LOOP=infinite>

HTML 5 introduces a new approach for dealing with a sound command. The tag is <audio> and it is used as a toggle tag, meaning there is a start and end tag. Attributes related to this tag include autoplay, which plays the file as soon as it can; controls, which displays audio playback controls; preload, which loads the sound file when the page is loaded; and src, which defines the audio file’s URL.

Share
WiseGeek is dedicated to providing accurate and trustworthy information. We carefully select reputable sources and employ a rigorous fact-checking process to maintain the highest standards. To learn more about our commitment to accuracy, read our editorial process.
Mary Elizabeth
By Mary Elizabeth
Passionate about reading, writing, and research, Mary Elizabeth is dedicated to correcting misinformation on the Internet. In addition to writing articles on art, literature, and music for WiseGeek, Mary works as a teacher, composer, and author who has written books, study guides, and teaching materials. Mary has also created music composition content for Sibelius Software. She earned her B.A. from University of Chicago's writing program and an M.A. from the University of Vermont.

Editors' Picks

Discussion Comments
Mary Elizabeth
Mary Elizabeth
Passionate about reading, writing, and research, Mary Elizabeth is dedicated to correcting misinformation on the...
Learn more
Share
https://www.wisegeek.net/what-is-a-sound-command.htm
Copy this link
WiseGeek, in your inbox

Our latest articles, guides, and more, delivered daily.

WiseGeek, in your inbox

Our latest articles, guides, and more, delivered daily.