CN116631423A - Audio signal processing method and device, storage medium and electronic equipment - Google Patents

Audio signal processing method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN116631423A
CN116631423A CN202310636368.6A CN202310636368A CN116631423A CN 116631423 A CN116631423 A CN 116631423A CN 202310636368 A CN202310636368 A CN 202310636368A CN 116631423 A CN116631423 A CN 116631423A
Authority
CN
China
Prior art keywords
signal
audio signal
current
audio
value
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
CN202310636368.6A
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 CN202310636368.6A priority Critical patent/CN116631423A/en
Publication of CN116631423A publication Critical patent/CN116631423A/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
    • 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
    • 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
    • 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
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

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)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The application discloses an audio signal processing method, an audio signal processing device, a storage medium and electronic equipment, wherein the audio signal processing method is used for acquiring a current audio signal; detecting the current audio signal to generate a corresponding detection signal; determining a current signal value of the detection signal; a corresponding output signal is generated based on the current signal value such that the digital-to-analog converter performs digital-to-analog conversion on the output signal. The scheme can eliminate pop noise during audio playing.

Description

Audio signal 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 an audio signal processing method, an audio signal processing device, a storage medium, and an electronic device.
Background
In an on-chip design, the clock signal of the digital-to-analog converter (Digital to Analog Convertor, DAC) comes from an on-chip clock circuit. The pulse density modulation (Pulse Density Modulation, PDM) signal comes from the internal signal processing unit, and the audio pulse code modulation (Pulse Code Modulation, PCM) signal is processed by the signal processing unit to generate the target PDM signal, which has a large delay.
Even if the chip clock circuit and the signal processing unit are enabled to work at the same time, the time for the chip clock circuit to finish the work is far longer than the time for the signal processing unit to finish the work, and the current PDM signal is constantly 1 or constantly 0, so that the DAC is constantly charged or discharged, a positive or negative analog level with a very large level is formed and is continuously reached to the target PDM signal, and pop noise is caused when the audio is played, and the user experience is seriously affected.
Disclosure of Invention
The application provides an audio signal processing method, an audio signal processing device, a storage medium and electronic equipment, which can eliminate pop noise during audio playing.
In a first aspect, the present application provides an audio signal processing method, including:
acquiring a current audio signal;
detecting the current audio signal to generate a corresponding detection signal;
determining a current signal value of the detection signal;
and generating a corresponding output signal based on the current signal value so that the digital-to-analog converter performs digital-to-analog conversion on the output signal.
In the audio signal processing method provided by the application, the generating a corresponding output signal based on the current signal value includes:
characterizing the current audio signal as a non-target audio signal when the current signal value is a first signal value, and generating a first output signal based on the current audio signal;
and when the current signal value is a second signal value, characterizing the current audio signal as a target audio signal, and taking the target audio signal as a second output signal.
In the audio signal processing method provided by the present application, when the current signal value is the second signal value, the method characterizes the current audio signal as a target audio signal, and before the target audio signal is used as the second output signal, the method further includes:
acquiring an audio pulse code modulation signal;
and preprocessing the audio pulse code modulation signal to generate the target audio signal.
In the audio signal processing method provided by the present application, the preprocessing the audio pulse code modulation signal to generate the target audio signal includes:
and sequentially performing CIC interpolation filtering, multistage FIR filtering and DSM modulation on the audio pulse code modulation signal to generate the target audio signal.
In the audio signal processing method provided by the application, the generating a first output signal based on the current audio signal includes:
acquiring a suppression signal corresponding to the current audio signal;
and superposing the suppression signal and the current audio signal to generate a uniform and fixed change signal, and taking the change signal as a first output signal.
In a second aspect, the present application provides an audio signal processing apparatus comprising:
an acquisition unit configured to acquire a current audio signal;
the detection unit is used for detecting the current audio signal and generating a corresponding detection signal;
a determining unit configured to determine a current signal value of the detection signal;
and the generating unit is used for generating a corresponding output signal based on the current signal value so that the digital-to-analog converter can perform digital-to-analog conversion on the output signal.
In the audio signal processing apparatus provided by the present application, the generating unit includes:
the first sub-generation module is used for generating a first output signal based on the current audio signal when the current signal value is a first signal value;
and the second sub-generation module is used for taking the target audio signal as a second output signal when the current signal value is a second signal value.
In the audio signal processing apparatus provided by the present application, the first sub-generation module is configured to:
when the current signal value is a first signal value, acquiring a suppression signal corresponding to the current audio signal;
and superposing the suppression signal and the current audio signal to generate a uniform and fixed change signal, and taking the change signal as a first output signal.
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 audio signal 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 audio signal processing method of any one of the above when executing the computer program.
In summary, the audio signal processing method provided by the application obtains the current audio signal; detecting the current audio signal to generate a corresponding detection signal; determining a current signal value of the detection signal; and generating a corresponding output signal based on the current signal value so that the digital-to-analog converter performs digital-to-analog conversion on the output signal. According to the scheme, the current audio signal can be detected to generate the detection signal, so that the corresponding output signal is generated according to the detection signal, and the pop sound during audio playing 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 and a PDM signal according to an embodiment of the present application.
Fig. 2 is a schematic structural diagram of an audio signal processing system according to an embodiment of the present application.
Fig. 3 is a flowchart of an audio signal processing method according to an embodiment of the present application.
Fig. 4 is a schematic waveform diagram of a clock signal, an output signal and a detection signal according to an embodiment of the present application.
Fig. 5 is a schematic structural diagram of an audio signal processing apparatus 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 chip designs, the clock signal of the digital-to-analog converter comes from the chip clock circuit. The PDM signal comes from the internal signal processing unit, and the PCM signal can be generated into the target PDM signal after being processed by the signal processing unit, so that the delay is very large. The chip clock circuit and the signal processing unit can work at the same time, and the time for the chip clock circuit to finish the work is far longer than the time for the signal processing unit to finish the work. As shown in fig. 1, the current PDM signal is constant at 1 or constant at 0, so that the DAC is constantly charged or discharged, forming a positive or negative analog level with a maximum level and continuing until the target PDM signal arrives, which causes pop noise when playing audio, and seriously affects the user experience.
In fig. 1, signal a is a clock signal and signal B is a PDM signal. It will be appreciated that signal B is split into two parts with either the first rising or falling edge as a node, the first part being a constant 1 or constant 0 PDM signal and the second part being a target PDM signal with a change. The PDM signal in the first part is the cause of the pop noise.
Based on the above, the embodiment of the application provides an audio signal processing method, an audio signal processing device, a storage medium and electronic equipment. Specifically, the audio signal 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 an audio signal 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 an audio signal 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 an audio signal processing method according to an embodiment of the application. The specific flow of the audio signal processing method can be as follows:
101. a 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 the embodiment of the application, the audio signal may be obtained from an audio file such as music, songs, dramas, or a video file such as video and video. The audio signal is stored in the device and played through the audio playing function of the electronic device.
102. And detecting the current audio signal to generate a corresponding detection signal.
Specifically, a detection signal anti_glich may be generated by detecting an edge of the current audio signal. In an embodiment of the application, the detection signal has two signal values, a first signal value for characterizing the target audio signal and a second signal value for characterizing the 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 detection signal having the corresponding signal value may be generated by determining a first rising edge or a first falling edge of the current audio signal. For example, when a first rising edge or falling edge of the current audio signal is not detected, a detection signal having a first signal value is generated; when a first rising or falling edge of the current audio signal is detected, a detection signal having a second signal value is generated.
103. A current signal value of the detection signal is determined.
Specifically, it is possible to determine which output signal is generated in step 104 by determining whether the current signal value of the detection signal is the first signal value or the second signal value.
104. A corresponding output signal is generated based on the current signal value such that the digital-to-analog converter performs digital-to-analog conversion on the output signal.
Specifically, when the current signal value is the first signal value, characterizing that the current audio signal is not the target audio signal, and generating a first output signal based on the current audio signal; and when the current signal value is the second signal value, the current audio signal is characterized as a target audio signal, and the target audio signal is taken as a second output signal.
It should be noted that, as shown in fig. 4, the first output signal is a uniformly fixed PDM signal with 0 and 1 alternating. The signal is characterized in that the pulse density is unchanged, so that the time interval of each charge and discharge of the DAC is ensured to be equal, the analog level output by the DAC is maintained unchanged, the positive or negative analog level with a maximum level is prevented from being formed before the formation of the target audio signal, and the generation of pop noise is prevented.
In fig. 4, a signal a is a clock signal, a signal C is a detection signal, and a signal B is an output signal. It will be appreciated that the second output signal corresponds to the first rising or first falling edge of the detection signal. Thus, the signal B is split into a first output signal and a second output signal with the first rising edge or the first falling edge of the signal C as a node, the first output signal being followed by the second output signal.
In some embodiments, when the current signal value is the first signal value, a suppression signal generation instruction may be generated based on the current audio signal, then the suppression signal generation instruction is sent to a preset suppression signal generation module to generate a suppression signal corresponding to the current audio signal, and then the suppression signal may be overlapped with the current audio signal to generate a uniformly fixed variation signal. That is, the step of "generating the first output signal based on the current audio signal" may comprise:
acquiring a suppression signal corresponding to a current audio signal;
and superposing the suppression signal and the current audio signal to generate a uniform and fixed change signal, and taking the change signal as a first output signal.
In an embodiment of the present application, the target audio signal is generated by processing a PCM signal by a signal processing unit. Therefore, the generation process of the target audio signal may specifically be: acquiring an audio pulse code modulation signal; and preprocessing the audio pulse code modulation signal to generate a target audio signal.
The preprocessing may be CIC interpolation filtering, multi-stage FIR filtering, and DSM modulation, among others. Therefore, the audio pulse code modulation signal is preprocessed, and the target audio signal can be specifically generated by: and sequentially performing CIC interpolation filtering, multistage FIR filtering and DSM modulation on the audio pulse code modulation signal to generate a target audio signal.
It will be appreciated that the target audio signal is a true digital to analogue conversion output signal. The signal is characterized by a variable pulse density which can be varied in response to changes in the input signal. This signal is converted into an actual analog signal by DAC and output, so that audio is played.
In summary, the audio signal processing method provided by the embodiment of the application can obtain the current audio signal; detecting the current audio signal to generate a corresponding detection signal; determining a current signal value of the detection signal; a corresponding output signal is generated based on the current signal value such that the digital-to-analog converter performs digital-to-analog conversion on the output signal. According to the scheme, after the chip is started, the change of the current audio signal is detected, and a detection signal anti_glich is generated. Then, according to the detection signal anti_glich, whether the analog level output by the analog level DAC is unchanged or the current audio signal is subjected to normal digital-to-analog conversion is determined, so that the analog signal is generated, the positive or negative analog level with a maximum level can be effectively avoided before the target audio signal is formed, and the generation of pop noise is prevented.
In order to better implement the audio signal processing method provided by the embodiment of the present application, the embodiment of the present application further provides an audio signal processing apparatus, where the meaning of terms is the same as that in the above audio signal 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 an audio signal processing apparatus according to an embodiment of the application. The audio signal 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 for acquiring a current audio signal;
a detection unit 202, configured to detect a current audio signal and generate a corresponding detection signal;
a determining unit 203 for determining a current signal value of the detection signal;
the generating unit 304 is configured to generate a corresponding output signal based on the current signal value, so that the digital-to-analog converter performs digital-to-analog conversion on the output signal.
In some embodiments, the generating unit 304 may include:
the first sub-generation module is used for generating a first output signal based on the current audio signal when the current signal value is the first signal value;
and the second sub-generation module is used for taking the target audio signal as a second output signal when the current signal value is the second signal value.
In some embodiments, the first sub-generation module may be configured to: when the current signal value is the first signal value, acquiring a suppression signal corresponding to the current audio signal; and superposing the suppression signal and the current audio signal to generate a uniform and fixed change signal, and taking the change signal as a first output signal.
The specific embodiments of the above units may be referred to the above embodiments of the audio signal processing method, and will not be described herein.
In summary, the audio signal processing device provided by the embodiment of the application can acquire the current audio signal through the acquisition unit; detecting the current audio signal by the detecting unit 202 to generate a corresponding detection signal; determining, by the determining unit 203, a current signal value of the detection signal; a corresponding output signal is generated by the generating unit 304 based on the current signal value such that the digital-to-analog converter digital-to-analog converts the output signal. According to the scheme, after the chip is started, the change of the current audio signal is detected, and a detection signal anti_glich is generated. Then, according to the detection signal anti_glich, whether the analog level output by the analog level DAC is unchanged or the current audio signal is subjected to normal digital-to-analog conversion is determined, so that the analog signal is generated, the positive or negative analog level with a maximum level can be effectively avoided before the target audio signal is formed, and the generation of pop noise is prevented.
The embodiment of the present application further provides an electronic device, in which the audio signal 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:
acquiring a current audio signal;
detecting the current audio signal to generate a corresponding detection signal;
determining a current signal value of the detection signal;
a corresponding output signal is generated based on the current signal value such that the digital-to-analog converter performs digital-to-analog conversion on the output 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 obtain the current audio signal; detecting the current audio signal to generate a corresponding detection signal; determining a current signal value of the detection signal; a corresponding output signal is generated based on the current signal value such that the digital-to-analog converter performs digital-to-analog conversion on the output signal. According to the scheme, after the chip is started, the change of the current audio signal is detected, and a detection signal anti_glich is generated. Then, according to the detection signal anti_glich, whether the analog level output by the analog level DAC is unchanged or the current audio signal is subjected to normal digital-to-analog conversion is determined, so that the analog signal is generated, the positive or negative analog level with a maximum level can be effectively avoided before the target audio signal is formed, and the generation of pop noise is prevented.
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 audio signal processing method, which is not repeated herein.
It should be noted that, for the audio signal 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 audio signal processing method in the embodiment of the present application may be implemented by controlling related hardware by 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, for example, the flow of the embodiment of the audio signal processing method.
For the audio signal 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 audio signal processing methods provided by the embodiment 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 audio signal 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 description of the examples is 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. An audio signal processing method, comprising:
acquiring a current audio signal;
detecting the current audio signal to generate a corresponding detection signal;
determining a current signal value of the detection signal;
and generating a corresponding output signal based on the current signal value so that the digital-to-analog converter performs digital-to-analog conversion on the output signal.
2. The audio signal processing method of claim 1, wherein the generating a corresponding output signal based on the current signal value comprises:
characterizing the current audio signal as a non-target audio signal when the current signal value is a first signal value, and generating a first output signal based on the current audio signal;
and when the current signal value is a second signal value, characterizing the current audio signal as a target audio signal, and taking the target audio signal as a second output signal.
3. The audio signal processing method of claim 2, characterized in that, when the current signal value is the second signal value, the current audio signal is characterized as a target audio signal, and before the target audio signal is taken as the second output signal, further comprising:
acquiring an audio pulse code modulation signal;
and preprocessing the audio pulse code modulation signal to generate the target audio signal.
4. The audio signal processing method of claim 3, wherein the preprocessing the audio pulse code modulated signal to generate the target audio signal comprises:
and sequentially performing CIC interpolation filtering, multistage FIR filtering and DSM modulation on the audio pulse code modulation signal to generate the target audio signal.
5. The audio signal processing method of claim 2, wherein the generating a first output signal based on the current audio signal comprises:
acquiring a suppression signal corresponding to the current audio signal;
and superposing the suppression signal and the current audio signal to generate a uniform and fixed change signal, and taking the change signal as a first output signal.
6. An audio signal processing apparatus, comprising:
an acquisition unit configured to acquire a current audio signal;
the detection unit is used for detecting the current audio signal and generating a corresponding detection signal;
a determining unit configured to determine a current signal value of the detection signal;
and the generating unit is used for generating a corresponding output signal based on the current signal value so that the digital-to-analog converter can perform digital-to-analog conversion on the output signal.
7. The audio signal processing apparatus according to claim 6, wherein the generating unit includes:
the first sub-generation module is used for generating a first output signal based on the current audio signal when the current signal value is a first signal value;
and the second sub-generation module is used for taking the target audio signal as a second output signal when the current signal value is a second signal value.
8. The audio signal processing apparatus of claim 7, wherein the first sub-generation module is to:
when the current signal value is a first signal value, acquiring a suppression signal corresponding to the current audio signal;
and superposing the suppression signal and the current audio signal to generate a uniform and fixed change signal, and taking the change signal as a first output signal.
9. A storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the audio signal processing method of any one 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 audio signal processing method according to any of claims 1-5 when executing the computer program.
CN202310636368.6A 2023-05-31 2023-05-31 Audio signal processing method and device, storage medium and electronic equipment Pending CN116631423A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310636368.6A CN116631423A (en) 2023-05-31 2023-05-31 Audio signal processing method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310636368.6A CN116631423A (en) 2023-05-31 2023-05-31 Audio signal processing method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN116631423A true CN116631423A (en) 2023-08-22

Family

ID=87613181

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310636368.6A Pending CN116631423A (en) 2023-05-31 2023-05-31 Audio signal processing method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN116631423A (en)

Similar Documents

Publication Publication Date Title
CN107393548B (en) Method and device for processing voice information collected by multiple voice assistant devices
CN106502833B (en) Data backup method and device
CN107734618B (en) Application program closing method and device, storage medium and electronic equipment
JP6915074B2 (en) Message notification method and terminal
CN106682189B (en) File name display method and device
CN109688611B (en) Frequency band parameter configuration method, device, terminal and storage medium
CN110022405B (en) Radio frequency parameter adjusting method, device and storage medium
CN107317828B (en) File downloading method and device
CN116486833B (en) Audio gain adjustment method and device, storage medium and electronic equipment
CN115985323B (en) Voice wakeup method and device, electronic equipment and readable storage medium
CN106303616B (en) Play control method, device and terminal
CN116994596A (en) Howling suppression method and device, storage medium and electronic equipment
CN110891262A (en) Bluetooth pairing method, system and terminal equipment
CN106210325B (en) Method, device and terminal for setting incoming call ringtone of social application
CN115065609A (en) B-end SaaS system hybrid deployment method and system
CN111966206B (en) Power saving control method and device for fingerprint sensor and mobile terminal
CN106155733B (en) Method and device for running application program
CN109831771B (en) Bluetooth searching method and device, mobile terminal and storage medium
CN116631423A (en) Audio signal processing method and device, storage medium and electronic equipment
CN112433694A (en) Light intensity adjusting method and device, storage medium and mobile terminal
CN116665699A (en) Digital audio processing method and device, storage medium and electronic equipment
CN106982177B (en) Upgrade control method, device and terminal
CN111405649B (en) Information transmission method and device and mobile terminal
CN117234137B (en) MCU clock frequency switching circuit, MCU and electronic equipment
CN106293783B (en) Installation package cleaning method and equipment

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