Search

CN-119851683-B - Audio processing method and device, electronic equipment and storage medium

CN119851683BCN 119851683 BCN119851683 BCN 119851683BCN-119851683-B

Abstract

The disclosure relates to an audio processing method, an audio processing device, electronic equipment and a storage medium, wherein the method comprises the steps of obtaining first frequency domain information of an audio signal based on the fact that an acquired audio signal of a target audio device is converted into a frequency domain, wherein the first frequency domain information comprises amplitude values of different frequency components of the audio signal, determining a reference value according to the amplitude values, determining background noise information of the audio signal according to differences between the amplitude values of the different frequency components and the reference value, and the background noise information is used for reflecting background noise processing capacity of the target audio device.

Inventors

  • ZHANG XIAOLONG
  • YANG TONG
  • LI WEISHAN

Assignees

  • 北京小米移动软件有限公司

Dates

Publication Date
20260508
Application Date
20231018

Claims (12)

  1. 1. An audio processing method, comprising: Converting an audio signal of a target audio device to a frequency domain based on acquisition to obtain first frequency domain information of the audio signal, wherein the first frequency domain information comprises amplitude values of different frequency components of the audio signal; determining a reference value according to the amplitude value; The method comprises the steps of determining a reference value according to the amplitude value, determining a confidence coefficient, performing interval estimation on the amplitude value in the first frequency domain information by taking the confidence coefficient as probability, determining an amplitude value range, determining the amplitude value range as a confidence interval, and determining the reference value based on the confidence interval; and determining the background noise information of the audio signal according to the difference value between the amplitude values of the different frequency components and the reference value, wherein the background noise information is used for reflecting the background noise processing capability of the target audio equipment.
  2. 2. The method of claim 1, wherein the converting the audio signal based on the acquired target audio device to the frequency domain yields first frequency domain information for the audio signal, comprising: converting the audio signal from a time domain to a frequency domain to generate second frequency domain information; reserving frequency domain information of a first frequency band in the second frequency domain information through a first filter to obtain third frequency domain information; And reserving frequency domain information of a second frequency band in the third frequency domain information through a second filter to obtain first frequency domain information, wherein the second frequency band is a sub-frequency band of the first frequency band.
  3. 3. The method of claim 2, wherein the converting the audio signal from the time domain to the frequency domain to generate the second frequency domain information comprises: Framing the audio signal in the time domain to obtain a plurality of audio frames; performing a window function on the audio frame; and converting the audio frame after the window function is executed into a frequency domain to generate second frequency domain information.
  4. 4. The method according to claim 1, wherein the background noise information comprises at least: a noise floor decibel value, and/or a noise floor frequency interval.
  5. 5. The method of claim 4, wherein the determining the background noise information of the audio signal based on the difference between the magnitude values of the different frequency components and the reference value comprises: Determining a difference value between the amplitude value and the reference value of different frequency components in the first frequency domain information; When the difference exceeds a preset threshold, determining the difference as the noise floor decibel value in the audio signal; and/or the number of the groups of groups, And when the difference exceeds a preset threshold, determining a frequency component corresponding to the amplitude value corresponding to the difference as a background noise frequency, and determining the background noise frequency interval in which background noise is positioned based on the background noise frequency.
  6. 6. An audio processing apparatus, the apparatus comprising: The first acquisition module is used for converting the acquired audio signal of the target audio device into a frequency domain to obtain first frequency domain information of the audio signal, wherein the first frequency domain information comprises amplitude values of different frequency components of the audio signal; The first determining module is used for determining a reference value according to the amplitude value, wherein the determining of the reference value according to the amplitude value comprises determining a confidence coefficient, performing interval estimation on the amplitude value in the first frequency domain information by taking the confidence coefficient as a probability to determine an amplitude value range, determining the amplitude value range as a confidence interval, and determining the reference value based on the confidence interval; And the second determining module is used for determining the background noise information of the audio signal according to the difference value between the amplitude values of the different frequency components and the reference value, and the background noise information is used for reflecting the background noise processing capability of the target audio equipment.
  7. 7. The apparatus of claim 6, wherein the first acquisition module is specifically configured to: converting the audio signal from a time domain to a frequency domain to generate second frequency domain information; reserving frequency domain information of a first frequency band in the second frequency domain information through a first filter to obtain third frequency domain information; And reserving frequency domain information of a second frequency band in the third frequency domain information through a second filter to obtain first frequency domain information, wherein the second frequency band is a sub-frequency band of the first frequency band.
  8. 8. The apparatus of claim 7, wherein the first acquisition module is further specifically configured to: Framing the audio signal in the time domain to obtain a plurality of audio frames; performing a window function on the audio frame; and converting the audio frame after the window function is executed into a frequency domain to generate second frequency domain information.
  9. 9. The apparatus of claim 6, wherein the background noise information comprises at least: a noise floor decibel value, and/or a noise floor frequency interval.
  10. 10. The apparatus of claim 9, wherein the second determining module is specifically configured to: Determining a difference value between the amplitude value and the reference value of different frequency components in the first frequency domain information; When the difference exceeds a preset threshold, determining the difference as the noise floor decibel value in the audio signal; and/or the number of the groups of groups, And when the difference exceeds a preset threshold, determining a frequency component corresponding to the amplitude value corresponding to the difference as a background noise frequency, and determining the background noise frequency interval in which background noise is positioned based on the background noise frequency.
  11. 11. An electronic device, comprising: A memory for storing processor-executable instructions; a processor connected to the memory; wherein the processor is configured to perform the audio processing method as provided in any one of claims 1 to 5.
  12. 12. A non-transitory computer readable storage medium, characterized in that instructions in the storage medium, when executed by a processor of a computer, enable the computer to perform the audio processing method according to any one of claims 1 to 5.

Description

Audio processing method and device, electronic equipment and storage medium Technical Field The disclosure relates to the technical field of audio detection, and in particular relates to an audio processing method and device, electronic equipment and a storage medium. Background In the prior art, the background noise of the audio equipment is measured in an audio compression mode, whether the background noise current sound of the audio equipment exceeds a certain reference is measured, the background noise exists in the audio equipment is determined when the existence signal exceeds the reference, but the background noise determination method can only determine whether the background noise exists, and the specific size of the background noise current sound cannot be determined. Meanwhile, the standard in the method is set by manual evaluation, is not accurate enough, and is easy to cause missed detection due to too low background noise value when determining whether the signal exceeds the standard, so that the detection result is affected. Disclosure of Invention The disclosure provides an audio processing method and device, electronic equipment and storage medium. According to a first aspect of an embodiment of the present disclosure, there is provided an audio processing method, including: Converting an audio signal of a target audio device to a frequency domain based on acquisition to obtain first frequency domain information of the audio signal, wherein the first frequency domain information comprises amplitude values of different frequency components of the audio signal; determining a reference value according to the amplitude value; and determining the background noise information of the audio signal according to the difference value between the amplitude values of the different frequency components and the reference value, wherein the background noise information is used for reflecting the background noise processing capability of the target audio equipment. Based on the above scheme, the audio signal based on the collected target audio device is converted into a frequency domain, and first frequency domain information of the audio signal is obtained, including: converting the audio signal from a time domain to a frequency domain to generate second frequency domain information; reserving frequency domain information of a first frequency band in the second frequency domain information through a first filter to obtain third frequency domain information; And reserving frequency domain information of a second frequency band in the third frequency domain information through a second filter to obtain first frequency domain information, wherein the second frequency band is a sub-frequency band of the first frequency band. Based on the above scheme, the converting the audio signal from the time domain to the frequency domain, generating the second frequency domain information includes: Framing the audio signal in the time domain to obtain a plurality of audio frames; performing a window function on the audio frame; and converting the audio frame after the window function is executed into a frequency domain to generate second frequency domain information. Based on the above scheme, the determining the reference value according to the amplitude value includes: Determining a confidence level; taking the confidence as probability, carrying out interval estimation on the amplitude value in the first frequency domain information, and determining the amplitude value range; determining the range of amplitude values as the confidence interval; The reference value is determined based on the confidence interval. Based on the above scheme, the noise floor information at least includes: a noise floor decibel value, and/or a noise floor frequency interval. Based on the above-mentioned scheme, the determining the noise floor information of the audio signal according to the difference between the amplitude values of the different frequency components and the reference value includes: Determining a difference value between the amplitude value and the reference value of different frequency components in the first frequency domain information; When the difference exceeds a preset threshold, determining the difference as the noise floor decibel value in the audio signal; and/or the number of the groups of groups, And when the difference exceeds a preset threshold, determining a frequency component corresponding to the amplitude value corresponding to the difference as the background noise frequency interval. According to a second aspect of an embodiment of the present disclosure, there is provided an audio processing apparatus, the apparatus including: The first acquisition module is used for converting the acquired audio signal of the target audio device into a frequency domain to obtain first frequency domain information of the audio signal, wherein the first frequency domain information comprises amplitude values of differen