audio-recording

macOS Entitlements audio-input vs. microphone

跟風遠走 提交于 2019-12-14 03:50:00
问题 For the macOS sandbox there are two entitlement keys: com.apple.security.device.audio-input com.apple.security.device.microphone I tested both and both allow microphone input. What is the difference between them? 回答1: com.apple.security.device.microphone is a sandbox entitlement. If you want to use the microphone in a sandboxed app, you will need to enable it, com.apple.security.device.audio-input is a hardened runtime entitlement. If you want to use the microphone in an app built with the

Record audio via MediaRecorder

一世执手 提交于 2019-12-14 01:54:00
问题 I am trying to record audio by MediaRecorder, and I get an error, I tried to change everything and nothing works. Last two hours I try to find the error, I used Log class too and I found out that error occurred when it call recorder.start() method. What could be the problem? public class AudioRecorderActivity extends Activity { MediaRecorder recorder; File audioFile = null; private static final String TAG = "AudioRecorderActivity"; private View startButton; private View stopButton; /** Called

Failure to record audio while using webkitSpeechRecognition on Android Chrome [closed]

社会主义新天地 提交于 2019-12-13 21:07:57
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . In Chrome I'm recording audio while running speech recognition. The recording is using AudioRecorder which internally calls getUserMedia . The speech recognition is using webkitSpeechRecognition . On the desktop (Win7 + latest Chrome) it works perfectly. On Android (also latest Chrome) I get an "either or"

Several audio recording in Android

我是研究僧i 提交于 2019-12-13 15:22:06
问题 I have an android code who should record several audios. The first recording is performing well, I click on record, than on stop and it's all ok! But if I click another time on record I get a crash! What am I doing wrong? btnEnregistrement = (ImageButton) findViewById(R.id.button_lancer_enregistrement); btnEnregistrement.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { if(btnEnregistrement.getTag().equals("false")){ btnEnregistrement

Recording voice in a while loop using Tkinter

早过忘川 提交于 2019-12-13 15:21:45
问题 I'm coding a voice recording application and I want to start the recording when the user pushes a Button in Tkinter, and stop the recording when the user releases the Button. import Tkinter def record(): while True Recordning runtines... if <button is released> stop audio steam... break main = Tkinter.Tk() b = Tkinter.Button(main, text='rec', command=record) b.place(x="10", y="10") main.mainloop() How do I achieve the "if button is released"? Do I need to use Threading? 回答1: If you don't want

How to record microphone audio in JavaScript and submit to DialogFlow?

南笙酒味 提交于 2019-12-13 08:08:50
问题 How can I record audio from the microphone in JavaScript and submit it to DialogFlow, without going through a server? 回答1: There are two parts to this question: How to record microphone audio in a format DialogFlow will understand. How to actually submit that audio to DialogFlow, with proper authentication. Part 1 For recording microphone audio in a format DialogFlow will understand, I use opus-recorder, then convert the blob it returns using the code below: function BlobToDataURL(blob: Blob)

How to Make custome record view Meter?

喜欢而已 提交于 2019-12-13 05:49:36
问题 i want make custome view meter which is spred when the user record the voice?? Does anyone know of any coding examples of a digital VU Meter for recording audio? Does anyone know of any coding examples for showing feedback when a recording is being made? 回答1: This is a Mediastore file means Audio Recording .just like click the button and start the recording public class MediastoreActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate

Using Audio Graph, learn environment noise and filter in a UWP App

自古美人都是妖i 提交于 2019-12-13 03:57:38
问题 This is an extended question from here Using UWP monitor live audio and detect gun-fire/clap sound Thanks to Dernis I finally got the code working to monitor live audio and trigger events when decibel count is above a certain range. This works perfectly when we run it in office/closed/silent area. But when I take the app to open road, there will be traffic sound, wind sound, people talk sound and other noises and BLOW events are not identified correctly. I would like to implement something

Android - how to add gain control when recording

你。 提交于 2019-12-13 02:57:28
问题 I work for an audio recorder app and would like to add gain control but I don't know how to do it. I have access to audio buffer but I don't know how to make the sound louder or slower. I see another apps that have a seekBar for selecting the decibels from a specific range. aRecorder.read(buffer, 0, buffer.length); fWriter.write(buffer); // Write buffer to file Please tell me what should I do to implement gain control in my app. Thanks. 回答1: Changing the volume is simple, just multiply all

Why is MediaRecorder delaying the start of recording?

杀马特。学长 韩版系。学妹 提交于 2019-12-12 22:23:26
问题 I have implemented a feature in my android app that records an audio file using mediaRecorder . It works fine but for some reasons skips the the first second of recording. I used the exact same code from the developer documentation so I don't understand why it would do that. I looked for an answer to this issue, I found few people with the same issue, but no real solution. Here's is my research: MediaRecorder class starts recording audio after slight delay MediaRecorder Silence at Beginning