maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Alsatools or arecord implementation (https://talk.maemo.org/showthread.php?t=22202)

ppafin 2008-07-23 18:18

Alsatools or arecord implementation
 
I am looking to have command line audio recording application for Maemo (N810), like arecord in alsatools. Is there a alsatools available for Maemo? I could also be interested to obtain this work from someone?

dblank 2008-07-23 20:29

Re: Alsatools or arecord implementation
 
There's "rec", from sox, and I'm sure arecord would work too, not sure if there's binaries available though.

Keep in mind you're limited to garbage quality for unknown reasons, I filed a bug a while ago, which unfortunately no one has responded to:

https://bugs.maemo.org/show_bug.cgi?id=2450

ppafin 2008-07-24 04:36

Re: Alsatools or arecord implementation
 
Quote:

Originally Posted by dblank (Post 206316)
There's "rec", from sox, and I'm sure arecord would work too, not sure if there's binaries available though.

Keep in mind you're limited to garbage quality for unknown reasons, I filed a bug a while ago, which unfortunately no one has responded to:

https://bugs.maemo.org/show_bug.cgi?id=2450

I couldn't find rec ? Do I need some packages installed for that?

dblank 2008-07-24 19:42

Re: Alsatools or arecord implementation
 
Quote:

Originally Posted by ppafin (Post 206428)
I couldn't find rec ? Do I need some packages installed for that?

It's part of the sox package, which I guess I must have compiled myself.

Have you tried maemo-recorder?

Benson 2008-07-24 20:33

Re: Alsatools or arecord implementation
 
There's a sox package somewhere, check http://gronmayer.com/it/, but if you actually want alsa stuff (e.g. alsamixer, in my case) you can get it via chrootage...

ppafin 2008-07-25 04:26

Re: Alsatools or arecord implementation
 
Maemorec is not for me, I want recording automation from shell script. Therefore I am looking after arecord, rec or similar cmd line implementation.

What is chrootage?

Benson 2008-07-25 14:04

Re: Alsatools or arecord implementation
 
Using chroot. I meant to Debian, specifically, though I didn't say that.

You could also boot to Debian, if that's more your speed.

dblank 2008-07-25 20:09

Re: Alsatools or arecord implementation
 
Quote:

Originally Posted by ppafin (Post 206785)
Maemorec is not for me, I want recording automation from shell script. Therefore I am looking after arecord, rec or similar cmd line implementation.

Try gstreamer:
gst-launch-0.10 dsppcmsrc ! 'audio/x-raw-int,rate=8000,channels=1' ! wavenc ! filesink location=/path/to/file.wav

works for me.

ppafin 2008-07-29 04:17

Re: Alsatools or arecord implementation
 
Quote:

Originally Posted by dblank (Post 207025)
Try gstreamer:
gst-launch-0.10 dsppcmsrc ! 'audio/x-raw-int,rate=8000,channels=1' ! wavenc ! filesink location=/path/to/file.wav

Wow, I have to try that! Thanks. If this is a solution, next thing would of course be compression. Is there a way to have OGG compression for that WAV file after recording - any clues?

dblank 2008-07-30 01:34

Re: Alsatools or arecord implementation
 
Quote:

Originally Posted by ppafin (Post 208072)
Wow, I have to try that! Thanks. If this is a solution, next thing would of course be compression. Is there a way to have OGG compression for that WAV file after recording - any clues?

There's always a way!

I'd think worst case, you could point gstreamer to stdout, and use a normal unix pipe through oggenc / stdin, or something, then you're not writing the .wav to disk at all.

What about using a-Law? (alawenc in gstreamer)


All times are GMT. The time now is 05:33.

vBulletin® Version 3.8.8