My goal is to record live audio stream then save it on my website programmaticaly.
I already do this job using android app that runs on android physical phone or android emulator .. the app reads stream bytes then save it in a file then upload it to my website .. can i do this job directly using cpanel php?
Can i get bytes from live audio stream and open new file using php then write this bytes inside it and finally save this file?
Thanks in advance and execuse me if this question wrong or not logic.
Code in Android
try {
if (inputStream != null) {
if ((output = inputStream.read(bytes, 0, bytes.length)) != -1) {
buffer.write(bytes, 0, output);
}
}
} catch (IOException e) {
e.printStackTrace();
}