I would like to add a sound effect when turning the cards

More
1 year 10 months ago #9214 by Jonathan Smith
Dear Imed

As a follow-up to what Ron has written about ways of adding audio, I'd also recommend looking at this Xerte wiki page xerte.org.uk/wiki/doku.php?id=workingwithaudio .

I'm also attaching a PDF guide on working with audio which I developed for a course on authoring in Xerte for language teachers that I ran earlier in the year.

Finally, there is also a way to make words or phrases clickable objects, so that when a learner clicks on them some audio autoplays, without player controls displaying. Here's an example;
languagehub.uk/xerte/play.php?template_id=310#page3
This involves inserting and editing a bit of code through Source view, and is quite time-consuming to do. I will post to the Xerte Forum separately about this.

I hope this is helpful

Best wishes

Jonathan Smith
Freelance English teacher and Xerte enthusiast
Attachments:

Please Log in or Create an account to join the conversation.

More
1 year 10 months ago #9216 by Jonathan Smith
Hi Imed

I have posted separately on how to make words or phrases links which autoplay audio on click.

www.xerte.org.uk/index.php/en/forum/docu...aying-audio-on-click

Jonathan
The following user(s) said Thank You: IMED

Please Log in or Create an account to join the conversation.

  • IMED
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 8 months ago #9290 by IMED
Hello,

Where exactly should I insert these codes in Xerte for them to work on the memory game page?
Here is the code I would like to include:


<audio id="click">
<source src="yourinstalladdress/USER-FILES/projectidusernameNottingham/media/click.mp3" type="audio/mpeg" />
</audio>

$(".card").click(function(){
$('audio#click')[0].play();
});


Thank you in advance for your help!
Attachments:

Please Log in or Create an account to join the conversation.

  • IMED
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 8 months ago #9318 by IMED
Hi Jonathan,

I hope you’re doing well.

You suggested that I contact you privately regarding Xerte, but I can no longer find the response where you shared your email address. Here’s mine if you’d like to reach out directly: imed_dhouioui@yahoo.fr

Thank you in advance for your help.

Best regards,
Imed

Please Log in or Create an account to join the conversation.

Moderators: ronmalimcn
Time to create page: 1.178 seconds
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo