how to remove some portion of audio for some seconds ..

Help for Audacity on Windows.
Forum rules
ImageThis forum is for Audacity on Windows.
Please state which version of Windows you are using,
and the exact three-section version number of Audacity from "Help menu > About Audacity".


Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
Post Reply
jagag
Posts: 5
Joined: Thu Feb 11, 2021 10:38 am
Operating System: Windows 10

how to remove some portion of audio for some seconds ..

Post by jagag » Thu Feb 11, 2021 10:44 am

how to remove some portion of audio for some seconds ..
I have 20 mins audio file..for every 10 seconds .i need to remove 3 seconds of audio clip automatically..Is it possible...

steve
Site Admin
Posts: 80752
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: how to remove some portion of audio for some seconds ..

Post by steve » Thu Feb 11, 2021 10:51 am

jagag wrote:
Thu Feb 11, 2021 10:44 am
I have 20 mins audio file..for every 10 seconds .i need to remove 3 seconds of audio clip automatically.
Do you mean at exactly regular intervals? If so, is the 3 seconds included in the 10 seconds?

What do you mean by "remove"? Just silencing the audio, or deleting it completely so that the track becomes shorter?

Does it matter that the remaining audio will have abrupt changes (and possibly "click") at each edit point?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

jagag
Posts: 5
Joined: Thu Feb 11, 2021 10:38 am
Operating System: Windows 10

Re: how to remove some portion of audio for some seconds ..

Post by jagag » Thu Feb 11, 2021 10:53 am

yes i want to remove 3 seconds ..

steve
Site Admin
Posts: 80752
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: how to remove some portion of audio for some seconds ..

Post by steve » Thu Feb 11, 2021 11:49 am

  1. Select the audio.
  2. Apply this code in the Nyquist Prompt (see: https://manual.audacityteam.org/man/nyquist_prompt.html)

    Code: Select all

    ;version 4
    ;type analyze tool
    
    ;control cut "Length to cut (seconds)" float "" 3 0 100
    ;control skip "Length to skip (seconds)" float "" 10 0 100
    
    (defun make-labels ()
      (let ((dur (/ len *sound-srate*))
            (labels ())
            (start skip)
            (end (+ skip cut))
            repeats)
        (setf repeats (truncate (/ dur (+ cut skip))))
        (dotimes (i repeats labels)
          (push (list start end "") labels)
          (setf start (+ start cut skip))
          (setf end (+ start cut)))))
    
    (if (or (=  cut 0) (= skip 0))
        "Error.\nBoth controls must be greater than zero."
        (make-labels))
    
    
  3. Press "Ctrl + A" (select all)
  4. "Edit menu > Labelled Audio > Delete"
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

jagag
Posts: 5
Joined: Thu Feb 11, 2021 10:38 am
Operating System: Windows 10

Re: how to remove some portion of audio for some seconds ..

Post by jagag » Thu Feb 11, 2021 11:59 am

Thank you sp much ...love you

steve
Site Admin
Posts: 80752
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: how to remove some portion of audio for some seconds ..

Post by steve » Thu Feb 11, 2021 12:11 pm

Out of interest - what is this for?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

jagag
Posts: 5
Joined: Thu Feb 11, 2021 10:38 am
Operating System: Windows 10

Re: how to remove some portion of audio for some seconds ..

Post by jagag » Thu Feb 11, 2021 12:36 pm

for avoiding copy rights.. :ugeek: :ugeek:

steve
Site Admin
Posts: 80752
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: how to remove some portion of audio for some seconds ..

Post by steve » Thu Feb 11, 2021 12:43 pm

I hope you mean "protecting your copyright" rather than bypassing someone else's.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

jagag
Posts: 5
Joined: Thu Feb 11, 2021 10:38 am
Operating System: Windows 10

Re: how to remove some portion of audio for some seconds ..

Post by jagag » Thu Feb 11, 2021 12:45 pm

yes protecting my rights..

steve
Site Admin
Posts: 80752
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: how to remove some portion of audio for some seconds ..

Post by steve » Thu Feb 11, 2021 1:09 pm

A common and effective way to do that is to add a "watermark" to the recording.
The "watermark" is usually a spoken word such as "Demo" or the name of your website - it can be anything, but there's added value in using something "promotional" such as your web address.

To make the watermark very difficult to remove, use a stereo effect on it, such as Reverb.

To apply the watermark:

1. Import the main audio track.
2. Import the short "watermark" audio
3. Select the "watermark" audio plus say 10 seconds of silence.
4. Use the "Repeat" effect to repeat the selected "watermark + silence" enough times to be the same length as the main track.
5. "Ctrl + A" (select All)
6. "Tracks menu > Mix > Mix and Render"
7. If necessary, "Normalize" the track so that it does not clip.
8. Export.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Post Reply