CN109769175B - Audio processing method and electronic equipment - Google Patents

Audio processing method and electronic equipment Download PDF

Info

Publication number
CN109769175B
CN109769175B CN201910139043.0A CN201910139043A CN109769175B CN 109769175 B CN109769175 B CN 109769175B CN 201910139043 A CN201910139043 A CN 201910139043A CN 109769175 B CN109769175 B CN 109769175B
Authority
CN
China
Prior art keywords
audio
frequency
amplitude
processed
target audio
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.)
Active
Application number
CN201910139043.0A
Other languages
Chinese (zh)
Other versions
CN109769175A (en
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201910139043.0A priority Critical patent/CN109769175B/en
Publication of CN109769175A publication Critical patent/CN109769175A/en
Application granted granted Critical
Publication of CN109769175B publication Critical patent/CN109769175B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses an audio processing method and electronic equipment, and the scheme provided by the application comprises the following steps: determining a first frequency point in a frequency band corresponding to the audio to be processed according to a preset amplitude, wherein the amplitude of the audio to be processed at the first frequency point is greater than the preset amplitude; and performing frequency modulation processing on the target audio of the audio to be processed at the first frequency point to obtain a processed target audio with the frequency of the second frequency point, wherein the amplitude of the processed target audio at the second frequency point is less than or equal to the preset amplitude. Under the condition that the difference frequency of the audio frequency is basically unchanged, the subjective hearing sense of the high-frequency audio frequency is close to that of the low-frequency audio frequency. The invention can modulate the target audio which cannot be completely output originally into the audio which can be completely output, and the subjective hearing of the processed audio is close to that of the audio to be processed, thereby improving the integrity of the output audio and improving the hearing experience of a user.

Description

Audio processing method and electronic equipment
Technical Field
The present invention relates to the field of terminals, and in particular, to an audio processing method and an electronic device.
Background
Among the existing audio output technologies, screen sound technology is receiving more and more attention. The sound production technology is mainly characterized in that a vibrating unit pushes a middle frame or a screen under the driving of an electric signal, and the screen produces sound through the energy transmission mode of vibration coupling.
However, in practice, the amplitude and frequency of the sound-producing vibrations of the device are limited, resulting in a limited amount of sound that can be produced by the device. Part of special audio cannot be completely output through the screen sounding technology, and only part of audio can be output. Therefore, the subjective auditory sensation of the user is poor, and the overall auditory sensation experience is poor.
Therefore, how to improve the screen sounding effect is a technical problem to be solved by the application.
Disclosure of Invention
An embodiment of the application provides an audio processing method and an electronic device, so as to solve the problem that a screen sound production effect is not good in the prior art.
In a first aspect, an audio processing method is provided, including:
determining a first frequency point in a frequency band corresponding to the audio to be processed according to a preset amplitude, wherein the amplitude of the audio to be processed at the first frequency point is greater than the preset amplitude;
and performing frequency modulation processing on the target audio of the audio to be processed at the first frequency point to obtain a processed target audio with a frequency of a second frequency point, wherein the amplitude of the processed target audio at the second frequency point is less than or equal to the preset amplitude.
In a second aspect, an electronic device is provided, comprising:
an electronic device, comprising:
the first determining module is used for determining a first frequency point in a frequency band corresponding to the audio to be processed according to a preset amplitude, wherein the amplitude of the audio to be processed at the first frequency point is larger than the preset amplitude;
and the execution module executes frequency modulation processing on the target audio of the audio to be processed at the first frequency point to obtain a processed target audio with the frequency of a second frequency point, wherein the amplitude of the processed target audio at the second frequency point is less than or equal to the preset amplitude.
In a third aspect, an electronic device is provided, the electronic device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the method according to the first aspect.
In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, realizes the steps of the method as in the first aspect.
In the embodiment of the application, a first frequency point in a frequency band corresponding to the audio to be processed is determined according to a preset amplitude, and the amplitude of the audio to be processed at the first frequency point is larger than the preset amplitude; and performing frequency modulation processing on the target audio of the audio to be processed at the first frequency point to obtain a processed target audio with the frequency of the second frequency point, wherein the amplitude of the processed target audio at the second frequency point is less than or equal to the preset amplitude. Under the condition that the difference frequency of the audio frequency is basically unchanged, the subjective hearing sense of the high-frequency audio frequency is close to that of the low-frequency audio frequency. Therefore, the scheme provided by the application carries out frequency modulation on the target audio with the amplitude larger than the preset amplitude, and can modulate the target audio which cannot be completely output originally into the audio which can be completely output. Moreover, the subjective hearing of the processed audio is close to that of the audio to be processed, so that the integrity of the output audio is improved, and the subjective hearing of a user is optimized.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention and not to limit the invention. In the drawings:
FIG. 1 is a flow chart of an audio processing method according to the present invention;
FIG. 2 is a second schematic flowchart of an audio processing method according to the present invention;
FIG. 3 is a third schematic flowchart of an audio processing method according to the present invention;
FIG. 4 is a fourth flowchart illustrating an audio processing method according to the present invention;
FIG. 5 is a fifth flowchart illustrating an audio processing method according to the present invention;
FIG. 6 is a schematic diagram of an electronic device of the present application;
fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention. The reference numbers in the present application are only used for distinguishing the steps in the scheme and are not used for limiting the execution sequence of the steps, and the specific execution sequence is described in the specification.
Although the existing screen sounding technology has the advantages of improving screen occupation ratio, saving space and the like, the quality of the sounding is poor. When the sound production amplitude is great, the vibrating unit probably can hit the bottom plate that is close to with the vibrating unit mutually, makes the sound of sending play and appears beating the bottom tone miscellaneous, influences the vocal effect.
In order to solve the problem of background noise during sounding, the conventional scheme usually adopts a fixed wave trap to suppress an audio signal, but the mode can cause signal loss of a part of frequency domain intervals, and when voice is included in the audio, after the voice is suppressed by the conventional mode, voice fundamental frequency is usually lost in the sound, so that the subjective listening feeling of a user is poor.
Therefore, the existing screen sounding scheme has poor sounding effect, incomplete sounding and poor listening experience.
To solve the problems in the prior art, the present application provides an audio processing method, as shown in fig. 1, including the following steps:
s11: the electronic equipment determines a first frequency point in a frequency band corresponding to the audio to be processed according to a preset amplitude, wherein the amplitude of the audio to be processed at the first frequency point is larger than the preset amplitude.
In this scheme, the preset amplitude can be determined according to the maximum amplitude of the sounding unit during actual sounding. Because the maximum amplitudes of the sound generating units under different frequencies are different, the preset amplitude can be a function curve related to the frequency, and each frequency point corresponds to the maximum amplitude when the sound generating unit actually emits the audio frequency of the frequency point.
When the amplitude of the audio to be processed exceeds the preset amplitude, the sound generating unit often cannot completely output the audio to be processed, or the conditions of background sound noise and the like occur in the sound generating process. In the scheme, the amplitude of the audio to be processed at the first frequency point is greater than the preset amplitude, if the audio to be processed is directly output through the sound generating unit, the audio at the first frequency point cannot be completely output, and the audio at the first frequency point is processed through S12.
S12: and the electronic equipment executes frequency modulation processing on the target audio of the audio to be processed at the first frequency point to obtain a processed target audio with a frequency of a second frequency point, wherein the amplitude of the processed target audio at the second frequency point is less than or equal to the preset amplitude.
In this step, the audio of the audio to be processed at the first frequency point is used as a target audio, and the target audio is subjected to frequency modulation, specifically, the frequency modulation may include frequency spectrum shifting, and the frequency spectrum shifting may include linear shifting or nonlinear shifting. The amplitude of the target audio may be constant during frequency modulation. The frequency modulation processing is performed on the target audio, and specifically, the frequency of the target audio is adjusted from the first frequency point to the second frequency point under the condition that the amplitude of the target audio is not changed, so that the amplitude of the target audio at the second frequency point is smaller than or equal to the preset amplitude. And the amplitude corresponding to the second frequency point with the preset amplitude is larger than the amplitude corresponding to the first frequency point with the preset amplitude.
Under the condition that the difference frequency of the audio frequency is basically unchanged, the subjective hearing sense of the high-frequency audio frequency is close to that of the low-frequency audio frequency. Therefore, through the scheme provided by the application, the target audio with the amplitude larger than the preset amplitude is subjected to frequency modulation, and the target audio which cannot be completely output originally can be modulated into the audio which can be completely output. Moreover, the subjective auditory sensation of the processed audio is close to that of the audio to be processed, so that the integrity of the output audio is improved, the sounding effect is optimized, and the subjective auditory sensation of a user is optimized.
Optionally, based on the method provided by the foregoing embodiment, as shown in fig. 2, the step S12 includes:
s121: and the electronic equipment adjusts the frequency of the target audio frequency according to the amplitude of the target audio frequency to obtain the adjusted target audio frequency.
Specifically, the frequency of the target audio frequency can be adjusted on the premise that the amplitude of the target audio frequency is not changed, so that the target audio frequency with the adjusted frequency is obtained, and the sound production unit can completely output the adjusted target audio frequency.
S122: and the electronic equipment performs sound mixing processing on the target audio and the adjusted target audio to obtain a processed target audio with a second frequency point.
Specifically, the target audio before adjustment may be replaced by the adjusted target audio, or the adjusted target audio and the target audio before adjustment may be subjected to audio mixing processing to obtain a processed audio of the second frequency point, so that the similarity between the processed target audio and the audio before processing is improved under the condition that the sound generating unit is ensured to be capable of completely outputting the processed target audio, and the subjective auditory sensation of the processed target audio is close to the subjective auditory sensation of the target audio to be processed.
Optionally, based on the method provided in the foregoing embodiment, as shown in fig. 3, before the step S121, the method further includes:
s123: and the electronic equipment determines a filter bank according to the first frequency point and the amplitude of the audio to be processed at the first frequency point.
The determined filter bank may include an fir (finite Impulse response) filter or an iir (infinite Impulse response) digital filter. Specifically, a frequency filter coefficient corresponding to the target audio may be generated according to the amplitude of the target audio and the target audio frequency, that is, the first frequency point, and then the filter bank may be generated according to the filter coefficient.
S124: and the electronic equipment extracts the target audio from the audio to be processed according to the filter bank.
And filtering the audio to be processed by using the filter bank determined in the step S123 to extract a target audio, which is the audio that cannot be completely output by the sound generating unit.
Subsequently, the extracted target audio can be subjected to spectrum shifting, so that frequency modulation is realized. The spectrum shifting may be realized by linear shifting or nonlinear shifting.
The utility model provides a scheme is earlier according to first frequency point and pending audio frequency at first frequency point and confirms the filter bank, and target audio frequency is drawed out to rethread filter bank to distinguish the audio frequency that can the output of sound producing unit and the unable output audio frequency of sound producing unit, handle to the unable audio frequency of output of sound producing unit afterwards.
In practical application, when the audio to be processed is a real-time voice signal, the real-time voice signal can be processed through two paths. The first path may be configured to determine, according to the preset amplitude, a target audio that cannot be output by the sound generating unit in the real-time speech signal, and perform processing in a manner of spectrum shifting or the like on the target audio to obtain a processed target audio. The second path may be used to perform audio mixing processing on the processed target audio and the audio to be processed after the target audio is filtered.
Specifically, the real-time audio signal may be a Pulse Code Modulation (PCM) audio data stream, and the first path may be used to compare the PCM stream with the predetermined amplitude.
The PCM voice data stream is typically a time domain voice signal, and may be transformed into a frequency domain voice signal by fourier transform. And then, calculating an absolute value according to the frequency domain voice signal obtained by transformation to obtain an amplitude-frequency curve corresponding to the frequency domain voice signal. And comparing the obtained amplitude-frequency curve with the preset amplitude to determine an interval in which the amplitude-frequency curve exceeds the preset amplitude curve, wherein the signal in the interval is the signal which cannot be completely output by the sound generating unit.
Specifically, the first path may include a modem, a central processing unit CPU, and a front end analog unit AFE. The MODEN can be used for receiving and modulating the PCM voice data stream, and the CPU can be used for extracting a signal corresponding to a target audio which cannot be completely output by the sound production unit in the PCM voice data stream and processing the extracted signal into a signal which can be completely output by the sound production unit. The AFE may be configured to perform mixing processing on the processed signal and the PCM speech data stream from which the signal corresponding to the target audio is filtered, so as to obtain a processed PCM speech data stream. The processed PCM speech data stream may then be output via a power amplifier PA and a sound output unit.
Through the scheme, the audio obtained by sound mixing processing is the processed audio which can be completely output by the sound generating unit, bottom-sounding impurities can not occur in the output process, the output audio is close to the subjective listening feeling of the original audio to be processed, and the sound generating effect is optimized.
Optionally, based on the method provided in the foregoing embodiment, as shown in fig. 4, before step S11, the method further includes:
s13: the electronic equipment outputs an audio signal with a preset frequency through the sound production unit.
The audio signal of the preset frequency can be an audio file of a fixed frequency, and when the sound generating unit outputs the audio signal of the preset frequency, the amplitude displacement value of the sound generating unit at the preset frequency can be measured by using a laser or other non-contact type accurate displacement measuring equipment.
In the practical application process, the audio signal with the preset frequency can be a frequency sweep signal, when the sound generating unit outputs the frequency sweep signal, the amplitude of the sound generating unit under each frequency is measured, a relation curve of the frequency and the maximum amplitude of the sound generating unit under the frequency can be obtained, and the relation curve can reflect the capability of the sound generating unit for outputting the audio.
S14: and the electronic equipment determines the preset amplitude according to the maximum amplitude of the audio signal output by the sound generating unit.
For example, the sound generating unit outputs the audio signal of the first frequency with the maximum amplitude of the first amplitude, and the sound generating unit outputs the audio signal of the second frequency with the maximum amplitude of the second amplitude. A "frequency-amplitude" relationship can be determined according to the first frequency, the second frequency, the first amplitude corresponding to the first frequency, and the second amplitude corresponding to the second frequency, and the relationship can be determined as a preset amplitude.
Subsequently, in step S11, the relationship curve of the preset amplitude and the relationship curve of the preset amplitude may be compared, and a first frequency point is determined according to a portion of the audio to be processed where the amplitude exceeds the preset amplitude. The preset amplitude can be used for processing the audio to be processed in real time, when the audio to be processed is a real-time voice signal, the audio to be processed can be processed in real time according to the preset amplitude, and the processed audio output can be completely output by the sound generating unit.
The scheme provided by the application determines the preset amplitude by measuring the maximum amplitude when the sound generating unit outputs the audio signal with the preset frequency. The preset amplitude can represent the range of the audio frequency which can be output by the sound-emitting unit, and then the target audio frequency which cannot be output by the sound-emitting unit in the audio frequency to be processed can be accurately determined according to the preset amplitude. And then the target audio is processed, so that excessive processing of the audio to be processed is avoided, the processed audio can be completely output by the sound generating unit, the subjective auditory sensation of the processed audio is close to that of the audio to be processed, and the sound generating effect is optimized.
Optionally, based on the method provided by the foregoing embodiment, as shown in fig. 5, step S14 includes:
s141: the electronic equipment determines the voltage value of the sound production unit when the audio signal is output at the maximum amplitude.
In the practical application process, the amplitude of the sound generating unit when outputting the audio can be indirectly controlled by controlling the voltage value of the output signal of the sound generating unit. After the frequency-amplitude relation curve of the sound production unit is obtained, the voltage value of each frequency audio signal output by the sound production unit at the maximum amplitude can be determined by adjusting the output voltage of the sound production unit, and a voltage-frequency-amplitude relation curve set is obtained.
For the sound generating unit with a fixed hardware structure, because the space for allowing vibration in the hardware structure is limited, the sound generating unit can contact an adjacent bottom plate or other hardware structures when the vibration amplitude is too large. Therefore, the maximum amplitude of the sound generating unit can be determined according to the hardware structure of the sound generating unit, and the sound generating unit is ensured not to contact other adjacent hardware structures under the maximum amplitude. According to the maximum amplitude and the relation curve set of voltage-frequency-amplitude, the relation curve of frequency-voltage of the sounding unit can be determined.
S142: and the electronic equipment determines the preset amplitude according to the voltage value.
Specifically, the "frequency-voltage" relationship curve determined in step S141 may be determined as a preset amplitude, where the voltage value corresponding to each frequency in the relationship curve can represent the capability of the sound emitting unit to output audio.
The scheme provided by the application determines the preset amplitude according to the voltage value of the audio signal output by the sound generating unit when the amplitude is maximum, and the voltage value can embody the audio output capability of the sound generating unit. In the practical application process, the amplitude of the sound generating unit can be directly and indirectly controlled by controlling the voltage value output by the sound generating unit, and the phenomenon that the sound generating unit generates bottom-striking noise due to overlarge amplitude when outputting audio is avoided.
In order to solve the above problems in the prior art, as shown in fig. 6, the present application further provides an electronic device 60, including:
the first determining module 61 is configured to determine a first frequency point in a frequency band corresponding to a to-be-processed audio according to a preset amplitude, where the amplitude of the to-be-processed audio at the first frequency point is greater than the preset amplitude;
the execution module 62 executes frequency modulation processing on the target audio of the audio to be processed at the first frequency point to obtain a processed target audio with a frequency of a second frequency point, where the amplitude of the processed target audio at the second frequency point is less than or equal to the preset amplitude.
Optionally, based on the electronic device provided in the above embodiment, the electronic device further includes: a second determination module 63;
the second determining module 63 is configured to:
before determining a first frequency point in a frequency band corresponding to the audio to be processed according to the preset amplitude, outputting an audio signal with a preset frequency through a sound generating unit;
and determining the preset amplitude according to the maximum amplitude of the audio signal output by the sound generating unit.
Optionally, based on the electronic device provided in the above embodiment, the second determining module 63 in the electronic device is configured to:
determining a voltage value of the sound production unit when the audio signal is output at the maximum amplitude;
and determining the preset amplitude according to the voltage value.
Optionally, based on the electronic device provided in the foregoing embodiment, the execution module 62 in the electronic device is configured to:
adjusting the frequency of the target audio according to the amplitude of the target audio to obtain the adjusted target audio;
and carrying out sound mixing processing on the target audio and the adjusted target audio to obtain a processed target audio with the frequency of a second frequency point.
Optionally, based on the electronic device provided in the foregoing embodiment, the execution module 62 in the electronic device is configured to:
before adjusting the frequency of the target audio according to the amplitude of the target audio, determining a filter bank according to the first frequency point and the amplitude of the target audio;
determining a filter bank according to the first frequency point and the amplitude of the audio to be processed at the first frequency point;
and extracting the target audio from the audio to be processed according to the filter bank.
Under the condition that the difference frequency of the audio frequency is basically unchanged, the subjective hearing sense of the high-frequency audio frequency is close to that of the low-frequency audio frequency. Therefore, the scheme provided by the application can modulate the target audio which cannot be completely output originally into the audio which can be completely output, and the subjective auditory sensation of the processed audio is close to that of the audio to be processed, so that the integrity of the output audio is improved, the sound production effect is optimized, and the subjective auditory sensation of a user is optimized.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention.
The electronic device 700 includes, but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, a processor 710, a power supply 711, and the like. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 7 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 710 is configured to determine a first frequency point in a frequency band corresponding to a to-be-processed audio according to a preset amplitude, where the amplitude of the to-be-processed audio at the first frequency point is greater than the preset amplitude;
and performing frequency modulation processing on the target audio of the audio to be processed at the first frequency point to obtain a processed target audio with a frequency of a second frequency point, wherein the amplitude of the processed target audio at the second frequency point is less than or equal to the preset amplitude.
Under the condition that the difference frequency of the audio frequency is basically unchanged, the subjective hearing sense of the high-frequency audio frequency is close to that of the low-frequency audio frequency. Therefore, the scheme provided by the application can modulate the target audio which cannot be completely output originally into the audio which can be completely output, and the subjective hearing of the processed audio is close to that of the audio to be processed, so that the integrity of the output audio is improved, and the subjective hearing of a user is optimized.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 701 may be used for receiving and sending signals during a message transmission and reception process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 710; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 701 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 701 may also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 702, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 703 may convert audio data received by the radio frequency unit 701 or the network module 702 or stored in the memory 709 into an audio signal and output as sound. Also, the audio output unit 703 may also provide audio output related to a specific function performed by the electronic apparatus 700 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 703 includes a speaker, a buzzer, a receiver, and the like.
The input unit 704 is used to receive audio or video signals. The input Unit 704 may include a Graphics Processing Unit (GPU) 7041 and a microphone 7042, and the Graphics processor 7041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 706. The image frames processed by the graphic processor 7041 may be stored in the memory 709 (or other storage medium) or transmitted via the radio unit 701 or the network module 702. The microphone 7042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 701 in case of a phone call mode.
The electronic device 700 also includes at least one sensor 705, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 7061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 7061 and/or a backlight when the electronic device 700 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 705 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 706 is used to display information input by the user or information provided to the user. The Display unit 706 may include a Display panel 7061, and the Display panel 7061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 707 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 707 includes a touch panel 7071 and other input devices 7072. The touch panel 7071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 7071 (e.g., operations by a user on or near the touch panel 7071 using a finger, a stylus, or any other suitable object or attachment). The touch panel 7071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction 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 sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 710, receives a command from the processor 710, and executes the command. In addition, the touch panel 7071 can be implemented by various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 707 may include other input devices 7072 in addition to the touch panel 7071. In particular, the other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 7071 may be overlaid on the display panel 7061, and when the touch panel 7071 detects a touch operation on or near the touch panel 7071, the touch operation is transmitted to the processor 710 to determine the type of the touch event, and then the processor 710 provides a corresponding visual output on the display panel 7061 according to the type of the touch event. Although the touch panel 7071 and the display panel 7061 are shown in fig. 7 as two separate components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 7071 and the display panel 7061 may be integrated to implement the input and output functions of the electronic device, which is not limited herein.
The interface unit 708 is an interface for connecting an external device to the electronic apparatus 700. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 708 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 700 or may be used to transmit data between the electronic apparatus 700 and the external device.
The memory 709 may be used to store software programs as well as various data. The memory 709 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 by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 709 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.
The processor 710 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 709 and calling data stored in the memory 709, thereby monitoring the whole electronic device. Processor 710 may include one or more processing units; preferably, the processor 710 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 710.
The electronic device 700 may also include a power supply 711 (e.g., a battery) for providing power to the various components, and preferably, the power supply 711 may be logically coupled to the processor 710 via a power management system, such that functions of managing charging, discharging, and power consumption may be performed via the power management system.
In addition, the electronic device 700 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor 710, a memory 709, and a computer program stored in the memory 709 and capable of running on the processor 710, where the computer program is executed by the processor 710 to implement each process of the above-mentioned embodiment of the audio processing method, and can achieve the same technical effect, and in order to avoid repetition, the details are not repeated here.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned embodiment of the audio processing method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
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, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (11)

1. An audio processing method, comprising:
determining a first frequency point in a frequency band corresponding to the audio to be processed according to a preset amplitude, wherein the amplitude of the audio to be processed at the first frequency point is greater than the preset amplitude;
performing frequency modulation processing on the target audio of the audio to be processed at the first frequency point to obtain a processed target audio with a frequency of a second frequency point, wherein the amplitude of the processed target audio at the second frequency point is less than or equal to the preset amplitude;
and the amplitude corresponding to the second frequency point with the preset amplitude is larger than the amplitude corresponding to the first frequency point with the preset amplitude.
2. The method of claim 1, wherein before determining the first frequency point in the frequency band corresponding to the audio to be processed according to the preset amplitude, the method further comprises:
outputting an audio signal with preset frequency through a sound production unit;
and determining the preset amplitude according to the maximum amplitude of the audio signal output by the sound generating unit.
3. The method of claim 2, wherein said determining the preset amplitude based on a maximum amplitude of the audio signal output by the sound generating unit comprises:
determining a voltage value of the sound production unit when the audio signal is output at the maximum amplitude;
and determining the preset amplitude according to the voltage value.
4. The method of claim 1, wherein the performing frequency modulation processing on the target audio of the to-be-processed audio at the first frequency point to obtain a processed target audio with a second frequency point comprises:
adjusting the frequency of the target audio according to the amplitude of the target audio to obtain the adjusted target audio;
and carrying out sound mixing processing on the target audio and the adjusted target audio to obtain a processed target audio with the frequency of a second frequency point.
5. The method of claim 4, wherein before adjusting the frequency of the target audio according to the amplitude of the target audio to obtain the adjusted target audio, further comprising:
determining a filter bank according to the first frequency point and the amplitude of the audio to be processed at the first frequency point;
and extracting the target audio from the audio to be processed according to the filter bank.
6. An electronic device, comprising:
the first determining module is used for determining a first frequency point in a frequency band corresponding to the audio to be processed according to a preset amplitude, wherein the amplitude of the audio to be processed at the first frequency point is larger than the preset amplitude;
the execution module is used for executing frequency modulation processing on the target audio frequency of the audio frequency to be processed at the first frequency point to obtain a processed target audio frequency with the frequency of a second frequency point, and the amplitude of the processed target audio frequency at the second frequency point is smaller than or equal to the preset amplitude;
and the amplitude corresponding to the second frequency point with the preset amplitude is larger than the amplitude corresponding to the first frequency point with the preset amplitude.
7. The electronic device of claim 6, further comprising: a second determination module;
the second determination module is to:
before determining a first frequency point in a frequency band corresponding to the audio to be processed according to the preset amplitude, outputting an audio signal with a preset frequency through a sound generating unit;
and determining the preset amplitude according to the maximum amplitude of the audio signal output by the sound generating unit.
8. The electronic device of claim 7, wherein the second determination module is to:
determining a voltage value of the sound production unit when the audio signal is output at the maximum amplitude;
and determining the preset amplitude according to the voltage value.
9. The electronic device of claim 6, wherein the execution module is to:
adjusting the frequency of the target audio according to the amplitude of the target audio to obtain the adjusted target audio;
and carrying out sound mixing processing on the target audio and the adjusted target audio to obtain a processed target audio with the frequency of a second frequency point.
10. The electronic device of claim 9, wherein the execution module is to:
before adjusting the frequency of the target audio according to the amplitude of the target audio, determining a filter bank according to the first frequency point and the amplitude of the target audio;
determining a filter bank according to the first frequency point and the amplitude of the audio to be processed at the first frequency point;
and extracting the target audio from the audio to be processed according to the filter bank.
11. An electronic device, comprising: memory, processor and computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the method according to any one of claims 1 to 5.
CN201910139043.0A 2019-02-25 2019-02-25 Audio processing method and electronic equipment Active CN109769175B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910139043.0A CN109769175B (en) 2019-02-25 2019-02-25 Audio processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910139043.0A CN109769175B (en) 2019-02-25 2019-02-25 Audio processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN109769175A CN109769175A (en) 2019-05-17
CN109769175B true CN109769175B (en) 2021-03-23

Family

ID=66456238

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910139043.0A Active CN109769175B (en) 2019-02-25 2019-02-25 Audio processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN109769175B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113946308A (en) * 2020-06-30 2022-01-18 中兴通讯股份有限公司 Screen over-vibration protection method, electronic device and storage medium
CN113655983B (en) * 2021-07-27 2023-09-08 深圳市冠旭电子股份有限公司 Audio playing method and device, audio playing equipment and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101800923A (en) * 2009-06-08 2010-08-11 瑞声声学科技(深圳)有限公司 Device and method for inhibition of second resonance mode of vibrating diaphragm
CN105635908A (en) * 2015-12-21 2016-06-01 深圳Tcl数字技术有限公司 Low-frequency signal reproducing method and system
CN106101925A (en) * 2016-06-27 2016-11-09 联想(北京)有限公司 A kind of control method and electronic equipment
CN109168108A (en) * 2018-10-24 2019-01-08 维沃移动通信有限公司 Electro-acoustic element amplitude method of adjustment, device and mobile terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2430319B (en) * 2005-09-15 2008-09-17 Beaumont Freidman & Co Audio dosage control
CN107172541A (en) * 2017-06-29 2017-09-15 深圳Tcl新技术有限公司 Amplitude reduction method, television terminal and the storage medium of audio amplifier, bass unit
CN108683761B (en) * 2018-05-17 2020-01-14 Oppo广东移动通信有限公司 Sound production control method and device, electronic device and computer readable medium
CN109032556B (en) * 2018-07-09 2021-08-17 Oppo广东移动通信有限公司 Sound production control method, sound production control device, electronic device, and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101800923A (en) * 2009-06-08 2010-08-11 瑞声声学科技(深圳)有限公司 Device and method for inhibition of second resonance mode of vibrating diaphragm
CN105635908A (en) * 2015-12-21 2016-06-01 深圳Tcl数字技术有限公司 Low-frequency signal reproducing method and system
CN106101925A (en) * 2016-06-27 2016-11-09 联想(北京)有限公司 A kind of control method and electronic equipment
CN109168108A (en) * 2018-10-24 2019-01-08 维沃移动通信有限公司 Electro-acoustic element amplitude method of adjustment, device and mobile terminal

Also Published As

Publication number Publication date
CN109769175A (en) 2019-05-17

Similar Documents

Publication Publication Date Title
CN108737921B (en) Play control method, system, earphone and mobile terminal
CN111385714B (en) Method for determining voice coil temperature of loudspeaker, electronic device and storage medium
CN111343540B (en) Piano audio processing method and electronic equipment
CN108319445B (en) Audio playing method and mobile terminal
CN109951602B (en) Vibration control method and mobile terminal
CN109086027B (en) Audio signal playing method and terminal
CN107765251B (en) Distance detection method and terminal equipment
CN111554321A (en) Noise reduction model training method and device, electronic equipment and storage medium
CN107785027B (en) Audio processing method and electronic equipment
CN107749306B (en) Vibration optimization method and mobile terminal
CN109769175B (en) Audio processing method and electronic equipment
CN111477243A (en) Audio signal processing method and electronic equipment
CN111182118B (en) Volume adjusting method and electronic equipment
CN111124346B (en) Electronic equipment and volume adjusting method thereof
CN111093137B (en) Volume control method, volume control equipment and computer readable storage medium
CN110995921A (en) Call processing method, electronic device and computer readable storage medium
CN108430004B (en) Loudspeaker amplitude adjusting device, adjusting method and mobile terminal
CN110677770B (en) Sound production control method, electronic device, and medium
CN111049972B (en) Audio playing method and terminal equipment
CN108418961B (en) Audio playing method and mobile terminal
CN107743174B (en) Clipping judgment method of sound signal and mobile terminal
CN109270352B (en) Amplitude adjusting method and sound generating device
CN107945777B (en) Audio production method, mobile terminal and computer readable storage medium
CN111459447A (en) Volume adjustment display method and electronic equipment
CN110839108A (en) Noise reduction method and electronic 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
GR01 Patent grant
GR01 Patent grant