# Audio Player

In the Audio Player, you can load and play audio files.

The type of files supported by TrainYourEars are `wav`, `aif`, `mp3`, `ogg` and `m4a`.

{% hint style="warning" %}
The m4a format is only available on Mac and Win 10.
{% endhint %}

If you haven't added any files yet, you will see this screen:

![](https://1178068019-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNZgv_0q7KdbiUKT8Dm%2F-LNZgyAAQR10p23WlWar%2F-LNZgznfS_NHWHrocSU4%2Fdrag-and-drop.png?generation=1538214068758032\&alt=media)

You can drag and drop files, folders or click on the `Open File` or `Open Folder` buttons.

If you choose `Open Folder` or drag a folder it will search in the subfolders as well.

Once you have added some files, you will see the Audio Player:

![](https://1178068019-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNZgv_0q7KdbiUKT8Dm%2F-LNZgyAAQR10p23WlWar%2F-LNZgznhHEK_SNJoRxke%2Faudio-player.png?generation=1538214068661691\&alt=media)

{% hint style="info" %}
You can still drag and drop files or folders in this screen and they will be added to the playlist.
{% endhint %}

The Audio Player has different sections. Let's see what they do:

## Playlist Buttons

![](https://1178068019-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNZgv_0q7KdbiUKT8Dm%2F-LNZgyAAQR10p23WlWar%2F-LNZgznjeLWjLCakjky5%2Fplayer-buttons.png?generation=1538214068619461\&alt=media)

### Add File

Add a file to the playlist.

### Add Folder

Add a folder to the playlist. It will search in the subfolders as well.

### Delete Selected

Remove the selected audio file from the playlist.

### Delete All

Clear the playlist and go back to the Drag and Drop screen.

## Playlist

![](https://1178068019-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNZgv_0q7KdbiUKT8Dm%2F-LNZgyAAQR10p23WlWar%2F-LNZgznl0yPkBmLlcaje%2Fplaylist.png?generation=1538214068572145\&alt=media)

Use it to select the song you want to play.

## Random Player option

![](https://1178068019-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNZgv_0q7KdbiUKT8Dm%2F-LNZgyAAQR10p23WlWar%2F-LNZgznnoKYWDCaFx8to%2Frandom-player.png?generation=1538214068620436\&alt=media)

TrainYourEars can jump to a random song each time you start a new quiz. This is interesting because each quiz will be totally different from the previous one.

It is recommended when you want to make the current exercise more challenging.

## Waveform

![](https://1178068019-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNZgv_0q7KdbiUKT8Dm%2F-LNZgyAAQR10p23WlWar%2F-LNZgznp5I6zQGOzaq53%2Fwaveform.png?generation=1538214068617112\&alt=media)

Click to jump to different parts of the song or create loops (explained in the **audio loop** section.)

## Audio Player Controls

![](https://1178068019-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNZgv_0q7KdbiUKT8Dm%2F-LNZgyAAQR10p23WlWar%2F-LNZgznrBNPCsnpBcdHB%2Faudio-player-controls.png?generation=1538214068597620\&alt=media)

You can go the previous song, the next song, stop, pause and play.

There are two additional buttons. The first one let's you loop over a defined section (Audio Loop) and the second one over the whole song (Song Loop).

{% hint style="info" %}
You can also control Play/Pause using the spacebar.
{% endhint %}

### Audio Loop

If you click and drag on the waveform you will create a loop, marked in red (as seen in the waveform image). If you select the button labelled as `Loop`, the audio will be looped over that section.

{% hint style="info" %}
If you have activated the Random Player option, the loop will be lost once you start a new quiz and TrainYourEars jumps to another song and time.
{% endhint %}

### Song Loop

If you click on the button labelled as `Song` the whole song will be played again once it has finished.

## Note: Audio may be muted

Sometimes you can see a piece of advice like this:

![](https://1178068019-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNZgv_0q7KdbiUKT8Dm%2F-LNZgyAAQR10p23WlWar%2F-LNZgzntBaqgTrdGmymy%2Faudio-muted.png?generation=1538214068638712\&alt=media)

This happens when your current exercise has the option `Mute and play it only for X seconds`. Don't worry if you don't hear anything, the audio will start when you start the quiz.
