recording

Store and retreieve blob from sqllite database for android

流过昼夜 提交于 2019-12-12 09:24:09
问题 I need to know to define blob data type in eclipse. I am developing an app for android and i want to save image and a recording in database. I know have to use blob as the data type. My question is how do i define it in the class and the DBhandler class. Can someone provide me help with codes. 回答1: Blob is used to save byte array in sqlite. To convert a bitmap to byte array use following code: Bitmap image = BitmapFactory.decodeResource(getResources(), R.drawable.thumbnail);

Android: AudioRecord Class Problem: Callback is never called

跟風遠走 提交于 2019-12-12 07:10:29
问题 My Android Java Application needs to record audio data into the RAM and process it. This is why I use the class "AudioRecord" and not the "MediaRecorder" (records only to file). Till now, I used a busy loop polling with "read()" for the audio data. this has been working so far, but it peggs the CPU too much. Between two polls, I put the thread to sleep to avoid 100% CPU usage. However, this is not really a clean solution, since the time of the sleep is not guaranteed and you must subtract a

How to amplify, increase bitrate and Fadin- fadout the recorded audio in Windows Phone 7?

旧城冷巷雨未停 提交于 2019-12-12 05:16:31
问题 I am facing the following problem regarding to the voice (Audio) recording in windows phone 7. I am recording the sound using Microphone class available in Microsoft.Xna.Framework.Audio namespace. here is the code - Variable declaration: private Microphone mic = Microphone.Default; private MemoryStream stream; private const string FILE_NAME = "recording.mp3"; byte[] buffer; Recording Button click code- mic.BufferDuration = TimeSpan.FromSeconds(1); buffer = new byte[mic.GetSampleSizeInBytes

chrome.desktopCapture throws an error on “tab” as DesktopCaptureSourceType

白昼怎懂夜的黑 提交于 2019-12-11 12:37:54
问题 I am developing a chrome extension, and my point here is to record a browser tab , like Screencastify chrome extension records the browser tab. I referred desktopCapture , a chrome API which works perfectly for "screen" and "window" as DesktopCaptureSourceType, whereas for "tab" as DesktopCaptureSourceType, it throws an error as desktopCapture.chooseDesktopMedia: Tab capture is not supported yet. I have configured the required permissions in manifest.json of my extension. Could anyone suggest

How to record voice with an iPad?

跟風遠走 提交于 2019-12-11 12:16:03
问题 I need a good example or guidelines for recording voice on an iPad. Whatever I say, I want to be able to play back later. How can I do this? 回答1: Actually, there are no examples at all. Here is my working code. Recording is triggered by the user pressing a button on the navBar. The recording uses cd quality (44100 samples), stereo (2 channels) linear pcm. Beware: if you want to use a different format, especially an encoded one, make sure you fully understand how to set the AVAudioRecorder

How to record sound from a microphone in VB6?

三世轮回 提交于 2019-12-11 06:28:32
问题 We've been recording sound for over a decade using what seems like a very clunky method using the Winmm.dll and the MCIsendString. I've read that this doesn't set the recording quality value correctly (not sure if that article was ever true or is still true). I was wondering if there is any better way to record sound, such as using the MCI control, etc. 回答1: "Clunky" is right. I've also been using the MciSendString method. If you are willing to move off VB6, you could use the Microphone

How to record audio stream using ffmpeg?

青春壹個敷衍的年華 提交于 2019-12-11 05:48:32
问题 I have a problem using ffmpeg: when i trying to record video+audio from my webcam in result i got only video stream, wthout audio at all. I have tried different codecs and nothing.. Maybe, someone can give me advice? ffmpeg -f dshow -i video="Logitech HD Webcam C270" -r 25 -s 800x600 -acodec libmp3lame -vcodec mpeg4 -b 3000k -f avi D:\1.avi Btw: virtualdub grabs both well. Thanks. 回答1: Assuming that you have installed the driver and codecs, use something like: ffmpeg -f dshow -i video=

Record/Convert AUDIO data to WAV in Real-time

你说的曾经没有我的故事 提交于 2019-12-11 03:26:32
问题 I am new when it comes to audio signal processing. Currently I have connected device to my PC that sends me audio data from mic/playback track. I have already created host application with usage of Steinberg ASIO SDK 2.3 which connects to the device and in repeating callback returns raw data. Signal is 24bit and frequency can be chosen whatever I like, let's say 44100 hZ, 2pan's, single channel. I have converted this signal also to double <-1.0, 1.0> because I am doing some signal processing

print floats from audio input callback function

穿精又带淫゛_ 提交于 2019-12-11 02:42:36
问题 I'm working on a university project that involves a lot of programming in C, especially with Portaudio & ALSA. At the moment i'm trying to make a callback function to pass audio through, standard input/output job. I was wondering if anybody could tell me how to print the floats from my inputBuffer to display in real time in the terminal? Here is the internal structure of my callback function so far. Thanks very much for your help in advance! #define SAMPLE_RATE (44100) #define PA_SAMPLE_TYPE

Pausing Audio Recording in Java

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-10 19:53:17
问题 I am trying to implement a pause/resume functionality for my audio recording module in Java. So far all I have found on SO is this, which does not give a definitive answer - I have tried the answerer's suggestion of calling start() and stop() on the TargetDataLine to achieve this, and am aware that stop() (from Oracle): "Stops the line. A stopped line should cease I/O activity. If the line is open and running, however, it should retain the resources required to resume activity. A stopped line