For assets need to use getAssets() method, but this method requires the Context.
I found some interest method getResourceAsStream()
.
Using:
private InputStream openFile(String filename) throws IOException {
return getClass().getClassLoader().getResourceAsStream(filename);
}
Next, how to convert InputStream to audio format?