From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 0DEA81F55B for ; Fri, 22 May 2020 13:17:24 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com) by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1jc7Y4-0000xQ-Q8; Fri, 22 May 2020 13:17:16 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jc7Y3-0000wl-B1 for sox-users@lists.sourceforge.net; Fri, 22 May 2020 13:17:15 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Type:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Sender:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=fA0GOpvArgrg2qucLz6v+LSYmIME9xLu0pW9adwRPvg=; b=JzR81WnwNg8bt/papFZN+AcVH k161Y5GcplsHt4sEnCZJNTrIF+bo0QuxrTlsZ2CrIxHuwR05YOoHKrH2ogBOYpe1gsTtHuQr6/mnz h0Tuakryx9bwZGXYa4bAqn6kiOTw1iCnOQ9/hX2yA1LhaOhKH1Q3Yi65+wEJwRKcDaxWM=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Type:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=fA0GOpvArgrg2qucLz6v+LSYmIME9xLu0pW9adwRPvg=; b=QuFJbVs2OByaPZC7n4ssU1FQ6C daaxMChXopI5p7I6rYIudv7sqSk/M7xBtK6cBGd7TE2nrSip3gVdT6XcgI9Nuy10QvnWnvtl7t2xr gXeSOVPwT6Gs1lVRZ6lJtGtOYF0GopjpHYF05f0OOFhgR5FcRZrFnlejyltMkElGgvPI=; Received: from mail-wm1-f42.google.com ([209.85.128.42]) by sfi-mx-4.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92.2) id 1jc7Y1-005MNu-UD for sox-users@lists.sourceforge.net; Fri, 22 May 2020 13:17:15 +0000 Received: by mail-wm1-f42.google.com with SMTP id n5so9795480wmd.0 for ; Fri, 22 May 2020 06:17:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=fA0GOpvArgrg2qucLz6v+LSYmIME9xLu0pW9adwRPvg=; b=j2QMAlB5o0D+tJNGTCOJIxsKkeI6hxtagibKuzdvIBmI3ibU2zEwszW9vIxe1Mzlvo EC8e69p9smEu7ZYl1CqytEkHpKDpZvBGwG9TqwJ4rnWheEld2WFLJfav6Ps2jHm/pgTp xWFpkyKm+bUe76Wnh7+rAThKUbEul29b8FuIindjizMu6+ArijTTZJA1r1ITy1xcV0eF i5aOz28RFkHkjnJ7kea/tVN9FabIv5p9tuabkrzoZfZ35t1FdN2Mg+gmuZiF2oKy7Hk8 DzVGmFApLLakGI/BbankAcOD9JynVnJz6SQv8qqNp7n2KOdBFnK4+C+Qd4f92eI/Zvhh gCVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=fA0GOpvArgrg2qucLz6v+LSYmIME9xLu0pW9adwRPvg=; b=o5LTwn1/VhoaNkKljWsPYCEQPtdUALMw7dbF+Zba+tfubIzY2c4f/nPS3XDvy/uwWR m65kiosKNWvomG0+njaV8I+igBBHR83fSvGTeyBgKUXW+BMZojMQUvEBZIP9Gba6MOsj wfH2a5h4kB4kE899zdaCImdVzNaxIxo9W0HuUhoPdbdG8a9kLSCxXk3HFJ7j2yP0EWUC 3OSgHYcqrQXGVfPLtpl7NBJsqAX/B91Tk/Y07Bpx5cnAe0jVZ7YBEZQvKNuIuJNwRxA0 2A/jw3knF4Zr6/KPr2/EnQnIhbvIDopj2BvGfgqhdBf/tknHrMvx0RFzHoPdU7pNtriZ B+wA== X-Gm-Message-State: AOAM531r8/zf5WREzJk+a0ZKeFcMdEtnJhOJ8bMI8QEOTTfI2+Pd0xfg pxIa1XiclzC2KXjrTiRWhHuroK0gyRGPCT7L6QjfefM= X-Google-Smtp-Source: ABdhPJxtJnbFiZBPeor+6hsWElfUVMyOS8585S/SRRAO3cv+eAyhKL8zRVrCS/i5LKwJVlDvwOHMRJ04fU25jpT/bKc= X-Received: by 2002:a1c:7212:: with SMTP id n18mr14444912wmc.129.1590153427167; Fri, 22 May 2020 06:17:07 -0700 (PDT) MIME-Version: 1.0 References: <20200522112224.GA22603@extensa> In-Reply-To: <20200522112224.GA22603@extensa> From: Jeff Learman Date: Fri, 22 May 2020 09:16:55 -0400 Message-ID: To: sox-users@lists.sourceforge.net X-Headers-End: 1jc7Y1-005MNu-UD Subject: Re: Process too soft/loud audio with sox X-BeenThere: sox-users@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sox-users@lists.sourceforge.net Content-Type: multipart/mixed; boundary="===============7642037796811784390==" Errors-To: sox-users-bounces@lists.sourceforge.net --===============7642037796811784390== Content-Type: multipart/alternative; boundary="0000000000002a30bc05a63c726d" --0000000000002a30bc05a63c726d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Yes, it can. What you're looking for is called dynamic range compression. That's done using the "compand" effect (which does either compression or its inverse, expansion.) First, though, I suggest you not make the loud parts quieter (unless your source material is 32-bit float and the levels go over 0dBFS. If you have no idea what that means, then it's unlikely you have 32-bit float material.) So, configure the compand effect to make the material sound good when you have your speaker volume set so the loudest parts are how you like them, and make the softer parts louder. Once that is done, if it's still too loud for the rest of your music library, you can just reduce the volume throughout that file. So, two steps: 1) compress, 2) level-set to match your playlist. I haven't used the SoX compand processor and don't know the best settings for your purpose. However, this is from the Sox manual: > The following example might be used to make a piece of music with both quiet and loud passages suitable for listening to in a noisy environment such as a moving vehicle: sox asz.wav asz-car.wav compand 0.3,1 6:=E2=88=9270,=E2=88=9260,=E2=88= =9220 =E2=88=925 =E2=88=9290 0.2 So that should be worth a try to start with! See http://sox.sourceforge.net/sox.html ad search for "compand" for more info. On Fri, 22 May 2020 at 08:00, Francesco Ariis wrote: > Hello sox-users, > I have an audio file which is at times too soft and at times too > loud. I would like to make the soft parts a little bit louder and the > loud parts a little bit softer. > > Can sox do this? > -F > > > _______________________________________________ > Sox-users mailing list > Sox-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/sox-users > --0000000000002a30bc05a63c726d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Yes, it can.=C2=A0 What you're looking for is cal= led dynamic range compression.=C2=A0 That's done using the "compan= d" effect (which does either compression or its inverse, expansion.)

