Android :: Mic Audio Capture Too Static

Jun 3, 2009

As a first step toward a speech recognition project, we wrote a simple voice recording application based on the information in this thread:
http://groups.google.com/group/android-developers/browse_thread/threa...

It is working; however, the audio is extremely poor too static for our needs. As a comparison, we did a similar audio file captured with audacity on a PC and it was much better. Has anyone been able to record high quality audio with the android dev phone? According to the documentation of MediaRecorder, there is only one audio encoder "AMR (Narrowband) audio codec" and three output formats--3gpp, mpeg, and raw AMR:
http://developer.android.com/reference/android/media/MediaRecorder.html

According to wikipedia, AMR encoding is only 8hz. Is there a better option available perhaps a lower-level API compared to MediaRecorder? We are testing on Windows XP, with a Logitec USB microphone, eclipse ganymede, and we are using all the defaults for an android 1.5 app (no emulator command-line options. We defined the SD card in AVD manager).

Android :: Mic Audio Capture too Static


Android :: How To Capture Audio Data From Mic Into A Buffer?

Sep 24, 2009

I am working on a packet switched network. I want to capture the audio data from mic into a buffer at a desired sample rate.How can I capture the audio data from mic into a buffer instead of a file? Also how can I control the audio capture rate as per the desired sample rate?

View 2 Replies View Related

Android :: Audio Capture With Signal Level Indicator

Nov 6, 2009

I want to capture audio and along with the audio I also want to show the live signal strength of the audio on the screen.

Is there ant api that give me information regarding the the loudness level (or at least some information indicating whether the user is silent or speaking something) of the audio or should I implement my own signal processing using the captured buffers and determine the level.

View 2 Replies View Related

Android :: Way To Configure Sampling Rate / Period While Audio Capture

Sep 23, 2009

I am working on a VOIP based application. I need to capture the audio from mic at 8000 hz sampling rate, get the 20msec packets, encode and send the packets over the network.

Can somebody tell me how to configure the mic for the desired sampling rate?

View 3 Replies View Related

HTC Legend :: Speaker Producing Static While Playing Audio

Apr 9, 2010

Just purchased the Legend and there appears to be an issue with the speaker. I want to identify if it is just my phone or if other users are experiencing this problem. The speaker on the phone is producing static whenever audio is being played. It can be heard clearly when doing the following: Click on the volume button on the side (either up or down) and place the phone to your ear. Open the phone application, click on a number and place the phone to your ear. The static lasts for 5 or 6 seconds and then dies off. Would appreciate if anybody with the phone coud check this out as I'm unsure if a return is required.

View 5 Replies View Related

Android :: Microphone Audio Capture With Emulator Is Of Very Poor Quality / Make It High?

Jun 2, 2009

As a first step toward a speech recognition project, we wrote a simple voice recording application based on the information in this thread: http://groups.google.com/group/android-developers/browse_thread/threa...

It is working; however, the audio is extremely poor -- too staticy for our needs code...

As a comparison, here is a similar audio file captured with audacity on a PC: http://juzzam.org:9090/myAudioFile_onPC.mp3

Has anyone been able to record high quality audio with the emulator? If not, is it any better on the android dev phone?

According to the documentation of MediaRecorder, there is only one audio encoder "AMR (Narrowband) audio codec" and three output formats--3gpp, mpeg, and raw AMR: http://developer.android.com/reference/android/media/MediaRecorder.html

Here is the Activity source: http://juzzam.org:9090/RecordMicrophone.java.txt

We are testing on Windows XP, with a Logitec USB microphone, eclipse ganymede, and we are using all the defaults for an android 1.5 app (no emulator command-line options.. we defined the sdcard in the avd manager).

View 2 Replies View Related

Android :: Call Non Static Method In Static SQLiteDatabase Class

Mar 30, 2010

i want to display a msg to the user (msg box or Toast) when exception happend in a static SQLite Database class that i use. the problem is that i cant call a non static method in a static class , how can i handle this. this is the class

