¡@

Home 

2014/10/16 ¤W¤È 08:10:18

android Programming Glossary: audio

How to set ringtone in Android from my activity?

http://stackoverflow.com/questions/1271777/how-to-set-ringtone-in-android-from-my-activity

215454 values.put MediaStore.MediaColumns.MIME_TYPE audio mp3 values.put MediaStore.Audio.Media.ARTIST Madonna values.put.. uri of the file which could be something like external audio media 46 The 46 is the id of the column in the MediaStore database..

Sending and Receiving SMS and MMS in Android (pre Kit Kat Android 4.4)

http://stackoverflow.com/questions/14452808/sending-and-receiving-sms-and-mms-in-android-pre-kit-kat-android-4-4

an MMS such as the file path to the media attachment image audio video or the text in the MMS MMSReceiver.java public class MMSReceiver..

Android multiple email attachments using Intent

http://stackoverflow.com/questions/2264622/android-multiple-email-attachments-using-intent

program to send email with an attachment image file audio file etc using Intent with ACTION_SEND . The program is working..

Playing an arbitrary tone with Android

http://stackoverflow.com/questions/2413426/playing-an-arbitrary-tone-with-android

of outputting the standard DTMF tones. Any ideas android audio share improve this question I originally found this example.. idx byte val 0xff00 8 void playSound final AudioTrack audioTrack new AudioTrack AudioManager.STREAM_MUSIC sampleRate AudioFormat.CHANNEL_CONFIGURATION_MONO.. generatedSnd.length AudioTrack.MODE_STATIC audioTrack.write generatedSnd 0 generatedSnd.length audioTrack.play..

Ideal way to cancel an executing AsyncTask

http://stackoverflow.com/questions/2735102/ideal-way-to-cancel-an-executing-asynctask

way to cancel an executing AsyncTask I am running remote audio file fetching and audio file playback operations in a background.. AsyncTask I am running remote audio file fetching and audio file playback operations in a background thread using AsyncTask..

How to Read MMS Data in Android?

http://stackoverflow.com/questions/3012287/how-to-read-mms-data-in-android

bit different. They can be built with different parts text audio images etc. so here will see how to retrieve each kind of data..

How to encode a WAV to a mp3 on a Android device

http://stackoverflow.com/questions/3641920/how-to-encode-a-wav-to-a-mp3-on-a-android-device

a bounty What options are there for compressing raw PCM audio data to a mp3 on a Android device. My original post I'm creating.. to save to the sdcard. The MediaRecorder object can encode audio coming from the microphone into various formats but doesn't.. doesn't allow the encoding from programmatically generated audio data. So my question is is there a standard Android API for..

Android MediaPlayer works fine in Custom audio Streaming application up to Android 2.1 but not in higher versions

http://stackoverflow.com/questions/8671479/android-mediaplayer-works-fine-in-custom-audio-streaming-application-up-to-andro

MediaPlayer works fine in Custom audio Streaming application up to Android 2.1 but not in higher versions.. SHOUTcast URL but not with the other one I need to play audio files from external URLs shoutcast stream . Currently the audio.. files from external URLs shoutcast stream . Currently the audio files are downloaded incrementally are played as soon as we..

Android 2.2 MediaPlayer is working fine with one SHOUTcast URL but not with the other one

http://stackoverflow.com/questions/8681550/android-2-2-mediaplayer-is-working-fine-with-one-shoutcast-url-but-not-with-the

Android 2.2 or higher . Thanks android media player uri audio streaming shoutcast share improve this question Shoutcast.. on the device to capture the stream and pass it to the audioplayer just like NPR does. audio aacp streaming is not supported.. stream and pass it to the audioplayer just like NPR does. audio aacp streaming is not supported directly . For this you can..

Using the Android RecognizerIntent with a bluetooth headset

http://stackoverflow.com/questions/14991158/using-the-android-recognizerintent-with-a-bluetooth-headset

profile. I can use an app called SoundAbout to force Media Audio to Bluetooth mono SCO . With this app set my voice recognition.. this solve my problem Do I have to muck around in the AudioManager like I assume SoundAbout is doing to route the audio.. Context context super context @Override public void onScoAudioDisconnected Cancel speech recognizer if desired @Override public..

Streaming Audio from A URL in Android using MediaPlayer?

http://stackoverflow.com/questions/1965784/streaming-audio-from-a-url-in-android-using-mediaplayer

Audio from A URL in Android using MediaPlayer I've been trying to..

setting audio file as Ringtone

http://stackoverflow.com/questions/4603941/setting-audio-file-as-ringtone

audio values.put MediaStore.Audio.Media.ARTIST cssounds values.put MediaStore.Audio.Media.IS_RINGTONE.. cssounds values.put MediaStore.Audio.Media.IS_RINGTONE true values.put MediaStore.Audio.Media.IS_NOTIFICATION.. true values.put MediaStore.Audio.Media.IS_NOTIFICATION false values.put MediaStore.Audio.Media.IS_ALARM..

FFMPEG on Android

http://stackoverflow.com/questions/4725773/ffmpeg-on-android

for MM playback I have a requirement where I have already Audio and Video TS which I need to feed to FFMPEG and get it decoded..

Can the Android emulator record and play back audio using pc hardware?

http://stackoverflow.com/questions/5254994/can-the-android-emulator-record-and-play-back-audio-using-pc-hardware

. Then use the MediaRecorder API 1 to record MediaRecorder.AudioSource.MIC . Code is fMediaRecorder new MediaRecorder fMediaRecorder.setAudioSource.. Code is fMediaRecorder new MediaRecorder fMediaRecorder.setAudioSource MediaRecorder.AudioSource.MIC fMediaRecorder.setOutputFormat.. MediaRecorder fMediaRecorder.setAudioSource MediaRecorder.AudioSource.MIC fMediaRecorder.setOutputFormat MediaRecorder.OutputFormat.AMR_NB..

Android - how to unregister a receiver created in the manifest?

http://stackoverflow.com/questions/6529276/android-how-to-unregister-a-receiver-created-in-the-manifest

Android: Need to record mic input

http://stackoverflow.com/questions/6959930/android-need-to-record-mic-input

process for playback preview in real time I tried to use AudioRecord and AudioTrack to do this but the problem is that my device.. preview in real time I tried to use AudioRecord and AudioTrack to do this but the problem is that my device cannot play.. real time you can start a separate thread and use an AudioRecord and an AudioTrack . Just be careful with feedback. If..

Voice Detection in Android Application

http://stackoverflow.com/questions/7955041/voice-detection-in-android-application

I am using android standard classes android.media.AudioRecord to do that. Application have 2 buttons Start and Stop.. buffer size required for the successful creation of an AudioRecord object. int bufferSizeInBytes AudioRecord.getMinBufferSize.. creation of an AudioRecord object. int bufferSizeInBytes AudioRecord.getMinBufferSize RECORDER_SAMPLERATE RECORDER_CHANNELS..

Live Audio Recording and Playing in Android and Thread & callback handling

http://stackoverflow.com/questions/9413998/live-audio-recording-and-playing-in-android-and-thread-callback-handling

Audio Recording and Playing in Android and Thread callback handling.. task recording playing . For that purpose I have used AudioRecord and AudioTrack classes for recording and playing respectively... playing . For that purpose I have used AudioRecord and AudioTrack classes for recording and playing respectively. My Program..

How to set ringtone in Android from my activity?

http://stackoverflow.com/questions/1271777/how-to-set-ringtone-in-android-from-my-activity

My Song title values.put MediaStore.MediaColumns.SIZE 215454 values.put MediaStore.MediaColumns.MIME_TYPE audio mp3 values.put MediaStore.Audio.Media.ARTIST Madonna values.put MediaStore.Audio.Media.DURATION 230 values.put MediaStore.Audio.Media.IS_RINGTONE.. . That does not work What you need is the external file uri of the file which could be something like external audio media 46 The 46 is the id of the column in the MediaStore database so thats why you need to add the sdcard file into the..

Sending and Receiving SMS and MMS in Android (pre Kit Kat Android 4.4)

http://stackoverflow.com/questions/14452808/sending-and-receiving-sms-and-mms-in-android-pre-kit-kat-android-4-4

was sent from. How do you grab other important things from an MMS such as the file path to the media attachment image audio video or the text in the MMS MMSReceiver.java public class MMSReceiver extends BroadcastReceiver private final String DEBUG_TAG..

Android multiple email attachments using Intent

http://stackoverflow.com/questions/2264622/android-multiple-email-attachments-using-intent

email attachments using Intent I've been working on Android program to send email with an attachment image file audio file etc using Intent with ACTION_SEND . The program is working when email has a single attachment. I used Intent.putExtra..

Playing an arbitrary tone with Android

http://stackoverflow.com/questions/2413426/playing-an-arbitrary-tone-with-android

to find that was even close but it seems to only be capable of outputting the standard DTMF tones. Any ideas android audio share improve this question I originally found this example code on a blog but it had some bugs in it that generated.. low order byte generatedSnd idx byte val 0x00ff generatedSnd idx byte val 0xff00 8 void playSound final AudioTrack audioTrack new AudioTrack AudioManager.STREAM_MUSIC sampleRate AudioFormat.CHANNEL_CONFIGURATION_MONO AudioFormat.ENCODING_PCM_16BIT..

