CN116665699A - Digital audio processing method and device, storage medium and electronic equipment - Google Patents

Digital audio processing method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN116665699A
CN116665699A CN202310638644.2A CN202310638644A CN116665699A CN 116665699 A CN116665699 A CN 116665699A CN 202310638644 A CN202310638644 A CN 202310638644A CN 116665699 A CN116665699 A CN 116665699A
Authority
CN
China
Prior art keywords
signal
current
audio signal
explosion
proof
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310638644.2A
Other languages
Chinese (zh)
Inventor
鲁勇
刘波
刘海平
梁健林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Intengine Technology Co Ltd
Original Assignee
Beijing Intengine Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Intengine Technology Co Ltd filed Critical Beijing Intengine Technology Co Ltd
Priority to CN202310638644.2A priority Critical patent/CN116665699A/en
Publication of CN116665699A publication Critical patent/CN116665699A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L25/00Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
    • G10L25/03Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 characterised by the type of extracted parameters
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L21/00Speech or voice signal processing techniques to produce another audible or non-audible signal, e.g. visual or tactile, in order to modify its quality or its intelligibility
    • G10L21/02Speech enhancement, e.g. noise reduction or echo cancellation
    • G10L21/0208Noise filtering
    • G10L21/0216Noise filtering characterised by the method used for estimating noise
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L25/00Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
    • G10L25/48Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use
    • G10L25/51Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use for comparison or discrimination
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L25/00Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
    • G10L25/48Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use
    • G10L25/51Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use for comparison or discrimination
    • G10L25/60Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use for comparison or discrimination for measuring the quality of voice signals
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Landscapes

  • Engineering & Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Quality & Reliability (AREA)
  • Amplifiers (AREA)

Abstract

The application discloses a digital audio processing method, a device, a storage medium and electronic equipment, wherein the digital audio processing method is used for acquiring current audio signals; detecting the current audio signal to generate an explosion-proof signal; determining the current signal value of the explosion-proof signal; and correspondingly controlling the accumulator according to the current signal value to generate a target audio signal. The scheme can eliminate pop noise during audio storage.

Description

Digital audio processing method and device, storage medium and electronic equipment
Technical Field
The present application relates to the field of communications technologies, and in particular, to a digital audio processing method, a digital audio processing device, a storage medium, and an electronic device.
Background
In the voice chip design, the pulse density modulated (Pulse Density Modulation, PDM) signal needs to be demodulated into an audio pulse code modulated (Pulse Code Modulation, PCM) signal by a CIC filter when audio storage is performed.
The clock signal of the CIC filter comes from a chip clock circuit, and the PDM signal comes from an external audio acquisition device. When the chip starts to work, the external audio acquisition equipment may be still in an inactive or initialization stage, and the PDM signal is always 1 or 0 at this time, when the CIC filter demodulates the chip, a maximum positive value or a minimum negative value of audio is generated and is continued until a normal PDM signal arrives, and a pop sound is generated, so that the pop sound is also stored, and the user experience is seriously affected.
Disclosure of Invention
The application provides a digital audio processing method, a device, a storage medium and electronic equipment, which can eliminate pop noise during audio storage.
In a first aspect, the present application provides a digital audio processing method, including:
collecting a current audio signal;
detecting the current audio signal to generate an explosion-proof signal;
determining a current signal value of the explosion-proof signal;
and correspondingly controlling the accumulator according to the current signal value to generate a target audio signal.
In the digital audio processing method provided by the application, the corresponding control of the accumulator is carried out according to the current signal value to generate a target audio signal, which comprises the following steps:
when the current signal value is a first signal value, zero adding processing is carried out on the current audio signal through the accumulator, and the step of detecting the current audio signal and generating an explosion-proof signal is carried out in a return mode;
and when the current signal value is a second signal value, adding one or subtracting one to the current audio signal through the accumulator to generate the target audio signal.
In the digital audio processing method provided by the application, the detecting the current audio signal generates an explosion-proof signal, which comprises the following steps:
and carrying out edge detection on the current audio signal, and generating the explosion-proof signal according to a detection result.
In the digital audio processing method provided by the application, the generation of the explosion-proof signal according to the detection result comprises the following steps:
generating an explosion-proof signal having a first signal value when a first rising edge or a falling edge of the current audio signal is not detected;
when a first rising or falling edge of the current audio signal is detected, an explosion-proof signal having a second signal value is generated.
The digital audio processing method provided by the application further comprises the following steps:
and storing the target audio signal.
In a second aspect, the present application provides a digital audio processing apparatus comprising:
the acquisition unit is used for acquiring the current audio signal;
the detection unit is used for detecting the current audio signal and generating an explosion-proof signal;
a determining unit, configured to determine a current signal value of the explosion-proof signal;
and the generating unit is used for correspondingly controlling the accumulator according to the current signal value and generating a target audio signal.
In the digital audio processing apparatus provided by the present application, the generating unit includes:
the first sub-generation module is used for adding zero to the current audio signal through the accumulator when the current signal value is a first signal value, and returning to execute the step of detecting the current audio signal to generate an explosion-proof signal;
and the second sub-generation module is used for adding one or subtracting one to the current audio signal through the accumulator when the current signal value is the second signal value, so as to generate the target audio signal.
In the digital audio processing device provided by the application, the detection unit is used for:
and carrying out edge detection on the current audio signal, and generating the explosion-proof signal according to a detection result.
In a third aspect, the present application provides a storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the digital audio processing method of any one of the above.
In a fourth aspect, the present application provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the digital audio processing method of any one of the above when executing the computer program.
In summary, the digital audio processing method provided by the application collects the current audio signal; detecting the current audio signal to generate an explosion-proof signal; determining a current signal value of the explosion-proof signal; and correspondingly controlling the accumulator according to the current signal value to generate a target audio signal. According to the scheme, the current audio signal can be detected to generate the explosion-proof signal, so that the accumulator is correspondingly controlled according to the explosion-proof signal to generate the target audio signal, and then the pop noise during audio storage is eliminated.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic waveform diagram of a clock signal, a PDM signal and a PCM signal according to an embodiment of the present application.
Fig. 2 is a schematic structural diagram of a digital audio processing system according to an embodiment of the present application.
Fig. 3 is a flow chart of a digital audio processing method according to an embodiment of the present application.
Fig. 4 is a schematic waveform diagram of a clock signal, a current audio signal, an explosion-proof signal, and a target audio signal according to an embodiment of the present application.
Fig. 5 is a schematic structural diagram of a digital audio processing device according to an embodiment of the present application.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application as detailed in the accompanying claims.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, the element defined by the phrase "comprising one … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element, and furthermore, elements having the same name in different embodiments of the application may have the same meaning or may have different meanings, the particular meaning of which is to be determined by its interpretation in this particular embodiment or by further combining the context of this particular embodiment.
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
In the following description, suffixes such as "module", "part" or "unit" for representing elements are used only for facilitating the description of the present application, and have no specific meaning per se. Thus, "module," "component," or "unit" may be used in combination.
In the description of the present application, it should be noted that the positional or positional relationship indicated by the terms such as "upper", "lower", "left", "right", "inner", "outer", etc. are based on the positional or positional relationship shown in the drawings, are merely for convenience of describing the present application and simplifying the description, and do not indicate or imply that the apparatus or element in question must have a specific orientation, be constructed and operated in a specific orientation, and thus should not be construed as limiting the present application. Furthermore, the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the voice chip design, the PDM signal needs to be demodulated into PCM signal by CIC filter when audio storage is performed. The clock signal of the CIC filter comes from a chip clock circuit, and the PDM signal comes from an external audio acquisition device. When the chip starts to operate, the external audio acquisition device may still be in an inactive or initialization phase. At this time, as shown in fig. 1, the PDM signal is constant 1 or constant 0, and when the CIC filter demodulates the PDM signal, a maximum positive value or a minimum negative value of an audio frequency is generated and is continued until a normal PDM signal arrives, so that a pop sound is generated, and the pop sound is also stored, thereby seriously affecting the user experience.
In fig. 1, a signal a is a clock signal, a signal B is a PDM signal, and a signal C is a PCM signal. It is understood that signal B is split into an abnormal PDM signal portion of constant 1 or constant 0 and a normal PDM signal portion having normal variation.
Based on the above, the embodiment of the application provides a digital audio processing method, a digital audio processing device, a storage medium and electronic equipment. Specifically, the digital audio processing method according to the embodiment of the present application may be performed by an electronic device, where the electronic device may be an electronic device such as a smart phone, a tablet computer, a notebook computer, a touch screen, a game console, a personal computer (PC, personal Computer), a personal digital assistant (Personal Digital Assistant, PDA), or the like, and the electronic device may further include a client, which may be a digital audio processing client or other clients. The electronic device can be connected with the server in a wired or wireless mode, the server can be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, and a cloud server for providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs, basic cloud computing services such as big data and artificial intelligent platforms and the like.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a digital audio processing system according to an embodiment of the application. The system may include at least one electronic device 1000, at least one server or personal computer 2000. The electronic device 1000 held by the user may be connected to different servers or personal computers through a network. The electronic device 1000 may be an electronic device having computing hardware capable of supporting and executing software products corresponding to multimedia. In addition, the electronic device 1000 may also have one or more multi-touch sensitive screens for sensing and obtaining input from a user through touch or slide operations performed at multiple points of the one or more touch sensitive display screens. In addition, the electronic device 1000 may be connected to a server or a personal computer 2000 through a network. The network may be a wireless network or a wired network, such as a Wireless Local Area Network (WLAN), a Local Area Network (LAN), a cellular network, a 2G network, a 3G network, a 4G network, a 5G network, etc. In addition, the different electronic devices 1000 may be connected to other embedded platforms or to a server, a personal computer, or the like using their own bluetooth network or hotspot network.
The electronic equipment comprises a touch display screen and a processor, wherein the touch display screen is used for presenting a graphical user interface and receiving an operation instruction generated by a user acting on the graphical user interface. When a user operates the graphical user interface through the touch display screen, the graphical user interface can control local content of the electronic equipment by responding to a received operation instruction, and can also control content of a server side by responding to the received operation instruction. For example, the user-generated operational instructions acting on the graphical user interface include instructions for processing the initial audio signal, and the processor is configured to launch a corresponding application upon receiving the user-provided instructions. Further, the processor is configured to render and draw a graphical user interface associated with the application on the touch-sensitive display screen. A touch display screen is a multi-touch-sensitive screen capable of sensing touch or slide operations performed simultaneously by a plurality of points on the screen. The user performs touch operation on the graphical user interface by using a finger, and when the graphical user interface detects the touch operation, the graphical user interface controls the graphical user interface of the application to display the corresponding operation.
The technical schemes shown in the application will be respectively described in detail through specific examples. The following description of the embodiments is not intended to limit the priority of the embodiments.
Referring to fig. 3, fig. 3 is a flowchart illustrating a digital audio processing method according to an embodiment of the application. The specific flow of the digital audio processing method can be as follows:
101. the current audio signal is acquired.
The audio signal (audio signals) is a signal representing a mechanical wave, and is an information carrier in which the wavelength and intensity of the mechanical wave change. According to the characteristics of the mechanical wave, it can be classified into regular signals and irregular signals.
In some embodiments, the audio signal may be collected by an audio collection device (such as a microphone) built into the electronic device, for example, may be obtained within 10 minutes, may be obtained within 20 minutes, and may also be continuously obtained in the current environment. In another embodiment, the audio signal may also be obtained from an audio file such as music, songs, dramas, etc.
102. Detecting the current audio signal to generate an explosion-proof signal.
In some embodiments, edge detection may be performed on the current audio signal, and the anti-explosion signal anti_glich may be generated according to the detection result. In an embodiment of the application, the explosion-proof signal has two signal values, a first signal value for characterizing a target audio signal and a second signal value for characterizing a non-target audio signal, respectively.
It will be appreciated that in a particular implementation, the specific roles of the first signal value and the second signal value may be interchanged, e.g. the first signal value may be used to characterize a non-target audio signal and the second signal value may be used to characterize a target audio signal. In some embodiments, the first signal value is 1 and the second signal value is 0; or the first signal value is 0 and the second signal value is 1.
In some embodiments, the explosion-proof signal may be generated with a corresponding signal value by determining a first rising edge or a first falling edge of the current audio signal. For example, when a first rising or falling edge of the current audio signal is not detected, generating an explosion-proof signal having a first signal value; when a first rising or falling edge of the current audio signal is detected, an explosion-proof signal having a second signal value is generated.
103. A current signal value of the explosion-proof signal is determined.
Specifically, the accumulator may be determined to be controlled accordingly in step 104 by determining whether the current signal value of the explosion-proof signal is the first signal value or the second signal value.
104. And correspondingly controlling the accumulator according to the current signal value to generate a target audio signal.
Specifically, when the current signal value is the first signal value, the abnormal audio signal of the current audio signal is represented, and at the moment, zero adding processing can be carried out on the current audio signal through an accumulator in the CIC filter, so that Direct-sequence (Direct-Sequence Modulation, DSM) demodulation is not carried out on the current audio signal, and the generation of the maximum positive value or the minimum negative value of each audio is avoided, thereby avoiding the generation of pop noise. And when the current signal value is the second signal value, representing that the current audio signal is a normal audio signal, and performing normal addition or subtraction processing on the current audio signal according to the signal value of the current audio signal through an accumulator in the CIC filter to generate a target audio signal.
That is, the step of "corresponding controlling the accumulator according to the current signal value, generating the target audio signal" may include:
when the current signal value is the first signal value, adding zero to the current audio signal through an accumulator, and returning to execute the step of detecting the current audio signal to generate an explosion-proof signal;
when the current signal value is the second signal value, the accumulator is used for adding one or subtracting one to the current audio signal to generate a target audio signal.
In a specific implementation process, the current audio signal may be continuously detected until a normal audio signal is detected.
The target audio signal may then be stored.
It is understood that in the embodiment of the present application, neither the normal audio signal nor the abnormal audio signal is PDM signal. The normal audio signal is a PDM signal acquired by the audio acquisition device, and the abnormal audio signal is a PDM signal which is automatically generated to be constant 1 or constant 0 before the normal audio signal does not arrive. And the target audio signal is a PCM signal generated by demodulating the normal audio signal.
Specifically, as shown in fig. 4, a signal D is a clock signal, a signal E is a current audio signal, a signal F is an explosion-proof signal, and a signal G is a target audio signal. Wherein signal E is constant 1 or constant 0, an abnormal PDM signal portion and a normal PDM signal portion having normal variation. The signal F is split into a first part having a first signal value and a second part having a second signal value. The signal G is constant at 1 or 0, and does not produce a very large positive value or a very small negative value.
In summary, the digital audio processing method provided by the embodiment of the application can be implemented by collecting the current audio signal; detecting the current audio signal to generate an explosion-proof signal; determining a current signal value of the explosion-proof signal; and correspondingly controlling the accumulator according to the current signal value to generate a target audio signal. According to the scheme, after the chip is started, the explosion-proof signal anti-glich is generated by detecting the change of the current audio signal. And then, correspondingly controlling the accumulator according to the explosion-proof signal anti_glich, and determining whether to demodulate or not demodulate the current audio signal, so as to avoid generating a maximum positive value or a minimum negative value of audio after demodulating the abnormal audio signal and generating explosion sound. That is, the pop sound during audio storage can be eliminated, and the user experience is improved.
In order to better implement the digital audio processing method provided by the embodiment of the present application, the embodiment of the present application further provides a digital audio processing device, where the meaning of the term is the same as that in the digital audio processing method, and specific implementation details may refer to the description in the method embodiment.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a digital audio processing device according to an embodiment of the application. The digital audio processing apparatus may include an acquisition unit 201, a detection unit 202, a determination unit 203, and a generation unit 204. Wherein, the liquid crystal display device comprises a liquid crystal display device,
an acquisition unit 201, configured to acquire a current audio signal;
the detecting unit 202 is configured to detect a current audio signal and generate an explosion-proof signal;
a determining unit 203 for determining a current signal value of the explosion-proof signal;
the generating unit 204 is configured to correspondingly control the accumulator according to the current signal value, and generate a target audio signal.
In some embodiments, the generating unit 304 may include:
the first sub-generation module is used for adding zero to the current audio signal through the accumulator when the current signal value is the first signal value, and returning to execute the step of detecting the current audio signal to generate an explosion-proof signal;
and the second sub-generation module is used for generating a target audio signal by adding one or subtracting one to the current audio signal through the accumulator when the current signal value is the second signal value.
In some embodiments, the detection unit 202 is configured to:
and carrying out edge detection on the current audio signal, and generating an explosion-proof signal according to the detection result.
The specific embodiments of the above units can be referred to the above embodiments of the digital audio processing method, and will not be described herein.
In summary, the digital audio processing device provided by the embodiment of the present application may collect the current audio signal through the collection unit 201; detecting the current audio signal by the detecting unit 202 to generate an explosion-proof signal; determining, by the determining unit 203, a current signal value of the explosion-proof signal; the accumulator is correspondingly controlled by the generating unit 204 according to the current signal value, and a target audio signal is generated. According to the scheme, after the chip is started, the explosion-proof signal anti-glich is generated by detecting the change of the current audio signal. And then, correspondingly controlling the accumulator according to the explosion-proof signal anti_glich, and determining whether to demodulate or not demodulate the current audio signal, so as to avoid generating a maximum positive value or a minimum negative value of audio after demodulating the abnormal audio signal and generating explosion sound. That is, the pop sound during audio storage can be eliminated, and the user experience is improved.
The embodiment of the present application further provides an electronic device, in which the digital audio processing apparatus of the embodiment of the present application may be integrated, as shown in fig. 6, which shows a schematic structural diagram of an electronic device 500 according to the embodiment of the present application, specifically:
the electronic device 500 may integrate the above-mentioned audio processing apparatus, and may further include Radio Frequency (RF) circuitry 501, a memory 502 including one or more computer readable storage media, an input unit 503, a display unit 504, a sensor 505, an audio circuit 506, a wireless fidelity (WiFi, wireless Fidelity) module 507, a processor 508 including one or more processing cores, and a power supply 509. Those skilled in the art will appreciate that the electronic device 500 structure shown in fig. 6 is not limiting of the electronic device 500 and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. Wherein:
the RF circuit 501 may be configured to receive and send information or signals during a call, and in particular, after receiving downlink information of a base station, the downlink information is processed by one or more processors 508; in addition, data relating to uplink is transmitted to the base station. Typically, RF circuitry 501 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a subscriber identity module (SIM, subscriber Identity Module) card, a transceiver, a coupler, a low noise amplifier (LNA, low Noise Amplifier), a duplexer, and the like. In addition, RF circuitry 501 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol including, but not limited to, global system for mobile communications (GSM, global System of Mobile communication), general packet radio service (GPRS, general Packet Radio Service), code division multiple access (CDMA, code Division Multiple Access), wideband code division multiple access (WCDMA, wideband Code Division Multiple Access), long term evolution (LTE, long Term Evolution), email, short message service (SMS, short Messaging Service), and the like.
The memory 502 may be used to store software programs and modules, and the processor 508 executes the software programs and modules stored in the memory 502 to perform various functional applications and information processing. The memory 502 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playing function, a target data playing function, etc.), and the like; the storage data area may store data (such as audio signals, phonebooks, etc.) created according to the use of the electronic device 500, and the like. In addition, memory 502 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 502 may also include a memory controller to provide access to the memory 502 by the processor 508 and the input unit 503.
The input unit 503 may be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in one particular embodiment, the input unit 503 may include a touch-sensitive surface, as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations thereon or thereabout by a user (e.g., operations thereon or thereabout by a user using any suitable object or accessory such as a finger, stylus, etc.), and actuate the corresponding connection means according to a predetermined program. Alternatively, the touch-sensitive surface may comprise two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into touch point coordinates, which are then sent to the processor 508, and can receive commands from the processor 508 and execute them. In addition, touch sensitive surfaces may be implemented in a variety of types, such as resistive, capacitive, infrared, and surface acoustic waves. The input unit 503 may comprise other input devices besides a touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc.
The display unit 504 may be used to display information entered by a user or provided to a user as well as various graphical user interfaces of the electronic device 500, which may be composed of graphics, text, icons, video, and any combination thereof. The display unit 504 may include a display panel, which may be optionally configured in the form of a liquid crystal display (LCD, liquid Crystal Display), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay a display panel, and upon detection of a touch operation thereon or thereabout, the touch-sensitive surface is passed to the processor 508 to determine the type of touch event, and the processor 508 then provides a corresponding visual output on the display panel based on the type of touch event. Although in fig. 6 the touch sensitive surface and the display panel are implemented as two separate components for input and output functions, in some embodiments the touch sensitive surface may be integrated with the display panel to implement the input and output functions.
The electronic device 500 may also include at least one sensor 505, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that may turn off the display panel and/or backlight when the electronic device 500 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and the direction when the mobile phone is stationary, and can be used for applications of recognizing the gesture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured with the electronic device 500 are not described in detail herein.
Audio circuitry 506, speakers, and a microphone may provide an audio interface between the user and the electronic device 500. The audio circuit 506 may transmit the received electrical signal converted from the audio signal to a speaker, where it is converted into a sample signal for output; on the other hand, the microphone converts the collected sample signal into an electrical signal, which is received by the audio circuit 506 and converted into an audio signal, which is processed by the audio signal output processor 508, and then sent via the RF circuit 501 to, for example, another electronic device 500, or the audio signal is output to the memory 502 for further processing. Audio circuitry 506 may also include an ear bud jack to provide communication of the peripheral ear bud with electronic device 500.
WiFi belongs to a short-distance wireless transmission technology, and the electronic equipment 500 can help a user to send and receive emails, browse webpages, access streaming media and the like through the WiFi module 507, so that wireless broadband Internet access is provided for the user. Although fig. 6 shows a WiFi module 507, it is understood that it does not belong to the necessary constitution of the electronic device 500, and may be omitted entirely as needed within the scope of not changing the essence of the application.
The processor 508 is a control center of the electronic device 500, connects various parts of the entire handset using various interfaces and lines, and performs various functions of the electronic device 500 and processes data by running or executing software programs and/or modules stored in the memory 502, and invoking data stored in the memory 502, thereby performing overall monitoring of the handset. Optionally, the processor 508 may include one or more processing cores; preferably, the processor 508 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 508.
The electronic device 500 also includes a power supply 509 (e.g., a battery) for powering the various components, which may be logically connected to the processor 508 via a power management system that performs functions such as managing charge, discharge, and power consumption. The power supply 509 may also include one or more of any of a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power data indicator, and the like.
Although not shown, the electronic device 500 may further include a camera, a bluetooth module, etc., which will not be described herein. In particular, in this embodiment, the processor 508 in the electronic device 500 loads executable files corresponding to the processes of one or more application programs into the memory 502 according to the following instructions, and the processor 508 executes the application programs stored in the memory 502, so as to implement various functions, such as:
collecting a current audio signal;
detecting the current audio signal to generate an explosion-proof signal;
determining the current signal value of the explosion-proof signal;
and correspondingly controlling the accumulator according to the current signal value to generate a target audio signal.
In the foregoing embodiments, the descriptions of the embodiments are focused on, and the portions of an embodiment that are not described in detail in the foregoing embodiments may be referred to in the detailed description of the audio processing method, which is not repeated herein.
The electronic device 500 provided in the embodiment of the present application may collect the current audio signal; detecting the current audio signal to generate an explosion-proof signal; determining a current signal value of the explosion-proof signal; and correspondingly controlling the accumulator according to the current signal value to generate a target audio signal. According to the scheme, after the chip is started, the explosion-proof signal anti-glich is generated by detecting the change of the current audio signal. And then, correspondingly controlling the accumulator according to the explosion-proof signal anti_glich, and determining whether to demodulate or not demodulate the current audio signal, so as to avoid generating a maximum positive value or a minimum negative value of audio after demodulating the abnormal audio signal and generating explosion sound. That is, the pop sound during audio storage can be eliminated, and the user experience is improved.
In the foregoing embodiments, the descriptions of the embodiments are focused on, and the portions of a certain embodiment that are not described in detail may be referred to the above detailed description of the digital audio processing method, which is not repeated herein.
It should be noted that, for the digital audio processing method in the embodiment of the present application, it will be understood by those skilled in the art that all or part of the flow of implementing the digital audio processing method in the embodiment of the present application may be implemented by controlling related hardware through a computer program, where the computer program may be stored in a computer readable storage medium, such as a memory of a terminal, and executed by at least one processor in the terminal, and the execution may include the flow of the embodiment of the digital audio processing method.
For the digital audio processing device of the embodiment of the application, each functional module can be integrated in one processing chip, each module can exist alone physically, and two or more modules can be integrated in one module. The integrated modules may be implemented in hardware or in software functional modules. The integrated modules may also be stored in a computer readable storage medium if implemented as software functional modules and sold or used as a stand-alone product.
To this end, an embodiment of the present application provides a storage medium having stored therein a plurality of instructions capable of being loaded by a processor to perform the steps of any of the digital audio processing methods provided by the embodiments of the present application. The storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a random access Memory (RAM, random Access Memory), or the like.
The above detailed description of the digital audio processing method, the device, the storage medium and the electronic apparatus provided by the present application applies specific examples to illustrate the principles and the implementation of the present application, and the above examples are only used to help understand the core idea of the present application; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present application, the present description should not be construed as limiting the present application.

Claims (10)

1. A digital audio processing method, comprising:
collecting a current audio signal;
detecting the current audio signal to generate an explosion-proof signal;
determining a current signal value of the explosion-proof signal;
and correspondingly controlling the accumulator according to the current signal value to generate a target audio signal.
2. The digital audio processing method of claim 1, wherein the corresponding control of the accumulator according to the current signal value generates a target audio signal, comprising:
when the current signal value is a first signal value, zero adding processing is carried out on the current audio signal through the accumulator, and the step of detecting the current audio signal and generating an explosion-proof signal is carried out in a return mode;
and when the current signal value is a second signal value, adding one or subtracting one to the current audio signal through the accumulator to generate the target audio signal.
3. The digital audio processing method of claim 1, wherein detecting the current audio signal generates an explosion-proof signal, comprising:
and carrying out edge detection on the current audio signal, and generating the explosion-proof signal according to a detection result.
4. A digital audio processing method according to claim 3, wherein the generating the explosion-proof signal according to the detection result includes:
generating an explosion-proof signal having a first signal value when a first rising edge or a falling edge of the current audio signal is not detected;
when a first rising or falling edge of the current audio signal is detected, an explosion-proof signal having a second signal value is generated.
5. The digital audio processing method according to any one of claims 1 to 4, further comprising:
and storing the target audio signal.
6. A digital audio processing apparatus, comprising:
the acquisition unit is used for acquiring the current audio signal;
the detection unit is used for detecting the current audio signal and generating an explosion-proof signal;
a determining unit, configured to determine a current signal value of the explosion-proof signal;
and the generating unit is used for correspondingly controlling the accumulator according to the current signal value and generating a target audio signal.
7. The digital audio processing apparatus according to claim 6, wherein the generating unit includes:
the first sub-generation module is used for adding zero to the current audio signal through the accumulator when the current signal value is a first signal value, and returning to execute the step of detecting the current audio signal to generate an explosion-proof signal;
and the second sub-generation module is used for adding one or subtracting one to the current audio signal through the accumulator when the current signal value is the second signal value, so as to generate the target audio signal.
8. The digital audio processing apparatus of claim 7, wherein the detection unit is configured to:
and carrying out edge detection on the current audio signal, and generating the explosion-proof signal according to a detection result.
9. A storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor to perform the digital audio processing method of any of claims 1-5.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the digital audio processing method of any of claims 1-5 when the computer program is executed by the processor.
CN202310638644.2A 2023-05-31 2023-05-31 Digital audio processing method and device, storage medium and electronic equipment Pending CN116665699A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310638644.2A CN116665699A (en) 2023-05-31 2023-05-31 Digital audio processing method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310638644.2A CN116665699A (en) 2023-05-31 2023-05-31 Digital audio processing method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN116665699A true CN116665699A (en) 2023-08-29

Family

ID=87718527

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310638644.2A Pending CN116665699A (en) 2023-05-31 2023-05-31 Digital audio processing method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN116665699A (en)

Similar Documents

Publication Publication Date Title
CN104518953B (en) Method for deleting message, instant communication terminal and system
US9344838B2 (en) Data transmission method and apparatus, and terminal with touch screen
WO2015090248A1 (en) Server overload protection method and device
CN109688611B (en) Frequency band parameter configuration method, device, terminal and storage medium
CN107317828B (en) File downloading method and device
CN112749074A (en) Test case recommendation method and device
CN116486833B (en) Audio gain adjustment method and device, storage medium and electronic equipment
CN116994596A (en) Howling suppression method and device, storage medium and electronic equipment
CN110891262A (en) Bluetooth pairing method, system and terminal equipment
CN106933626B (en) Application association method and device
CN115065609A (en) B-end SaaS system hybrid deployment method and system
CN110908586A (en) Keyboard display method and device and terminal equipment
CN111966206B (en) Power saving control method and device for fingerprint sensor and mobile terminal
CN106294528B (en) Method and device for realizing information transmission
CN106155733B (en) Method and device for running application program
CN109831771B (en) Bluetooth searching method and device, mobile terminal and storage medium
CN104809121B (en) Method and device for controlling display of browser webpage window
CN109240986B (en) Log processing method and device and storage medium
CN116665699A (en) Digital audio processing method and device, storage medium and electronic equipment
CN107346347B (en) Webpage table display method and device
CN107786940B (en) Base station judging method and device and mobile terminal
CN111405649B (en) Information transmission method and device and mobile terminal
CN116631423A (en) Audio signal processing method and device, storage medium and electronic equipment
CN117234137B (en) MCU clock frequency switching circuit, MCU and electronic equipment
CN114189436B (en) Multi-cluster configuration deployment method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination