I created a sqlite database with table quote that have attribute id,text,audio. My application listed all text quotes.Now I want to play audio of quotes listed.For the audios I put them in my server.Please I am asking for some ideas how to that.or tutorial.
Asked
Active
Viewed 158 times
0
-
You wants to convert text into audio? – Ashiq Oct 02 '15 at 17:56
-
I put a play button in list row that will play audio but don't have any idea how to call them from server – Hanane Oct 02 '15 at 18:34
1 Answers
1
Get audio URL also with id, text and other info from server. Then use this code to play audio:
MediaPlayer mediaPlayer = new MediaPlayer();
mediaPlayer.
setDataSource(streamingURL);
mediaPlayer.prepare();
mediaPlayer.start();

Ashiq
- 140
- 4