Method for inlaying and detecting digital information in audio frequency

The invention discloses a method for inlaying and detecting digital information in audio frequency. The method comprises the following steps: framing carrier audio frequency and watermark information to obtain framed carrier audio frequency and framed watermark information; computing a power coefficient of each frame, which can be inlayed in the watermark information; processing the framed watermark information to obtain framed watermark information on which magnitude processing is performed; overlying the framed watermark information on which the magnitude processing is performed to the framed carrier audio frequency to obtain the final output audio frequency. A frequency band of 18000-20000 Hz is directly used without analyzing the carrier audio frequency, the computing complexity is low, and the tone quality of a carrier is not influenced. Microphones of portable equipment with limited arithmetic capability and battery capacity, such as mobile phones, tablet computers and other wearable electronic equipment can be used for receiving voice, and application software which operates on the wearable electronic equipment can be used for restoring the watermark information, and the recognition capability can resist the influence of environmental noise in normal indoors, vehicle-carried equipment, and the like.