Script to play sound if time =   :00 or :30

Tell me if it's possible ....
I would like to make a BIG BEN chime on every :00 & :30.
Basically I have a sound clip of one big ben chime.
If time equals on the hour or half Play mp3 using system sound and system events.
Osx 10.5.6
Thank You
Tyson
Message was edited by: Tyson R

Yes it's possible.
Eric

Similar Messages

  • Only one application is able to play sound at a time.

    I installed arch on my desktop a couple weeks ago (finally 100% windows free ), but I've been having the hardest time getting audio working flawlessly.
    At first I was having problems using the correct sound card as default, but It seems I have that working now. I can get sound to play, but only 1 application can access the sound card at the same time. If I have spotify playing and I try to play a youtube video in browser, the video will play for a few seconds with no sound and then completely crash. If I pause spotify and refresh the youtube page, the video will play. And also, while a youtube video or anything else is playing, any other application will refuse to play sound.
    I guess this is an issue with ALSA. My sound card seems to be blocking other sources.
    If I run speaker-test while something is playing I get this output:
    speaker-test 1.0.27.2
    Playback device is default
    Stream parameters are 48000Hz, S16_LE, 1 channels
    Using 16 octaves of pink noise
    Playback open error: -16,Device or resource busy
    And for possible helpful information, here is the output of aplay -l
    **** List of PLAYBACK Hardware Devices ****
    card 0: PCH [HDA Intel PCH], device 0: ALC892 Analog [ALC892 Analog]
    Subdevices: 0/1
    Subdevice #0: subdevice #0
    card 0: PCH [HDA Intel PCH], device 1: ALC892 Digital [ALC892 Digital]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: NVidia [HDA NVidia], device 7: HDMI 0 [HDMI 0]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: NVidia [HDA NVidia], device 8: HDMI 0 [HDMI 0]
    Subdevices: 1/1
    Also, this is what I have put in /etc/asound.conf in order to get my sound card to load as default (just in case I've done something wrong here):
    pcm.!default {
    type hw
    card PCH
    ctl.!default {
    type hw
    card PCH
    So what am I missing here?
    Last edited by tylerpnn (2014-03-29 04:54:00)

    As always happens when I have issues, I try to solve it myself for hours on end, finally swallow my pride and post on the forums, and then find the solution on my own an hour later.
    Found the solution here: https://bbs.archlinux.org/viewtopic.php … 003#p70003
    I took the asound.conf that iphitus posted and changed the ctl.dmixer to use my sound card, which is PCH as determined by asound -l.
    here is my asound.conf:
    #/etc/asound.conf start:
    pcm.!default {
    type plug
    slave.pcm "dmixer"
    pcm.dsp0 {
    type plug
    slave.pcm "dmixer"
    pcm.dmixer {
    type dmix
    ipc_key 1024
    slave {
    pcm "hw:0,0"
    period_time 0
    period_size 1024
    buffer_size 8192
    rate 44100
    bindings {
    0 0
    1 1
    ctl.dmixer {
    type hw
    card PCH
    Last edited by tylerpnn (2014-03-29 06:01:42)

  • Play a sound many times in a short time

    Hi,
    i am using JMF 2.1.1e, and i wondered if there was some trick to play a sound many times in a short time.
    The first method i used was:
         private static Thread t     = null;
         private static URL url;
         private static Player player;
         public static void playSound(String name)
              File mp3 = new File("./sounds/level5/"+name+".mp3");
              try { url = mp3.toURL(); } catch (MalformedURLException e) {e.printStackTrace();}
              // to prevent from multiple sounds playing at the same time
              if(t != null && !t.isInterrupted()) t.interrupt();
              t = new Thread()
                   public void run()
                        try
                             MediaLocator ml = new MediaLocator(url);
                             player = Manager.createPlayer(ml);
                             player.addControllerListener(
                                       new ControllerListener()
                                            public void controllerUpdate(ControllerEvent event)
                                                 if (event instanceof EndOfMediaEvent)
                                                      player.stop();
                                                      player.close();
                             player.realize();
                             player.start();
                        catch (Exception e) { System.out.println("Exception encountered!");}     
              t.start();
    I wasn't really satisfied with such a method, since it often took two or three seconds before the sound start playing (maybe because my pc is slow, and the method takes too much memory) so i came up with another idea : storing the sound , calling the "start" method each time i need them, and re-preparing them for the next call short after the call to start; it gives :
    static Player[] sounds = new Player[15];
    // first initialization of a sound
    sounds[0] = new Splay().generate("fac");
    // call to the sound, the sound plays nearly immediately
    sounds[0].start();
    // reinitialization of the sounds, in order to prepare him for the next call
    Splay.scheduleInit(0,"fac");
    // methods used:
    public static void scheduleInit(final int index, final String name) {
    new java.util.Timer ().schedule (new TimerTask () { public void run () {
         Screen.sounds[index] = new Splay().generate(name);
    }},500);
    // and
         public Player generate(String name) {
              Player p = null;
              File mp3 = new File("./sounds/level5/"+name+".mp3");
              try { url = mp3.toURL(); } catch (MalformedURLException e) {e.printStackTrace();}
              try {
                   MediaLocator ml = new MediaLocator(url);
                   p = Manager.createPlayer(ml);
                   p.realize();
              } catch (Exception e) { System.out.println("Exception !");}     
              return p;
    it works better than the first one, but it's still not perfect ;
    To resume, i need a code that easily allow to :
    - Launch tracks fast
    - Don't play many sounds in the same time (means that stops the currently played track before loading the new one)
    - A player that handle MP3 would be really better compared to a wav player
    Will be great if you have something like that
    Thank you very much ^^
    Message was edited by:
    calvino_ind

    You can follow the below steps to easily play a sound at runtime - like on mouseover.
    1. Make sure your audio is imported in library and has a linkage name specified.
    2. Open Windows Menu -> Code Snippets panel and expand HTML5 Canvas -> Event Handlers section.
    3. Select your button on Stage and apply the MouseOver Event from Code Snippets to it.
    4. In the MouseOverHandler function add the below line and test movie:
              playSound('audio_linkage_name');
    If you still face problems let me know.
    Also, you might want to go through the SoundJS documentation for more control with Audio in HTML5.

  • Pavilion g 7, speakers and headphones playing sound at the same time

    hello. My speakers and headphones are playing sound at the same time. It happened suddenly? Any help

    Hi,
    Can you post back with the following details.
    1.  The full Model No. and Product No. of your g7 series notebook - see Here for a guide on locating this information.
    2.  The full version of the operating system you are using ( ie Windows 7 64bit ).
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • Play sound only 1 time within ENTER_FRAME

    Having trouble figuring out the logic for this, I have an enter frame event that I move a character around trying to select correct numbers, using hit test. If they land on wrong number I have a sound that should play once but since is in enter frame it plays a million times, this seems like should be a common issue but haven't been able to find any solution on the internets. This is the basic idea:
    private function enterFrameHandler(event:Event):void
      if ( Collision(_player, _number )
         if (_number == _activeNumber)
                  playCorrectSound();
              } else {
                  playIncorrectSound();
    private function playIncorrectSound():void
        snd = new incorrectNumber();
        channel = new SoundChannel();
        channel = snd.play();
    -thanks

    If you are using an enterframe event for the duration of the object being moved, then you are calling one sound or the other to occur continuously, as you already know.  So when should the decision to judge when an object is moved to the proper location or not be made?  That's the question you really have to answer for yourself.
    If an object only gets one judgement, then one way to control that would be to assign a property to that object to use as a boolean to decide if judgement has been rendered already or not... for the conditional you have now it could be something along the lines of...
        if (_number == _activeNumber && _player.notJudged)  // for the else as well

  • Stopping a currently playing sound?

    I will try to make this quick and painless and hopefully
    someone knows a solutions...
    I am making a kiosk based on another designers layout where I
    work... I am not going to get in the details, but the work seems
    sort of an unorthadox way of using flash - anyways...
    It is basically an interactive slide show... play, pause,
    previous slide, next slide...
    Each SWF that is loaded in is around 15000 frames in lenght
    (right under that magical 16000 number) - the audio voice overs are
    on the time line one after another... so when the slide changes the
    voice over matches the slide current slide... there are 31 slide
    JPGs and 31 mp3 files that are divided between 8 SWFs.
    The issue I am having is that when you are one the first
    "SWF" (slides 1-5)... and you move from slide 1 to 2 before the
    audio is done playing... it will keep playing the audio from slide
    one and then start the audio from slide to ... so on and so forth
    until you get to slide 6 - which is a new SWF that is loaded...
    I know that I need to use a stop sound script somehow... on
    the first frame of each of the following slides so that it stops
    the currently playing sound... if it hasn't already finished...
    if you let the presentation go it works fine... but when you
    move forward and back... the sound gets garbled....
    can someone please help me rig this to stop the currently
    playinh sound when you advance to the next slide...
    I know this is a horrible way of doing this... I would have
    loaded averything in at the begining and called it when needed...
    but to go into details of why I had to do it this way would be too
    long... let's just say the client is always right...

    I'd use:
    var snd:Sound = new Sound();
    snd.attachSound("likageID");
    snd.start();
    It looks like you attempt to attach the sound to the
    movieClip instead
    of the soundObject which won't work.
    HTH,
    Manno
    DigitalElemental wrote:
    > Ok I am trying to get the sound off of the time line...
    i have a feeling the
    > way this other guy did it is going to put me in a world
    of pain...
    >
    > I put this code at the begingin:
    >
    > var snd:Sound = new Sound();
    > slide001.attachSound("slide001");
    > slide002.attachSound("slide002");
    > slide003.attachSound("slide003");
    > slide004.attachSound("slide004");
    > slide005.attachSound("slide005");
    > slide006.attachSound("slide006");
    > slide007.attachSound("slide007");
    > slide008.attachSound("slide008");
    >
    > then I try calling the sound to start at the specified
    frame I need it with:
    >
    > slide001.start()
    >
    > I can't get the sound to play though... can someone tell
    me what I am doing
    > wrong here? I have set the linkage for all the sound
    files...
    >
    > Thanks
    >
    Manno Bult
    http://www.aloft.nl

  • [SOLVED]systemd service doesn't play sound

    I have a bash script which play via 'sox' a sound file. Something like this:
    play someFile -t alsa -q
    I set up a 'systemd --user' timer which calls this script at certain time. The timer is successfully called and the corresponding service is also successfully called and exits with SUCCESS code. The problem is that sound is not heared.
    When the service is called manually from the bash with
    systemctl start mySoundTimer.service
    the sound is played OK.
    The service file is as follows:
    [Unit]
    Description= A sound timer.
    [Service]
    Type=simple
    ExecStart=/usr/bin/bash /path/to/my/script.sh
    I tried several other combinations in ExecStart:
    ExecStart=/usr/bin/bash -c /path/to/my/script.sh
    ExecStart=/usr/bin/bash "-c /path/to/my/script.sh"
    ExecStart=/usr/bin/bash -c "/path/to/my/script.sh"
    No one is working. What can be the cause of the problem?
    EDIT:
    The cause of this is a different timing behaviour of systemd timer as compared to cron which I used before. (It seemingly takes into account the time of the last run and does not run again if it is called in less than the interval between runs specified in the timer file. And I tested the timer by setting the system date to several seconds before the timer's planned times.)
    Last edited by nbd (2014-08-05 20:23:39)

    msthev wrote:$ man systemd.service
    ExecStart=
    Note that this setting does not directly support shell command
    lines. If shell command lines are to be used they need to be passed
    explicitly to a shell implementation of some kind. Example:
    ExecStart=/bin/sh -c 'dmesg | tac'
    Thanks, changing ExecStart line to
    ExecStart=/bin/bash -c '/bin/echo 100 > /sys/class/backlight/intel_backlight/brightness'
    solved the issue. Though I can recall seeing ExecStart lines with direct shell commands.
    Raynman wrote:
    You should look at tmpfiles.d.
    https://wiki.archlinux.org/index.php/Sy … rary_files
    I'll do that, thanks!

  • Help! My phone will not play sound when an app is open?!

    Seemingly out of the blue, my iPhone stopped playing sound through the external speaker. This began about a month or two ago and I have been unable to fix the problem. The sound will play through the external speaker until I open another app (safari, camera, etc.). The sound used to work through headphones until this morning. Now the sound won't work... At all! I brought my phone to an apple store a week ago and the first guy checked my phone with a flashlight and told me first that there didn't seem to be any water damage. Then, some other technician helped me. He opened iTunes and miraculously, the song played! I couldn't believe it was magically working. He explained that it looked like my dock connector was looking a little eroded and that is why the sound doesn't work. He said he could try to brush it out and that should fix the problem. Tried my phone later... Volume doesn't work anymore! The dock connector works fine otherwise, I am still able to charge my phone. My phone will not play music via bluetooth speaker. I talked to multiple people on the phone who all seem to think it's a software problem... I am really not understanding what is going on with my phone! I have googled this problem many times in the last few months and most people say that it turned out to be a software issue. I have checked both water indicators (in the dock connector and the headphone plug, right?) with a flashlight and I don't see any red... Any insight or ways to fix this would be very appreciated! The whole thing makes no sense to me.

    Are you using an APple charger or a thrid-party one?  I ask because if you are using a third party charger, it may not be wired properly and it may be telling your iPhone that the cable connected is also an audio interface so your iPhone may be sending the audio signals through the cable to the charger.  I have a charger in my truck that also doubles as an FM transmitter so I can play my iPhone audio through the truck radio.  Your charger may be doing something similar, especially if it is not an Apple charger.

  • I haven't used my iPod in a few months.  Gave it full charge, music showing on screen and in iTunes.  But when I push play, it says "Now Playing", but the time isn't moving forward and nothing is playing.  I have already reset it and that didn't help.

    I've had this iPod Classic for a couple of years, and only use it every so often, mostly when I travel.  Just bought a speaker so I can listen in the house.  Gave it a full charge.  The music is showing up on the screen, and it also shows up in iTunes on my computer.  When I try to play something, whether it's a song, artist, album, whatever, the screen shows the name of the song and displays "Now Playing".  The time stays on 0.00, however and doesn't move forward;  and no sound is coming out whether on the new docking speaker or with a headset.  I tried the reset procedure, but still no change.  Can anyone help me?  Thanks!!!

    A 4th gen iPod can not be upgraded to iOS 8. 7.0.2 is the high version it can run.

  • How many ALSA applications can play sound at once?

    I ran into a strange issue where I had Counter-Strike:GO running (sound working fine in the game itself) but when I alt-tabbed, no other application could play sound.  VLC would complain my device was busy and Chromium didn't show an error but sound didn't work either (tested with a YouTube video.)  I was able to solve this by changing the audio setting in CS:GO from 5.1 surround to 2 speaker (I use headphones so no need for surround) so now I can alt-tab and still have sound in other applications.
    What I want to know now is why that is?  Is there a limit to the number of simultaneous channels or what?  I just tested and with CS:GO set to 2 channel I can play sound from CS:GO, Chromium, VLC, and Banshee all at the same time but with 5.1 CS:GO hogs the sound card all to itself.
    I'm also curious about where PulseAudio fits into this.  Right now I'm just using pure ALSA.  If I were to get a surround setup one day would PulseAudio overcome this limitation and allow me to play music while I game?

    See list of gotchas.
    The main issue you probably have is that Dmix doesn't work with more than stereo - *unless* you use something like my sample config.
    ALSA is flexible, which means it will allow naughty apps to block the soundcard for other apps. So, configure your apps also.
    ALSA works fine, no need for pulseaudio.

  • So my I phone 4s volume has decided to pack  allowing only my phone to make sounds when I have an incoming call, I can also here fine using facetime and receiving calls. YouTube, soundcloud, any of I players will no longer play sound. I've restored the ph

    So my I phone 4s volume has decided to pack  allowing only my phone to make sounds when I have an incoming call, I can also here fine using facetime and receiving calls. YouTube, soundcloud, any of I players will no longer play sound. I've restored the phone using iTunes on my laptop and checked all the volumes are turned up and the button at the left hand Side of the phone is in the correct position.

    Try inserting and re-inserting your headphones 7 or 8 times. Also try cleaning out the headphone jack in case of debris that might be interfering with the connection/disconnection.

  • 60gb no longer plays sound!

    So all of a sudden out of the blue, my 60gb made this god awful screeching sound and quit playing any sound out of both the headphone jack and port. The ipod still plays the song and everything on the screen looks normal, but just no sound will come out of it. I tried resetting multiple times and still nothing. Is it shot and now I need to buy a new one?

    I have had the same problem with my 30 gig iPod video. It started having some problems about 2 weeks ago (mid May) here and there with a screeching noise, but would later clear up. Then one day, it just quit playing sound. It was playing songs, but no audio. No headphones, no sound dock - NADA! I did my 5 R's etc., but no luck. This went on for 2 weeks, then I saw a post from someone that said it started happening to their Ipod when the weather got warmer. So, I know it sounds stupid, but I decided to put it in the refrigerator for about 25 minutes or so. It was nice and cool, and bibbity bobbity boo! It immediately worked on the sound dock for about 3 songs, then a nice screeching/static sound, and no sound again, but it was still playing. Back to the refrigerator again for 10 minutes, and as if Whirlpool manufactures fairy dust, I am hearing Octopus's Garden (that's the Beatles BTW) in beautiful full sound. It would seem, if common sense is a reality, that there is an internal cooling problem. Try it out and let me know if this works for you.

  • How do you open/play a .wav file (music file) without play sound file .vi

    I am having big problems to create a music background for my project. I am newbie using labview and maybe my questions is not so dificult to solve (I hope so)
    I was using play sound file vi but the problem is that I dont want the music file start automatically. I wanna control the start time using a button. I tried include a sound output stop but when the app start and I add more wav files in my vi, the sound file start, then stop abruptally because the stop vi and the everything is normal. I would like to eliminate that error.
    Someone have any idea, maybe using open file or another way. 
    Thanks in advance
    I add a screenshot of my vi and also the vi in this post
    Attachments:
    test sound.vi ‏11 KB

    I leave an example that can provide, use it in your program
    Atom
    Certified LabVIEW Associate Developer
    Attachments:
    playsound.zip ‏58 KB

  • Lost Mode and Play Sound are "Pending."  However, iCloud indicates that it connected and backed up to iCloud at a date that is 1 week after it went missing.  How is this possible without locking (Lost Mode Pending an internet connection)

    Hi,
    My wife lost her iPhone two weeks ago while on vacation in London (cell service inoperative in foreign country).  Using Find My iPhone app on my device, I activated Lost Mode and Play Sound.  However, both are listed as "Pending," since it those actions require the phone to connect to the internet (wifi only due to no cellular data coverage.).
    We recently returned home and purchased a new iPhone.
    However, when looking to restore the apps/settings from her old phone using a previous iCloud backup, iCloud indicates that the old phone connected to iCloud and backed up the original phone at a date that is 1 week after it went missing.  How is this possible without locking (Lost Mode Pending an internet connection)?
    If the phone was activated and connected to the internet via a wifi signal, shouldn't it immedately lock, show up on the map, Play Sound, and send me an email that the phone has been found?
    I also read somewhere that if running iOS 7, the iCloud website interface enables you to track previous locations, for instance if the phone moves from wifi hotspot to hotspot.  Is that true?  If so, how do I do that?
    Thank you for your time, and have a great day!
    Sincerely,
    - Matt

    just giving this a wee bump as time is of the essence here and i need advice/ answers quick!
    apologies if i've broke any rules!
    alex

  • Takes a while to play sound via audio interface on iMac

    I purchased iMac along with Focusrite Scarlett 6i6 USB audio interface and started having following problems from the beginning.
    When I play video/music on itunes, logic or whatever apps that plays sound, it takes a while(about 20 sec) to play sounds. Sometimes it does not play sounds at all until I turn the volume halfway up on Focusrite Scarlett 6i6. It happens all the time when I play sound for the first time after turning the computer on. It happens when I start using the computer after a while. Sometimes it turns off the sound even when the music/video is being played. I had problem with latest Scarlett driver and still happens after switching to class compliant mode. It seems like it takes time for the computer to wake 6i6 via USB, but I am not sure. Please help!
    computer Specifications:
    - late 2013 iMac / flash 1TB / GTX 780M / 32GB RAM
    - mavericks 10.9.2
    - Just Scarlett 6i6 connected directly via USB
    - no other devices connected, just apple bluetooth keyboard, magic mouse and touchpad
    Softwares:
    - Logic pro x latest version, Kontakt 5.3.0
    - sample rate 44
    Product Info:
    - was using latest 6i6 driver but recently switched to class compatible mode

    Well I have done the disk cleanup and it still didnt fix it. I just got this player yesterday too I have about 3.5 gigs on it. I didnt get my usb 2.0 system yet, but im just really worried about these long load times for the songs on the player. Im gona try loading some mp3s and see how those go.
    edit... I just loaded up some MP3s and they start in about 3-4 seconds. A lot faster then my WMAs from yahoo, but still I was expecting mp3s to play instantly pretty much.Message Edited by Johnwashere on 05-2-2005 2:26 AM

Maybe you are looking for

  • Issue with the Posting Date of the Purchase Order.

    Hi All, There are fields in BW like SSL1: Time OK, SSL2: Qty OK, SSL3: Time & Qty Ok, SSL4: Days Late (Routines are written to calculate). These fields will indicate whether the delivery against a GR is OK or not with respect to Time, Quantity and th

  • SAP XI and BW

    Hi experts,        Presently i am working with SAP XI. More over i have good knowledge on dataware house concepts and datastage tools. I have also interest to learn SAP BW . Is it helpful for me in future and what would be the future having knowledge

  • NoteTag Problem

    NoteTag has on the labs,I have downloaded the zip sourse.But when i installed it step by step according to the "NoteTag Installation Guide". in the step four "4. Set Up Your Flex Builder Projects". The dialog will be popup "Cration Promblem" when i e

  • I lost music on my computer that is still on my Touch.  Is there a way to restore the computer's missing songs from the Touch?

    I lost music on my Desktop that is still in my Ipod Touch.  Can the Touch be used to restore the Desktop?

  • Zen touch quest

    why do you need a optional fm wire remote to access the radio or voice recording? will creative be making a firmware upgrade for this?