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

Meer
1 jaar 10 maanden geleden #9214 door Jonathan Smith
Beantwoord door Jonathan Smith in topic I would like to add a sound effect when turning the cards
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
Bijlagen:

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Meer
1 jaar 10 maanden geleden #9216 door Jonathan Smith
Beantwoord door Jonathan Smith in topic I would like to add a sound effect when turning the cards
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
De volgende gebruiker (s) zei dank u: IMED

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

  • IMED
  • Onderwerp Auteur
  • Offline
  • Junior lid
  • Junior lid
Meer
1 jaar 8 maanden geleden #9290 door 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!
Bijlagen:

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

  • IMED
  • Onderwerp Auteur
  • Offline
  • Junior lid
  • Junior lid
Meer
1 jaar 8 maanden geleden #9318 door 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

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Moderators: ronmalimcn
Tijd voor maken pagina: 0.145 seconden
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo