The invention relates to a PCM technology-based
volume analysis method, which comprises the following steps of: S1, inputting a to-be-tested
audio signal, and converting the to-be-tested audio signalinto a PCM audio data naked
stream to obtain WAV format audio data; S2, analyzing the WAV audio, and acquiring a sampling frequency and a quantization digit of the audio data through utilizing head information; S3, stripping the head information of the WAV audio, and acquiring a
byte array according to the remaining
byte data; S4, acquiring sound channel information and
time information which needto be analyzed currently; S5, utilizing the information obtained in the steps S2, S3 and S4 to calculate to obtain a short array; S6, calculating a
mean square error based on the short array, and recording the
mean square error as rms; S7, and inputting the rms into a DBSPL formula for conversion, and performing calculation to obtain a volume value. According to the PCM technology-based
volume analysis method, the
sound pressure level can be better described, the audio volume is described by utilizing the positive volume value obtained through conversion, and better audio analysis and qualityinspection capacity is provided.