Android voice recognition another audio source - android

Is it possible to use android voice recognition from another audio source (then the microphone) such as file or the audio coming from the device itself?

Related

Android Record audio to file controller when calling WebRTC

currently I'm developing Android app which using WebRTC native. I want to know if there is a way to record only my voice to file during the call? There is RecordedAudioToFileController.java but it will record my voice and caller voice also. I need to record my voice during the call only. Thank you.
I got it, we need to change the audio source in WebRTCAudioRecord from Voice communication to Mic.

Android Speech Recognition Using USB Microphone

I'm trying to use RecognizerIntent for speech input and have the audio come from an external USB microphone. Since I'm using a development board, there is no internal mic. Is it possible to set USB microphone as default Audio input? Maybe use tinyalsa to set sound card? I know you can record using MediaRecorder via USB, but that doesn't work with Speech Recognition API.
I'm using Android 5.1.
Thanks

Voice Recognition with an audio file?

I am currently working on an app that would require recording the audio within my app and then sending the clip to google for transcription.
Is there any way I can send an audio clip to be processed with speech to text?
Or is there any other way other than this to convert that recording to text ?
Google's Voice To Text API is not available publicly at the moment and there's no announcement on where it could become available. On Android you can use system voice recognition feature, but it will only transcribe what it records by itself and your won't be able to feed it with any audio file for processing.
As for now, you either need to use other services like AT&T's, IBM's Watson, Dragon Dictation (all are on-line) or maybe consider including Sphinx CMU into your app if you absolutely demand off-line solution.

Android VOIP How to stream audio and video on voice chat

I am looking to develop an app, that can make an audio call using sip and then user A (the caller) plays a media file from his android phone and user b (the receiver) can also hear the audio and video in realtime, how i can accomplish this? can we transfer media sounds through sip or voip without using mic? that is a sound of media playing on device's media player, any guidance or links to study will be helpful.thanks!
I am looking to develop an app, that can make an audio call using sip
Yes, Android's SIP package has that facility built-in for you.
user A (the caller) plays a media file from his android phone and user
b (the receiver) can also hear the audio and video in realtime, how i
can accomplish this?
As for streaming the video, you need RTSP instead of SIP. Have a look at Video streaming using RTSP: Android
Further Reading:
Upload live android webcam video to RTP/RTSP Server
Creating RTP Packets from Android Camera to Send
Library:
https://github.com/fyhertz/libstreaming

How to detect when another app uses audio output?

I am working on a radio application and I am facing a problem that is: while my application is running and using audio output, if another application used the audio output, the sound then overlaps. I need to turn off my application's media player once the audio output is used by another application. How to detect when the audio output is used by another application?

Categories

Resources