Ideal way to cancel an executing AsyncTask

http://stackoverflow.com/questions/2735102/ideal-way-to-cancel-an-executing-asynctask

way to cancel an executing AsyncTask I am running remote audio file fetching and audio file playback operations in a background thread using AsyncTask . A Cancellable progress bar is.. way to cancel an executing AsyncTask I am running remote audio file fetching and audio file playback operations in a background thread using AsyncTask . A Cancellable progress bar is shown for the time the fetch..

How to Read MMS Data in Android?

http://stackoverflow.com/questions/3012287/how-to-read-mms-data-in-android

body How to get data from a MMS data MMSs are a little bit different. They can be built with different parts text audio images etc. so here will see how to retrieve each kind of data separately. So let's guess we have the MMS id in the mmsId..

How to encode a WAV to a mp3 on a Android device

http://stackoverflow.com/questions/3641920/how-to-encode-a-wav-to-a-mp3-on-a-android-device

on a Android device I'm simplified my question and offered a bounty What options are there for compressing raw PCM audio data to a mp3 on a Android device. My original post I'm creating a synthesiser on my Android phone and I've been generating.. Now I'm wondering if I can encode this PCM data as a mp3 to save to the sdcard. The MediaRecorder object can encode audio coming from the microphone into various formats but doesn't allow the encoding from programmatically generated audio data... audio coming from the microphone into various formats but doesn't allow the encoding from programmatically generated audio data. So my question is is there a standard Android API for encoding audio If not what pure Java or NDK based solutions..

Android MediaPlayer works fine in Custom audio Streaming application up to Android 2.1 but not in higher versions

http://stackoverflow.com/questions/8671479/android-mediaplayer-works-fine-in-custom-audio-streaming-application-up-to-andro

MediaPlayer works fine in Custom audio Streaming application up to Android 2.1 but not in higher versions EDIT Android 2.2 MediaPlayer is working fine with one.. EDIT Android 2.2 MediaPlayer is working fine with one SHOUTcast URL but not with the other one I need to play audio files from external URLs shoutcast stream . Currently the audio files are downloaded incrementally are played as soon as.. URL but not with the other one I need to play audio files from external URLs shoutcast stream . Currently the audio files are downloaded incrementally are played as soon as we get enough audio in phone local temporary storage. i am using..

Android 2.2 MediaPlayer is working fine with one SHOUTcast URL but not with the other one

http://stackoverflow.com/questions/8681550/android-2-2-mediaplayer-is-working-fine-with-one-shoutcast-url-but-not-with-the

code works with Android 2.1 minor versions but not works with Android 2.2 or higher . Thanks android media player uri audio streaming shoutcast share improve this question Shoutcast mp3 streaming from Android 2.2 onwards is supported natively.. without using a proxy on the stream end or a stream proxy class on the device to capture the stream and pass it to the audioplayer just like NPR does. audio aacp streaming is not supported directly . For this you can use ffmpeg opencore or faad2.. end or a stream proxy class on the device to capture the stream and pass it to the audioplayer just like NPR does. audio aacp streaming is not supported directly . For this you can use ffmpeg opencore or faad2 library to decode it into PCM and..

Using the Android RecognizerIntent with a bluetooth headset

http://stackoverflow.com/questions/14991158/using-the-android-recognizerintent-with-a-bluetooth-headset

headset that is paired and connected using the Phone audio profile. I can use an app called SoundAbout to force Media Audio to Bluetooth mono SCO . With this app set my voice recognition now works taking my speech input from my headset. How can.. . This is too new for me to use but would this solve my problem Do I have to muck around in the AudioManager like I assume SoundAbout is doing to route the audio input using setBluetoothScoOn or startBluetoothSco android.. extends BluetoothHeadSetUtils public BluetoothHelper Context context super context @Override public void onScoAudioDisconnected Cancel speech recognizer if desired @Override public void onScoAudioConnected Should start speech recognition..

Streaming Audio from A URL in Android using MediaPlayer?

http://stackoverflow.com/questions/1965784/streaming-audio-from-a-url-in-android-using-mediaplayer

Audio from A URL in Android using MediaPlayer I've been trying to stream mp3's over http using Android's built in MediaPlayer..

setting audio file as Ringtone

http://stackoverflow.com/questions/4603941/setting-audio-file-as-ringtone

