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

Android :: Recording direct system audio?


Android : Recording Into Direct ByteBuffer With Offset

Feb 13, 2010

Is there a way to capture the audio using AudioRecord or any other API into a Direct ByteBuffer created using ByteBuffer.allocatedirect call with an offset?

From the documentation it is not clear that at which offset, calling the following method, will place the data: audiorecord.read(directbytebuffer, size);

View 2 Replies View Related

Android :: Write To System Directory Like /system/media/audio/alarms

Feb 9, 2009

Is it possible to write data or create folder in system directory like /system/media/audio/alarms. i.e other than our respective package.

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

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 :: 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

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 :: 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 :: Microphone Access / Audio Processing And Recording Simultaneously

Mar 8, 2010

Is it only possible for one object to access the microphone at a time? That is, could I simultaneously use an AudioRecord to do some audio processing and use a MediaRecorder to record the incoming audio?

View 2 Replies View Related

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.

View 2 Replies View Related

Android :: Tying To Develop An App For Audio Video Recording On Phone

Dec 21, 2009

I am trying to develop an app which streams live audio/video. I have the mediarecorder to record both audio, video frames , and it does so. But the thing is it records a chunk of audio and then records a chunk of video frames and then records a chunk of audio frames to the file. How do I determine where my audio frames start and where the video frames start?. Also is there any way to figure out the Video frame length ?. Iam really stuck at this point and any help will be greatly appreciated. This is how I initialize the mediarecorder in my app, Code...

View 2 Replies View Related

Android :: Recording Amr Audio And Streaming To HTTP Server In Realtime

Jul 6, 2009

AudioRecord can record audio data in pcm format in realtime, but there is no audio-encoder who can encode pcm data to amr format. may be third-party java code can do this, but the performance may be very low.MediaRecorder just record audio data to disk. not realtime.It seems that this is a real miss-impossible?

View 2 Replies View Related

Android :: Continous Audio Recording In Memory Using Circular Buffer / SDK?

Jan 16, 2010

I'm writing an App that needs to continuously record audio in memory and email the last 30 seconds of audio when required. Much of the mediarecorder API is designed to store linear audio in files. Could anybody point me towards a way to continuously record audio in memory, using a circular buffer using the SDK?

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

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 EVO 4G :: Video Recording In Concerts / Audio Awful?

Sep 20, 2010

I have no problems with the video recording on my Evo it looks amazing but I go to a ton of concerts and such and I love recording them with my Evo but it just sounds Awful, I was wondering if there was any setting to make or change to make the aduio recording sound much better?

View 5 Replies View Related

Media :: System Sleep While AudioRecord Is Recording?

Sep 8, 2009

I am new to Android and has been trying to find out if Android 1.5 on HTC magic is able to put system to sleep while collecting audio data through microphone.

What I am trying to accomplish is to continously collecting audio (PCM 16bit at 8K Hz) from microphone as long as possible. I have tested with AudioRecord class and is able to record audio continously for 7 hours before battery running out. 7 hours is good but not enough.

I noticed that during recording, although screen is turned off automatically, the system is never put into sleep mode. I wish sleep mode will allow recording go much longer. I found out by comparing SystemClock.uptimeMillis() and System.currentTimeMillis() before and after recording.

However as I reviewed David Sparks presentation at Google I/O (Google I/O - Mastering the Android Media Framework). David suggested at the end of the presentation that system should be automatically go to sleep mode while AudioRecord is collecting data into the preconfigured buffer(1 M bytes in my example). There are two problems I was facing while trying a simple recording 8k PCM 16bit using buffer of 1 Mbytes.

1. AudioRecord.setPositionNotificationPeriod() or AudioReocrd.setNotificationMarkerPosition() does not seem to work. I wish to periodically wake up to retrieve data by calling AudioRecord.read().
However, I do not get call back at all as I configured. Eventually AudioRecord stopped when record buffer overflowed. Below is the code.


2. With problem 1, I have to call AudioRecord.read() in a while loop from a separate thread. When I read(), the thread will block on the read() until read buffer is filled. During the block, I hope the system may go to sleep mode. My program works and audio data were successfully read but system never went to sleep during the block.

My idea of putting system into sleep while recording audio continously.

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

View 2 Replies View Related

Error Recording Audio Using Native AudioRecord Interface

May 25, 2009

Record audio using the native AudioRecord interface? I'm trying to do this on my Neo Freerunner but all I get in logcat is:

I/AudioHardwareALSA( 787): Initialized ALSA CAPTURE device AndroidRecord_Microphone
D/AudioHardwareALSA( 787): Set CAPTURE PCM format to S16_LE (Signed 16 bit Little Endian)
D/AudioHardwareALSA( 787): Using 1 channel for CAPTURE.
D/AudioHardwareALSA( 787): Set CAPTURE sample rate to 8000 HZ
E/AudioFlinger( 787): Error reading audio input
W/AudioRecord( 947): obtainBuffer timed out (is the CPU pegged?) user=00000000, server=00000000

The android::AudioRecord::read() function returns the number of bytes I'm trying to read, but the resulting buffer is filled with zeroes.

View 1 Replies View Related

General :: Video Recording Low Audio In Super Jelly Bean

Oct 1, 2013

i've installed super jelly bean its awsome but video recording volume is very very low.

View 2 Replies View Related

Android :: Customize Icons For Direct Message - Direct Dial?

Jul 5, 2010

I am looking to customize my icons for direct message direct dial, to the best of my knowledge better cut can do this, however i have heard it is not compatible with launcher pro beta that i use, so does anyone know what it is compatible with? also what size do i need to make my icons and what format do i save them in?

View 1 Replies View Related

Samsung Moment :: Recording Videos Can't Get Audio To Work / When Saving Video On Computer

Sep 3, 2010

The audio/video works perfectly if I watch the recording on my phone, but when I email the video to my gmail account and save it to my computer, it opens in Media Player and there's no sound. Does anyone know how to fix this?

View 1 Replies View Related

Android :: Does Car Audio System Have USB?

Oct 24, 2008

So i realized today on my way home from work that my cars Clarion CD deck has a USB connector for hooking up thumb drives to play music off of them. I figured this HAS to work with the G1 and it does!I was able to hook the G1 charge and play the music off the SD card through the G1 with ease.Just set the G1 to act as a usb drive, and you can play music and charge your phone via USB while driving.So keep that in mind if you're going to be getting a new car CD player, get one with USB (pretty common on new CD players) and you'll be glad you did.

View 45 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 :: Audio Filtering In System?

Sep 27, 2010

Is there a way to filter audio in android system? I am interested to get only the audio of a fixed frequency.

View 1 Replies View Related

Android :: Audio Fingerprinting System In Java

Jan 2, 2010

Are there any audio fingerprinting systems (PUID, etc) that are implemented in pure Java (for running on Android)?

View 1 Replies View Related

HTC EVO 4G :: Audio System In Your Car And Integration

Jul 16, 2010

Mainly for the people who do not have an input option for an audio source in their car...

What do you guys use to integrate the Evo to your audio system in your car? I've used an FM transmitter before.

View 7 Replies View Related

Software Which Can Copy All Audio And Video Files From Android Device To System?

Dec 2, 2013

I've to develop a software which can copy all audio and Video files from Android device to System

What to cover first, either linux kernel or android system interface.

Do I need to learn linux kernel programming or android system interface only

This backup could be possible from one of the medium via USB cable or WiFi or other form of connectivity.

View 1 Replies View Related







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