Android :: Bad Sound Quality When Recording / Playing Audio Files

Oct 16, 2010

Hey, I have a problem with android programing when I try to record and then play the file that was just recored. I can both record and play the sound but the quality stinks. Its not just bad is really hard to listen to and sound abit like its a computer generated voice. I use the andriod SDK-emulator. The code that sets up the recording looks like this;

MediaRecorder recorder = new MediaRecorder();
recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
recorder.setOutputFormat(MediaRecorder.OutputFormat.RAW_AMR);
recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
recorder.setOutputFile(path);
recorder.prepare();
recorder.start();

And the code playing the file later looks like this;
MediaPlayer mp = new MediaPlayer(); mp.reset();
mp.setDataSource(path); mp.prepare(); mp.start();
I don't know what part that makes the audio file sound really bad or if its just the emulator that makes it bad and that it would work on a real phone.

Android :: Bad Sound Quality when Recording / Playing Audio Files


HTC Incredible :: Audio Recording Quality Very Low

May 14, 2010

Voice recorder and all other 3rd party apps record audio like absolute garbage. I am very disappointed. Such an awesome camera and camcorder but it sounds like I am speaking through a damn kazoo. I am dying to know if it's firmware or just cheap hardware, not to sound bitter but the iphone has a SUPER high quality mic being that Incredible just came out I was very surprised at the low quality of the audio recording

View 12 Replies View Related

HTC Desire :: Sound Quality When Recording Video

Nov 15, 2010

Have you ever tryied to make a video when you're at a concert? (I'm not speaking about a classical concert!)
I did and the result was horrible for the sound part. Is there a trick when I want a good quality audio? just keeping the Phone in the air is not enough

View 2 Replies View Related

Android : Need To Record Audio - Video Recording Files In 3gp / Mp4 Format

Jul 19, 2010

I need to record audio and video files in 3gp/mp4 format at the same file and same time.

When i run my application file is created with videofile.3gp but video does not record in sd card on the emulator.please let me clear one thing does video records on the emulator? if i run this code on android supported device do these error clear.
Please help me. I am new to this topic.please find the code and errors below.

package com.video;

* @copy Rights
* audio.java
* sample code for Eminosoft Developerworks Article
* Android development Team
* www.eminosoft.cm

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import android.app.Activity;
import android.content.ContentResolver;
import android.content.ContentValues;
import android.content.Context;
import android.content.Intent;
import android.media.MediaPlayer;
import android.media.MediaRecorder;
import android.net.Uri;
import android.os.Bundle;
import android.os.Environment;
import android.provider.MediaStore;
import android.provider.Settings;
import android.util.Log;
import android.view.View;
import android.widget.Button;

public class video extends Activity {

public MediaRecorder mrec = null;
private Button startRecording = null;
private Button stopRecording = null;
private static final String TAG = "SoundRecordingDemo";
File audiofile;
File video;
private MediaPlayer mMediaPlayer;}

View 2 Replies View Related

Android :: How To Improve Android Audio Recording Quality?

Sep 17, 2009

Is there any possibility to make audio recording with higher quality? And how can I read information that User is saying something? In Audio Recording application you can see such indicator (I don't know the right name for it.

View 2 Replies View Related

Android :: Playing Short Audio Clip Has Tick Sound

Dec 14, 2009

I'm using the SoundPool to play a series of small audio clips and am having issues with the audio when it starts. I have the audio attached to a button press. When I press the button mulitple times the tick persists. I was wondering if this was the audio file itself or is there something I need to do differently with the SoundPool other than play simply play the clip. These are .ogg files I created using Audacity. When I play them in my dekstop media player, they sound fine.

View 2 Replies View Related

General :: Audio Echoing - Playing Sound Twice?

Jan 22, 2013

I have a flash file that I open through smartswf and suddenly the audio is now echoing, like its playing the sound twice. It use to work OK on this ROM (cyanogenmod 10) with this app. It does the same with other flash files also. I have tried other apps and does the same thing, and tried reinstalling flash and rolling back to earlier versions with the same result.

View 1 Replies View Related

Android :: Playing Multiple Audio Files

Oct 1, 2010

I think I should know this, but my mind has gone blank. I'm making an app that has a few hundred small sound files and I want it to play a certain file dependent on a String I pass to the function. Where I hit the brick wall is getting the resId of the sound file.

View 1 Replies View Related

Media :: Recorded Video Audio Quality / Sound Unclear

May 24, 2009

As per title, recorded video sound is very bad on my Magic - the sound is very unclear, with a lot of disturbances etc is this normal or did I get a faulty phone.

View 1 Replies View Related

Motorola Droid :: Audio / Sound Quality Through Headphone Jack

May 16, 2010

Can anyone please comment on the audio quality through the 3.5mm headphone jack on the Droid? I will be using Skullcandy Titans which are in-ear earphones with noise isolation. I am hoping it is at least as good as that through my iPod nano 4th gen. I know that isn't an amazing benchmark but I'll be satisfied if it sounds at least that good with high-quality audio stored on the SD card. Speaking of SD card, do they still pack in the 16GB MicroSD card with Droids these days?

View 8 Replies View Related

Android : Playing Bigger Size Audio Wav Sound File Produces Crash

Mar 25, 2010

I am trying to play the bigger size audio wav file(which is >20 mb) using the following code(AudioTrack) on my Android 1.6 HTC device which basically has less memory. But i found device crash as soon as it executes reading, writing and play. But the same code works fine and plays the lesser size audio wav files(10kb, 20 kb files etc) very well.

P.S: I should play PCM(.wav) buffer sound, the reason behind why i use AudioTrack here. Though my device has lesser memory, how would i read bigger audio files bytes by bytes and play the sound to avoid crashing due to memory constraints. Code...

Could someone guide me please to play the AudioTrack code for bigger size wav files?

View 1 Replies View Related

Android :: Support Receiver Mode For Playing Audio Files?

Nov 16, 2010

I have a requirement where I need to play an audio file in receiver mode(earpiece).I am not sure whether higher versions of Android SDK supports this receiver mode.I went through some links which said about 1.5/1.6 having changes in these Audio APIs and hence not sure.

View 1 Replies View Related

Android : Handle Runtime Exception On Playing Audio Files?

Mar 15, 2010

I have a button that plays an audio file on its click listener. If the button is clicked again and again while the audio file is being played then the app crashes. What's the solution?

Here is some code for reference...

View 1 Replies View Related

HTC EVO 4G : Audio From Mp4 Video Files Not Playing

Nov 23, 2010

Ok so I see a lot of people saying they are having problems with video playback when importing from their SD Card but Im having the opposite problem.

I just switched over from the Metro PCS Samsung Code which is a Windows 6 phone to EVO and I put my SD Card in my EVO. All my music files play and the mp4 video files play but the audio from the mp4 video files dont. Does anyone have advice on how to fix this?

View 9 Replies View Related

HTC EVO 4G :: What Program To Be Used For Playing Different Sound Files?

Oct 14, 2010

What program do you use to play these (MP4, WMV, MOV) files on your Evo? I can't they them to play.

View 3 Replies View Related

Android :: Recording Audio With 1.5 SDK

Apr 16, 2009

One known limitation of SDK 1.1 was that audio can be recorded only to a File and not to a network stream. Is this still an issue with 1.5 SDK?

View 4 Replies View Related

KitKat 4.4 :: Changing Video Recording Quality?

Jan 17, 2014

Is it possible to change the video resolution when recording on 4.4? I'm using a Moto X if that matters. I'd like to email a video but no matter how I trim the file its too large.

View 12 Replies View Related

Android :: Create Audio Recording?

Feb 24, 2009

I'd like to create an audio recording in Android. (Actually, I just want access to the mic without recording it, but it seems that's not supported so I'll have to create a recording and tail the file). I'm having a very hard time getting started. Mostly I'm just hoping that someone from Google reads this and will update the documentation because the example won't compile - it looks like it's from some previous version of the SDK because there's an error in every other line. I made my best guess as to what the usage should be, but I keep getting a number of different exceptions. One question I had is whether I can just specify an arbitrary path to the MediaRecorder to start recording or whether I have to create an entry in the content database. The JavaDoc for MediaRecorder.setOutputFile isn't clear on what it's expecting.

View 19 Replies View Related

Motorola Droid : Higher Quality Video Recording

Jan 27, 2010

I did not see any other open threads on this; there is a very simple system edit you can perform to record video @ 8 mbps, up from the default 3 mbps. This is from a reliable source. Works very well. Root access is required and, of course, be sure to backup everything before you try anything.

The Droid compresses recorded videos (which results in blurriness and some blocking), so today I started poking around the system files and found this line in build.prop:

Code:
ro.media.enc.hprof.vid.bps=3000000

Which basically means video is compressed at a fixed rate of 3Mbps. I didn't think it would work, but I went ahead and changed the value to 8Mbps:

Code:
ro.media.enc.hprof.vid.bps=8000000

Rebooted and shot a test video. Lo and behold, the video is now recorded at 8mbps, resulting in a MUCH crisper image!

To apply the fix, you need root access. Simply edit that line in your /system/build.prop file. You can pull the file from adb, edit it, and push it back, or mount the /system partition as read-write and edit the file with Astro.

Edit: For the more adventurous users, here's another tip: I've been tinkering with the rest of the video settings in build.prop and comparing the resulting videos. So far, the best setting I have found is actually using MPEG-4 SP instead of H.264, 8 Mbps bitrate, and 30 frames per second. The phone chokes at 30 fps in H.264 mode, but does a pretty good job with MPEG-4 SP, and at that bitrate, the image quality is still very good regardless of the codec. The pertinent settings are "ro.media.enc.hprof.codec.vid" for the codec ("h264" for H.264 and "m4v" for MPEG-4 SP) and "ro.media.enc.hprof.vid.fps" (you can choose anything from 1 to 30)

View 28 Replies View Related

Motorola :: Android Player To Recognize Audio Tags On Lossless Audio Files?

May 23, 2010

Does anyone know if there is a way for either meridian or the regular android player to recognize audio tags on lossless audio files?

View 1 Replies View Related

Android :: Audio Playback Error While Recording

Oct 16, 2009

I have a Java application where in I am trying to read Audio samples from the mic into a buffer and then write the samples back to speaker from a buffer for playing. I have used AudioRecord and AudioTrack interfaces. Below are my configurations for the Record and Track object creation. AudioTrack(0, 8000, 2, 2, playBufSize, 1); AudioRecord(1, 8000, 2, 2, recBufSize); Using AudioRecord interface I am able to read the samples from mic continiously (8000 sampling rate and 640 samples per read). In the similar way I am also able to write some pcm samples to the speaker from a buffer and play it continuously using the AudioTrack interface (without record). But when I try to do both record and play simultaneously I am able to only record audio from mic but I am not able to play any samples to speaker. I am getting this error " ------- attemp playback while recording, cheat it! ----- " in the log cat.

I have given the following permissions "android.permission.RECORD_AUDIO" and "android.permission.MODIFY_AUDIO_SETTINGS" in the Manifest file. I didn't find any special permission to play the audio. Is there anything else that I need to enable?

View 3 Replies View Related

Android :: Audio Recording From Bluetooth Headset?

Apr 9, 2009

I am developing a recorder application It works fine with Microphone. I want to record from Bluetooth headset. I set it like

my_Aud_Mgr.setMicrophoneMute(true);
//AudioManager my_Aud_Mgr;
my_Aud_Mgr.setBluetoothScoOn(true);

But it cant record from Bluetooth device. How to record from Bluetooth device.

View 2 Replies View Related

Android :: Audio Recording With High Volume

Sep 7, 2009

I will describe briefly my trouble with audio recording.

So, I am doing audio recording using MediaRecorder, but unfortunately when I playback the recorded audio, I have media with a very low volume. I don't here anything (almost anything).

Is there any possibility to setup recording volume?

View 4 Replies View Related

Android :: Recording Direct System Audio?

Nov 9, 2009

Im trying to record audio directly from the system. Using the standard API, you can only record from the MIC or phonecalls, ala: MediaRecorder.Some ways I've tried is to read from /dev/audio and /dev/eac from my app, but I think the sandbox of the app is preventing this.Im thinking about using the NDK, but Im not sure if that would overcome the sandbox aspect ? Ideally, there is some solution outthere to access the audio sub- system directly. Whether it be directly to alsa, to the AudioFlinger, to /dev/eac

View 16 Replies View Related

Android :: Recording Sound - Then Using - Saving It?

Apr 25, 2010

I want to add a feature into my app where you can record sound and then use it within the app (MediaPlayer)

How can I do this?

-First, how do I record sound?
-Second, how do I get it into a Mediaplayer?
-Does it have to be saved? or can it go from being recorded -> into app straight away...

View 2 Replies View Related

Android :: Sound Recording App For Phone?

Nov 23, 2010

I would like to record a business meeting a few days from now onto my phone.
Would be handy I think, so the need to type everything down doesn't exist.

What app do you recommend?

View 3 Replies View Related

Android :: Write App To Continuous Audio Recording In Memory

Jan 6, 2010

I'm trying to write an App that continuously record audio in memory (in a circular buffer).

Could anyone point me towards a piece of code (perhaps in the kernel) that shows how to best to this?

View 3 Replies View Related

General :: Extracting Audio From Android Game Or Recording It Somehow Possible?

Jul 7, 2013

I just finished Final fantasy 4 (android), and I wanted to have the remastered soundtracks from it. But on the internet the remastered version is not available yet, I could only find the old soundtracks.

I tried screencast recorder, z screen recorder etc(to record video+audio then extract audio), but they all record audio from the microphone, so that didn't work out. is there a way to extract the audio from the game somehow, or some on screen audio recorder for android devices?

View 4 Replies View Related

Android :: Combine Only One Audio File From Two Audio Files

Oct 2, 2010

I want combine two audio files. (A audio file + B audio file = AB audio file)So, my search result is:

1. useing an AudioTrack.

2. decode PCM from audio file.

3. combine PCM.

This is currect? It there another way?

View 1 Replies View Related

Android :: Determining Audio Format Of Audio Files

May 8, 2010

Is there a way to determine the audio format of an audio file in Android? On normal java I do it like this:

File file= new File(...);
AudioInputStream stream = AudioSystem.getAudioInputStream(file);
AudioFormat format= stream.getFormat();

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved