voice-recording

java.lang.IllegalStateException at android.media.MediaRecorder.start(Native Method)

偶尔善良 提交于 2019-12-01 11:01:11
I want to make a voice recorder app but it crashes when i click the "Start Recording" button. I get an error saying java.lang.IllegalStateException at android.media.MediaRecorder.start(Native Method). Ive also attached the log. package com.example.sahil.chuckit; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.app.Activity; import android.media.MediaPlayer; import android.media.MediaRecorder; import android.os.Environment; import java.io.File; public class MainActivity extends Activity { private static Button submit; private static Button submit2

Twilio Recording: Pause and Resume

我的梦境 提交于 2019-12-01 06:25:15
问题 I believe the answer is no, but does Twilio provide ability to pause/resume a recording? Use case is recording a call, but pausing recording when collecting sensitive information. From the REST documentation, it doesn't appear to be a supported capability. Thought someone might have found some options for this requirement. 回答1: This is possible, though it's not wholly obvious how from the documentation. You can modify call state using the REST API, as per https://www.twilio.com/docs/api/rest

Realtime AudioQueue Record-Playback

大城市里の小女人 提交于 2019-11-30 16:25:07
Hey fellows, Iam trying to build an application for realtime voicechanging. In a first step I managed to record audiodata to a specified file and to play it after recording. Now I try to change the code for playing back the audiobuffers right after recording them in loop. My question is, how it is possible to read the Audiodata directly from the recording Audioqueue and not (like shown in documentation) from a file. Iam thankful for any ideas and could show code-parts if needed. Thanks in advance, Lukas (from Germany) Have a look at the SpeakHere example. This line sources the audio data:

Realtime AudioQueue Record-Playback

怎甘沉沦 提交于 2019-11-30 16:14:20
问题 Hey fellows, Iam trying to build an application for realtime voicechanging. In a first step I managed to record audiodata to a specified file and to play it after recording. Now I try to change the code for playing back the audiobuffers right after recording them in loop. My question is, how it is possible to read the Audiodata directly from the recording Audioqueue and not (like shown in documentation) from a file. Iam thankful for any ideas and could show code-parts if needed. Thanks in

are there any ASP.NET with Voice Recording sample codes?

那年仲夏 提交于 2019-11-30 16:07:20
I am wondering if there is any codes sample for ASP.NET with Voice recording. Ok, Basically, i want to create a web page that allow user to click a record button and record his voice thru his/her microphone and then convert it into mp3 file, then i want to click PLAY button to play what was recorded. I have searched google alot and cannot find any codes that code do just that. I have seen site that can do just that and it is using FLASH with RoR (i think). Is there any way to record voice using ASP.NET? I dont care if it need to combine with FLASH with ASP.NET, as long as it is possible.

Record Call in Android 2.2

落花浮王杯 提交于 2019-11-30 12:17:24
问题 I have written this code for recording Calls. It works fine in Android 2.1. In Android 2.2, it creates an output file with 0 bytes. How I can solve this? MediaRecorder _recorder = new MediaRecorder(); public void start() throws IOException { try { String state = android.os.Environment.getExternalStorageState(); if (!state.equals(android.os.Environment.MEDIA_MOUNTED)) { throw new IOException("SD Card is not mounted. It is " + state + "."); } // make sure the directory we plan to store the

Record Call in Android 2.2

不羁岁月 提交于 2019-11-30 02:26:30
I have written this code for recording Calls. It works fine in Android 2.1. In Android 2.2, it creates an output file with 0 bytes. How I can solve this? MediaRecorder _recorder = new MediaRecorder(); public void start() throws IOException { try { String state = android.os.Environment.getExternalStorageState(); if (!state.equals(android.os.Environment.MEDIA_MOUNTED)) { throw new IOException("SD Card is not mounted. It is " + state + "."); } // make sure the directory we plan to store the recording in exists File directory = new File(Environment.getExternalStorageDirectory().getAbsolutePath() +

are there any ASP.NET with Voice Recording sample codes?

亡梦爱人 提交于 2019-11-29 22:53:37
问题 I am wondering if there is any codes sample for ASP.NET with Voice recording. Ok, Basically, i want to create a web page that allow user to click a record button and record his voice thru his/her microphone and then convert it into mp3 file, then i want to click PLAY button to play what was recorded. I have searched google alot and cannot find any codes that code do just that. I have seen site that can do just that and it is using FLASH with RoR (i think). Is there any way to record voice

Can't implement Google API Sample (VoiceRecognition)

可紊 提交于 2019-11-29 13:16:19
I am very new to Android development, I am trying to create a basic application that makes use of the VoiceRecognition facility to display the text spoken... package com.example.android.apis.app; import com.example.android.apis.R; import android.app.Activity; import android.content.Intent; import android.content.pm.PackageManager; import android.content.pm.ResolveInfo; import android.os.Bundle; import android.speech.RecognizerIntent; import android.view.View; import android.view.View.OnClickListener; import android.widget.ArrayAdapter; import android.widget.Button; import android.widget

Improve Audio Recording quality in android?

对着背影说爱祢 提交于 2019-11-29 08:20:57
I am using the MediaRecorder for audio recording in android. I receive very poor audio quality when I record. I checked iPhone recording, and it is very good, but in android I receive horrible sound. For sound recording I use: recorder = new MediaRecorder(); recorder.setAudioSource(MediaRecorder.AudioSource.MIC); recorder.setOutputFormat(MediaRecorder.OutputFormat.DEFAULT); recorder.setAudioEncoder(MediaRecorder.AudioSource.DEFAULT); recorder.setOutputFile(path); recorder.prepare(); recorder.start(); How do I improve Audio Recording quality? Try this one - recorder = new MediaRecorder();