2

I have two audio files in wav format, one of them has some noise because I have modified some bits inside the file. I can just play those files using audio player and other people could hear the difference. But I must also represent it using graphics to show them that two files are not same.

What technique/method do I need to achieve that? And is there any free/cheap software to do that?

3

When no specific feature is to be observed in sound, the best way to represent it is to display its spectrogram since it reflects what the ear does: measuring energy among frequencies as its varies with time.

You can get that representation using the free and open source command-line tool SoX:

sox sound-original.wav -n spectrogram -o sound-original.png
sox sound-altered.wav -n spectrogram -o sound-altered.png

spectrogram of the original sound spectrogram of the altered sound

The alterations in the second sound can clearly be seen on its spectrogram which is good.

But in the case of more subtle alterations, it could be difficulty to see them.

In such a case, computing the difference between the two signals and displaying its spectrogram would be appropriate:

sox -m -v 1 sound-original.wav -v -1 sound-altered.wav sound-difference.wav
sox sound-difference.wav -n spectrogram -o sound-difference.png

spectrogram of the difference between the two sounds

In the command above, -m asks SoX to mix audio files together, and -v is intended to change the volume by a linear factor.

In our case, the volume of sound-original.wav is left unchanged, whereas the -1 factor applied to sound-altered.wav is used to invert it.

The whole command computes the difference between the two audio signals.

  • Thanks learned alot. If I understand correctly the files are both compared at the same positions, but in my specific case the sound files are different because they are time shifted. Is there a way to see or calculate the overlap between them? This is because I extract the audio from TV recordings which are potential the same recording but both can be started at slightly different time before the real TV program starts because of delay in the TV programming. – Jan Jun 1 at 14:50
  • 1
    Maybe this topic will bring you some answers about the time shift problem. But in your case it may be more complicated than that as many parameters may vary. – maxime.bochon Jun 3 at 10:43
1

Any DAW will create a valid visual representation of any given waveform. You can search for a free one. I can hardly understand the reason though..

  • If the goal is to highlight the difference between the two files, it might be worth displaying the waveform of the difference between the two files. – audionuma Nov 5 '16 at 5:51
  • Sound has been around way before daws, i mean unless he turns a sine to a saw which a palmograph can cover, i dont see why you have to visualize an audible difference. In not aiming @ the op here anyways :) – frcake Nov 5 '16 at 13:09
  • Frcake, Palmograph? – Marc W Nov 5 '16 at 15:38
  • Oscilloscope sorry :) – frcake Nov 5 '16 at 16:56
  • You had me googling palmograph lol. – Marc W Nov 6 '16 at 14:05
0

It depends on what changes you have made really, what kind of analysis would show the difference depends on this.

If you just want simple waveform displays then Audacity is the go-to open source multitrack recorder/editor.

If you want a more thourough and detailed screenshot, something like iZotope Insight (VST) would probably be my choice. You can feed the two separate channels into it and overlay them in a 3D spectrogram for example. enter image description here

I think the trial version should allow you to do this if you just want to get a screenshot.

Also, you could subtract one file from the other to get a waveform (or other) display of just the difference if you wish to.

There are many ways to display the two files to show the difference, as I said at the start, it depends on what you need people to see.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.