public inbox for speakup@linux-speakup.org
 help / color / mirror / Atom feed
* Premption issue?
@  luke
   ` Audio processing Tony Baechler
  0 siblings, 1 reply; 7+ messages in thread
From: luke @  UTC (permalink / raw)
  To: Speakup

While running yesterday's git version, on kernel 2.6.24.7, I am having the 
following issue.

While playing a sound file (mp3 or headerless CPM (.cdr format)), using 
ALSA's sound drivers, and sox's play utility, I have the audio completely 
stop for 1 to 2 seconds, if I try to read a screen of data with read full 
screen, or if I just, for example, hit pagedown while in lynx.

This is with a DEC express.

I do much audio processing with my system, and this is going to kill me 
(well, it won't--I'll revert to an old version of speakup, running on 
2.6.18, but then I lose my USB sound card, and have to live with the on 
board one).

Oh, speaking of that, this is only tested through my on board sound, which 
previously gave me no such problems.

I did set "high resolution timer" in the kernel config, if that matters.  
(Along with many other things, but that seems potentially relevant)

An lsmod follows:

Module                  Size  Used by
loop                   17028  0 
nls_iso8859_1           3968  0 
nls_cp437               5632  0 
vfat                   12992  0 
fat                    52188  1 vfat
sg                     34912  0 
sd_mod                 29200  0 
usb_storage            33536  0 
libusual               16288  1 usb_storage
ipv6                  246500  12 
ppdev                   9220  0 
lp                     11716  0 
af_packet              21316  2 
bridge                 53464  0 
llc                     7444  1 bridge
fuse                   47700  1 
usblp                  13632  0 
pl2303                 20612  0 
usbserial              33320  1 pl2303
ide_cd                 38944  0 
cdrom                  36128  1 ide_cd
usbhid                 29632  0 
hid                    35328  1 usbhid
snd_intel8x0           32796  0 
snd_ac97_codec         97184  1 snd_intel8x0
ac97_bus                1920  1 snd_ac97_codec
snd_pcm_oss            41120  0 
snd_mpu401              8040  0 
snd_mpu401_uart         7808  1 snd_mpu401
parport_pc             27684  1 
parport                35336  3 ppdev,lp,parport_pc
snd_pcm                75464  3 snd_intel8x0,snd_ac97_codec,snd_pcm_oss
snd_mixer_oss          16256  1 snd_pcm_oss
rtc                    12124  0 
snd_seq_dummy           3588  0 
snd_seq_oss            30848  0 
snd_seq_midi            8288  0 
snd_rawmidi            23520  2 snd_mpu401_uart,snd_seq_midi
snd_seq_midi_event      7168  2 snd_seq_oss,snd_seq_midi
snd_seq                48080  6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_timer              21636  2 snd_pcm,snd_seq
snd_seq_device          8204  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
pata_acpi               7232  0 
ehci_hcd               31884  0 
snd                    51108  12 snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_mpu401,snd_mpu401_uart,snd_pcm,snd_mixer_oss,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
soundcore               7328  1 snd
ohci_hcd               23044  0 
snd_page_alloc         10248  2 snd_intel8x0,snd_pcm
forcedeth              47372  0 
usbcore               135404  9 usb_storage,libusual,usblp,pl2303,usbserial,usbhid,ehci_hcd,ohci_hcd
i2c_nforce2             6336  0 
i2c_core               23696  1 i2c_nforce2
fan                     4612  0 
nvidia_agp              8348  1 
agpgart                33136  1 nvidia_agp
evdev                  11392  0 

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Audio processing
   Premption issue? luke
@  ` Tony Baechler
     ` Kerry Hoath
     ` luke
  0 siblings, 2 replies; 7+ messages in thread
From: Tony Baechler @  UTC (permalink / raw)
  To: Speakup is a screen review system for Linux.

luke wrote:
> I do much audio processing with my system, and this is going to kill me 
> (well, it won't--I'll revert to an old version of speakup, running on 
> 2.6.18, but then I lose my USB sound card, and have to live with the on 
> board one).
>   



Hi,

