Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Few data. If your audio file is in WAV format, then this is actually the data array that you need. It is enough to cut off the "header" from it, look at the bitrate and the number of channels in the header and accordingly interpret it as an array of samples of the required bitness.
If the file is encoded with a codec (mp3, ogg, etc.), then first you need to decode the file, and then see, as they say, the first paragraph.
How exactly it will look in the code depends on what format, what libraries you use to work with arrays of data. Be specific, please.
Searched, by the way, elementary:
https://stackoverflow.com/questions/3049572/how-to...
https://pythonbasics.org/convert-mp3-to-wav/
https://www.geeksforgeeks.org/ convert-mp3-to-wav-u...
UPD:
https://google.gik-team.com/?q=wav+python
As a result we have:
https://habr.com/ru/post/113239/
https://docs.python.org/3/library/ wave.html
https://coderoad.ru/2060628/Reading-wav-files-in-Python
These are the first three links in Google. If you couldn’t find it, then get out of the profession.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question