Subject: Re: Audio editing From: Matt Winn <mwinn83@xxxxxxxx> Date: Tue, 18 Dec 2012 09:04:22 -0600 List-Archive:<http://lists.mcgill.ca/scripts/wa.exe?LIST=AUDITORY>--047d7b10c8611d7bd304d121d0fe Content-Type: multipart/alternative; boundary=047d7b10c8611d7bd004d121d0fc --047d7b10c8611d7bd004d121d0fc Content-Type: text/plain; charset=ISO-8859-1 Abin, It may be easier to do this in a scriptable environment like Praat instead of Audition. I have attached a script that you can use in Praat to scale the intensities of all sounds in a folder to a selected level. If the sounds clip, it will alert you and offer you the option of decreasing your target intensity level. This way, you can prevent any clipping in the output files. In the end, you will have a folder full of normalized sounds and an info text file to let you know what changes were applied. None of the original sounds are altered. This is designed to use for a folder full of short sounds (i.e. words), and might not be ideal for longer sounds. It does not perform compression. Regarding naturalness - you should be aware that compression and (to a lesser extent) normalization actually decrease the naturalness of the signals by altering each of them in different ways. There are some inherent volume differences between some speech sounds (e.g. /s/ is louder than /f/, /a/ is louder than /u/), so normalizing levels for these sounds would decrease naturalness to some extent. Good luck, Matt On Mon, Dec 17, 2012 at 5:05 PM, Abin Kuruvilla Mathew < amat527@xxxxxxxx> wrote: > Dear All, > > I have a set of audio files (consonants and vowels) to be editied in Adobe > audition and was wondering to what extent and how much of Normalization > (RMS) and dynamic compression (if necessary) would be needed so that the > naturalness is preserved and clipping doesn't occur. > > kind regards, > Abin > > -- > Abin K. Mathew > Doctoral student > Department of Psychology (Speech Science) > Tamaki Campus, 261 Morrin Road, Glen Innes > The University of Auckland > Private Bag 92019 > Auckland- 1142 > New Zealand > Email: amat527@xxxxxxxx > > --047d7b10c8611d7bd004d121d0fc Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <div><p class=3D"MsoNormal" style=3D"margin-bottom:0in;margin-bottom:.0001p= t;line-height:normal"><font class=3D"Apple-style-span" face=3D"Arial, sans-= serif" size=3D"3"></font></p><p class=3D"MsoNormal" style=3D"margin-bottom:= 0in;margin-bottom:.0001pt;line-height:normal"> <font class=3D"Apple-style-span" face=3D"Arial, sans-serif" size=3D"3"><spa= n style=3D"font-size:12.0pt;font-family:"Arial","sans-serif&= quot;;color:black">Abin,</span></font></p><font class=3D"Apple-style-span" = face=3D"Arial, sans-serif" size=3D"3"> <p class=3D"MsoNormal" style=3D"margin-bottom:0in;margin-bottom:.0001pt;lin= e-height:normal"><span style=3D"font-size:12.0pt;font-family:"Arial&qu= ot;,"sans-serif";color:black">It may be easier to do this in a scriptable environment like Praat instead of Audition. I have attached a script that you can use in Praat to scale the intensities of all sounds in a folder to a selected level. If the sounds clip, it will alert y= ou and offer you the option of decreasing your target intensity level. This wa= y, you can prevent any clipping in the output files. In the end, you will have= a folder full of normalized sounds and an info text file to let you know what= changes were applied. None of the original sounds are altered.</span></p> <p class=3D"MsoNormal" style=3D"margin-bottom:0in;margin-bottom:.0001pt;lin= e-height:normal"><span style=3D"font-size:12.0pt;font-family:"Arial&qu= ot;,"sans-serif";color:black">This is designed to use for a folder full of short sounds (i.e. words), and might not be ideal for longer sounds. It does not perform compression.=A0</span></p> <p class=3D"MsoNormal" style=3D"margin-bottom:0in;margin-bottom:.0001pt;lin= e-height:normal"><span style=3D"font-size:12.0pt;font-family:"Arial&qu= ot;,"sans-serif";color:black">=A0</span></p> <p class=3D"MsoNormal" style=3D"margin-bottom:0in;margin-bottom:.0001pt;lin= e-height:normal"><span style=3D"font-size:12.0pt;font-family:"Arial&qu= ot;,"sans-serif";color:black">Regarding naturalness - you should be aware that compression and (to a lesser extent) normalization actually decrease the naturalness of the signals by altering each of them i= n different ways. There are some inherent volume differences between some spe= ech sounds (e.g. /s/ is louder than /f/, /a/ is louder than /u/), so normalizin= g levels for these sounds would decrease naturalness to some extent.=A0</span= ></p> <p class=3D"MsoNormal" style=3D"margin-bottom:0in;margin-bottom:.0001pt;lin= e-height:normal"><span style=3D"font-size:12.0pt;font-family:"Arial&qu= ot;,"sans-serif";color:black"><br> <br> </span></p> <p class=3D"MsoNormal" style=3D"margin-bottom:0in;margin-bottom:.0001pt;lin= e-height:normal"><span style=3D"font-size:12.0pt;font-family:"Arial&qu= ot;,"sans-serif";color:black">Good luck,</span></p> <p class=3D"MsoNormal" style=3D"margin-bottom:0in;margin-bottom:.0001pt;lin= e-height:normal"><span style=3D"font-size:12.0pt;font-family:"Arial&qu= ot;,"sans-serif";color:black">Matt</span></p></font><p></p><br><d= iv class=3D"gmail_quote"> On Mon, Dec 17, 2012 at 5:05 PM, Abin Kuruvilla Mathew <span dir=3D"ltr">&l= t;<a href=3D"mailto:amat527@xxxxxxxx" target=3D"_blank">amat527@xxxxxxxx= cklanduni.ac.nz</a>></span> wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex">Dear All,<div><br></div><div>I have a set of= audio files (consonants and vowels) to be editied in Adobe audition and wa= s wondering to what extent and how much of Normalization (RMS) and dynamic = compression (if necessary) would be needed so that the naturalness is prese= rved and clipping doesn't occur.</div> <div><br></div><div>kind regards,</div><div>Abin<span><font color=3D"#88888= 8"><br clear=3D"all"><div><br></div>-- <br><div style=3D"line-height:17px;c= olor:rgb(42,42,42);font-size:13px;font-family:"Segoe UI",Tahoma,V= erdana,Arial,sans-serif"> Abin K. Mathew</div><div style=3D"line-height:17px;color:rgb(42,42,42);font= -size:13px;font-family:"Segoe UI",Tahoma,Verdana,Arial,sans-serif= ">Doctoral student</div><div style=3D"line-height:17px;color:rgb(42,42,42);= font-size:13px;font-family:"Segoe UI",Tahoma,Verdana,Arial,sans-s= erif"> Department of Psychology (Speech Science)</div><div style=3D"line-height:17= px;color:rgb(42,42,42);font-size:13px;font-family:"Segoe UI",Taho= ma,Verdana,Arial,sans-serif"><div>Tamaki Campus, 261 Morrin Road, Glen Inne= s</div> <div>The University of Auckland</div><div>Private Bag 92019</div><div>Auckl= and- 1142</div><div>New Zealand</div><div>Email: <a href=3D"mailto:amat527@xxxxxxxx= aucklanduni.ac.nz" target=3D"_blank">amat527@xxxxxxxx</a>=A0</div>= </div> <br> </font></span></div> </blockquote></div><br></div> --047d7b10c8611d7bd004d121d0fc-- --047d7b10c8611d7bd304d121d0fe Content-Type: text/plain; charset=US-ASCII; name="Scale_intensity_of_all_sounds_check_maxima_v2.txt" Content-Disposition: attachment; filename="Scale_intensity_of_all_sounds_check_maxima_v2.txt" Content-Transfer-Encoding: base64 X-Attachment-Id: f_hav5r4t20 IyMgU2NhbGUgaW50ZW5zaXR5IGZvIGFsbCBzb3VuZHMgaW4gYSBEaXJlY3RvcnkNCiMjIyMjIENo ZWNrIGZvciBjbGlwcGVkIGV4dHJlbWENCg0KIyMgTWF0dGhldyBCLiBXaW5uDQojIyBEZWNlbWJl ciAyMDEyDQoNCiMjIE5PVEU6IEl0IGhlbHBzIHRvIGhhdmUgdGhlIFByYWF0IGluZm8gd2luZG93 IG9wZW4gYXMgeW91IHJ1biB0aGlzIHNjcmlwdCwNCiMjIyMjIyBhcyBpdCB3aWxsIHVwZGF0ZSBp bmZvIGZvciB5b3UgYXMgaXQgcHJvY2VlZHMuIA0KDQojIyBPbmNlIHRoZSBzY3JpcHQgaXMgZG9u ZSBhbmQgeW91IGNob29zZSB0byBzYXZlIHRoZSBmaWxlcywgDQojIyMjIExvb2sgaW4gdGhlIG9y aWdpbmFsIHNvdW5kIGRpcmVjdG9yeSAtIHRoZXJlIHlvdSB3aWxsIGZpbmQgYSBuZXcgc3ViLWZv bGRlciBvZiBub3JtYWxpemVkIHNvdW5kcy4gDQoNCmZvcm0gSW5wdXQgRW50ZXIgc3BlY2lmaWNh dGlvbnMgZm9yIEludGVuc2l0eSBzY2FsaW5nDQogICAgY29tbWVudCBFbnRlciBkZXNpcmVkIGlu dGVuc2l0eSAoZEIpOg0KICAgIAlyZWFsIGludGVuc2l0eSA3NQ0KICAgIGNvbW1lbnQgRW50ZXIg ZGlyZWN0b3J5IHdoZXJlIHRoZSBPUklHSU5BTCBzb3VuZCBmaWxlcyB3aWxsIGJlIHJldHJpZXZl ZDoN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