audio-recording

Android MediaRecorder is not generating a streamable AAC-LC audio using AudioEncoder.AAC

十年热恋 提交于 2019-12-12 14:08:25
问题 I am using a Nexus 7 with Android version 4.2+. So according to the Android Supported Media Formats all listed encoders and container formats are supported. Now I want to record an audio using the AAC-LC encoder and the MPEG-4 container format (file type). In the generated file, when I open it in an HEX-Editor, I see that the file is an ISO Base Media file having the isom File Type Box (Section 4.3) with the following compatible brands: isom and 3gp4 . The remaining of the file is mostly an

MediaRecorder crashes when record a second audio clip

人盡茶涼 提交于 2019-12-12 10:55:45
问题 I am trying to record audio clips with MediaRecorder, but I keep getting these errors in my Logcat when I start, stop, and start again; the activity would also close: INFO/DEBUG(1285): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** INFO/DEBUG(1285): Build fingerprint: 'LGE/thunderg/thunderg/thunderg:2.2.1/FRG83/eng.nikech.choi.20110126.134422:user/release-keys' INFO/DEBUG(1285): signal 11 (SIGSEGV), fault addr 00000010 INFO/DEBUG(1285): r0 00000000 r1 00000000 r2 a930cc98 r3

Which permission do we need at runtime in android 6.0

帅比萌擦擦* 提交于 2019-12-12 09:44:54
问题 I have an android code which can work well on Android 5.0 version. My AndroidManifest.xml is <uses-permission android:name="android.permission.BLUETOOTH" /> <uses-permission android:name="android.permission.BROADCAST_STICKY" /> <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" /> <uses-permission android:name="android.permission.RECORD_AUDIO" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission

Audio Recording in Python

走远了吗. 提交于 2019-12-12 07:32:51
问题 I want to record short audio clips from a USB microphone in Python. I have tried pyaudio, which seemed to fail communicating with ALSA, and alsaaudio, the code example of which produces an unreadable files. So my question: What is the easiest way to record clips from a USB mic in Python? 回答1: This script records to test.wav while printing the current amplitute: import alsaaudio, wave, numpy inp = alsaaudio.PCM(alsaaudio.PCM_CAPTURE) inp.setchannels(1) inp.setrate(44100) inp.setformat

Increase volume output of recorded audio

爷,独闯天下 提交于 2019-12-12 07:10:06
问题 I am trying to make a call recording app in Android. I am using loudspeaker to record both uplink and downlink audio. The only problem I am facing is the volume is too low. I've increased the volume of device using AudioManager to max and it can't go beyond that. I've first used MediaRecorder, but since it had limited functions and provides compressed audio, I've tried with AudioRecorder. Still I havn't figured out how to increase the audio. I've checked on projects on Github too, but it's of

Merge AMR audio file in java or android

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 06:19:15
问题 I want record audio with pause an resume option in android. for it I should record multiple file and merge them into single file. But now how can I merge .amr file? 回答1: (This answer assumes we're talking about raw .amr files, not AMR data in a 3GP container or something like that) The first 6 bytes of the file is an AMR signature, and the remainder of the file consists of audio frames. So you should be able to concatenate two AMR files by taking the full contents of the first file, and then

How to convert byte array to mp3 using aspx script from flash as3.0?

痞子三分冷 提交于 2019-12-12 05:38:37
问题 In Flash as3.0 recorded voice is stored in a BytesArray variable. Now need to store the recorded sound as .mp3 or .wav file in aspx script. Any can help me? How to convert byte array to audio format and save in server any concept please share. 回答1: refer a following my code. this code is skills about after recording your voice to be converted to wav or mp3 to save. converted output mp3 and wav file is is guaranteed about socket communication with the C and Java. I tested in Windows-xp(32bit)

Record directshow audio device to file

↘锁芯ラ 提交于 2019-12-12 05:31:44
问题 I've stumbled through some code to enumerate my microphone devices (with some help), and am able to grab the "friendly name" and "clsid" information from each device. I've done some tinkering with GraphEd.exe to try and figure out how I can take audio from directshow and write it to a file (I'm not currently concerned about the format, wav should be fine), and can't seem to find the right combination. One of the articles I've read linked to this Windows SDK sample, but when I examined the

Directshow RenderStream “the parameter is incorrect”

我怕爱的太早我们不能终老 提交于 2019-12-12 04:56:41
问题 I am trying to follow through the DirectShow examples on the windows dev center to make my own application that can capture screen and audio to video: Capturing Video to an AVI File When the below code runs it fails on the first RenderStream call with the error: + errMsg 0x09910DB8 "The parameter is incorrect." wchar_t* Does anybody have any clue how to figure out which parameter is incorrect? void AudioVideoBuilder::AVBuilder::MakeVideo() { IGraphBuilder *pGraph = NULL; ICaptureGraphBuilder2

How to record sound in Erlang

﹥>﹥吖頭↗ 提交于 2019-12-12 04:34:25
问题 I would like to build a very simple streaming application in Erlang, it will work something like team speak. Person A, B and C are all having a client application which connects to a server application. The server application makes sure it can distribute the audio message from Person A to Person B and C. So the concept is simple and many things can already be found on the internet (like how streaming works in Erlang). What I can't seem to find is how to record audio in Erlang. There are