Re: [AUDITORY] Cut silence in beginning and end of speech recordings automatically? (=?utf-8?Q?Krzysztof_Basi=C5=84ski?= )


Subject: Re: [AUDITORY] Cut silence in beginning and end of speech recordings automatically?
From:    =?utf-8?Q?Krzysztof_Basi=C5=84ski?=  <k.basinski@xxxxxxxx>
Date:    Fri, 5 Mar 2021 10:02:50 +0100

--Apple-Mail=_F1E6122A-9F47-4C86-8054-F657E27E8F6E Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Dear Tamar, You can try the Librosa package in Python. There is a function = librosa.effects.trim() that trims out the beginning and ending. You can = set the db threshold if you have some noise in the recording. It works = on a single signal but it=E2=80=99s very easy to automate with a for = loop. All the best, Chris -- Krzysztof Basi=C5=84ski, PhD Assistant Professor Department of Psychology Medical University of Gda=C5=84sk, Poland http://mug.edu.pl | http://kbas.gumed.edu.pl > On 3 Mar 2021, at 16:09, Tamar Regev <tamaregev@xxxxxxxx> wrote: >=20 > Hi all, >=20 > Does anyone know of a good way to automatically trim silent parts = (which may contain some minor background noise) at the beginning and end = of speech recordings? >=20 > Preferentially using Matlab but any other automatic way would work (we = want to run this on many sound files). >=20 > Thanks a lot! > Tamar >=20 --Apple-Mail=_F1E6122A-9F47-4C86-8054-F657E27E8F6E Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; = charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; = -webkit-nbsp-mode: space; line-break: after-white-space;" class=3D"">Dear = Tamar,<div class=3D""><br class=3D""></div><div class=3D"">You can try = the Librosa package in Python. There is a function = librosa.effects.trim() that trims out the beginning and ending. You can = set the db threshold if you have some noise in the recording. It works = on a single signal but it=E2=80=99s very easy to automate with a for = loop.</div><div class=3D""><br class=3D""></div><div class=3D"">All the = best,</div><div class=3D"">Chris<br class=3D""><div class=3D""> <div dir=3D"auto" style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, = 0); letter-spacing: normal; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; word-spacing: 0px; = -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: = break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" = class=3D""><div>--</div><div>Krzysztof Basi=C5=84ski, PhD<br = class=3D"">Assistant Professor<br class=3D"">Department of Psychology<br = class=3D"">Medical University of Gda=C5=84sk, Poland<br class=3D""><a = href=3D"http://mug.edu.pl" class=3D"">http://mug.edu.pl</a>&nbsp;|&nbsp;<a= href=3D"http://kbas.gumed.edu.pl" = class=3D"">http://kbas.gumed.edu.pl</a></div></div> </div> <div><br class=3D""><blockquote type=3D"cite" class=3D""><div = class=3D"">On 3 Mar 2021, at 16:09, Tamar Regev &lt;<a = href=3D"mailto:tamaregev@xxxxxxxx" class=3D"">tamaregev@xxxxxxxx</a>&gt;= wrote:</div><br class=3D"Apple-interchange-newline"><div class=3D""><div = dir=3D"ltr" class=3D"">Hi all,<div class=3D""><br class=3D""></div><div = class=3D"">Does anyone know of a good way to automatically trim silent = parts (which may contain some&nbsp;minor background noise) at the = beginning and end of speech recordings?</div><div class=3D""><br = class=3D""></div><div class=3D"">Preferentially using Matlab but any = other automatic way would work (we want to run this on <u = class=3D"">many</u> sound files).</div><div class=3D""><br = class=3D""></div><div class=3D"">Thanks a lot!</div><div = class=3D"">Tamar</div><div class=3D""><br class=3D""></div></div> </div></blockquote></div><br class=3D""></div></body></html>= --Apple-Mail=_F1E6122A-9F47-4C86-8054-F657E27E8F6E--


This message came from the mail archive
src/postings/2021/
maintained by:
DAn Ellis <dpwe@ee.columbia.edu>
Electrical Engineering Dept., Columbia University