Playing audio using a button

Hi - I want to create a quiz item where people listen to a
phrase and have to type in the answer. I need them to have a simple
device which they can click to allow them to listen to the phrase
several times if necessary. The typed in answer will then be scored
and added to their overall quiz result. I have searched the forum
and answers seem sketchy so wondered what the best practice was for
this? If possible I would like to add this to a question pool
too.

Hi ntompkins
Would a rollover work for you instead of a button? If so, you
could accomplish it by inserting a Rollover Image or Rollover
Caption. Then assign the audio clip to the Caption or Image that
would appear when your user moused over. As long as they held the
mouse over the rollover area, the audio would play. (well, until it
completed anyway) But it could be moused over time and again to
hear the audio.
The Caption could be configured with no text and transparent.
The image could be a simple swatch of color that could be rendered
as transparent. That way the user wouldn't see anything. They would
only hear the audio.
These elements are able to be added to a Question slide. As
such, the question slide could be part of a larger pool.
Cheers... Rick

Similar Messages

  • How do I configure Soundtrack Pro2 to play audio using Digidesign 002 Rack?

    How do I configure Soundtrack Pro2 to play audio using Digidesign 002 Rack? I have no problem using Logic 8 with the 002 Rack?
    Can somebody explain the necessary process to make this work. Thanks

    Add is probably not the best choice of terminology.
    Going from memory (since I'm at home), you need to launch digiCoreAudio, then select your output in the System prefs as your digi hardware. After that you would see the digi hardware as an output in STP.

  • Play audio using HTML under HTML Resources

    Hello:
    I have created a HTML5 page that loads an audio and autoplays it. The code is shown below:
    <audio src="horse.mp3" type="audio/mp3" autoplay preload="auto" /> </audio>
    When I test it on Safari or Firefox, it does perform well, but when I compress it on the HTMLResources.zip file as required to be included on DPS, upload it, and then I call the HTML page using a button from the Overlay Creator, it doesn't play on the iPad, nor in the Desktop Viewer
    Is something wrong about including these files on the DPS? Is DPS web browsing HTML5 fully-compatible?
    Saludos,
    Leo

    It looks like there is a way for adobe to allow media to play on html articles without requiring human interaction... if they are using a UIWebView (which is likely), there is a setting they can set that allows media to play without requiring user interaction, it would be a great feature to allow this, or at least make it a setting we can set somewhere.
    They need to set the mediaPlaybackRequiresUserAction property to NO on the UIWebView (it defaults to YES).
    Here's a link to the documentation on this feature: https://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIWebView_Class/Ref erence/Reference.html#//apple_ref/occ/instp/UIWebView/mediaPlaybackRequiresUserAction
    Phone Gap and other products that aid the creation of HTML based Apps use this technique... any ideas on the best channel to get Adobe to implement it quickly?

  • Certain .AVI files will not play audio using QuickTime 7.5

    I have recently updated my QuickTime to QuickTime Pro 7.5. I attempted to play videos in my library and noticed that certain videos will not play the audio, but video is fine. I did not have problems with playing the videos with audio before the update.
    I tried to do some research and many have suggested to install PERIAN 1.1. I have done this, but still no result. I have deleted a lot of important videos, because I assumed that they are no longer usable. I decided to keep most of them and figure out a solution. No luck so far.
    Please help! Anyone else experiencing this problem?

    I'm not really sure what to look for in QT's Movie Inspector, but here's what it says:
    Format: Apple OpenDML JPEG, 320 x 240, Millions
    FPS: 14.99
    Playing FPS: (Available while playing.)
    Data Size: 11.96 MB
    Data Rate: 2112.38 kbits/s
    Current Time: 0:00:00:13.94
    Duration: 0:00:00:47.50
    Normal Size: 320 x 240 pixels
    Current Size: 320 x 240 pixels (Actual)
    If Pro update were not suited for Intel Mac's, should I uninstall the update? If so, how do I do this? Do you have any other suggestions?
    Thanks again for the reply!

  • Airplay-connected Macbook Pro Will Not Play Audio On Apple TV

    After upgrading to a Retina Macbook Pro running Mavericks (10.9.3), I can no longer play audio using AirPlay through my AppleTV 2. The video connection is flawless, yet when going into Sound > Output through System Preferences, I can not select AppleTV | AirPlay as an output device. Is this a hardware issue? Is there another fix available?

    That actually did the trick. Well played. It would be nice if that were in *any* of the support documentation for AirPlay.
    Many thanks.

  • Playing audio via object tag not working in IE11

    Hi All,
    Observing issue with IE11 when tried to play audio using object tag(due to some compatibility reasons I cant use HTML5 audio tag).
    Below is the code snippet:
    <object type="audio/mpeg"
    data="${mediaPath}">
    <param name="src" value="${mediaPath}" />
    <param name="ShowControls" value="0" />
    <param name="loop" value="${repeat}"/>
    </object>
    The above code works only with 'AUDIO__MP3 Moniker Class' plugin. If the plugin is not available/enabled with IE an error thrown in the logs saying 'undefined' and no audio is played. Even when there are plugins that are
    capable of playing the audio. Ex: Quicktime, windows media player.
    Could you please help me in this?
    Thanks,
    Abhishek

    Please check this article.There are several samples using object tag to play audio in defferent plugin, Ex: Quicktime, windows media player.  http://www.yourwebskills.com/htmlobject.php
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Is it possible to play audio from video in the background while using a different app?

    I would like to be ale to play audio from a video file in videos (or av player hd) in the background whie using a diffent app in my iPad 2. (ie watching a video while taking notes on the content or highlighting an e-textbook).
    Is this possible? Either through the original iPad functionality or by downloading a separate app?
    Thanks,
    mji

    Is it important that the music come from a video, or are you just looking to listen to music in the background, while doing something else.  If the later, you can certainly play music from the Music App, Pandora, or iHeart Radio, etc., and with the music playing, tap your home button to go to your home page and open anything else you want and the music will continue.
    I don't have any videos to try out right now, but you try the same thing out and if the music continues, it works.  If it doesn't, it doesn't.

  • HT4072 Can I play audio from movies in the DVD player using iTunes or Airplay?

    I would like to play audio from movies in the MacBook DVD player using iTunes or Airplay? Is this possible?

    Is it important that the music come from a video, or are you just looking to listen to music in the background, while doing something else.  If the later, you can certainly play music from the Music App, Pandora, or iHeart Radio, etc., and with the music playing, tap your home button to go to your home page and open anything else you want and the music will continue.
    I don't have any videos to try out right now, but you try the same thing out and if the music continues, it works.  If it doesn't, it doesn't.

  • Play audio files with cool buttons

    I want to create an embedded audio file as a swf file. On the
    page, you would see a series of stop, start, and volume buttons. I
    want to be able to add my own buttons that I create in Photoshop as
    the player buttons. I have the buttons, I have the mp3 file as well
    as the swf file. How do I create one of those cool players that you
    see on websites with audio?

    Lloyd already mentioned mediaelement.
    There's also soundplayer which is wav only
    https://msdn.microsoft.com/en-us/library/system.media.soundplayer%28v=vs.110%29.aspx?f=255&MSPPError=-2147217396
    You don't need storyboards at all.
    You could play sounds using triggers or code.
    http://www.wpf-tutorial.com/audio-video/playing-audio/
    https://msdn.microsoft.com/en-us/library/ms752338(v=vs.110).aspx
    I think I mentioned this previously.
    I recommend you use visual studio to develop routinely and blend only rarely.
    Hope that helps.
    Recent Technet articles: Property List Editing;
    Dynamic XAML

  • Can I use Optical Audio alongside a speakerless monitor to play audio through speakers?

    I have an Apple TV 3 and so far I am relatively pleased. However.. I have no sound, this just about renders my Apple TV useless. Is it possible to use the Optical Audio cable to play sound from films, music etc. while still having the Apple TV connected to the Monitor via HDMI? Do you have any suggestions as to what speakers would be good? (looking at around £50 - £100) I was thinking of getting some of the Bose Companion 2 monitor speakers and then using a DAC to play audio from the Apple TV to the speakers. Would this work? If not, does anybody have any other suggestions?
    P.S. I can't plug speakers into my monitor for some absurd, annoying reason unbeknown to society

    My ATV is connected to the tv with hdmi
    My optical is connected to my stereo
    I mute my tv and only play out of the stereo

  • I have a docking station to charge and play audio from my ipod touch 3rd gen.  Just bought a new ipod touch 5 th gen.  Is there a converter/ adapter available so I can continue to use my dock?

    I have a docking station to charge and play audio from my ipod touch 3rd gen.  Is there an adapter available for the ipod touch 5th gen so that I can keep using the old dock?

    Lightning  Adopters
    One of these adopters/cables should work:
    http://store.apple.com/us/product/MD824ZM/A/lightning-to-30-pin-adapter-02-m?fno de=45
    http://store.apple.com/us/product/MD823ZM/A/lightning-to-30-pin-adapter?fnode=45

  • Problem with playing audio data using Real Player

    i've seen the intruction for playing video data (.rm) using real player and it works. Then i tried to play audio data (.wav, .dat, .mp3) with real player, but it didn't work.
    These are some codes i've wrote:
    ------------------------------------------- BEGIN PL/SQL CODES---------------------------------------
    CREATE TABLE SONGS
    ( Item_ID number not null PRIMARY KEY,     
    Audio ordsys.ordaudio
    create or replace procedure load_audio(id integer, filename in varchar2) as
    obj ORDSYS.ORDAudio;
    ctx RAW(4000) := NULL;
    begin
    INSERT INTO SONGS VALUES(ID,
         ORDSYS.ORDAudio.init());
    SELECT audio into obj from Songs
    where item_id = id FOR UPDATE;
    obj.setSource('FILE','AUDIODIR', filename);     
    Obj.setDescription('A movie trailer');
    Obj.setMimeType('audio/x-pn-realaudio');
    Obj.setFormat('Real Media File Format');
    obj.import(ctx);
    UPDATE Songs
         SET audio=obj WHERE item_id=id;
    COMMIT;
    END;
    show errors;
    truncate table songs;
    exec load_audio(1,'aud1.wav');
    exec load_audio(2,'aud2.mp3');
    exec load_audio(3,'testaud.dat');
    -- just for comparison, i put a video file (.rm)
    exec load_audio(4,'autorace.rm');
    commit;
    show errors;
    create or replace procedure get_audio(
         audio_id in varchar2,
         mimetype out varchar2,
         data out blob) as
         tempBLOB BLOB;
         s varchar2(200);
    begin
    -- Deliver audio and mimetype
    select t.audio.getcontent(), t.audio.getmimetype()
    into tempBLOB, s
    from songs t where t.item_id = audio_id;
    data := tempBLOB;
    mimetype := s;
    end;
    show errors;
    ---------------------------------------- END of PL/SQL CODES-------------------------------------
    -----------------------------------MOUNTPOINT at FILESYSTEM rmsever.cfg-------------------
    <List Name="pn-oracle-audio">
    <Var Database="oracle"/>
    <Var HeaderCacheSize="2048"/>
    <Var LobFetchSize="32768"/>
    <Var MaxCachedConnections="1"/>
    <Var MountPoint="/dbaudio/"/>
    <Var Password="ZGF2aWQ="/>
    <Var ShortName="pn-oracle"/>
    <Var SQL="get_audio"/>
    <Var Username="skripsi"/>
    </List>
    ----------------------------------------End Of MOUNTPOINT----------------------------------
    then in the real player, i tried some urls :
    http://david:88/ramgen/dbaudio/1 --> it didn't work, it was said invalid path
    http://david:88/ramgen/dbaudio/2 ----> it didn't work, it was said invalid path
    http://david:88/ramgen/dbaudio/3 ----> it didn't work, it was said invalid path
    http://david:88/ramgen/dbaudio/4 ----> it worked
    did i put a wrong url?
    does the http://..../ramgen/... path is just for ram file?
    can anyone show me the way to play audio data using real player?
    Thanx before.

    Yes, realserver expects an exact mimetype.
    to make matters worse, it expects audio/x-pn-realaudio (an audio mimetype) for video!?!?!
    Seems the code inside maps multiple file extensions to some mime type. Only one is allowed.
    I have used the unix strings commands in teh plugins directory to find the exact mime type realserver is expecting. The file format plugins have this information in them.
    Larry

  • Using 'Play, Pause, Forward, Backward' buttons on keyboard with iTunes

    Hey - Second question for day (Third actually 2nd thread)
    I know with other programs you can use the pause and play etc buttons on the keyboard even when playing games and such.
    As of yet I havnt found any plugins/options within iTunes to allow me to use these buttons and it would be great if someone could point me in right direction where to find em.

    Get a Logitech keyboard. All my keyboards functions work with iTunes out of the box.

  • I am using FC Express HD, and for some reason, when I export a Quicktime movie, the final movie will only play audio, and the video is black.  I only get the actual video if I export as self contained, or if I exportusing quicktime conversion. Why?

    I am using FC Express HD, and for some reason, when I export a Quicktime movie, the final movie will only play audio, and the video is black.  I only get the actual video if I export as self contained, or if I exportusing quicktime conversion. Why?

    I am using FC Express HD, and for some reason, when I export a Quicktime movie, the final movie will only play audio, and the video is black.  I only get the actual video if I export as self contained, or if I exportusing quicktime conversion. Why?

  • Load and Play audio file (either sound or music) from my computer using DirectSound in C++

    #include "stdafx.h"
    #include <dsound.h>
    class AudioPlayer
    private:
    unsigned long long start_point,
    playback_point,
    break_point;
    bool now_playing, loop, ignore_start_point;
    int speed;
    //and any data that stores an audio (can be either sound or music)
    public:
    void Play_or_Resume(); //Either starts playing or resumes the audio stored in private (Runs a thread that either increments or decrements the playback_point by the speed member and sets the now_playing member to true).
    void Pause(); //Stops playing the audio stored in private until Play_or_Resume method is called (Just suspends the thread that was mentioned above and sets the now_playing member to false).
    void Play(unsigned long long from = 0, unsigned long long length = -1, bool move_start_point_too = true);
    //Plays audio from the value of the 'from' parameter along the value of the 'length' parameter and sets the now_playing member to true.
    //Playback point is pushed to the value of the 'from' parameter, and break point is pushed to the result of from + length.
    //If move_start_point_too parameter is true, then also start point is pushed where playback point is pushed too (to the value of the 'from' parameter).
    //Also the value of the 'from' parameter is an absolute position, but otherwise (if move_start_point_too parameter is false) it ('from' parameter) is relative to start point's position until it (start point) is ignored.
    //The value of the 'from' parameter never can be negative!
    void MovePlaybackPoint(unsigned long long new_position); //Modifies playback point position that is stored in private to a new position that indicates to sample no. new_position.
    unsigned long long GetPlaybackPointPosition(); //Returns playback point's position that has been alreadyS mentiond above.
    unsigned long long GetLength(); //Returns total number of samples in the audio stored in private.
    void MoveBreakPointTo(unsigned long long new_position); //Moves the break point to a new position that indicates to sample no. new position.
    //If the loop member is false, then audio should always stops playing and also set the now_playing member to false, when playback point reaches the break point, even the Pause method was not called.
    //Then calling again the Play_or_Resume method will bring the playback point back to start point (the default value for this member is zero 0).
    //But if the loop member is true, then playback point just returns to start point immediately and continue playing from there (now_playing remains true and it's value is unchanged).
    //There is a possibility to move the break point to a negative integer, so audio either stops and sets now_playing to false or replays from start point and left now_playing true according to the loop member, at the end of the audio. The default value of break point member is minus one -1 .
    unsigned long long GetBreakpointPosition(); //Returns the position of the break point that has been already mentioned above.
    void MoveStartPointTo(unsigned long long new_position); //Moves the start point to a new position that indicates to sample no. new position.
    unsigned long long GetStartPointPosition(); //Returns the position of the start point that has been already mentioned above.
    void EnableRepeatMode(); //Sets the private loop member to true.
    void DisableRepeatMode(); //Sets the private loop member to false.
    void ToggleRepeatMode(); //If loop was true before calling this function, so after it is false. Otherwrise it is true.
    bool IsRepeating(); //Returns whether audio repeats itself (from start point to either breakpoint or end of buffer). This function just returns the value of the loop member.
    void SetSpeed(int num_sam_per_sec); //Modifies the number of samples that are played in every second.
    //If number (integer) is negative, then audio is played in backward.
    //When playback point reaches start point, then it is transferred to break point if it's position is not negative. Otherwise it is transferred to the end of the audio buffer.
    void IgnoreStartPoint(); //Sets the ignore_start_point member to true. Then all methods always relate to start point as zero (even if it's value is not zero).
    void ReferStartPoint(); //Sets the ignore_start_point member to false.
    bool IsStartPointIgnored(); //Returns whether start point is ignored or not. This method just returns the value of ignore_start_point member.
    int GetSpeed(); //Returns the number of samples that are played in every second.
    void SetNumberOfChannels(byte new_value); //Modifies number of channels.
    byte GetNumberOfChannels(); //Returns number of channels.
    void SetBlockAlign(byte new_value); //Sets block align.
    byte GetBlockAlign(); //Returns block align.
    const char* LoadAudioFromComputer(const char* path_and_name_of_file, AudioPlayer* lpAp, bool auto_start_playing = true);
    //This function fills the instance pointed by 'lpAp' parameter with the data of the audio file redirected by 'path_and_name_of_file' parameter, and calls the Play_or_Resume method of this instance if auto_start_playing is true.
    //If the function succeeds, then it returns "succeed". Otherwise (if the function fails) then it returns an error string that describes the problem (the reason it failed). It can be sent to output, so it can be read, by either call to MessageBox, printf, std::cout, TextOut, DrawText functions and etc.
    //The function can fails, because the file was not exist, or could not be opened for reading, because it was opened by another process, or the file was either encrypted or protected, or corrupted, or was not audio file, but text, image and etc.
    I want to implement all methods of the AudioPlayer class and the LoadAudioFromComputer function by myself using DirectSound (the <dsound.h>) and all functions, interfaces, methods, structures, etc... that this header provides, but I don't know how! I
    need your help! This is difficult for me to find in the internet the information I need to do this. MSDN is teaching all this stuff, but this is too difficult! I need you to implement all these methods of the AudioPlayer class and the LoadAudioFromComputer
    function for me using DirectSound and the <dsound.h> and the explanations I wrote in comments, and then post the code. I will copy it to mine and read it all to learn. Please use comments so I can understand. I will thank and appreciate anyone who will
    donate his time to help me and do this for me! :D

    Microsoft pulled the plug on DirectSound HAL in Vista due to lack of hardware support. The SAL exists for
    software compatibility, good intention but bad performance as there is no longer a direct path from
    DirectSound to audio drivers.
    People choose DirectSound for its Direct-ness
    but there is no reason to choose it now.
    DirectX SDK was integrated
    with WIndows SDK which ships with Visual Studio 2012 so you don't need additional downloads for
    WASAPI and XAudio 2.
    Just look up the documentation for headers/librarieslike every other Windows API you use. If you have a hard time to find the documentation then you need to go to search engines and find search engine tutorials. 
    There are plenty of samples for both WASAPI and XAudio 2, both in the Windows SDK and online. The DirectX team has some suggestions on which to use on their team blog.
    You can find experts for those APIs at the Windows Desktop Pro-Audio Application Development forum and the
    Audio/XACT forum on MSDN (link left out for you to practice your search skills). Again, it is fine to ask for hints but don't ask the whole
    solution. You are competing with others who just need a hint to finish work here. The time spent on working on your assignment would be better spent on helping on giving hints to others. 
    Visual C++ MVP

Maybe you are looking for

  • Connecting my Mac

    I have an Apple PowerBook G4 1.67GHz running OS Tiger 10.4.11. I have it configured to connect to my router via the Airport wireless, just like all the other computers on my network (both pc and mac). It can surf the internet just fine, but I cannot

  • HT1349 I cant get my bluetooth to work

    I cant get my bluetooth to work

  • Lot goint to CRTD

    Dear Experts, I have a problem in sto. In normal purchase, during grn quality lot is generated. I want the same things in STO also. i.e lot will be generated during STO GRN. So, i assign  the inspection type 08 in material master. So lot will be gene

  • Set Session Variables

    Is it possible to set 'OS_USER','TERMINAL' or 'HOST' in 'USERENV' in C#? This assignment is possible to do as in the example code in java. Link: https://community.oracle.com/thread/258126

  • Error when trying to place images?!

    In DW when I try to align images I get this error: "Making this change would require changing code that is locked by a template or a translator. The change will be discarded" What do I need to change to get this to work??