is there a way to play a tone over bluetooth?
I'm not trying to stream audio or anything fancy, I just want the headset to make a beep sound like when pressing an on screen button or getting a call.
There is no current way to assign the device to play a sound. It will always play to the default output device.
If the Bluetooth headset is the default output device at that time, the MediaPlayer sounds will be heard in it.
Audio and Video
Audio and Video Playback
Media can be played from anywhere:
from a raw resource, from a file from
the system, or from an available
network (URL).
You can play back the audio data only
to the standard output device;
currently, that is the mobile device
speaker or Bluetooth headset. You
cannot play sound files in the
conversation audio.
Related
Currently using AudioTrack and AudioRecord to record and play simultaneously, it's working great on the same device (either headset mic + headset speakers or phone mic + phone speakers). However, what I'd like to do is record from a device and play from another, for instance recording from my bluetooth headset microphone and then having the output on the device built-in speakers (or another pair of headset/headphones).
I have been trying for a few days but I could not find anything. Hence I am asking, is it even possible?
Is it possible: Play music to caller with mute my mic so that the call can't hear my voice or sound but he can hear the music.
Note: You can play back the audio data only to the standard output
device. Currently, that is the mobile device speaker or a Bluetooth
headset. You cannot play sound files in the conversation audio during
a call.
http://developer.android.com/guide/topics/media/mediaplayer.html
whether it is possible during a call instead of your voice to play a sound recording with flash card phone? if I can withdraw from a microphone, can I send them to him during a call?
i'm trying to write an app that will get audio notifications and will stream them on a bluetooth headset. i want this done while other audio frames are playing through the device's speaker (for instance, there is a song playing on another app).
i only want the audio notification to play on the headset, other audio frames should still come out of the speaker.
right now, it doesn't matter whether the other audio frame will pause while the notification is played on the headset or not.
i've looked and found no example of how to do this.
is it at all possible?
can someone direct me?
with regards,
Tamir.
A and B are talking on the phone. During the call, A presses a button that pulls audio from a resource and plays it over the phone call to B.
Is this possible using the Android framework? The goal is for the person on the other end of the call to hear the audio.
If it's not possible, is it a hardware limitation or a limit of the Android framework?
I believe that you cannot achieve that, according to the documentation HERE :
Note: You can play back the audio data only to the standard output device.
Currently, that is the mobile device speaker or a Bluetooth headset.
You cannot play sound files in the conversation audio during a call.
According to http://developer.android.com/reference/android/media/AudioManager.html, there are a number of channels though which audio can be played:
STREAM_ALARM The audio stream for alarms
STREAM_DTMF The audio stream for DTMF Tones
STREAM_MUSIC The audio stream for music playback
STREAM_NOTIFICATION The audio stream for notifications
STREAM_RING The audio stream for the phone ring
STREAM_SYSTEM The audio stream for system sounds
STREAM_VOICE_CALL The audio stream for phone calls
These are what the android framework allows for. It would seem to me that two are of potential interest to you: STREAM_DTMF or, more likely, STREAM_VOICE_CALL. I haven't experimented personally, but if I was trying to do this, I would start by trying those two.