audio-recording

How can I specify the output file's folder when calling RECORD_SOUND_ACTION?

大憨熊 提交于 2019-12-20 05:10:14
问题 I'd like to specify a destination folder when I call the MediaStore built-in sound recorder app, e.g. the sdcard folder. According to the Android documentation, there is no support for EXTRA_OUTPUT when calling the RECORD_SOUND_ACTION . How can I do this? 回答1: You will have to allow the file to be recorded using whatever default filename and location are used and then move the file. Moving the file is far from trivial. Here's a complete example. import java.io.File; import java.io.IOException

record audio in java and determine real time if a tone of x frequency was played if so do something

爷,独闯天下 提交于 2019-12-20 04:49:15
问题 I want to be able to detect a tone of a predetermined frequency using java. What I am doing is playing a tone (the frequency of the tone is variable by user input) and I am trying to detect if the tone is of a certain frequency. If it is, I execute a certain method. From what I have read I will need to us FFT, but I'm not sure how to implement it in java. There seems to be a lot of documentation for how to do it, but what documentation there is involves looking at an audio file rather than

MediaPlayer prepare Failed Error(1,-17) when using recorded file .3gp

走远了吗. 提交于 2019-12-20 04:17:22
问题 I am trying record from the AudioRecorder then I am trying to play the same with Media Player, But its giving mediaplayer.prepare() failed to prepare. Could any one tell me what could appropriate reason. Below is the code I am using public void onClick(View v) { recorder = new MediaRecorder(); recorder.setAudioSource(MediaRecorder.AudioSource.MIC); recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); if(case_value==0)

Flash AS3 - How to set high quality audio recording

﹥>﹥吖頭↗ 提交于 2019-12-20 03:54:08
问题 Currently, I'm using mic.rate = 100; This only gives 63kbps. Is it possible for Flash AS3 to set bitrate higher than 63kbps? 回答1: From the docs Acceptable values are 5, 8, 11, 22, and 44 So enter one of those. And it's measured in kHz, not kbps, also according to the docs 回答2: It's flash. Great quality also depends on users' hardware. You didn't post full settings for your microphone. Also value that you are using isn't valid. Here a small snippet, for mic settings, that will give you good

How to save the audio with changed pitch and speed iOS?

﹥>﹥吖頭↗ 提交于 2019-12-20 03:19:13
问题 I'm able to change the pitch and speed of my audio but I'm getting problem in saving the audio with changed pitch and speed //this is method which set the pitch [self.audioEngine connect:audioPlayerNode to:timePitchEffect format:nil]; [self.audioEngine connect:timePitchEffect to:self.audioEngine.outputNode format:nil]; [audioPlayerNode scheduleFile:self.audioFile atTime:nil completionHandler:nil]; [self.audioEngine startAndReturnError:&audioEngineError]; NSLog(@"%@",self.audioFile.url); if

Process speech without stopping the recording in MATLAB

泪湿孤枕 提交于 2019-12-19 11:30:03
问题 I am currently processing speech signals while recording simultaneously. More specifically: Record every 0.1s speech repeatedly. Process each speech packet in a FIFO sense (e.g., call this function process ). It takes about 1s for processing a packet of speech of length 0.1s. The following is the the executed code: r = audiorecorder(fs, 16,1); data{k} = getaudiodata(r); process(data{k}); The problem is that I miss sample of 1s speech during process execution. I want the recording to be

Fresh SpeakHere example app has error when recording audio in Simulator/Xcode

一个人想着一个人 提交于 2019-12-19 10:25:11
问题 I can't record audio using the SpeakHere example app from apple. When I run the app in Simulator from within Xcode, it starts up normally, but when I press the record button, the error "Thread 1: EXC_BREAKPOINT (code=EXC_I386_BPT, subcode=0x0)" occurs: The log message about the missing root view controller at app startup is already there BEFORE the above error occurs and it is probably not connected to my problem. I have downloaded the SpeakHere example project from the linked website (see

internal audio recording program [closed]

こ雲淡風輕ζ 提交于 2019-12-19 09:08:03
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 12 months ago . NOTE: This isn't something that would use a mic. I want to INTERNALLY record audio. I would like to write a program in C# or Java that records audio data sent to the speakers in my computer. The end product would allow the user to hit a "record" button, and anything being played

Record/capture internal sound playback of Android app and export mp3?

坚强是说给别人听的谎言 提交于 2019-12-19 07:36:17
问题 Is it possible to record the internal sound generated by the app? My app allows you to create and play back musical sequences. soundPool.play(soundIds[i], 1f, 1f, 1, 0, Constants.TIME_RATE); I'd like to be able to record the sequence and export to mp3. I've looked into Audio Capture but setAudioSource (int audio_source) only seems to accept MIC recording. Thanks 回答1: No, there's no API for getting the audio output, even for your own app (actually that's not entirely true, because you can get

iPhone AVCaptureDeviceInput How to Set Quality of Audio Capture?

喜欢而已 提交于 2019-12-19 04:22:49
问题 The following code is working fine (some checking and code eliminated) at 44100 depth 2 which seems to be the default. Since this interface is usable, but not documented well, anyone know of how to change the default quality? audioCaptureDevice = [AVCaptureDevice defaultDeviceWithMediaType:AVMediaTypeAudio]; captureSession = [[AVCaptureSession alloc] init]; audioInput = [AVCaptureDeviceInput deviceInputWithDevice:audioCaptureDevice error:&error]; [captureSession addInput:audioInput];