audio-recording

Matlab real time audio processing

最后都变了- 提交于 2021-02-19 16:22:18
问题 I'm trying to record my microphone input and process it at the same time. I tried with a loop with this inside: recordblocking(recorder, 1); y = getaudiodata(recorder); % any processing on y But while I'm doing something with y , I'm losing information since not recording continuously. Is there something I could do to continuously record sound coming in my microphone, store it in some kind of buffer, and process chunks of it at the same time? A delay isn't a problem, but I really need the

Matlab real time audio processing

三世轮回 提交于 2021-02-19 16:21:54
问题 I'm trying to record my microphone input and process it at the same time. I tried with a loop with this inside: recordblocking(recorder, 1); y = getaudiodata(recorder); % any processing on y But while I'm doing something with y , I'm losing information since not recording continuously. Is there something I could do to continuously record sound coming in my microphone, store it in some kind of buffer, and process chunks of it at the same time? A delay isn't a problem, but I really need the

Matlab real time audio processing

£可爱£侵袭症+ 提交于 2021-02-19 16:21:11
问题 I'm trying to record my microphone input and process it at the same time. I tried with a loop with this inside: recordblocking(recorder, 1); y = getaudiodata(recorder); % any processing on y But while I'm doing something with y , I'm losing information since not recording continuously. Is there something I could do to continuously record sound coming in my microphone, store it in some kind of buffer, and process chunks of it at the same time? A delay isn't a problem, but I really need the

Recording speakers Ouput using Java

拜拜、爱过 提交于 2021-02-18 19:34:35
问题 I want to ask the repetitive question of how to record the audio send to the speakers. But I want some insights to the previously answered. I went to this page: Capturing speaker output in Java I saw this code posted by a developer: import javax.sound.sampled.*; import java.io.*; public class JavaSoundRecorder { // record duration, in milliseconds static final long RECORD_TIME = 10000; // 1 minute // path of the wav file File wavFile = new File("E:/RecordAudio.wav"); // format of audio file

How to select external microphone

前提是你 提交于 2021-02-18 08:13:27
问题 I've successfully written a simple recording app for iOS that uses AVAudioRecorder. So far it works with either the internal microphone or an external microphone if it's plugged in to the headphone jack. How do I select an audio source that is connected through the USB "lightning port"? Do I have to dive into Core Audio? Specifically I'm trying to connect an Apogee Electronics ONE USB audio interface. 回答1: Using AVAudioSession, get the availableInputs. The return value is an array of

iOS: trimming audio files with Swift?

自闭症网瘾萝莉.ら 提交于 2021-02-17 15:00:12
问题 I have to merge the audio file and recorded voice.For example the recorded voice is 47seconds. I have to cut or trim the 4minutes audio song to 47seconds. And merge the audio file. var url:NSURL? if self.audioRecorder != nil { url = self.audioRecorder!.url } else { url = self.soundFileURL! } print("playing \(url)") do { self.newplayer = try AVPlayer(URL: url!) let avAsset = AVURLAsset(URL: url!, options: nil) print("\(avAsset)") let audioDuration = avAsset.duration let totalSeconds =

Android AudioRecord vs. MediaRecorder for recording audio

时光总嘲笑我的痴心妄想 提交于 2021-02-17 07:32:16
问题 I want to record human voice on my Android phone. I noticed that Android has two classes to do this: AudioRecord and MediaRecorder. Can someone tell me what's the difference between the two and what are appropriate use cases for each? I want to be able to analyse human speech in real-time to measure amplitude, etc. Am I correct in understanding that AudioRecord is better suited for this task? I noticed on the official Android guide webpage for recording audio, they use MediaRecorder with no

Android How to record VOIP call using Foreground Service

亡梦爱人 提交于 2021-02-11 13:46:33
问题 I have written below mention service code: import android.app.Notification; import android.app.NotificationChannel; import android.app.NotificationManager; import android.app.PendingIntent; import android.app.Service; import android.content.Context; import android.content.Intent; import android.media.AudioFormat; import android.media.AudioRecord; import android.media.MediaRecorder; import android.os.Build; import android.os.IBinder; import androidx.core.app.NotificationCompat; import java.io

What is the problem with my ajax Post or with code in my views.py file that the audio is not being retrieved

拥有回忆 提交于 2021-02-11 13:38:54
问题 I am currently working on a project in Django which records audio on the browser and send it to the server for communication. i have already recorded the audio but when i try to POST it using an ajax request, an empty dictionary is received in views.py. here is my script where i have recorded the audio and tried to post an ajax request(record.html) <form method="POST" enctype='multipart/form-data'> {%csrf_token%} <audio scr="" name="audio" id="audio1"></audio><br> <input type="button" value=

Android Audio Record to wav

微笑、不失礼 提交于 2021-02-11 08:32:06
问题 I recorded an audio using the audio recorder on Android and it produces a raw PCM file. I'm trying to convert it to a format I can listen to (wav or mp3 for example. I've started with this example but don't know where to go from here: Android AudioRecord example tried following these: http://computermusicblog.com/blog/2008/08/29/reading-and-writing-wav-files-in-java Recording .Wav with Android AudioRecorder Here is my code to record (note I am using Countdown Timer to tell it when to start