摘要 |
A decoding method of audio data is applied to an electronic device. The method includes: calculating difference values of the left and right channel audio signal values; determining time slots, wherein each of the first difference values exceeds a threshold value and a time length of the time slots exceeds a preset time; respectively multiplying the time slots with the left channel audio signal values and the right channel audio signal values to obtains and then making subtraction to obtain DM1˜n; finding a U shaped pattern or an inverse U shaped pattern which meets proportionality from the waveform of DM1˜n; and decoding the written symbol 0 or 1 according to the found U shaped pattern or inverse U shaped pattern. |