Author Topic: speex to me!  (Read 3862 times)

havoc

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
    • http://www.galacticslacker.com/
speex to me!
« on: March 14, 2004, 01:15:53 am »
I\'m almost afraid to post this here, but....

I would like to have the speex decoder and encoder on my Z.  What would REALLY be nice would be a voice recorder hack that would record directly to speex format.

I am only a lowly Perl hack.

Anybody got ideas on what it would take to bring Speex to the Z?  Is it even worth the trouble?

for those unfamiliar with Speex:
http://www.speex.org/
\"Speex is an Open Source/Free Software  patent-free audio compression format designed for speech.\"

I\'m running a 5600.  I honestly don\'t know if the CPU could pull that load, or if the codec would just require too much memory.

thanks.

Filer

  • Newbie
  • *
  • Posts: 5
    • View Profile
    • http://
speex to me!
« Reply #1 on: March 14, 2004, 03:14:56 am »
I have done some Speex development in the past. I was actually using the Java bindings as to build a Java application. I do not think that these bindings would run on the Zaurus. I currently do not own a Zaurus but from reading the specifications I do feel the Zaurus is up to the task using the C code. I am very interested in Speex and wish to continue developing projects using it. I will be ordering a Zaurus SL-6000 when it comes available and will hopefully start development on this project shortly thereafter. I will keep everyone posted on my progress.

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
speex to me!
« Reply #2 on: March 14, 2004, 07:56:33 am »
I\'ve got it compiling, but it looks like it\'ll try linking against my x86 version of libogg (which isn\'t ideal ;-)), so it\'ll crash eventually (the build process that is).

I\'ll try to find the libogg source and let you know how it goes.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
speex to me!
« Reply #3 on: March 14, 2004, 08:37:47 am »
Crappy makefile seems to have /usr/lib hardcoded into it infront of anything I specify.

I can\'t be bothered at the moment but I\'ll think about altering it during the week and trying again. For those with more will power the source compiles with no issues (other than wanting libogg and its headers - there is also the option of not using libogg, what do you want?) bar this -L thing.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

havoc

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
    • http://www.galacticslacker.com/
speex to me!
« Reply #4 on: March 14, 2004, 06:20:53 pm »
Well, I\'m certainly glad I asked!

Since I don\'t have any money, is there anything ELSE I could do to help with development?

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
speex to me!
« Reply #5 on: March 15, 2004, 04:56:12 am »
There is the option to not use libogg. Any ideas as to whether this will work (ie. what does it use instead and how much slower will it be)?


Simon
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

bender647

  • Newbie
  • *
  • Posts: 15
    • View Profile
    • http://
speex to me!
« Reply #6 on: April 07, 2004, 11:35:32 am »
I\'ve been interested in the Ogg-Speex format lately as I\'ve been
grabbing a lot of radio shows off the net.

I\'m not a software developer, but compiling the command-
line utilities seemed trivial.  Give them a test:
http://home.comcast.net/~bender647/speex/

What would be really useful to me would be a media player plug-in
for this codec.  I\'m sure its possible based on the Ogg-Vorbis plug-in
that\'s out there (speex uses the Ogg container too), but my C++
and Qt knowledge is nil.

havoc

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
    • http://www.galacticslacker.com/
speex to me!
« Reply #7 on: April 08, 2004, 03:54:32 pm »
I downloaded them.  I haven\'t installed them yet, but I seem to have caused my poor Z to have conniptions....  I\'ll post again if I learn something interesting.

havoc

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
    • http://www.galacticslacker.com/
speex to me!
« Reply #8 on: April 08, 2004, 04:21:31 pm »
bender647, I took a 46 second \"mostly voice\" recording (lots of extraneous background noises), and the speexenc you compiled on it.  The input file was 1.9 MB, the output file a mere 217 KB.  I was able to play the audio back through the Z\'s speaker with speexdec without a problem.  Of course, the only interface is via the terminal (I did this while\'s ssh\'d into the Z from my notebook).

Great work!

bender647

  • Newbie
  • *
  • Posts: 15
    • View Profile
    • http://
speex to me!
« Reply #9 on: April 08, 2004, 07:23:20 pm »
How did you pipe the output to the
Zaurus speaker?
This could be useful to me, although
pausing and seeking in the stream would
be better.

havoc

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
    • http://www.galacticslacker.com/
speex to me!
« Reply #10 on: April 08, 2004, 11:29:16 pm »
/usr/local/bin/speexdec filename.spx

speexdec defaults output to the audio device.

pausing, seeking ... can\'t help... wish I could.

I\'m trying to figure out how I can capture audio directly from the mic and pipe it through speexenc, now.