audio-recording

How to record call in android? Is it possible?

孤街浪徒 提交于 2019-11-27 15:35:43
I want to record call from android phone. I am using android.media.MediaRecorder pckg. Also used following code: mrec.setAudioSource(MediaRecorder.AudioSource.VOICE_CALL); mrec.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); mrec.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); But I didn't succeed in recording an incoming call. Can anyone recommend a tested code snippet? Also, Is this true? http://groups.google.com/group/android-developers/browse_thread/thread/c2bc85eb60ae2aa5?pli=1 http://code.google.com/p/android/issues/detail?id=2117#c226 Standard distributions of Android does

Live audio stream java

♀尐吖头ヾ 提交于 2019-11-27 15:00:24
问题 I am implementing live streaming from MIC to java server at another PC. But I am only hearing a white noise. I have attached both client and server program Client: import java.io.IOException; import java.net.DatagramPacket; import java.net.DatagramSocket; import java.net.InetAddress; import java.net.SocketException; import java.net.UnknownHostException; import javax.sound.sampled.AudioFormat; import javax.sound.sampled.AudioInputStream; import javax.sound.sampled.AudioSystem; import javax

Illegal State Exception when calling MediaCodec.configure()

柔情痞子 提交于 2019-11-27 13:33:16
问题 I get the IllegalStateException on MediaCodec.configure() line, I'm trying to record audio using MediaCodec. This only occur on some phones, on tabs everything is fine. This particular crash example is from Samsung Galaxy S4. Exception traces: 01-22 17:33:38.379: V/ACodec(16541): [OMX.google.aac.decoder] Now Loaded 01-22 17:33:38.379: V/ACodec(16541): onConfigureComponent 01-22 17:33:38.379: W/ACodec(16541): [OMX.google.aac.decoder] Failed to set standard component role 'audio_encoder.aac'.

Decrease bitrate on WAV file created with recorderjs

♀尐吖头ヾ 提交于 2019-11-27 12:14:06
I'm trying to use recorderjs on an app engine site where users upload short audio recordings (say, 1 to a dozen seconds long). I've noticed that the WAV files I'm uploading are much larger than I expected. For example, I just created a recording that lasts roughly 9 seconds, and the uploaded blob is 1736769 bytes, which is > 1.5 megabytes. Question: How do I modify the recorderjs code (or my own code -- maybe I'm using recorderjs incorrectly) so that my audio blobs have a lower bitrate? I'd like a 10 second recording to be safely under 1 MB. My guess is that I would need to modify the

C# recording audio from soundcard [closed]

时光总嘲笑我的痴心妄想 提交于 2019-11-27 11:50:39
I want to record audio from my soundcard(output). I've found CSCore on codeplex but I could not find any examples. Does anyone know how to use the library to record audio from my soundcard and write the record data onto the harddrive? Or does anyone know a few tutorials on that library? Take a look at the CSCore.SoundIn namespace . The WasapiLoopbackCapture class is able to record directly from any output device. But keep in mind that WasapiLoopbackCapture is only available since Windows Vista. EDIT: This code should work for you. using CSCore; using CSCore.SoundIn; using CSCore.Codecs.WAV; ..

iOS - Detect Blow into Mic and convert the results! (swift)

让人想犯罪 __ 提交于 2019-11-27 11:21:52
问题 I need to develop an iOS App in swift which detects a blow in the microphone from a user. This has to be a Challenge-Game where two players have to blow into the iPhone mic one after the other. The decibel values should be measured and converted in meter or kilometer so I can determine a winner. The player which "blows further" (player1: 50km, player2: 70km) wins. Is this a possible implementation? I have this code in swift and I don't know how to proceed: import Foundation import UIKit

Improve Android Audio Recording quality?

隐身守侯 提交于 2019-11-27 10:37:26
Is there any way to record audio in high quality? And how can I read information that user is saying something? In Audio Recording application you can see such indicator (I don't know the right name for it). Donn Felker For recording and monitoring: You can use the sound recorder activity. Here's a snippet of code: Intent recordIntent = new Intent( MediaStore.Audio.Media.RECORD_SOUND_ACTION); startActivityForResult(recordIntent, REQUEST_CODE_RECORD); For a perfect working example of how to record audio which includes an input monitor, download the open source Ringdroid project: https://github

Converting WAV to any compressed audio format in client-side JavaScript

末鹿安然 提交于 2019-11-27 09:37:24
问题 I am recording audio from getUserMedia({audio:true}); in the browser using Recorder.js and then exporting it as a WAV file because that's the only option the library provides. A 1 minute 20 seconds file is 14.1 MB large. I need to upload the audio to a server and I need to do it fast. How do I convert the WAV audio in any other compressed format to lower the file size? I don't mind converting to: MP3 Opus WebM Ogg FLAC any other format you know of If there is no way as of now to convert to

Playing back sound coming from microphone in real-time

梦想的初衷 提交于 2019-11-27 09:25:46
问题 I've been trying to get my application recording the sound coming from the microphone and playing it back in (approximately) real-time, however without success. I'm using AudioRecord and AudioTrack classes for record and playback, respectively. I've tried different approaches, I've tried to record the incoming sound and write it to a file and it worked fine. I've also tried to playback sound from that file AFTER with AudioTrack and it worked fine too. The problem is when I try to play the

How to record voice in “wav” format in Android [closed]

老子叫甜甜 提交于 2019-11-27 05:41:36
问题 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 last year . I have written a piece of code in Android that encodes audio in "3gpp" format, but I need to encode to "wav". I referred some forums and Android developer sites, they say Android does not support "wav" format. How do I accomplish this? 来源: https://stackoverflow.com/questions/4871149