From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v5S5IMPc018883 for ; Wed, 28 Jun 2017 01:18:22 -0400 Received: by smtp.corp.redhat.com (Postfix) id 92AE188F04; Wed, 28 Jun 2017 05:18:22 +0000 (UTC) Received: from mx1.redhat.com (ext-mx01.extmail.prod.ext.phx2.redhat.com [10.5.110.25]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8D6CA88D90 for ; Wed, 28 Jun 2017 05:18:19 +0000 (UTC) Received: from pta-mxout1.csir.co.za (pta-mxout1.csir.co.za [146.64.81.172]) by mx1.redhat.com (Postfix) with ESMTP id D44497F6AE for ; Wed, 28 Jun 2017 05:18:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com D44497F6AE Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=csir.co.za Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=wvdwalt@csir.co.za DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com D44497F6AE Received: from pta-mxout1.csir.co.za (146.64.10.8) by pta-mxout1.csir.co.za (0.0.0.0) GWAVA SMTP; Wed, 28 Jun 2017 07:18:08 +0200 X-Spam_ID: str=0001.0A160208.59533C0E.003D:SCFSTAT37622878, ss=1, re=-4.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-GWAVADAT: rJXQD6R2PlsfImJ89afaa7ecdc7796eee6ca4f6055da1f87e86784c368419d8460615206d8063ea31bvs7nl.1bvsdgn.24 Received: from willempc.meraka.csir.co.za (unknown [146.64.217.6]) by ls-mx5.localdomain (Postfix) with ESMTP id 0BCE9300070 for ; Wed, 28 Jun 2017 07:18:01 +0200 (SAST) Received: from [127.0.0.1] (helo=localhost) by willempc.meraka.csir.co.za with esmtp (Exim 4.86_2) (envelope-from ) id 1dQ5MW-0000we-Su for blinux-list@redhat.com; Wed, 28 Jun 2017 07:18:00 +0200 Date: Wed, 28 Jun 2017 07:18:00 +0200 (SAST) X-X-Sender: wvdwalt@willempc.meraka.csir.co.za To: Linux for blind general discussion Subject: Re: help editinf files with audacity In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="8323329-1135680425-1498627080=:3049" X-Greylist: Sender passed SPF test, Sender IP whitelisted by DNSRBL, ACL 203 matched, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Wed, 28 Jun 2017 05:18:16 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Wed, 28 Jun 2017 05:18:16 +0000 (UTC) for IP:'146.64.81.172' DOMAIN:'pta-mxout1.csir.co.za' HELO:'pta-mxout1.csir.co.za' FROM:'wvdwalt@csir.co.za' RCPT:'' X-RedHat-Spam-Score: -1.202 (BAYES_60, DCC_REPUT_00_12, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, SPF_PASS) 146.64.81.172 pta-mxout1.csir.co.za 146.64.81.172 pta-mxout1.csir.co.za X-Scanned-By: MIMEDefang 2.78 on 10.5.110.25 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: blinux-list@redhat.com From: Linux for blind general discussion X-BeenThere: blinux-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk Reply-To: blinux-list@redhat.com List-Id: Linux for blind general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jun 2017 05:18:23 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-1135680425-1498627080=:3049 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Hi mark, Willem here. Although one cannot edit mp3 with it directly, I have a console-based=20 audio editer called dae. It is based on ecasound. Below is a dump of its man page. If you want it let me know. Email me on wvdwalt=40csir.co.za Regards, Willem DAE(1) = General Commands Manual = = DAE(1) NAME dae - SYNOPSIS dae =5B=5D OPTIONS Dae currently takes no options. DESCRIPTION Dae, THE DIGITAL AUDIO EDITOR INTRODUCTION Dae was written to be a simple to use digital audio editor which= work well with speech under Linux. Dae is specifically a console progra= m and should NOT be run from a graphical interface like Gnome terminal. T= o open a console under a graphical based Linux system, try Ctrl+Alt+F2 or any othe= r function key (F1-F6) to login on a pure console. It was designed to wo= rk like a conventional tape recorder with the added features of removing= and inserting bloks of data. Data can also be inserted from an existing au= dio file. If the record option is chosen when in the middle of a file, t= he recording is made and afterwards, inserted into the file at the point = where the record option was pressed. STARTING THE PROGRAM Dae is started from a console and takes one parameter, the existi= ng audio file that one wants to edit. If dae is called without a file na= me, it creates an empty file called unknown.wav. dae myfile.wav will s= tart dae, load myfile.wav and start to play the file. A backup of myfile.wav is= made as myfile.wav=7E before the file is loaded. If myfile.wav does not= exist, it is created as an empty file containing one second silence. The current version of dae works reliably on .wav files, so if yo= u want to edit a .mp3 or .ogg, first convert it into a .wav and use dae o= n the .wav. The easiest way to do this, is to use sox with its mp3 and o= gg support pack=E2=80=90 age installed. E.G. sox somefile.mp3 somefile.wav To convert the= edited .wav back to mp3 use lame. To convert back to .ogg, use oggenc. NAVIGATING IN DAE The file starts to play when it is loaded. The following keys ca= n be used to navigate back and forth while the file is playing: f1: stop,= stops the playback of the file. f2: play, starts playback at the curren= t position. f3: fast rewind, jumps back one minute in the audio. It can be u= sed either while the file is playing or when playback is stopped. f4: fa= st forward, jumps forward one minute in the audio. It can also be used w= hile the file is playing or when it is stopped. left-arrow: rewind, jumps back fi= ve seconds in the file and can be used like fast forward and fast rewind.= Note that holding down the left-arrow is not recommended as it does n= ot really work well. right-arrow: forward, toggles the speed of playback be= tween the normal speed and four times the speed of normal playback. It c= an be used while the file is playing or when the file is stopped. l: Tog= gles lowering of playback speed to 70 percent of normal speed. This is usefull wh= en marking out small portions of audio. home: go to start of the file. = If the file was playing when this key is pressed, the file will start pl= aying from the beginning. f12: go to end of file, goes to the end of the audio = and stops playback, showing the position in seconds. Fractions of second= s are also shown. w: where am I, shows the current position in the file and can alw= ays be used. The position is shown in seconds with a fraction part. j: = jump to, prompts for a position in seconds and jumps to that position in = the file. INSERTING AUDIO FROM A FILE Press f11 to stop playback and select a file to be inserted. Th= e pickafile file browser with is part of the kies software, is called up = if it is installed. Use the up and down arrows to select the file you wa= nt to insert and press enter to start inserting. If pickafile is not available, y= ou will be prompted to type the name of the desired file. Note: currentl= y only .wav files can be reliably inserted. The .wav file that you inser= t does not have to be in the same format, IE, number of channels, sampeling rate = etc. It would be converted into the format of the file you are editing a= utomatically. Note that the insertion takes quite long. RECORDING WITH DAE Press f10 to start recording at the current position in the file.= You will now see =22recording=22. You are now recording from the defau= lt selected input audio device which could be a microphone or line in. W= hile you are record=E2=80=90 ing, you have the following options. f1 to stop recording f2 to = resume recording and q to stop recording and take you back to your origin= al file. After you have pressed q as described above, allow for some tim= e for the con=E2=80=90 tent to be inserted into the file. It uses the same routine as f= or inserting from a file for this task. WORKING WITH PARTS OF THE AUDIO FILE The following tasks can be performed on a part of the audio file= which you are editing: Play a part of the file, remove a part of the fil= e and write a part of a file to an external file. Before any of these ta= sks can be done, the part of the file you want to work with needs to be identified= . This is done by marking the positions of the start and end of the part= you want to work with. Dae calles the part of the file thus marked, a b= lock. Press f5 to mark the start of the block and press f6 to mark the end of= the block. You do not have to mark the start first, if it is conveniant= you can first mark the end and mark the start later. You must have both= a start and end position marked before any task can be done which requires a bloc= k to exist. To play the marked block, press f7. If the block is shorter= than ten seconds, the block will be played and you will be returned to t= he possition in the file where you were when you pressed f7. If the block is lo= nger than ten seconds, you will not be returned to that position directly= . You are then able to navigate inside the marked block and can use the = navigation keys, stop and start. You cannot mark a block within a block, so you c= an also not perform any task that require a marked blok. Press q to get = back to the position in the main file where you were when you pressed f7.= Writing a block to an external audio file: Press f8 to write the marked block to an external audio file. Fo= r reliable opperation, only write out .wav files. After pressing f8, you= will be prompted for the name of the file in which you want the block o= f audio to be written. It is important that you give the .wav extention when = you type the file name. Once the block has been written to the file, you= will be returned to the position in the main file where you were before = you have pressed f8. Removing a block of audio: Press f9 to remove the marked block. The block will be removed a= nd you will be returned to the position where you were before pressing f9= . If you were at a position which fell inside the block area when you p= ressed f9, you will be returned to the position where the block started. After = the block has been removed, a block is no longer marked. Moving a block of audio Currently, moving a block is done us= ing three opperations. 1. Mark the block. 2. Write the block to an ex= ternal audio file. 3. Insert the external file you have just written ou= t at the desired position. FINISHING THE EDIT SESSION Press q to exit the program. The backup file and the edited file= will be on your disk, but all temporary files will be deleted. The file= s you have written out using f8 will also remain on the disk. Dae does n= ot have an undo feature, so if you accedentally mess up your file, exit using q = and copy the backup file over the one you have edited and start over. Yo= u can also copy the messed up file to another file if parts of the file c= an be used. You then can copy the backup to the origional file and edit it again,= inserting parts of the messed up file after you have written out those p= arts. This sounds complicated, but the main thing to remember is that y= ou can recover from an error if need be. If you have messed up your file, just= do not start editing it again before you did something to the backup fil= e because if you just start dae again in this situation, the backup file = will be replaced with your messed up file and you can lose data. RESOURCES Dae requires the scripts catchkey, pickafile and getterm to be i= n the execution path. It also requires various standard UNIX utilities, = normally available under any UNIX installation. It also requires ecasoun= d and python to be installed. An audio tutorial for dae should have been install= ed in /usr/local/share/dae/tutorial. It is called dae_tutorial.ogg and c= an be played with a program like mplayer. DIAGNOSTICS SEE ALSO pickafile (1) sox (1) aoss (1) COPYRIGHT Dae is Copyright (C) copyright Meraka Institute, Meraka, CSIR, P.O. Box 395, Pretoria, 0001, South Africa EMAI= L: Willem van der Walt wvdwalt=40csir.co.za Web: http://www.meraka.org.za= This program is free software; you can redistribute it and/or modify it = under the terms of the GNU General Public License as published by the Free Software = Foundation; either version 3 of the License, or (at your option) any late= r version. This program is distributed in the hope that it will be useful, b= ut WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABI= LITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public Li= cense for more details. You should have received a copy of the GNU General Public License= along with this program; if not, write to the Free Software Foundation, = Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. BUGS For best opperation, make sure that you can play multiple audio= streams at once. If you are using a screen reader like speakup, this is= important as you might otherwise have speakup and dae fighting over who = gets the turn to make sound. If your machine cannot be set up in this way, you ca= n still use dae by turning speakup off using the insert-enter key combina= tion on the numeric keypad. Dae can use up to three times the disk space that is taken up by = the file you are editing. The working files are deleted when you exit th= e program, but the backup file remains. You must remove that by hand. = Any files that you have created using f8 write block, also remains. Dae does not check for disk space before each operation, so make = sure you have enough space. You can lose data if the disk becomes full d= uring some operations although your backup file should be safe. By default, dae uses the device called =22/dev/dsp=22 for both so= und input and sound output. On some machines this might perform poorly a= nd on some machines it might not work at all. You can try running dae us= ing the aoss program to work around this problem. For example: =24aoss dae myfile.wav= Alternatively, you can edit the dae file. At the top of the file, you w= ill find the lines: soundin=3D=22/dev/dsp=22 soundout=3D=22/dev/dsp=22 Yo= u can change that to another device, for example: soundin=3D=22alsa=22 soundout=3D=22alsa=22 = Python version 2.6 and later complains about some of the code used in the= ecasound python module, but everything still works without problems. Wi= th python 2.6 you are likely to see these errors apon entering and exiting dae. It is possibl= e to get rid of these errors under python 2.6 and later by compiling ecas= ound against your installed python. To do that, do the following: = Steps are for Debean/ubuntu 1. Install python-dev sudo apt-get install python-dev 2. Get the source code for ecasound. apt-get source ecasound 3. Change into the directory created= by the previous step. cd ecasound2.2-2.7.0 4. Configure ecasound to be= built for your python: ./configure --enable-pyecasound=3Dc 5. Build and install eca= sound: make&&sudo make install Although dae needs more work, I have used it for a number of year= s for all my audio editing and had no major problems. FUTURE PLANS FOR DAE Add support for editing/writing compres= sed files like mp3 and ogg. Add a save option where you can save to anot= her file while still editing. This is currently possible by marking all = of the file as a block and saving it under another name using write block. Add su= pport for ladspa and ecasound plugins to be applied on parts of the file = and saved as part of the file afterwards. AUTHOR Willem van der Walt E-mail wvdwalt=40csir.co.za = = = DAE(1) On Tue, 27 Jun 2017, Linux for blind general discussion wrote: > Hi all, Mark Peveto here. Looking for some help with audacity. I've h= eard folks sware up and down that it's accessible in Linux, but I sure ca= n't > figure it out. I was trying to edit an mp3 file. I wanted to remove m= aybe the first 5 or 10 seconds of one. I hit left bracket to set my left= > boundary, and right bracket to set the right boundry, but when I hit de= lete, it killed the entire file. Clearly I'm doing something wrong. Wha= t's the > trick to file editing like this? > thanks. > > > Mark Peveto > Registered Linux user number 600552 > Everything happens after coffee=21 > > _______________________________________________ > Blinux-list mailing list > Blinux-list=40redhat.com > https://www.redhat.com/mailman/listinfo/blinux-list > > -- This message is subject to the CSIR's copyright terms and conditions, e-m= ail legal notice, and implemented Open Document Format (ODF) standard.=20 The full disclaimer details can be found at http://www.csir.co.za/disclai= mer.html.=20 Please consider the environment before printing this email.=20 --8323329-1135680425-1498627080=:3049--