First, though, I suggest you not make the loud part= s quieter (unless your source material is 32-bit float and the levels go ov= er 0dBFS.=C2=A0 If you have no idea what that means, then it's unlikely= you have 32-bit float material.)=C2=A0 So, configure the compand effect to= make the material sound good when you have your speaker volume set so the = loudest parts are how you like them, and make the softer parts louder.=C2= =A0 Once that is done, if it's still too loud for the rest of your musi= c library, you can just reduce the volume throughout that file.=C2=A0 So, t= wo steps: 1) compress, 2) level-set to match your playlist.

<= /div>
I haven't used the SoX compand processor and don't know t= he best settings for your purpose.=C2=A0 However, this is from the Sox manu= al:
> The following example might be used to make a piece of music with both quiet and loud passages suitable for listening to in a noisy environment such as a moving vehicle:
   sox asz.wav asz-car.wav compand 0.3,1 6:=
=E2=88=9270,=E2=88=9260,=E2=88=9220 =E2=88=925 =E2=88=9290 0.2

So that should be worth a try to start with!=C2= =A0 See http://sox.sourcefo= rge.net/sox.html ad search for "compand" for more info.



On Fri, 22 May 2020 at 08:00, Francesco A= riis <fa-ml@ariis.it> wrote:
Hello sox-users, =C2=A0 =C2=A0 I have an audio file which is at times too soft and at times = too
loud. I would like to make the soft parts a little bit louder and the
loud parts a little bit softer.

Can sox do this?
-F


_______________________________________________
Sox-users mailing list
Sox-us= ers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/s= ox-users
--0000000000002a30bc05a63c726d-- --===============7642037796811784390== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============7642037796811784390== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Sox-users mailing list Sox-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-users --===============7642037796811784390==--