private static SQLiteDatabase getDatabase(Context aContext) {

and i want to add something like this in the class when exception happen but context generates the problem of reference to non static in static class.

Context context = getApplicationContext();
CharSequence text = "Hello toast!";
int duration = Toast.LENGTH_SHORT;
Toast toast = Toast.makeText(context, text, duration);
toast.show();

View 1 Replies View Related

Android :: Cannot Make Static Reference To Anon-static Method

Feb 7, 2010

I'm having some issues with the old "Cannot make a static reference to a non-static method" error in my Android program. I am creating a sand falling game (similar to the Powder Game) and I created a class called Control to create a Control Bar at the bottom of the screen with a slider for brush size (that works fine) and a button to pop up a Dialog to allow users to pick the selected element. However, when I call DemoActivity.showDialog(2) from my code, it gives the static reference to non-static error (DemoActivity is the main activity of my application). I also tried changing it to just Activity.showDialog(2), but I got exactly the same error!

Here's my code:

CODE:................

I fixed it by adding the following to my Control.java code:

CODE:..........

And then calling control.setActivity(this); from my onResume section of DemoActivity.java!

View 2 Replies View Related

Android :: Non-static Method Cannot Be Referenced From A Static Context

May 26, 2010

I am modifying the source code here: http://thinkandroid.wordpress.com/2009/12/30/getting-response-body-of-httpresponse/

I get this error:

code:.............

This error is line 13 on the second box.

View 5 Replies View Related

Replace Single Row View In Custom STATIC ListView - STATIC Data

Mar 18, 2013

I have Eclipse Juno and I'm working on an app with that.

The main activity will have a scrollable menu that takes you to all the other activities.

So the general structure/outline right now:[HIGH]Relative Layout ImageView (header logo type thing) ListView (the actual scrollable menu)[/HIGH]Here's the problem though... I can't find any simple list tutorials. I can easily make a single line list work but I need to make a two line list and one that is static, not dynamic and no examples are out there for that. It's like if you want to make a 2 line list, you can only learn how to do it in the most code-heavy ridiculous way possible.

Essentially what I am looking for with the list is this: Item one: Centred, bold, non selectable title (Resources)

- Item two-??: two line list items, click-able to a new activity, title of the section on first line, description on the second line.

- Item ??: Centred, bold, non selectable title (Tools)

- Item ??-??: two line list items, click-able to a new activity, title of the section on first line, description on the second line.

Nothing dynamic that is ever going to change, no super complex wonkey calculations, just to simply have the data set in stone (preferably via XML) and to call it into the list.

I experimented with some of the other list views and no matter what I did, I could get, via editing the resources and NOT using Java, more that one item on a single line but it wouldn't format it properly according to the layout I guess because I haven't got the ID correct or whatever I don't know.

I mean, all the examples I've seen for a 2 line list are extraordinarily over-coded and just bloated. I mean I have a website I am still working on in C#/ASP.net that has far more complex things in it with half the code that I've seen for the examples of the two line lists.

I tried on my own to figure it out (I am decent with C# and vaguely familiar with Java, self taught, and programming for some other systems like Python, again all self-taught), but like ALL coding references, they're organised by the actual code you implement (that you don't know) instead of by what you want it to do (so you have to search the whole code base to find something that you don't know what it's called but know what it does). >:C

View 10 Replies View Related

Android :: Static Vs Non-static Inner Classes

Mar 9, 2009

I have been finding it convenient to extend Handler in many of my activities to handle messages specific to the activity. The handler sublass is an inner class of the activity and needs to access its state. I am wondering if there is any performance difference between making the handler subclass static and passing in the activity explicitly in its constructor or making the subclass an "instance class" and letting the vm worry about my accessing members of the containing activity.

The static approach:

CODE:.............................

View 4 Replies View Related

Android :: Static Method In Java Accept Only Final Or Non Final Variables Within Its Method - But Not Static

Sep 15, 2010

Why should a static method in java accept only final or non final variables within its method, but not static?

For example I have the following method:

CODE:.................

View 6 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 :: Analog To IOS Core Audio / Audio File Stream Services?

Sep 22, 2010

Is there an Android equivalent to the iOS Core Audio / Audio File Stream Services? I need to be able to read audio bytes from a network and feed them to the audio system under my control, so I can do my own timeouts / reconnects / range requests / etc. without interrupting the audio playback (since the system audio thread would be playing audio already enqueued). It seems that MediaPlayer doesn't give me this level of control. Is there a lower-level framework that does, either in the SDK or NDK?

View 2 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 :: How Can I Apply An Audio Effect To Recorded Audio?

Oct 17, 2010

I want to record a sample from the microphone, then I want to play the recorded file maximizing the volume and apply some audio effect, like modifing sample rate or addind an echo.Waht is the best way? is there an example?

View 1 Replies View Related

Android :: Audio Record And Play Recorded Audio

Jun 2, 2009

Could you please let me know how to do the audio record in android emulator and play the same recorded audio. Could you please help me in proceeding in development.I tried with MediaPlayer API's also.Its not working.

View 5 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

Motorola Droid : How To Play Audio From Phone Through RR Audio System?

May 5, 2010

I connected my phone via USB to my RR sport to upload audio files to the RR hard drive. However, I keep getting connection error. Apparently my device is not being recognized as a storage. I did the unmount thinking. Also, I am wondering how I can play audio from my phone through the RR audio system.
RR is 2010.

View 2 Replies View Related

Android :: Play Remote Audio File In Android Audio Player

Nov 12, 2010

I am working on a application that would allow users to play remote files. My question is how do I open those remote files to be played in the default android player?but this does not give me control of what is happening!

View 2 Replies View Related

Samsung Galaxy S :: Audio Codecs /can't Hear Any Audio

Jun 28, 2010

I have a 720p video that I am trying to play on GS. The image is amazing by the way. But I can't hear any audio (works fine on my PC). Anything wrong with the audio codec used?

View 7 Replies View Related

Android :: Static Way To Get Context

Jan 4, 2010

Is there a way to get the current Context instance by using a static method? I'm looking for that way because i hate saving the context instance each time it changes.

View 1 Replies View Related

Android :: Static Compilation

Sep 11, 2009

I was working on Freescale iMX31 board, I ported android and it was working fine , but when it came to integration of WiFi & Bluetooth, android forum recommended me to do static compilation for porting over android !

Can I know why some drivers have to be statically compiled before it is ported over android? It was not the case with other drivers which when integrated with android, they worked perfectly well like serial port, usb etc..

View 2 Replies View Related

Android :: Is The Static Safe ?

Jul 29, 2009

I use a single static class in my code that defines a static field which I'm reusing between Activity onStop/onStart invocations. Here's a scenario:

User clicks on "Authorize" button (static data is initialized) Activity is stopped and web browser is called
Browser executes callback and Activity is restored (static data is reused)

At least one of my users reports the failure at step 3 which I cannot reproduce but which looks like reset of static data.

View 1 Replies View Related

Android :: App Static Storage ?

Sep 30, 2010

I am creating an Android application which will have some embedded music inside of it ( ~ 80 MB ). I was planning on putting it in the res/raw folder.

Since android stores that all in it's internal memory, is this way too large? What are my options? I have come up with the following:

Copy resources out of internal storage and onto the SD card when application first starts. Afterwards remove from internal storage (is this possible?)
Download music from the web when the application first starts.

I would really prefer not to have to go with option 2 since I want the app to be entirely offline and the static music is not going to change (except between releases).

View 2 Replies View Related

Android :: Decode MP3 Audio Data To PCM Audio Format In Android

Dec 9, 2009

I am streaming an MP3 audio and instead making this MP3 audio to play, I want it to be converted to PCM format and pass this PCM audio to AudioTrack(as it takes PCM data as input.) instead of passing my MP3 stream to MediaPlayer. Can anyone please help me to convert the MP3 to PCM stream?

View 3 Replies View Related

Android :: The Life Cycle Of Static

Mar 7, 2010

When starting a new Activity, I want to pass a complex object and do so by using this approach:

MyActivity.COMPLEX_OBJ = myComplexObj; // which is definitely NOT NULL! Intent intent = new Intent(); intent.setClass(this, MyActivity.class); startActivity(intent);

and then in MyActivity:

@Override public void onCreate(Bundle bundle) { if (COMPLEX_OBJ == null) { // report to Flurry ... } ...

}

View 17 Replies View Related

Android :: Static Variable Instantiation

Apr 1, 2009

I have noticed in my application(s) that after a call to Activity.finish() that the static variables that I declared in my classes still hold the values that they were changed to during the activity's life cycle. Upon the re-launch of the activity, the program does not re-instantiate the variables as declared or set them to the default java behavior. Is there something that I can do to cause this to happen, other than re-setting every static variable in my application?

View 3 Replies View Related

Android :: Static Layout For Whole App That Must In All Activity

Nov 17, 2010

Static Layout for whole app that must be in all Activity

View 12 Replies View Related

Android :: Use Of Static Finals In Activity

Sep 8, 2010

Why is the use of static final variables encouraged to declare constants over just final variables? The use of static sounds logical when there will be many instances of a class but is this argument correct when used for a Android activity. In fact, since the Class instance will be around even after the activity finishes and is eventually garbage collected, it seems like all these constants will still be in memory until the class loader is around. Also, does the compiler inline non-static final variables(ints and String) just like it does for static final variables?

View 2 Replies View Related







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