Monday, 27 March 2017

Events

  • Open panel button
  • Close panel button
Duck  in bubbles

You can add content here too!

Add text, links, tables, bullets and images. Position your content here or after the Contact box (if you are using it!).

This image is over 800 pixels wide - es2 has automatically changed its size so it fits neatly in this column.

Contacts

es2 Information & Support Tel: 0300 065 8888

View pages in a different language

Search site

Adding audio (sound) files to your web pages

An audio file playing inside this web page:

This is the script that plays the audio file above!

View the code required to make sure this audio file plays on all platforms: PCs, Macs and mobile devices and popular browsers such as IE; Safari; Firefox and Chrome.

Autoplay, loop and preload="auto|none|metadata" are optional attributes.

There is no single format that works on everything!

Getting audio onto your website can be complex because no one audio format or file format is compatible with every browser.

What format to chose?

Audio files can be created in a variety of different formats. Many formats have specific uses or are suitable for specific platforms. Using common formats will give most visitors the best chance to be able to listen to your audio files.

Some common audio formats include:

  • MP3 - Compressed audio format developed by the Moving Picture Experts Group.
  • WAV - WAVE Audio File - Microsoft.
  • OGG - Compressed audio file that uses free, unpatented Ogg Vorbis audio compression; similar to an .MP3.

The sound file above utilises 3 different formats: .mp3; .wav and .ogg to enable us to be confident the audio file will play on all the diverse platforms, devices and browsers currently available.

Page last updated:  Wednesday 4 June 2014

es2 website builder and content management system designed by EiS Kent. Tel: 0300 065 8800. Copyright 2017 Kent County Council. About Cookies