MediaStore.MediaColumns.TITLE TwiAppclip values.put MediaStore.MediaColumns.MIME_TYPE audio values.put MediaStore.Audio.Media.ARTIST cssounds values.put MediaStore.Audio.Media.IS_RINGTONE true values.put MediaStore.Audio.Media.IS_NOTIFICATION.. MediaStore.MediaColumns.MIME_TYPE audio values.put MediaStore.Audio.Media.ARTIST cssounds values.put MediaStore.Audio.Media.IS_RINGTONE true values.put MediaStore.Audio.Media.IS_NOTIFICATION false values.put MediaStore.Audio.Media.IS_ALARM.. MediaStore.Audio.Media.ARTIST cssounds values.put MediaStore.Audio.Media.IS_RINGTONE true values.put MediaStore.Audio.Media.IS_NOTIFICATION false values.put MediaStore.Audio.Media.IS_ALARM false values.put MediaStore.Audio.Media.IS_MUSIC..

FFMPEG on Android

http://stackoverflow.com/questions/4725773/ffmpeg-on-android

Can you please guide me on how can I use this library for MM playback I have a requirement where I have already Audio and Video TS which I need to feed to FFMPEG and get it decoded rendered. How can I do this on Android since IOMX apis are..

Can the Android emulator record and play back audio using pc hardware?

http://stackoverflow.com/questions/5254994/can-the-android-emulator-record-and-play-back-audio-using-pc-hardware

SDK and AVD manager Virtual devices Edit Hardware New . Then use the MediaRecorder API 1 to record MediaRecorder.AudioSource.MIC . Code is fMediaRecorder new MediaRecorder fMediaRecorder.setAudioSource MediaRecorder.AudioSource.MIC fMediaRecorder.setOutputFormat.. API 1 to record MediaRecorder.AudioSource.MIC . Code is fMediaRecorder new MediaRecorder fMediaRecorder.setAudioSource MediaRecorder.AudioSource.MIC fMediaRecorder.setOutputFormat MediaRecorder.OutputFormat.AMR_NB fMediaRecorder.setAudioEncoder.. MediaRecorder.AudioSource.MIC . Code is fMediaRecorder new MediaRecorder fMediaRecorder.setAudioSource MediaRecorder.AudioSource.MIC fMediaRecorder.setOutputFormat MediaRecorder.OutputFormat.AMR_NB fMediaRecorder.setAudioEncoder MediaRecorder.AudioEncoder.AMR_NB..

Android - how to unregister a receiver created in the manifest?

http://stackoverflow.com/questions/6529276/android-how-to-unregister-a-receiver-created-in-the-manifest

Android: Need to record mic input

http://stackoverflow.com/questions/6959930/android-need-to-record-mic-input

there a way to record mic input in android while it is being process for playback preview in real time I tried to use AudioRecord and AudioTrack to do this but the problem is that my device cannot play the recorded audio file. Actually any android.. record mic input in android while it is being process for playback preview in real time I tried to use AudioRecord and AudioTrack to do this but the problem is that my device cannot play the recorded audio file. Actually any android player application.. improve this question To record and play back audio in almost real time you can start a separate thread and use an AudioRecord and an AudioTrack . Just be careful with feedback. If the speakers are turned up loud enough on your device the feedback..

Voice Detection in Android Application

http://stackoverflow.com/questions/7955041/voice-detection-in-android-application

Description My application record sound from phone microphone. I am using android standard classes android.media.AudioRecord to do that. Application have 2 buttons Start and Stop when I press start button application start record and when.. savedInstanceState setContentView R.layout.main Get the minimum buffer size required for the successful creation of an AudioRecord object. int bufferSizeInBytes AudioRecord.getMinBufferSize RECORDER_SAMPLERATE RECORDER_CHANNELS RECORDER_AUDIO_ENCODING.. Get the minimum buffer size required for the successful creation of an AudioRecord object. int bufferSizeInBytes AudioRecord.getMinBufferSize RECORDER_SAMPLERATE RECORDER_CHANNELS RECORDER_AUDIO_ENCODING Initialize Audio Recorder...

Live Audio Recording and Playing in Android and Thread & callback handling

http://stackoverflow.com/questions/9413998/live-audio-recording-and-playing-in-android-and-thread-callback-handling

Audio Recording and Playing in Android and Thread callback handling I want to record the live audio and play it.As far as UI.. pre recorded file and than the last one for stopping the current task recording playing . For that purpose I have used AudioRecord and AudioTrack classes for recording and playing respectively. My Program looks like.... @author amit public class.. and than the last one for stopping the current task recording playing . For that purpose I have used AudioRecord and AudioTrack classes for recording and playing respectively. My Program looks like.... @author amit public class AudioRecorder extends..