recording

Recording with AudioQueue and Monotouch static sound

不打扰是莪最后的温柔 提交于 2019-12-19 21:49:23
问题 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

Java Sound format not supported

久未见 提交于 2019-12-19 19:12:25
问题 When using the following code: http://pastebin.com/5iVnttiP I receive this error: javax.sound.sampled.LineUnavailableException: line with format PCM_SIGNED 16000.0 Hz, 16 bit, stereo, 4 bytes/frame, little-endian not supported. at com.sun.media.sound.DirectAudioDevice$DirectDL.implOpen(Unknown Source) at com.sun.media.sound.AbstractDataLine.open(Unknown Source) at com.sun.media.sound.AbstractDataLine.open(Unknown Source) at com.AIComputer.model.Recorder.<init>(Recorder.java:124) at com

audio recording in background on iOS

纵饮孤独 提交于 2019-12-19 11:46:18
问题 I have an application that uses location services in the background. Works fine. But what I want to do, at a certain point, is to check some audio levels while the application is in the background. For some reason it doesn't seem to work. When running in foreground, the function works fine, but when in the back ground, the audio recorder average and peak input is always -120.. This is what I use to do the trick (that doesn't seem to work apparently..) .... [recorder record]; if (levelTimer ==

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

会有一股神秘感。 提交于 2019-12-19 03:42:29
问题 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

Audio recorded using Audio Queue Services to data

狂风中的少年 提交于 2019-12-18 17:05:09
问题 I want to transmit voice from one iPhone to another. I have established connection between two iPhones using TCP and I have managed to record voice on the iPhone and play it using Audio Queue Services. I have also managed to send data between the two iPhones. I do this by sending NSData packages. My next step is to send the audio data to the other iPhone as it is being recorded. I believe I should do this in the AudioInputCallback . My AudioQueueBufferRef is called inBuffer and it seems that

How to keep android from inverting the image from the front facing camera?

余生颓废 提交于 2019-12-18 03:14:06
问题 My video Camera app does record in the landscape mode, but the front facing camera previews the regular image, but the actual recording is mirrored (flipped or inverted) across the axis. Everything works great on normal rear camera. Can anybody suggest me a way to avoid it ? Any suggestions or source code would help a lot. Thank you. 回答1: The bad news : this mirroring is hardcoded into the camera service, and can not be disabled. The good news : if you are on a recent API (API level >= 14),

how to resume recording after interruption occured in iphone?

余生颓废 提交于 2019-12-18 02:47:49
问题 I am working on an audio recorder application, it is working perfectly fine. But I'm stuck with the problem of interruption. When a call comes, - (void)audioRecorderBeginInterruption:(AVAudioRecorder *)recorder then this method is called and the recording is paused. And if the user rejects the call: - (void)audioRecorderEndInterruption:(AVAudioRecorder *)recorder Then here I want to resume the recording from the point where it was interrupted. But when I call the record method again, the

How to use Timer to restart record video for every preset interval time?

匆匆过客 提交于 2019-12-13 08:53:55
问题 Can someone tell me how can i use something like a timer to start a video recording interval process for a period of time (eg: 5mins) then restarts to record another set of 5min video until the user intervene to stop the process.. I'm kinna new in android/java so can someone help me along with this question? public class ServiceRecording extends Service { @Override public IBinder onBind(Intent intent) { // TODO Auto-generated method stub return null; } private SurfaceView surfaceView; private

Java can't record the screen fast enough

我是研究僧i 提交于 2019-12-12 20:31:50
问题 I am trying to make a record program in Java. I would prefer not to use any external libraries other than JMF (Java Media Framework). I am using two Swing Timers (as its a Swing application), one to capture the screen & add it to a queue and the other to take the BufferedImage out of the queue & write it to a file. Here are my timers: To insert into the queue: timer = new Timer(1000/FPS, new ActionListener() { //FPS is a user-inputed value from 1-60 by default its 25 @Override public void

Why the Broadcast receiver does not work after killing Android app?

南楼画角 提交于 2019-12-12 13:44:34
问题 I am using a broadcast receiver in my app to record calls. Everything works fine in Android 5.0 emulator device. If I kill the app, it automatically starts recording calls. But the same app when I installed on my device running Android 6.0, it works until the app is running. When I kill the app the recording is not started, the broadcast receiver is not triggered. 回答1: String manufacturer = "xiaomi"; if(manufacturer.equalsIgnoreCase(android.os.Build.MANUFACTURER)) { //this will open auto