What audio processing tools are out for Linux and are accessible?  I'm 
aware of sox, the various encoding tools (transcode, ffmpeg, et) and 
ecasound, but none of those replace the power of Sound Forge under 
Windows, at least that I've seen, although I could be missing 
something.  I have tried to figure out ecasound but didn't get anywhere 
with it.  I have files in mono that I want to convert to stereo for CD 
burning but I couldn't figure out how with sox, even after searching 
through the man page and reading the help.  I ended up doing it with my 
old Sound Forge but I would like to move more of my audio work to Linux 
if possible.  Here's the command line I used for sox after reading the 
man page:

sox -c 2 file1.wav file2.wav

I thought maybe I need to "mix" the audio, but I want both channels to 
be identical to the one mono channel in file1.wav.  I would like some 
general pointers to audio tools in Linux and tips on using them.  I'm 
running Debian and have added debian-multimedia to my sources.list.  
I've searched for various keywords but feel like I'm missing something.  
Any tips on getting started with ecasound would be appreciated as so far 
I haven't got it to do anything including loading or playing a file.  I 
would prefer text mode and curses programs now as I don't have enough 
memory to run X.

Thanks all for any help, ideas and pointers.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Audio processing
   ` Audio processing Tony Baechler
@    ` Kerry Hoath
       ` speakup ex_num Tom Fowle
                       ` (2 more replies)
     ` luke
  1 sibling, 3 replies; 7+ messages in thread
From: Kerry Hoath @  UTC (permalink / raw)
  To: Speakup is a screen review system for Linux.

You are not understanding sox's syntax from the manpage.

here is the quick and dirty which should hopefully make sense:
sox <in options> <input file> <out options> <output file> affect

so you want:
sox file1.wav -c2 file2.wav

This says read file1.wav with info in the header. the output options say I 
want 2 channels out; then write file2.wav with the same sample rate etc.
To make this verbose
sox -V file1.wav -c2 file2.wav

reversing a file (just to show an affect)
sox file1.wav file2.wav reverse

add an echo to a file but at the same time change channels from 1 to 2:
sox -V file1.wav -c2 file2.wav echo .5 .5

show stats on a file:
sox file1.wav -e stat

-e shows that the second file name is empty and just use the stat affect.

change the volume of a file after seeing the maximum from stat:

sox -V file1.wav -v 1.214 file2.wav


resample a file at 22050hz to 44100:
sox file1.wav -r 44100 file2.wav

Hope this helps a little.
ecasound is command-line driven and takes practice have not looked it yet.
Regards, Kerry.

----- Original Message ----- 
From: "Tony Baechler" <tony@baechler.net>
To: "Speakup is a screen review system for Linux." <speakup@braille.uwo.ca>
Sent: Sunday, June 15, 2008 5:45 PM
Subject: Audio processing


luke wrote:
> I do much audio processing with my system, and this is going to kill me
> (well, it won't--I'll revert to an old version of speakup, running on
> 2.6.18, but then I lose my USB sound card, and have to live with the on
> board one).
>



Hi,

What audio processing tools are out for Linux and are accessible?  I'm
aware of sox, the various encoding tools (transcode, ffmpeg, et) and
ecasound, but none of those replace the power of Sound Forge under
Windows, at least that I've seen, although I could be missing
something.  I have tried to figure out ecasound but didn't get anywhere
with it.  I have files in mono that I want to convert to stereo for CD
burning but I couldn't figure out how with sox, even after searching
through the man page and reading the help.  I ended up doing it with my
old Sound Forge but I would like to move more of my audio work to Linux
if possible.  Here's the command line I used for sox after reading the
man page:

sox -c 2 file1.wav file2.wav

I thought maybe I need to "mix" the audio, but I want both channels to
be identical to the one mono channel in file1.wav.  I would like some
general pointers to audio tools in Linux and tips on using them.  I'm
running Debian and have added debian-multimedia to my sources.list.
I've searched for various keywords but feel like I'm missing something.
Any tips on getting started with ecasound would be appreciated as so far
I haven't got it to do anything including loading or playing a file.  I
would prefer text mode and curses programs now as I don't have enough
memory to run X.

Thanks all for any help, ideas and pointers.
_______________________________________________
Speakup mailing list
Speakup@braille.uwo.ca
http://speech.braille.uwo.ca/mailman/listinfo/speakup


^ permalink raw reply	[flat|nested] 7+ messages in thread

* speakup ex_num
     ` Kerry Hoath
