problems with usb mic on linux - mono recording?

How to get clean recordings or solve audio problems.

problems with usb mic on linux - mono recording?

Postby madmatt » Mon Jan 17, 2011 7:10 am

hi,

i'm trying to use javasonics on a linux client (in order to test a javasonics installation which my company develops). i had a hard time to get a microphone to work, right now i'm using a logitech usb microphone (Asahi Kasei Microsystems Co., Ltd AK5370 I/F A/D Converter). it works with java (java-6-sun-1.6.0.22 on debian 32 bit) after modifying "sound.properties", but it can only record in mono as far as i can understand. therefore i seem to be unable to use javasonics.

what does work is http://www.javasonics.com/support/recor ... rates.html.
also i can use JavaSoundDemo/JavaSoundDemo.jar from Sun/Oracle when i select "mono" for recording.
http://www.javasonics.com/support/show_devices.html gives
Input ----------
YES for format PCM_SIGNED 8000.0 Hz, 16 bit, mono, 2 bytes/frame, big-endian
YES for format PCM_SIGNED 8000.0 Hz, 16 bit, mono, 2 bytes/frame, little-endian
YES for format PCM_SIGNED 11025.0 Hz, 16 bit, mono, 2 bytes/frame, big-endian
YES for format PCM_SIGNED 11025.0 Hz, 16 bit, mono, 2 bytes/frame, little-endian
...

so is there any way i can use a javasonics applet with my usb mic on linux?

thx
matthias
madmatt
 
Posts: 3
Joined: Mon Jan 17, 2011 6:46 am

Re: problems with usb mic on linux - mono recording?

Postby philburk » Tue Jan 18, 2011 10:26 am

Hello Matthias,

I want to try to solve this problem. ListenUp records in mono so there should not be a problem with that. If JavaSound can record from that mic then ListenUp should be able to use it as well. ListenUp just uses JavaSound.

> it works with java (java-6-sun-1.6.0.22 on debian 32 bit) after modifying "sound.properties"

What did you have to change in "sound.properties"?

How is it failing? Does it:
- report an error when opening the audio device?
- record but has pops and glitches?
- record silence?

Check to make sure no other application is using the mic at the same time.

If you get an error message, please post the error message here.

Thanks,
Phil
philburk
Site Admin
 
Posts: 149
Joined: Wed Mar 11, 2009 8:49 am

Re: problems with usb mic on linux - mono recording?

Postby madmatt » Fri Jan 21, 2011 9:27 am

hi phil,

thx for reply.

> How is it failing?

It seems to record silence. No error message or anything.

I put the following in sound.properties:

javax.sound.sampled.Port=#Port default [hw:1]
javax.sound.sampled.SourceDataLine=#default [plughw:1,0]
javax.sound.sampled.TargetDataLine=#default [plughw:1,0]

thx,
matthias
madmatt
 
Posts: 3
Joined: Mon Jan 17, 2011 6:46 am

Re: problems with usb mic on linux - mono recording?

Postby philburk » Fri Jan 21, 2011 10:39 am

I am trying to test this on a CentOS 5.2 64 bit Linux. I cannot get Java to run as a plugin in Firefox. So I cannot verify this problem.

Offhand I do not see anything wrong. Are you running ListenUp in mono mode? Stereo is not supported.
philburk
Site Admin
 
Posts: 149
Joined: Wed Mar 11, 2009 8:49 am

Re: problems with usb mic on linux - mono recording?

Postby madmatt » Wed Jan 26, 2011 8:32 am

i can't use http://www.javasonics.com/demos/freemod ... _free.html, -> records only silence. i don't know if this uses mono or stereo. a solution is still very much appreciated

thx
matthias
madmatt
 
Posts: 3
Joined: Mon Jan 17, 2011 6:46 am

Re: problems with usb mic on linux - mono recording?

Postby philburk » Wed Jan 26, 2011 12:36 pm

All our ListenUp demos use mono. We do not support stereo.

> also i can use JavaSoundDemo/JavaSoundDemo.jar from Sun/Oracle when i select "mono" for recording.

Then JavaSound is supporting that mic. The problemt must be in the way we are opening the audio device. I will compare our opening sequence with theirs.

Thanks,
Phil
philburk
Site Admin
 
Posts: 149
Joined: Wed Mar 11, 2009 8:49 am


Return to Audio

Who is online

Users browsing this forum: No registered users and 1 guest

cron