voice-recording

Call recording with OpenSL

纵然是瞬间 提交于 2019-11-29 04:04:21
问题 I try to fix call recording in my app since lolipop update in my Galaxy S5. As a base I am using google sample project from here: Sample. And this is the main part of the code: AudioRecorder::AudioRecorder(SampleFormat *sampleFormat, SLEngineItf slEngine) :freeQueue_(nullptr), recQueue_(nullptr), devShadowQueue_(nullptr), callback_(nullptr) SLresult result; sampleInfo_ = *sampleFormat; SLAndroidDataFormat_PCM_EX format_pcm; ConvertToSLSampleFormat(&format_pcm, &sampleInfo_); gFp = fopen("

Linux pipe audio file to microphone input

半腔热情 提交于 2019-11-28 22:00:47
I'm looking for a way to feed audio data from a file into the microphone so when 3rd party applications (such as arecord or Chromium's "search by voice" feature) use the microphone for audio input, they receive the audio data from the file instead. Here's my scenario : An application I wrote records audio data from the microphone (using ALSA) and saves it to a file (audioFile0.raw). At some unknown point in time in the future, some unknown 3rd party application (as in, something I did not develop so I have no development control over, such as the Chromium web browser's "search by voice"

Can I use javascript to record voice on a web app?

只谈情不闲聊 提交于 2019-11-28 19:29:47
It seems I can only use Flash or Java to record voice on a web app. Is there a way of doing it via JavaScript? Philip Kirkbride It can be done but the solution won't work across all platforms at the moment. <input type="file" accept="audio/*;capture=microphone"> See HTML5 Media Capture Currently Supported By: Android 3.0 browser, Chrome for Android (0.16), Firefox Mobile 10.0, iOS6 Safari and Chrome (partial support) Links: http://www.html5rocks.com/en/tutorials/getusermedia/intro/ Audio capturing with HTML5 Javascript cannot access your hardware directly. What you need, is a client side

How to capture audio in javascript?

我的梦境 提交于 2019-11-28 17:05:11
I am currently using getUserMedia() , which is only working on Firefox and Chrome, yet it got deprecated and works only on https (in Chrome). Is there any other/better way to get the speech input in javascript that works on all platforms? E.g. how do websites like web.whatsapp.com app record audio? getUserMedia() prompts first-time-users to permit audio recording, whereas the Whatsapp application doesn't require the user's permission. The getUserMedia() I am currently using looks like this: navigator.getUserMedia( { "audio": { "mandatory": { "googEchoCancellation": "false",

Can't implement Google API Sample (VoiceRecognition)

萝らか妹 提交于 2019-11-28 06:40:37
问题 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

Voice recording on iPhone by using Safari and HTML5

≯℡__Kan透↙ 提交于 2019-11-28 06:34:17
I am developing a simple web application which only records a voice from microphone but I have some trouble. HTML5 voice recording function works well on chrome and firefox desktop or android. But while using mobile browsers on iPhone even chrome and firefox it doesn't work. I tried recorder.js and result did not change. Is it possible to recording voice on safari or it is a missing function of safari or iOS? Since iOS11, Safari now supports Media Capture API: New in Safari 11.0 – Camera and microphone access. Added support for the Media Capture API. Added ability for websites to access camera

Improve Audio Recording quality in android?

放肆的年华 提交于 2019-11-28 01:47:15
问题 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

How can I record voice and record Call in Android? [closed]

空扰寡人 提交于 2019-11-27 17:18:00
Please help me if you know how to record voice, and also to record the voice of both caller and calle during a phone call. If anybody knows then give me a hint. Abhijit Chakra Yes It is possible just do this final MediaRecorder callrecorder = new MediaRecorder(); callrecorder.setAudioSource(MediaRecorder.AudioSource.VOICE_CALL); callrecorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4); callrecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); callrecorder.setOutputFile(filepath); try { callrecorder.prepare(); } catch (IllegalStateException e) { System.out.println("An

How to capture audio in javascript?

一世执手 提交于 2019-11-27 10:23:26
问题 I am currently using getUserMedia() , which is only working on Firefox and Chrome, yet it got deprecated and works only on https (in Chrome). Is there any other/better way to get the speech input in javascript that works on all platforms? E.g. how do websites like web.whatsapp.com app record audio? getUserMedia() prompts first-time-users to permit audio recording, whereas the Whatsapp application doesn't require the user's permission. The getUserMedia() I am currently using looks like this:

How can I record voice and record Call in Android? [closed]

瘦欲@ 提交于 2019-11-26 22:33:30
问题 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 . Please help me if you know how to record voice, and also to record the voice of both caller and calle during a phone call. If anybody knows then give me a hint. 回答1: Yes It is possible just do this final MediaRecorder callrecorder = new MediaRecorder(); callrecorder.setAudioSource(MediaRecorder.AudioSource.VOICE