Solved

Create reminders using mp3 or wav files without opening a media player app

Posted on 2016-10-23
4
39 Views
Last Modified: 2016-10-27
Hello,

Is there a way to play a brief MP3 or WAV file without opening Windows Media Player (wmp) or another media player?

I've got a subtle computer sound in an mp3 file and a wav file. I want to be able to play the sound as a reminder at pre-scheduled times. Some time ago, I found an app called Karen's Countdown Timer II which makes it easy to schedule various events at pre-determined times. The app offers the option to display an alert window, play/open/run a file, or send an email message. It works great if the desired event is to display a custom alert window. However, if it is directed to play a sound file, it always opens wmp to play it.

I'm looking for a way to play a sound similar to the many other built-in computer sounds I hear from time to time which do not require the opening of wmp.

Alternatively, does anyone know of a different app which enables the creating of audio reminders?


Thanks
0
Comment
Question by:WeThotUWasAToad
4 Comments
 
LVL 78

Accepted Solution

by:
David Johnson, CD, MVP earned 250 total points
Comment Utility
you can use the direct-x DirectSound api or .net framework
private void playSimpleSound()
{
    SoundPlayer simpleSound = new SoundPlayer(@"c:\Windows\Media\chimes.wav");
    simpleSound.Play();
}

Open in new window

https://msdn.microsoft.com/en-us/library/4y171b18(v=vs.110).aspx
0
 
LVL 53

Assisted Solution

by:McKnife
McKnife earned 125 total points
Comment Utility
As for batch, use nircmd.
http://www.nirsoft.net/utils/nircmd.html
It knows the switch mediaplay
nircmd.exe mediaplay 1000 c:\Windows\Media\chimes.wav
0
 
LVL 13

Assisted Solution

by:William Fulks
William Fulks earned 125 total points
Comment Utility
I found this little app that converts audio/video files into self playing executables. Not sure how reliable it would be given the variety of codecs out there. May be worth a shot, at least.

http://download.cnet.com/Audio-Video-to-Exe/3000-2140_4-10560064.html
0
 

Author Closing Comment

by:WeThotUWasAToad
Comment Utility
Thanks
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Many programs have tried to outwit PowerPoint in terms of technology and skill. These programs, however, still lack several characteristics that PowerPoint has possessed from the start. Here's why PowerPoint replacements won't entirely work for desi…
Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum editing capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.
Viewers will learn how to include realistic velocity sensitivity to their Sampler instruments. Set the Vol<Vel parameter in the Filter/Global tab to your desired setting: Gather samples of hits of various intensity, and drag/drop into Velocity zon…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now