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
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
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
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
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
Jan 22, 2010
Does such a thing exist please folks - want to rip some audio for an mp3 ringtone from a comedy video clip
View 4 Replies
View Related
Jun 22, 2010
I have developed a streaming app for Android. My app is streaming AAC audio.The app works fine on 1.5, 1.6, and 2.1. I tested it on Froyo, the android 2.2 and it does not work there.I have try everthing - Streaming directly from server url - Download incrementaly the content, store in a temp file, start reading. - Download incrementaly the content, store in a ContentProvider and start reading.No luck, I always got errors : 06-23 02:47:02.257: ERROR/MediaPlayer(266): Unable to to create media player 06-23 02:47:02.257: INFO/System.out(266): setDataSourceFD failed.: status=0x80000000 Does Froyo support AAC? Anyone happens to stream AAC?
View 4 Replies
View Related
Oct 12, 2010
I am doing recording in following way and storing byte array in a binary file. But the binary file I am getting is not in any format. what can be the problem? code...
View 3 Replies
View Related
Aug 2, 2010
I want to record audio in MP3 format in my android application. I know I can read PCM audio using the audioRecord class. Is there a java library compatible with android that will encode PCM to MP3? Is it possible to use the Lame mp3 encoder library?
View 1 Replies
View Related
Mar 5, 2014
According to the MS website, Windows Media Player queries an MTP device to see what formats it supports. My Razr Maxx HD supports ogg and m4a. When attempting to sync WMP does not sync those files stating they might not be supported on the device. Being that I've had so much trouble in the past even getting any of the Android devices to be properly detected as an MTP device I'm worried this is a driver issue.I should be able to get WMP to at least convert them.
this is the device mis-reporting the formats, Windows not querying them properly, or an actual WMP issue? Would like to be able to get sync working without any conversions. Maybe there is a way to hardcode formats within the mtp inf file?
View 1 Replies
View Related
Dec 20, 2009
How to record audio into ogg format?
View 1 Replies
View Related
Jun 16, 2009
I have the following native source code that is supposed to display video. It plays 3gp file ok and I can hear the audio, but the video is not shown.
CODE:..............
View 4 Replies
View Related
May 14, 2009
Now i want to record audio in WAV format. What should i do now because android only supports *.3gp or *.AMR type?
View 6 Replies
View Related
Jun 24, 2010
The HTC web site claims support for .mp4 and .wmv playback but I have had no luck. I have used various programs from HandBrake to Sony and I can get audio with no video (mp4). I can get audio with still image video (wmv). The DI seems very picky as to which videos it will actually play back. Is there a recommended way to convert my videos / DVS into a format the DI can play?
View 1 Replies
View Related
Oct 9, 2009
My application cannot handle the JNIE overhead, as I need to make 2 JNIE calls to the native C/C++ code for every 20msec. So I am trying to use the native media libraries and the realted C/C++ files provided by Android in the folder "//external/srec/audio/test" of the donut build. Ex. AudioHardwareRecord, AudioInRecord etc.. I am implementing all the calls in the native layer.
I am using the sampling rate as 8000 and want to read 160 samples (320 bytes) at a time.
I used the following values to create the AudioRecord..
CODE:..........
It says "success" after creating this interface but I am getting the error "Bad Value" if I am doing the InitCheck.
And it is crashing once I start reading the samples or if I try to retrieve the configured sampling rate.
Has anybody tried to access this native code?
View 4 Replies
View Related
Apr 24, 2009
Can anybody advice what is the recommended directory to store files generated by your application: audio files, video files or some images.
If the phone contains SD card, it is clear that files should be saved there, but if there is no any external storage. where would you recommend to save to?
View 2 Replies
View Related
May 11, 2010
I want to know how to get the ringtone,audio files in the device and I want set them as alarm. I am working in the code to set the alarm and I want to know how to retreive audio or ringtones from the device.
View 1 Replies
View Related
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
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
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
Jan 20, 2010
I've recorded audio in my Android application in its AMR format and I'd like to convert these to something that I can more easily use, such as WAV or MP3.
I've found some online instructions for this, for instance: http://www.aquarionics.com/2004/08/04/how_to_convert_amr_files_to_mp3/
which say to start with the 3GPP reference solutions to convert AMR to WAV, and then use sox and lame from there.
I compiled this code and tried to convert my AMR file, but it seg faults. I think this is because Android's AMR files are wrapped in a 3GP container. There is some code online about how to unwrap the AMR files (http://www.benmccann.com/dev-blog/extracting-amr-audio-from-android-3gp-files/), but I can't seem to get it to work and it seems like a lot of extra trouble just to get the audio from these files.
View 2 Replies
View Related
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
Jul 20, 2010
I have multiple audio files in the assets directory of my application. When the user clicks a button I want to play those files in a certain order, one after the other. There shouldn't be any noticeable lag between the audio files. What is the best approach to achieve this? I am thinking of using MediaPlayer objects and OnCompletionListeners. But, that would mean I have to create a lot of OnCompletionListeners because I need to know every time which audio file is next. Am I missing something or is there a better approach?
View 1 Replies
View Related
Sep 8, 2009
I am developing an application in which i need to merge and split audio recording.Can anyone give me a hint how to get it done in android? Does it require any external jar?
View 1 Replies
View Related
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
Oct 14, 2010
I've created an application which uses around 15 small audio files. Right now I'm using mp3 files and each is around 200KB. These files are stored in my res/raw directory. I'm using SoundPool class to play the files in my application. I'm hoping to put this application on the android market place. Can one of you suggest what is the best way to store so many audio files? Will my application be scalable? Is wav or ogg format better approach instead of mp3? Please let me know.
View 3 Replies
View Related
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
Jan 28, 2009
i want to knw what r the Audio and Video format r supported by Android by Default is thier any plug-ins needs to be add in to SDK .
View 3 Replies
View Related
Sep 14, 2010
Is there a way to do it? I have a Mac with my music and I have Astro File Manager but I'm not sure if that's possible...
View 6 Replies
View Related
Apr 8, 2009
Some audio files return 0 from MediaPlayer.getDuration(), even though they're perfectly valid files that play ok and that players on Windows can find the duration of. There seem to be two different cases here: certain file types such as .wma and .wav always return 0 duration, and others only do so sometimes. I haven't been able to find any pattern in the latter case, but it does seem consistent per file. The music player displays 0:00 duration for these, so it's not just my code.
View 3 Replies
View Related