recording

How to Record Voice in android?

拟墨画扇 提交于 2019-12-03 09:58:25
I am trying to record the voice in android But it will create the .mp3 file on the path (sdcard/filename) But when i run this file it doesen't play because it doesn't record the voice. Here is My code public void onClick(View v) { // TODO Auto-generated method stub switch(v.getId()){ case(R.id.Button01): try { //audio.start(); startRecord(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } case(R.id.Button02): //audio.stop(); stopRecord(); } } private void startRecord() throws IllegalStateException, IOException{ // recorder = new MediaRecorder(); recorder

Android: record video with “continuous” auto-focus

喜你入骨 提交于 2019-12-03 07:52:31
问题 I work on video recording; everything works except for requesting continuous focus. This is what I do (tried both in surfaceCreated and surfaceChanged with no success): camera = Camera.open(); camera.setPreviewDisplay(holder); Parameters parameters = camera.getParameters(); then I do either parameters.setFocusMode(Parameters.FOCUS_MODE_CONTINUOUS_VIDEO); or parameters.set("focus-mode", "continuous-video"); both should do the same thing; then I set parameters with camera.setParameters

Recording with AudioQueue and Monotouch static sound

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-01 19:53:18
I have written a small program in MonoTouch to record sound from the mic of my iPhone 4s using an InputAudioQueue. I save the recorded data in an array and feed this buffer to the my audio player for playback (using OutputAudioQueue). When playing back it's just some stuttering garbage / static sound. I have tried filling the buffer with sin waves before playback and then it sounds good, so I guess the problem is in the recording, not the playback. Can anyone help me see what is wrong? (Code below) public class AQRecorder { private const int CountAudioBuffers = 3; private const int

How to pause and resume audio recording using AVAudioRecorder

☆樱花仙子☆ 提交于 2019-12-01 09:32:37
I need to pause and then resume an audio recording, I'm using AVAudioRecorder for my recording sessions... Anyone knows how to do this? Any help will be higly appreciated! Thanks a lot Peace Massy After initializing and creating an object of AVAudioRecorder , lets say AVAudioRecorder *recorder , simply call [recorder record] to record and [recorder pause] to pause. If you are calling record and pause in separate method e.g. on click of different buttons then you need to make recorder a class level variable. To pause the recording, use the following methods on AVAudioRecorder : - (void)pause

How to record sound in buffer using ALSA

谁都会走 提交于 2019-12-01 06:33:37
问题 I'm begining to learn linux and ALSA and I was wondering if there is a way to store the sound I record from a microphone a directly to the buffer. I read here http://www.linuxjournal.com/article/6735?page=0,2 how to make my recording program. But what I need is a little more complex. I need to record sound untill I hit a key. The reason I need this is because I'm messing with a RaspberryPI(debian on it) and to see if I could turn it into a sound monitoring/detecting device. My main problem is

How to pause and resume audio recording using AVAudioRecorder

徘徊边缘 提交于 2019-12-01 05:42:02
问题 I need to pause and then resume an audio recording, I'm using AVAudioRecorder for my recording sessions... Anyone knows how to do this? Any help will be higly appreciated! Thanks a lot Peace Massy 回答1: After initializing and creating an object of AVAudioRecorder , lets say AVAudioRecorder *recorder , simply call [recorder record] to record and [recorder pause] to pause. If you are calling record and pause in separate method e.g. on click of different buttons then you need to make recorder a

Custom Camera zoom in/out while recording video using AVFoundation

核能气质少年 提交于 2019-12-01 02:04:53
问题 In the latest iOS 7.1 the native camera app can zoom in/out while recording video, and the video saved in the Photos indeed shows the zoom in/out effect. now, I am using AVFoundation to implement custom Video. I can zoom in/out while recording video by using videoMaxScaleAndCropFactor to modify AVCaptureVideoPreviewLayer. However, the saved video doesn't show the zoom in/out effect. Is there any hint to implement this function ???? 回答1: Try this: float zoomLevel = 2.0f; float zoomRate = 2.0f;

How to get over 30FPS using Java in a Screen Capture Program?

偶尔善良 提交于 2019-12-01 02:00:55
I'm currently using the Robot classes in Java to record the screen. However, it does not achieve the minimum of 30 frames per second. I'm not re-creating objects, and am being as efficient as I can, but I only average around 15 frames per second. Robot is simply not cutting it. What can I use to capture the screen? I've tried Xuggle, but I can't seem to get that to capture fast enough either. For operating systems following the X11 standard (Linux, FreeBSD, Solaris, etc.), we can do it this way via JavaCV and FFmpeg : import com.googlecode.javacv.*; public class ScreenGrabber { public static

Recording stereo audio with a Motorola Moto G (or Moto X)

て烟熏妆下的殇ゞ 提交于 2019-11-30 23:52:22
I hope someone could help me with this issue. Some time ago I developed an application in order to record simultaneously the sound captured by the front mic and the back one in a smartphone. Basically, I make the next object like this: AudioRecord audioRecord = new AudioRecord( MediaRecorder.AudioSource.CAMCORDER , frequency , AudioFormat.CHANNEL_IN_STEREO , audio encoding , buffer size ); It worked perfectly for a Sony Xperia Neo V but not for a Motorola Moto G (or Moto X I guess). Taking a look at the documentation I saw the next for the CAMCORDER flag: Microphone audio source with same

How to get over 30FPS using Java in a Screen Capture Program?

自古美人都是妖i 提交于 2019-11-30 21:11:06
问题 I'm currently using the Robot classes in Java to record the screen. However, it does not achieve the minimum of 30 frames per second. I'm not re-creating objects, and am being as efficient as I can, but I only average around 15 frames per second. Robot is simply not cutting it. What can I use to capture the screen? I've tried Xuggle, but I can't seem to get that to capture fast enough either. 回答1: For operating systems following the X11 standard (Linux, FreeBSD, Solaris, etc.), we can do it