안녕하세요.
텍스트를 서버로 보내면 그것을 소리로 읽어주고 이 데이터를 실시간(?)으로
내려받아 안드로이드 기기에서 재생해주는 기능이 필요합니다. 아래와 같은 코드가 있습니다..
.............
...................
//Print the URL returned from the Speak service
System.out.println(sWavUrl);
// Now, makes an HTTP Connection to get the InputStream
final URL waveUrl = new URL(sWavUrl);
final HttpURLConnection uc = (HttpURLConnection) waveUrl.openConnection();
// Pass the input stream to the playClip method
playClip(uc.getInputStream());
.............
.......
uc.getInputStream() 로 넘어오는 소리(아마도 음원 스트리밍?일 겁니다.)을
받아서 안드로이드에서 재생하려면 어떻게 해야할 까요.????