How do i embed audio files into java.? | SoloLearn: Learn to code for FREE!

+10

How do i embed audio files into java.?

Needed for a project😅

.

12/1/2020 1:52:17 PM

Shweta Sharma[inactive]

10 Answers

New Answer

+9

Shweta Sharma[inactive] audio files working in java🙄🤔 i think in Sololearn May Audio Files will not Work look at this code https://code.sololearn.com/cqq50NguVwts/?ref=app

+9

Shweta Sharma[inactive] yup!! Sololearn does not support audio file

+6

+6

ᕙ(@°▽°@)ᕗ {inactive} thanxx but it shows error in playing it happened with me too maybe SL doesn't support I guess

+4

https://www.codejava.net/coding/how-to-play-back-audio-in-java-with-examples

+4

The SoloLearn code playground does not support the playback of audio. The java code that you write is compiled and executed on the SoloLearn server and the resulting output is converted into html for display in the app/browser. The SoloLearn Java runtime has no access to your sound hardware to be able to play sounds. If you want to know how to use audio with Java for your own projects running on your own hardware then read... https://docs.oracle.com/javase/tutorial/sound/playing.html

+3

I think you have to search these stuff in Google or YouTube

+2

https://www.google.com/amp/s/www.geeksforgeeks.org/play-audio-file-using-java/amp/ Take it! This site will help you and please give useful tags instead of using "." ! All the best 👍

-1