Get voice stream during android call - android

I have wifi connection between java desktop app and android app. I need to transfer opponent's voice during call to desktop side and also transer my voice from desktop's microphone to opponent. How can I do it? How can I get input and output streams of call?

You can not handle gsm call data (neither send over uplink nor receive over downlink). I think you can try sip calls if that meets your requirement.

Related

How do I access voice data in a phone call?

I'm a newbie in the Android and telecom world.
I'm trying to access the voice stream in a phone call and encrypt it before sending it to the network.
Is there a way to access voice stream in Android?

alter the audio input and output of a phone call in android

I am trying to build a calling app that will pass the phone call audio output, input to and from the computer respectively.
For this, I am creating a server on a computer that will use WebSockets to communicate with the android device over WLAN.
But I am not able to find a way to get audio input and output from the phone call.
Any advice on how to approach this would be hugely appreciated.

Android Speech to text on voice calls

Hello is it possible to have a speech to text option on calls wherein the receiver of the call will get a live transcript of that call. I have tried to read about IBM Watson's Speech to Text service but to no avail as it only has instructions on already recorded data. Can anyone help me out or is this not possible?
You can stream in audio, but you will need to make use of the web sockets API - https://cloud.ibm.com/apidocs/speech-to-text#recognize-audio-websockets-
You open the web socket, send a start packet, then send the stream as you capture it as data packets, terminate with an stop packet. You will need to set interim_results to true if you want a transcript flow.

how to send text(command) via Bluetooth to handle robot from android device?

My actual req is controlling of robot from android device.
Voice to text conversion n send that commonds which matches the text. Say start -1 ,here 1 is command which I need to send to robot.....so can u please tell me the procedure to be followed.
is it possible to send only text instead of file??
There are three parts to what you have described: hotword detection, a bluetooth server, and a bluetooth client. What follows is a short description of what this envolves.
For the hotword detection, this will require registering a service for your hotword. When your hotword is recognized Android will call your service.
For the bluetooth server, depending on how it is set up either side could be the server. To create a listening bluetooth server socket, use BluetoothAdapter.listenUsingRfcommWithServiceRecord() and then call accept(). This is blocking meaning don't use it in your main thread.
For the bluetooth client, once again depending on how it is set up either side could be the client. To connect to a listening bluetooth server socket, you can use BluetoothDevice.createRfcommSocketToServiceRecord() and call connect().
Once a bluetooth connection is established you can send and retrive data (for example a string) using input and output streams.
When you are done with your connections don't forget to close the sockets.
Any bluetooth device will have something similar. So if it's not an Android powered robot, you will have to look into the specific API for that device.
For additional learning about bluetooth communication between two Android devices, have a look at the Android bluetooth API guide and sample BluetoothChat.
Cheers!

Is it possible to intercept voice data during call?

I plan to develop Android application which will encrypt/decrypt voice data such that parties can communicate using secure channel. So the question is: how to intercept voice/audio data during GSM call? Is it possible or not? Should I use Android NDK or something else?
In GSM it is not possible to encrypt the voice and send it through the voice channel due to channel characteristics. The signal sent through the voice channel has to be (similar to) human voice as vocoder (CELP) is used for channel coding.
So even if you had access to low level libraries and used it to encrypt voice to send it directly through the voice channel it would be not possible for the called party to receive and decrypt the signal.
Encrypted voice however could be sent through the data channel as data.
This is something that happens in the low level of the operating system. You wouldn't be able to access this information in the application level.
I suggest that you look into VOIP like SipDroid. I bet you'll be able to set it up to use encryption easily. (srtp instead of rtp)
Even if you SipDroid doesn't support this, it's is open source so you could add this feature.
Call recording is not yet possible on Android. See this feature request.
You can record your voice from microphone, but you can not record the sound of the other party. If you only want to record your voice use android.media.MediaRecorder.AudioSource.MIC
Simple Answer, NO!
if you are able to access low level libraries and used it to encrypt voice to send it directly through the voice channel off course it would not be possible for the called party to receive and decrypt the signal but if you modulate encrypted voice data and transform this voice data into speech like waveform and send through the voice channel of GSM then surely other party will receive and decrypt the voice.
I know there are apps that act like voice changer where they change your voice and transmit that thru gsm voice. Maybe you can make an app that takes the voice then modulate it to something like phase shift keying or digital radio monodiale like what hams used in vhf and hf radio communication and transmit the audio to gsm then demodulate it back to voice but instead of straight forward modulation demodulation you can add pgp, aes, or whatever encryption you like. I'm also intrested to see a project like this.
I think it would also be great if you could use this to transmit data thru voice gsm channel like the 56k modems in the past instead of the gprs channel.
See reference
http://freedv.org/tiki-index.php
http://www.aprs.org

Categories

Resources