You Are Here:

Community: Developer Discussion Boards

#1 Old Audio Capture - 2008-09-11, 19:12

Join Date: Sep 2008
Posts: 9
amauri
Offline
Registered User
Hi, what's the default parameters (rate, nBits, encoding) in audio capture? I have used rate = 8000 Hz, PCM and 8 bits. To transform the byte stream (ByteArrayOutputStream.toByteArray()) into a integer stream i'm using the conventional cast (audioData[i] = (int) output[i]), but signal are not leaving anything similar to a speech signal. I didn't test in Nokia emulator yet. Anybody can help me?
Reply With Quote

#2 Old Re: Audio Capture - 2008-09-12, 17:37

Join Date: Jul 2003
Posts: 88
morash
Offline
Regular Contributor
if you have not specifying any parameters in capture://audio then phone will record in whatever format is default (i am not sure) but you can use
getContentType which returns the content type of the recorded media.

All content types are defined in the Java Docs.
http://www.forum.nokia.com/document/...l#content-type

As for what rates/content types are supported refer to Forum Nokia JavaME developers library and check the implementation notes.

Moreover check this Excel document for Multimedia Support in Nokia devices.
http://www.forum.nokia.com/info/sw.n..._0_en.xls.html

I did not understand the second part of your query if you can re phrase it I will have another look.

Try using AMR as your encoder, it gives very good performance in a noisy environment specially when recording speech.
Reply With Quote

#3 Old Re: Audio Capture - 2008-09-14, 04:37

Join Date: Sep 2008
Posts: 9
amauri
Offline
Registered User
Hi morash,

I'm building a system of speech recognition in Nokia phones S60 with JME (using JSR 135), but by now I have tested this system in PC using Java toolkit. So, i'm trying to calculate the LPC coefficients of the speech signal, but this signal is very strange: Even when i don't speak anything in mic, the signal has high amplitude (128 or -128). Looking at better the signal, it doesn't seem to be white noise. Thanks a lot for your help, i'm going to search the AMR enconding.
Reply With Quote

#4 Old Re: Audio Capture - 2008-09-15, 09:43

Join Date: Sep 2007
Posts: 874
honest_success's Avatar
honest_success
Offline
Forum Nokia Champion
But yet J2ME does not provide that kind of API. It is possible if you can try to build it.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Audio Capture, last 3 seconds of audio chopped off aztec30 Mobile Java Media (Graphics & Sounds) 6 2006-09-15 19:28
Audio Capture aztec30 Mobile Java General 1 2006-09-15 03:16
capture audio on S40 6101 lreyero Mobile Java Media (Graphics & Sounds) 2 2006-04-04 19:09
nokia 6600 audio capture problems yuxl-bupt Mobile Java Media (Graphics & Sounds) 6 2005-12-21 20:58
Audio Capture in Java larrydb Mobile Java Media (Graphics & Sounds) 4 2003-08-25 16:13

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia