audio-recording

iPhone record audio from mic while playing music from iPod library using MPMusicPlayerController

混江龙づ霸主 提交于 2021-02-10 23:52:53
问题 Is it possible while playing music from iPod library using MPMusicPlayerController, recording voice form mic on iPhone? If possible, any sample or code? 来源: https://stackoverflow.com/questions/13826065/iphone-record-audio-from-mic-while-playing-music-from-ipod-library-using-mpmusic

iPhone record audio from mic while playing music from iPod library using MPMusicPlayerController

对着背影说爱祢 提交于 2021-02-10 23:52:16
问题 Is it possible while playing music from iPod library using MPMusicPlayerController, recording voice form mic on iPhone? If possible, any sample or code? 来源: https://stackoverflow.com/questions/13826065/iphone-record-audio-from-mic-while-playing-music-from-ipod-library-using-mpmusic

iPhone record audio from mic while playing music from iPod library using MPMusicPlayerController

最后都变了- 提交于 2021-02-10 23:51:38
问题 Is it possible while playing music from iPod library using MPMusicPlayerController, recording voice form mic on iPhone? If possible, any sample or code? 来源: https://stackoverflow.com/questions/13826065/iphone-record-audio-from-mic-while-playing-music-from-ipod-library-using-mpmusic

iPhone record audio from mic while playing music from iPod library using MPMusicPlayerController

假如想象 提交于 2021-02-10 23:49:29
问题 Is it possible while playing music from iPod library using MPMusicPlayerController, recording voice form mic on iPhone? If possible, any sample or code? 来源: https://stackoverflow.com/questions/13826065/iphone-record-audio-from-mic-while-playing-music-from-ipod-library-using-mpmusic

Hijack audio with Java?

别等时光非礼了梦想. 提交于 2021-02-08 16:45:39
问题 I have been trying to modify some code found at the bottom of this page in order to hijack system audio with Java. Here's the part that I modified in captureAudio(): Mixer mixer = AudioSystem.getMixer(mixerInfo[0]); // "Java Sound Audio Engine" final TargetDataLine line = (TargetDataLine) mixer.getLine(info); Now when I run this code, it throws this: Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Line unsupported: interface TargetDataLine supporting format PCM

Hijack audio with Java?

橙三吉。 提交于 2021-02-08 16:41:36
问题 I have been trying to modify some code found at the bottom of this page in order to hijack system audio with Java. Here's the part that I modified in captureAudio(): Mixer mixer = AudioSystem.getMixer(mixerInfo[0]); // "Java Sound Audio Engine" final TargetDataLine line = (TargetDataLine) mixer.getLine(info); Now when I run this code, it throws this: Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Line unsupported: interface TargetDataLine supporting format PCM

Recording each channel without mixing

巧了我就是萌 提交于 2021-01-29 10:52:16
问题 I am a new in this field, maybe what I ask it's impossible to implement. What I try to do is - recording an audio with n-channels to WAV file with n-channels. I use arecord utility: arecord --format=S16_LE --channels=8 --rate=16000 --file-type=wav myfile.wav In my input I see different channels: But in output of recording I see all channels are mixed: Is it possible to record WAV file without mixing channels? Is it possible to record each channel to separate channel? 来源: https://stackoverflow

No suitable transform was found to encode or decode the content error

≯℡__Kan透↙ 提交于 2021-01-28 23:30:50
问题 I am working with audio recording in windows 10 universal app, i found code here when i run that code it showing "No suitable transform was found to encode or decode the content" error, in phone any one please help me to resolve this issue. 回答1: when i run that code it showing "No suitable transform was found to encode or decode the content" error If you refer to MediaEncodingProfile.CreateMp3, you will see the following paragraph. Note While it is technically possible to call CreateMp3, you

How to add text on camera preview? [duplicate]

感情迁移 提交于 2021-01-28 03:19:28
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: Overlay images onto Camera preview SurfaceView Hi I want to create a custom camera preview widget and display current time on preview. how to add text on preview and Record Video. Please give me some idea? 回答1: This question has already been answered. Refer this thread: Overlay images onto Camera preview SurfaceView Here's a blog post with sample code: http://android-er.blogspot.in/2010/12/add-overlay-on-camera

UIImpactFeedbackGenerator Not Working When Audio Device Added to AVCaptureSession

左心房为你撑大大i 提交于 2020-12-29 03:02:04
问题 Adding microphone audio input to AVCaptureSession seems to disable UIImpactFeedbackGenerator . let audioDevice = AVCaptureDevice.defaultDevice(withMediaType: AVMediaTypeAudio) let audioDeviceInput = try AVCaptureDeviceInput(device: audioDevice) if self.session.canAddInput(audioDeviceInput) { self.session.addInput(audioDeviceInput) } Once the audio device is removed, feedback resumes. Is this normal behavior? Is there a way around this? I notice stock iOS Camera app in video mode and long