Supporting each other

Community forums

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC:

I would like to add a sound effect when turning the cards 4 months 1 week ago #9214

  • Jonathan Smith
  • Jonathan Smith's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 49
  • Thank you received: 13
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 Connexion or Create an account to join the conversation.

I would like to add a sound effect when turning the cards 4 months 1 week ago #9216

  • Jonathan Smith
  • Jonathan Smith's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 49
  • Thank you received: 13
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 Connexion or Create an account to join the conversation.

I would like to add a sound effect when turning the cards 2 months 2 weeks ago #9290

  • IMED
  • IMED's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 27
  • Thank you received: 0
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 Connexion or Create an account to join the conversation.

I would like to add a sound effect when turning the cards 2 months 1 week ago #9318

  • IMED
  • IMED's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 27
  • Thank you received: 0
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: Cette adresse e-mail est protégée contre les robots spammeurs. Vous devez activer le JavaScript pour la visualiser.

Thank you in advance for your help.

Best regards,
Imed

Please Connexion or Create an account to join the conversation.

  • Page:
  • 1
  • 2
Moderators: alimcnronm
Time to create page: 0.048 seconds
Copyright © 2025 The Xerte Project.
Xerte logo Apereo logo OSI Logo

Search