You Are Here:

Community: Developer Discussion Boards

#1 Old Smile recording&playing audio - 2006-07-06, 05:47

Join Date: Mar 2006
Posts: 5
alexjiang098
Offline
Registered User
i use the sample code, maked an recording program. Use AMR codec

try {
// Create a DataSource that captures live audio.
Player p = Manager.createPlayer("capture://audio");
p.realize();
// Get the RecordControl, set the record location, and
// start the Player and record for 5 seconds.
RecordControl rc = (RecordControl)p.getControl("RecordControl");
rc.setRecordLocation("file:/tmp/audio.wav");
rc.startRecord();
p.start();
Thread.currentThread().sleep(5000);
p.stop();
rc.stopRecord();
rc.commit();
} catch (IOException ioe) {
} catch (MediaException me) {
} catch (InterruptedException e) { }

it tested on my 3250, but i want to let it can playing audio while recording process. Just like at emluator, please help me, thanks

alexjiang098@hotmail.com
Reply With Quote

#2 Old Re: recording&playing audio - 2006-07-06, 13:34

Join Date: Dec 2005
Posts: 1,696
Location: Europe/Poland/Warsaw
peterblazejewicz
Offline
Super Contributor
hi alex,

what do you mean by playing back audio whilst recording is in process?
you are capturing sound using device mic here,
regards,
Peter
Reply With Quote

#3 Old Smile Re: recording&playing audio - 2006-07-07, 05:13

Join Date: Mar 2006
Posts: 5
alexjiang098
Offline
Registered User
hi peter

yes, i want to capture or record audio to a file or streaming,so i can play it at same time.
Reply With Quote

#4 Old Question Re: recording&playing audio - 2006-08-04, 07:35

Join Date: Aug 2006
Posts: 1
supratik
Offline
Registered User
Hi Peter,

If I could add a query of mine on to this..I'm recording audio into a UIQ device which supports amr format, how do I convert it into a wav format and save it on the device?
And how do I limit the recording time to say 5secs?

Any help on this will be much appreciated.

Regards,
Supratik
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
Recording an audio stream using the Series 60 emulator rastapasta Symbian Media (Graphics & Sounds) 4 2007-04-23 12:46
Audio Playback Notification JamesLockett Symbian Media (Graphics & Sounds) 1 2006-06-29 08:36
Half Duplex Audio Streaming subhrajyotisaha Symbian Media (Graphics & Sounds) 0 2006-05-25 05:39
sonify.org to focus on mobile device audio hp3 Mobile Java Media (Graphics & Sounds) 0 2004-10-16 17:39
Converting audio frames between formats Edison Thomaz Symbian Tools & SDKs 0 2004-10-05 22:55

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 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d18645X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZentertainmentQ qfnZtopicQUqfnTopicZj2meQ qfnZtopicQUqfnTopicZjavaQ qfnZtopicQUqfnTopicZmediaQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