[android-developers] Re: Can one play a ByteArrayInputStream audio with MediaPlayer?

2008-06-02 Thread blindfold
Hi Steve, In the mean-time I managed to convert a ByteArrayInputStream to an AndroidAudioInputStream, but there too, playing the beast without resorting to temporary audio files is not that straightforward, it seems. Of course it depends on the unspecified efficiency of the lower level implementa

[android-developers] Re: Can one play a ByteArrayInputStream audio with MediaPlayer?

2008-06-01 Thread Steve Oldmeadow
@blindfold. I remember seeing some people posting about converting FreeTTS to work in Android and having some success rendering the spoken text to a wave file that they could play in Android. Maybe you should speak with these people as it sounds like you have some common interests. Is there any

[android-developers] Re: Can one play a ByteArrayInputStream audio with MediaPlayer?

2008-06-01 Thread blindfold
> I wouldn't judge Android by the current state of its API. Thanks, fair enough, Steve. It's just that I've been around using Java long enough to know that APIs often do get rushed out without adequate consideration of key limitations, so raising the flag now might help prevent that if necessary.

[android-developers] Re: Can one play a ByteArrayInputStream audio with MediaPlayer?

2008-06-01 Thread David Given
blindfold wrote: [...] > Basically all phones from Nokia support it, as well as several > phones from Sony Ericsson and Motorola. I'd be careful. I was working on one mobile phone system (and for obvious reasons I can't tell you which one it was) and got a chance to look at the source code for thi

[android-developers] Re: Can one play a ByteArrayInputStream audio with MediaPlayer?

2008-06-01 Thread Steve Oldmeadow
>    http://www.seeingwithsound.com/midlet.htm > > which is why I am investigating if a port to Android would be > possible, and was surprised by its current API limitations. > Your app looks great. I'm sure a port will be possible but you may have to use javax.sound instead of MediaPlayer. I w

[android-developers] Re: Can one play a ByteArrayInputStream audio with MediaPlayer?

2008-06-01 Thread blindfold
Steve, > How many Java ME phones can do this? Even though the spec. may > support it implementation is another story. Basically all phones from Nokia support it, as well as several phones from Sony Ericsson and Motorola. It is used in my MIDlet http://www.seeingwithsound.com/midlet.htm whi

[android-developers] Re: Can one play a ByteArrayInputStream audio with MediaPlayer?

2008-05-31 Thread Steve Oldmeadow
Android also includes javax.sound but it is not implemented yet. How many Java ME phones can do this? Even though the spec. may support it implementation is another story. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gr

[android-developers] Re: Can one play a ByteArrayInputStream audio with MediaPlayer?

2008-05-31 Thread blindfold
Right David, it seems pretty bad. The issue is reported also in http://code.google.com/p/android/issues/detail?id=398 which I found after submitting http://code.google.com/p/android/issues/detail?id=739 I hope these limitations get fixed for the next Android SDK, because I don't like the idea

[android-developers] Re: Can one play a ByteArrayInputStream audio with MediaPlayer?

2008-05-31 Thread David Given
blindfold wrote: [...] > However, in android.media.MediaPlayer I only find create() for URIs > and > for resources, and not for ByteArrayInputStream!? Does that mean that > Android cannot be used for in-memory audio synthesis? Or do I overlook > some alternative way of programming in Android? Medi