Why doeas my voice capture midlet generates echo? please help
This midlet is for recording voice but it generates an echo of the voice while recording.. and i can't understand why. is there anyone who has any idea? i'd really appreciate any help.. it is required for my term project..
package com.apress.chapter8;
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
import javax.microedition.media.*;
import javax.microedition.media.control.RecordControl;
public class SaveCapturedAudioMIDlet extends MIDlet
implements CommandListener {
// the display items
private Display display = null;
private Alert alert = null;
private Command exitCommand = null;
// players and controls
private Player capturePlayer = null;
private RecordControl rControl = null;
private boolean error = false;
public SaveCapturedAudioMIDlet() {
// create the display
display = Display.getDisplay(this);
alert = new Alert("Message");
alert.setTimeout(Alert.FOREVER);
alert.setString("Capturing for 10 seconds. Say something intelligent!");
exitCommand = new Command("Exit", Command.EXIT, 1);
alert.addCommand(exitCommand);
alert.setCommandListener(this);
try {
// create the capture player
capturePlayer = Manager.createPlayer("capture://audio");
if (capturePlayer != null) {
// if created, realize it
capturePlayer.realize();
// and grab the RecordControl
rControl = (RecordControl)capturePlayer.getControl(
"javax.microedition.media.control.RecordControl");
// set the alert as the current item
display.setCurrent(alert);
// if it is null throw exception
if(rControl == null) throw new Exception("No RecordControl available");
// and set the destination for this captured data
rControl.setRecordLocation("file:///test.wav");
} else {
throw new Exception("Capture Audio Player is not available");
} catch(Exception e) {
error(e);
public void startApp() {
if(error) return;
try {
// first start the corresponding recording player
capturePlayer.start();
// and then start the RecordControl
rControl.startRecord();
// now record for 10 seconds
Thread.sleep(10000);
// stop recording after time is up
rControl.stopRecord();
// commit the recording
rControl.commit();
// stop the Player instance
capturePlayer.stop();
// and close it to release the microphone
capturePlayer.close();
// finally, create a Player instance to playback
// check your device documentation to find out the root.
// The following will work on devices that have the root
// specified as shown
// and start it
} catch(Exception e) {
error(e);
public void pauseApp() {
public void destroyApp(boolean unconditional) {
if(capturePlayer != null) capturePlayer.close();
public void commandAction(Command cmd, Displayable disp) {
if(cmd == exitCommand) {
destroyApp(true);
notifyDestroyed();
// general purpose error method, displays on screen as well to output
private void error(Exception e) {
alert.setString(e.getMessage());
alert.setTitle("Error");
display.setCurrent(alert);
e.printStackTrace();
error = true;
}
hi, i am trying to make a karaoke player with j2me and i want it to be able to record the user's voice while playing the background song.. how can i synchronize these two? what can i do to make it more efficient?
Similar Messages
-
when using my ipod touch to facetime with my ipad, why does the sound on the ipad echoes/repeats?
Bunyip6 wrote:
... so I am assuming it should not need to be reset/
It will not hurt to try a Reset... this is one of the First steps in Troubleshooting...
Reset ( No Data will be Lost )
Press and hold the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears. Release the Buttons.
http://support.apple.com/kb/ht1430 -
Why Why does the voice dictation only work some applications
Why does the voice command on my iPhone only work in certain applications
In the end, it's up to the app's developer to add or not those features. And also why there is a ratings and review system for each submission to the App Store. If you think an app should include support for some specific iOS technology (such as Voiceover), let the developer know.
And of course, there's another filter. Apple wants all iPhone apps to have a uniform operations look and feel. So they publish a guide to iOS Human Interface Guidelines, and expect developers to follow. They give some leeway, but if an app grossly violates them, it does not make it into the store. Here's a link to the Guidelines: https://developer.apple.com/library/ios/#documentation/UserExperience/Conceptual /MobileHIG/Introduction/Introduction.html -
Why does RoboHelp 8 crash when compiling merged HTML help after deleting a child project in TOC
Why does RoboHelp 8 crash when compiling merged HTML help after deleting a child project in TOC? I would be grateful for any assistance.
Here's the situation:
-- I recently upgraded from RoboHelp X5 to RoboHelp 8. I upgraded my projects to RoboHelp 8 projects.
-- One large help system I manage is built such that there is one master project and about 25 child projects. Each of these is its own item in the master project TOC.
-- In RoboHelp X5 I never had any trouble deleting these.
-- However now in RoboHelp 8, whenever I delete one (by opening TOC pod, right-clicking on item in question, and clicking Delete), and proceed to "Generate Primary Layout" (MS HTML Help), the generation/compilation process proceeds as far as "Generating full-text search data" and then the whole program crashes!
Am I doing something wrong? Is there a bug in the software? I have installed patches 8.0.1 and 8.0.2.
Once again, I thank you in advance for any pointers.
Matthew Keranen
Jamsa, FinlandThat does help - thanks a lot.
Wayne Kroger
State Street Corporation
SQA-Princeton
(609) 580-6264
mail to: [email protected]
The information contained in this email and any attachments have been classified as limited access and/or privileged State Street information/communication and is intended solely for the use of the named addressee(s). If you are not an intended recipient or a person responsible for delivery to an intended recipient, please notify the author and destroy this email. Any unauthorized copying, disclosure, retention or distribution of the material in this email is strictly forbidden. -
Hi,
After I Repair The Permissions On My Mac Pro, Then I Verify The Permissions And They Have To Be Repaired Again And Again.
Why Does This Happen All The Time.
Please Reply,
JamesAs long as the report ends up with 'Permissions repair complete' then, as far as permissions go, you are fine. You can ignore the various statements in the report:
Permissions you can ignore on 10.5 onwards:
http://support.apple.com/kb/TS1448
Using 'should be -rw-r--r-- , they are lrw-r--r--' as an example, you will see the that the permissions are not changed, but the | indicates a different location. This is because an update to Leopard onwards changed the location of a number of system components.
Poster rccharles has provided this description of what it all means:
drwxrwxrwx
d = directory
r = read
w = write
x = executeable program
drwxrwxrwx
| | |
| | all other users not in first two types
| |
| group
|
owner -
My 4th generation ipod touch is not turning off when i hold the wake button for few seconds the Voice Control Function Starts Automatically.Please help me to get out of this problem.
Sorry i mistakenly made this question. It was alright. No Problem At ALL
-
i purchase Lightroom 6 upgrade and during installation the product won't download using the serial number provided. It then asks for serial number of previous installation (lightroom5) but does not recognise it once inserted. Please help!
Yes, I have a TLP license, so which kind of upgrade should I buy?
I'm an Italian user and I would prefer to contact support by web chat but I can't find it in the website, please can you help me? Thank you, I'm desperate! -
I just got a new macbook and before i had to sync all my photos from my old mac onto a bunch of flash drives and most are on my phone. Ive successfully imported the flash drives and the photos on my camera roll to my new macbook iPhoto but not the other 1,000+. My computer isn't recognizing it maybe because its in 'mac events'. Does anyone know what to do? Please help it would be greatly appreciated especially since i don't have much room left on my iphone anymore. thank you.
You'll need third party software to get the images not on your camera roll. iExplorer is one such app, but there are others. Search on MacUpdate
-
Wi-Fi to your iPhone does not work with the knowledge that I have worked Restart for the same purpose network does not work What is the solution please help as soon as
Okay, the Wi-Fi doesn't work. Turn it on.
Beyond that, we cannot offer any other assistance as you've failed to provide useful details of the problem.
When responding, post in your native language as your English makes very little sense. -
When I connect to itunes it does not appear in the devices..please help me ........how...its URGENT...
Here:
iOS: Device not recognized in iTunes for Windows
or
iPhone, iPad, iPod touch: Device not recognized in iTunes for Mac OS X -
What should I do if annemen the Macbook Pro does not want a USB stick? Please Help me?, What should I do if annemen the Macbook Pro does not want a USB stick? Please Help me?
What are you talking about? What is annemen? Clarify.
-
I have a iPhone 3 g, I'm doing update and give me error 1015 Please help and thank you
You can not get help here per the terms of service. Discussing jailbroken devices is forbidden.
The ONLY thing we can advise you to do is try putting the phone in DFU mode (google for instructions) and restore it.
Beyond that, you're on your own. -
I replaced the original hdd in my early 2008 iMac. I can't move my files that were backed up with Time Machine to my new hdd using Migration Assistant. When prompted to select the "from drive", the ext. hhd does not appears as a selection. Please help!!
I'd recommend staring over, Pondini has created an excellent guide on how to use Setup Assistant. I'd recommend begin reading Pondini Setup Assistant tips where he talks about "Second Chance." Assuming your Time Machine backup is sound the restore should be very smooth.
Roger -
Might my computer have been hacked? It clicks like I am doing something and I am Not? Please Help someone???
Hi, try disconnecting the KB & Mouse, or remove batteries if they're Wifi, does it still click?
Might be a stuck or bad key or button. -
I used to have mobileme which never really worked properly, and now i would like to use Icloud which work between my Iphone and Ipad, however when i synch with my macbookpro, it does not synchronize properly. Can u please help me?
Thanks King_Penguin for taking time to read and reply.
I just purchased this movie on Thursday, May 15, so just a few days ago. I have never had any trouble whatsoever since I have been in Vietnam. I have downloaded several movies and even music and they have all synced to my respected Apple products except for this purchase.
Sorry, I don't quite understand what you mean by studios and different versions. Could you please explain?
I checked my purchased list in my purchase history under my account and there are no hidden items.
Maybe you are looking for
-
SoundFonts - small problem. Please help me because this is very important to
Hello everyone. I have just upgraded from a SoundBlaster Audigy, to a SoundBlaster X-Fi Music edition. I have a collection of soundfonts which I used to use on my Audigy. They worked fine. Now that I'm using the X-Fi, they all work well, apart from o
-
How do you play videos from iPhone that are in iPhoto they show up as pictures not videos
made a video on iphone and synced to iphoto on imac. I can view the video on my mac but they do not sync to my ipad or to apple tv. do the videos need to be converted? should be seemless if the video is recorded on an apple device.
-
Update equipment with serial number
Hi all. Some how the BAPI_EQUI_CHANGE doesn't update the serial number of an existing equipment. DATA_SPECIFIC-SERIALNO is filled with the new number. DATA_SPECIFICX-SERIALNO = 'X'. and I'm activating t he BAPI_TRANSACTION_COMMIT after that. I get it
-
Just got a new printer/copier/scanner, etc.... All my printing from my desktop files or the internet come out correctly one sided pages. As soon as I go into my service that uses Adobe Acrobat the pages come out two sided, in other words if i tr
-
My contacts in my iphone disappear
I have Iphone 4s and all my contcts are gone, how can I recover them?