Android :: Playing Short Audio Clip Has Tick Sound
Dec 14, 2009
I'm using the SoundPool to play a series of small audio clips and am having issues with the audio when it starts. I have the audio attached to a button press. When I press the button mulitple times the tick persists. I was wondering if this was the audio file itself or is there something I need to do differently with the SoundPool other than play simply play the clip. These are .ogg files I created using Audacity. When I play them in my dekstop media player, they sound fine.
View 2 Replies
Jun 15, 2010
How do I set up an audiofile to play when a user touches an image.Where should I store the audio file and what code should I use to actually play the file?I don't want to bring up the MediaPlayer interface or anything like that.
View 1 Replies
View Related
Oct 16, 2010
Hey, I have a problem with android programing when I try to record and then play the file that was just recored. I can both record and play the sound but the quality stinks. Its not just bad is really hard to listen to and sound abit like its a computer generated voice. I use the andriod SDK-emulator. The code that sets up the recording looks like this;
MediaRecorder recorder = new MediaRecorder();
recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
recorder.setOutputFormat(MediaRecorder.OutputFormat.RAW_AMR);
recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
recorder.setOutputFile(path);
recorder.prepare();
recorder.start();
And the code playing the file later looks like this;
MediaPlayer mp = new MediaPlayer(); mp.reset();
mp.setDataSource(path); mp.prepare(); mp.start();
I don't know what part that makes the audio file sound really bad or if its just the emulator that makes it bad and that it would work on a real phone.
View 2 Replies
View Related
Jan 22, 2013
I have a flash file that I open through smartswf and suddenly the audio is now echoing, like its playing the sound twice. It use to work OK on this ROM (cyanogenmod 10) with this app. It does the same with other flash files also. I have tried other apps and does the same thing, and tried reinstalling flash and rolling back to earlier versions with the same result.
View 1 Replies
View Related
Mar 25, 2010
I am trying to play the bigger size audio wav file(which is >20 mb) using the following code(AudioTrack) on my Android 1.6 HTC device which basically has less memory. But i found device crash as soon as it executes reading, writing and play. But the same code works fine and plays the lesser size audio wav files(10kb, 20 kb files etc) very well.
P.S: I should play PCM(.wav) buffer sound, the reason behind why i use AudioTrack here. Though my device has lesser memory, how would i read bigger audio files bytes by bytes and play the sound to avoid crashing due to memory constraints. Code...
Could someone guide me please to play the AudioTrack code for bigger size wav files?
View 1 Replies
View Related
Oct 10, 2010
Is it possible to modify an active call by overlaying a sound track during the call? I looked up the SDK, but couldn't find any api to do this in the documentation. I am trying to investigate the feasibility of playing a previously recorded call/audio clip onto an ongoing call.
View 1 Replies
View Related
Feb 23, 2010
I've used the voice recognition feature on Android and I love it. It's one of my customers' most praised features. However, the format is somewhat restrictive. You have to call the recognizer intent, have it send the recording for transcription to google, and wait for the text back. Some of my ideas 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?
View 1 Replies
View Related
Nov 26, 2013
've noticed suddenly that I have no sound on any clip playing from a youtube embed. Am I the only one? Thought everything was fine yesterday... Sound settings look ok and Vimeo embeds are working properly. I was checking out this page: [URL] ......
I've restarted the tab, browser, phone etc. What should I do!
View 2 Replies
View Related
Oct 20, 2009
I have a sound clip that I want to use as my sms alert. I have placed it on the sd card under Audio/Notifications and I can play the sound file OK but when i go to the settings of the sms app (Handcent SMS) and choose Notification Setting and then Select Ringtone, it does not display the sound file. I have stored on the card, just the built-in ones, How do I make the app use the stored sound file.
View 2 Replies
View Related
Dec 15, 2009
I am trying to play a 0.1s tone using audio track. I have done this succesfully in stream mode by calling play() then writing the array of short containing the data. However when I use STATIC mode and also in stream mode if I write the data before i call play() only about 0.06s of the audio is played. I have tried changing the buffer size but this has not effect.My understanding is that I have to write the data before I call play for static mode to work. Does anyone know what could be going wrong here?
View 5 Replies
View Related
Apr 23, 2009
I have this task: Need to play short (0.3-0.4 sec) sounds all the time. When sound is played, it should start again, etc. User can press button to reset sound - it should stop and lunch.
I did many tests. I tried to create 1 MediaPlayer, then do this: MediaPlayer.OnCompletionListener complListener = new MediaPlayer.OnCompletionListener; code...
It works great on emulator and on device if I have eclipse+debugger on. When I disconnect debugger, I have very strange errors - sound can stop at all (till program restart), sound can start "repeating" (play 0.1-0.2 sec, then restart). Can someone please provide me some info about problem?
View 5 Replies
View Related
Jul 20, 2010
I downloaded an application named Todderlock so my children could just meddle around with my phone while they sat in my lap. However, the sound stops working after a non-specific amount of "dings" when either tapping the shapes around the screen, or when dragging your finger along the screen to make the same type of noise, but much more rapidly.
Thinking this was an application problem, I had my wife download Todderlock on her HTC Hero, and the sound works without issue.
So, I shrugged that off and went looking for other neat applications to download...I downloaded Bug Squash I, II and III and they all suffer from the same problem: after squishing X amount of bugs, the SFX stop (the music continues however), and I have to restart the application to enjoy the sound for as long as it lasts.
I was getting suspicious, so I loaded up Robo Defense FREE and the same thing happens when the turrets are firing...after X amount of shots fired, all sound ceases to work.
I have not been able to find a similar problem with the HTC Evo on Google or here on the Android forums, considering my wife's Hero works without issue on all the sound issues I am having.
As far as I know, phone notifications and ringers continue to work after the application has "disabled" the sound. I have not reset the phone to factory settings or anything, but I have restarted the phone itself numerous times, and the problem still persists.
View 1 Replies
View Related
May 22, 2009
I am using a MediaPlayer instance in order to stream audio files from an Internet location. The audio player is in a separate activity. The user can select from a list of audio files and come to this activity which plays the audio.Now the user might go back to the previous activity (with the list)and select another audio file. In this case, I want to stop any other audio that is playing and start playing the new audio which was selected.Is there any way I can know whether an audio file is playing without having to hold on to the MediaPlayer object?
View 8 Replies
View Related
Apr 9, 2009
the opencore can not play the audio of wma. is it right? and the total time of the wma file can not be find in the trackbrowseractivity. who know why?
View 2 Replies
View Related
Feb 15, 2010
I want to play music from online mp3 link.I am reading the music data into a stream and trying to play it using audio track.But itz giving only noise.No music i could listen.here buffer is the audio data i am reading into.Same buffer I can play in MediaPlayer,,,But i could not play in audio track.
View 1 Replies
View Related
Oct 26, 2009
I have a python application (anki) running under ASE. It is a simple web server that uses the browser as a UI. My only issues are playing sound, which are stored locally. On the iphone, anki uses a command line app (play) to play the mp3 files. Unfortunately, there is no command line app that I can call that takes a filename as an arg and plays it. What are my options with android?
- write a sound service that sits and listens for a filename to play; possibly listening on a port for filename
- write an Java-app that I call from within python that forks off and loads a specified file, plays it and then exits. Can you call other java apps from ASE?
- wait till the browser supports the <audio> tag. I guess this is html5, but am unaware if this will be on android any time soon.
View 2 Replies
View Related
Oct 13, 2009
I can capture an audio stream from the mic, but can I capture the currently playing audio stream?
View 2 Replies
View Related
Aug 18, 2010
Can we play the audio(amr file) to the Bluetooth headset(no A2DP support) by using android 2.1/2.2 version APIs? If so can you suggest me which API I have to use to do the same?
View 2 Replies
View Related
Sep 25, 2010
I'm trying to very quickly port over an html application with plays sound (with soundmanager2) to a native android app using WebView. From my research, I haven't seen any evidence that sound, such as mp3s, can be played via javascript or any other methods using WebView.
My goal now is to quickly port over the html app and then eventually create a truely native application without using WebViews.
If anyone has been able to successfully implement playing audio using WebViews and Javascript or if this is just not possible at this time.
View 1 Replies
View Related
Jan 30, 2009
I want to accept incoming calls and play an audio file for the caller. Is there a possibility of playing an audio file during a phonecall, so that the caller hears a wav- file? It seems to me that nothing is possible during a phone call since release 1.0. Hope this is getting better in the next release.
View 5 Replies
View Related
Jan 3, 2010
My self-teaching project is a small application which plays an audio news stream. To be effective, the application really needs to interrupt any currently playing media players (eg: Last FM, Imeem, music player, Spotify etc).I don't know what will be playing or what application will be playing it, but I want to ask them all to pause until I've done. Sounds rather bold, I know, but it must be possible, because when there's an incoming call, that's basically what happens.Can I send a message to all audio players asking them to pause for a moment? Could I spoof an incoming call, just for the time it takes?
View 2 Replies
View Related
Jun 18, 2010
I have a javascript that plays audio in the browser, using the html5 <audio> tag. It works fine in the iPhone browser, but not in Android. (Testing using a htc desire with android 2.1.) Anyone know why?By the way, I am also trying to enlarge the audio button that shows up in the iphone (the default one is quite small), with no luck so far - would be grateful for any ideas!
View 3 Replies
View Related
Oct 1, 2010
I think I should know this, but my mind has gone blank. I'm making an app that has a few hundred small sound files and I want it to play a certain file dependent on a String I pass to the function. Where I hit the brick wall is getting the resId of the sound file.
View 1 Replies
View Related
Jul 1, 2009
My application is making call from application. Now I want to play some audio on speaker when the caller will receive call. So can some one tell me will i have to play audio in new thread or I will have to do some change? Can someone give me any code snippet?
View 3 Replies
View Related
Nov 7, 2010
How do I go about getting my app to play an mp3 (in my res) on startup? Or how how about if I wanted this to happen when a button is clicked?
View 1 Replies
View Related
Dec 8, 2008
I have the following problem: when i try to play a sound over and over again, it sometimes (actually most times) is not played.the documentation says that one should use the media player in the following sequence if a sound should be played several times: is this the wrong approach? is there a more performant way to reset the pointer in the sound sample so that it can be played from the beginning? i tried using mediaPlayer.seekTo(0); but it didn't help. Code...
View 2 Replies
View Related
Jul 5, 2010
I would like to find an media player that plays videos but when I minimize or multitask to another app I want the videos audio to keep playing like pandora does. The reason for this is bcuz I rip videos off of youtube to mainly listen to the music.
View 2 Replies
View Related
Nov 27, 2009
I am trying to make a very simple radio player for Android and I cannot get the audio streaming to work. In my latest attempt it plays for about 1 second and stops for some streams and it doesnt work at all for some other streams. Logcat doesn't give much useful information to me. I am testing on HTC Hero (Android 1.5).
If I hook the completion and buffer events I see the audio gets a complete event but it keeps buffering. Is there anything wrong with the code below? Should I be able to stream the the audio streams below? Is there a complete example somewhere of a working radio streaming?................
View 5 Replies
View Related
Aug 7, 2009
Is it possible to play audio over an active phone call, so the other end can hear it?
For example: A and B are talking on the phone. A presses a button that pulls audio from a resource and plays it over the phone call to B.
If so, what libraries should I look into? If not, is this something that could become accessible on rooted phones? (Of course, only other rooted phones would be able to use the application then...)
View 7 Replies
View Related
Apr 20, 2010
I want to play an audio file on a voice call as following:
The application initiates a call from device X to device Y
When Y replies application on device X should inject an audio file in the stream of the call so device Y hears this audio file.
View 2 Replies
View Related