voice-recording

AudioRecord while also playing audio - accessing output playback data

放肆的年华 提交于 2021-01-29 08:08:23
问题 I'm messing around in my app with a custom model for speech commands - I have it working fine recording and processing input audio from an AudioRecord, and I give feedback to the user through text to speech. One issue I have is that I'd like this to work even when audio is playing - either through my own text to speech or through something else playing in the background (music for instance). I realize this is going to be a non trivial problem, but if I could get access in some way to the

How to compare two audio data?

安稳与你 提交于 2020-01-31 18:06:50
问题 I will record my own voice and save them as wav files in my computer. Later on I will speak and computer should match my voice command with preexisting/pre-recorded wav files.. Question: How to check two audio data are equal or there is 80%match between two audio? if(audio1 == audio2) DO Task A else if( audio1 is a bit similar to audio 2) DO TASK B else if( audio1 (80% match) audio 2) DO TASK C end if What is the best way to compare two audio data? 回答1: Unfortunately you won't get anywhere

How to compare two audio data?

独自空忆成欢 提交于 2020-01-31 18:06:34
问题 I will record my own voice and save them as wav files in my computer. Later on I will speak and computer should match my voice command with preexisting/pre-recorded wav files.. Question: How to check two audio data are equal or there is 80%match between two audio? if(audio1 == audio2) DO Task A else if( audio1 is a bit similar to audio 2) DO TASK B else if( audio1 (80% match) audio 2) DO TASK C end if What is the best way to compare two audio data? 回答1: Unfortunately you won't get anywhere

how to save the recorded audio files in another folder programmatically?

泄露秘密 提交于 2020-01-11 09:55:07
问题 i'm trying to save the recorded audio files in a folder that i wanted it to be rather then the default folder. but somehow i failed to do so. my code: Intent recordIntent = new Intent(MediaStore.Audio.Media.RECORD_SOUND_ACTION); Uri mUri = Uri.fromFile(new File(Environment.getExternalStorageDirectory(), "/Record/sound_"+ String.valueOf(System.currentTimeMillis()) + ".amr")); recordIntent.putExtra(android.provider.MediaStore.EXTRA_OUTPUT, mUri); startActivityForResult(recordIntent, RESULT_OK);

SpeakHere voice recorder fails after AVAudioPlayer in iOS

a 夏天 提交于 2020-01-04 17:09:25
问题 I am using Apple's SpeakHere example in my project. I can record voice and play without problems.. The problem occurs when I change the view controller where I am using AVAudioPlayer to play recorded voices.. If I go back to SpeakHereViewController to record once again, then it keeps saying "ERROR: metering failed". Why is it happening? Thanks in advance. 来源: https://stackoverflow.com/questions/17691616/speakhere-voice-recorder-fails-after-avaudioplayer-in-ios

iPhone App › Add voice recognition? [closed]

心不动则不痛 提交于 2019-12-27 10:27:54
问题 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 6 years ago . I'd like to build an app that uses voice recognition. I've seen big companies like Google etc implement this feature, but I'm curious about doing it on a start-up level. Anyone looked into this? Are there any tools out there for us to do this? 回答1: OpenEars looks promising... http://www.politepix.com/openears/

iPhone App › Add voice recognition? [closed]

不打扰是莪最后的温柔 提交于 2019-12-27 10:27:48
问题 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 6 years ago . I'd like to build an app that uses voice recognition. I've seen big companies like Google etc implement this feature, but I'm curious about doing it on a start-up level. Anyone looked into this? Are there any tools out there for us to do this? 回答1: OpenEars looks promising... http://www.politepix.com/openears/

Trying to record voice in android but getting error

ε祈祈猫儿з 提交于 2019-12-23 03:12:31
问题 I am trying to record voice in android emulator (android 4.1). But I when I press the button to start recording then it immediately return from the function and executes next line that logs a message saying "Recorded". Then, I press the stop button and in Logcat message appears that media recorder went away with unhandled events. If I again press the button to start recording then I get an error message saying FATAL SIGNAL 11. And I dont know how to access the SD card to see if the file is

is it possible to mute a call while recording the sound in android

一笑奈何 提交于 2019-12-22 11:36:07
问题 I want to build a app where I want to modulate the sound in a call.I have written a code that record the sound nd play it in different pitch.Now I want this feature while calling.I want to mute the call record the sound then play it with diff pitch.How to mute the call but still record the audio. 回答1: This answer works to mute your microphone during a call: Boolean isMuted = false; Then in your event, say an onClick AudioManager audioManager = (AudioManager) getContext().getSystemService

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

喜夏-厌秋 提交于 2019-12-19 10:16:14
问题 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;