@      ` Tom Fowle
       ` Audio processing Adam Myrow
       ` luke
  2 siblings, 0 replies; 7+ messages in thread
From: Tom Fowle @  UTC (permalink / raw)
  To: Speakup is a screen review system for Linux.

Can't find what ex_num is for
file in /proc/speakup just contains an alphabet?

Also, is there a way to get speakup to do numbers as digits instead of 
"numbers"
Thanks
tom Fowle


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Audio processing
     ` Kerry Hoath
       ` speakup ex_num Tom Fowle
@      ` Adam Myrow
       ` luke
  2 siblings, 0 replies; 7+ messages in thread
From: Adam Myrow @  UTC (permalink / raw)
  To: Speakup is a screen review system for Linux.

On Sun, 15 Jun 2008, Kerry Hoath wrote:
> resample a file at 22050hz to 44100:
> sox file1.wav -r 44100 file2.wav

When I resample, I always use the polyphase effect.  I.E.
sox file1.wav -r 44100 file2.wav polyphase
Both my experience, and what I've read online show this to be a better way 
of doing it.  It takes longer, but sounds better.  HTH.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Audio processing
   ` Audio processing Tony Baechler
     ` Kerry Hoath
@    ` luke
  1 sibling, 0 replies; 7+ messages in thread
From: luke @  UTC (permalink / raw)
  To: Speakup is a screen review system for Linux.

On Sun, 15 Jun 2008, Tony Baechler wrote:

> What audio processing tools are out for Linux and are accessible?  I'm aware
> of sox, the various encoding tools (transcode, ffmpeg, et) and ecasound, but

I am not aware of ffmpeg and et (unless you ment etc.), but mplayer is a 
useful addition to that set if you're doing DVD or stream work, or just 
for general listening with controls.

> none of those replace the power of Sound Forge under Windows, at least that
> I've seen, although I could be missing something.  I have tried to figure out

They probably do, collectively, replace the power (never used SF, so don't 
know), but certainly not the UI.

You really have to go to Gnome for that, in which you'll have Artor and 
such, which afaik we can not currently use.

> ecasound but didn't get anywhere with it.  I have files in mono that I want to
> convert to stereo for CD burning but I couldn't figure out how with sox, even
> after searching through the man page and reading the help.  I ended up doing
> it with my old Sound Forge but I would like to move more of my audio work to
> Linux if possible.  Here's the command line I used for sox after reading the
> man page:
> 
> sox -c 2 file1.wav file2.wav

If the audio is in the left channel, you probably want:

sox infile.wav outfile.wav swap 1 1

If it's on the right, replace the 1s with 2s.

You might need something like:

sox -c 1 infile.wav -c 2 outfile.wav swap 1 1

instead, but I'm not sure.

> various keywords but feel like I'm missing something.  Any tips on getting
> started with ecasound would be appreciated as so far I haven't got it to do
> anything including loading or playing a file.  I would prefer text mode and
> curses programs now as I don't have enough memory to run X.

Ecasound is powerful, but it is a real bugger to get the hang of it.

A way to start might be the play file example from the man page, which 
goes something like this:

ecasound -c -i infile.wav
start
stop
(etc.)

(from memory--haven't done that in many months)

Luke

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Audio processing
     ` Kerry Hoath
       ` speakup ex_num Tom Fowle
       ` Audio processing Adam Myrow
@      ` luke
  2 siblings, 0 replies; 7+ messages in thread
From: luke @  UTC (permalink / raw)
  To: Speakup is a screen review system for Linux.

On Sun, 15 Jun 2008, Kerry Hoath wrote:

> You are not understanding sox's syntax from the manpage.

(read "man soxexam" for even more)

> change the volume of a file after seeing the maximum from stat:
> 
> sox -V file1.wav -v 1.214 file2.wav

Interestingly, the -v would work before the infile as well, in this 
particular example.

> resample a file at 22050hz to 44100:
> sox file1.wav -r 44100 file2.wav

Or for good quality:

sox file1.wav -r 44100 file2.wav resample -ql

and then go get a cup of coffee.:)  If you want to watch it in action, 
like scp or rsync:

sox -S file1.wav -r 44100 file2.wav resample -ql

Luke


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~ UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
 Premption issue? luke
 ` Audio processing Tony Baechler
   ` Kerry Hoath
     ` speakup ex_num Tom Fowle
     ` Audio processing Adam Myrow
     ` luke
   ` luke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).