Amplitude measurement method of sound signal, related device and readable storage medium
By generating a pink noise signal corresponding to the sound signal to be measured and measuring its amplitude, the problem of inaccurate amplitude measurement of non-steady-state sound signals is solved, and a stable amplitude measurement value is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- IFLYTEK (SUZHOU) TECH CO LTD
- Filing Date
- 2022-05-31
- Publication Date
- 2026-07-31
AI Technical Summary
Existing technologies struggle to reliably measure the amplitude of non-steady-state sound signals, leading to inaccurate or inefficient measurements.
By generating a pink noise signal corresponding to the sound signal to be measured and measuring its amplitude, a stable amplitude measurement value is obtained by utilizing the steady-state characteristics of the pink noise signal.
Stable measurement of the amplitude of non-steady-state sound signals has been achieved, improving measurement accuracy and efficiency.
Smart Images

Figure CN117198320B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of acoustic technology, and more specifically, to a method for measuring the amplitude of a sound signal, related equipment, and a readable storage medium. Background Technology
[0002] In some testing scenarios in the field of acoustics (such as testing the voice interaction performance of intelligent voice products and testing the voice communication effect of voice communication products), it is often necessary to measure the amplitude of sound signals (such as background noise, speech, music, etc.) (usually characterized by sound pressure level). However, most sound signals are non-steady-state sound signals, and their amplitude changes drastically with time.
[0003] Therefore, how to provide a method for measuring the amplitude of a sound signal to obtain a stable amplitude measurement value has become a technical problem that urgently needs to be solved by those skilled in the art. Summary of the Invention
[0004] In view of the above problems, this application proposes a method for measuring the amplitude of a sound signal, related equipment, and a readable storage medium. The specific solution is as follows:
[0005] A method for measuring the amplitude of a sound signal, the method comprising:
[0006] Acquire the sound signal to be measured;
[0007] A pink noise signal corresponding to the sound signal to be measured is generated, wherein the spectrum of the pink noise signal corresponds to the spectrum of the sound signal to be measured, and the amplitude of the pink noise signal corresponds to the amplitude of the sound signal to be measured;
[0008] The amplitude of the pink noise signal is measured to obtain the amplitude measurement value of the pink noise signal, which is used as the amplitude measurement value of the sound signal to be measured.
[0009] Optionally, generating a pink noise signal corresponding to the sound signal to be measured includes:
[0010] Acquire the original pink noise signal;
[0011] The original pink noise signal is filtered to obtain a filtered pink noise signal, and the spectrum of the filtered pink noise signal corresponds to the spectrum of the sound signal to be measured.
[0012] The amplitude of the filtered pink noise signal is adjusted to obtain a pink noise signal corresponding to the sound signal to be measured.
[0013] Optionally, filtering the original pink noise signal to obtain a filtered pink noise signal includes:
[0014] Design the first filter;
[0015] The original pink noise signal is input into the first filter, and the first filter outputs the filtered pink noise signal.
[0016] Optionally, the design of the first filter includes:
[0017] Calculate the spectrum of the sound signal to be measured and the spectrum of the original pink noise signal;
[0018] The amplitude-frequency response of the first filter to be designed is determined based on the spectrum of the sound signal to be measured and the spectrum of the original pink noise signal.
[0019] The first filter is designed based on the amplitude-frequency response of the first filter to be designed.
[0020] Optionally, adjusting the amplitude of the filtered pink noise signal to obtain a pink noise signal corresponding to the sound signal to be measured includes:
[0021] Calculate the amplitude of the sound signal to be measured and the amplitude of the filtered pink noise signal;
[0022] Calculate the gain between the amplitude of the sound signal to be measured and the amplitude of the filtered pink noise signal;
[0023] The amplitude of the filtered pink noise signal is adjusted based on the gain to obtain a pink noise signal corresponding to the sound signal to be measured.
[0024] Optionally, the amplitude of the pink noise signal is measured to obtain the amplitude measurement value of the pink noise signal, which is then used as the amplitude measurement value of the sound signal to be measured, including:
[0025] Determine the playback device and measuring device;
[0026] Design a second filter to eliminate the influence of the playback device on the pink noise signal;
[0027] The pink noise signal is input into the second filter to obtain the pink noise signal output by the second filter;
[0028] The pink noise signal output from the second filter is input into the playback device for playback.
[0029] The measuring device receives the pink noise signal played by the playback device and measures the amplitude of the received pink noise signal to obtain the amplitude measurement value of the pink noise signal, which is used as the amplitude measurement value of the sound signal to be measured.
[0030] Optionally, the design of the second filter includes:
[0031] A calibration microphone is placed at the location of the measuring device;
[0032] A reference pink noise signal is input to the playback device, and the calibration microphone receives the reference pink noise signal played by the playback device.
[0033] A second filter is designed based on the reference pink noise signal and the reference pink noise signal received by the calibration microphone.
[0034] Optionally, the step of designing the second filter based on the reference pink noise signal and the reference pink noise signal received by the calibration microphone includes:
[0035] Calculate the power spectral density of the reference pink noise signal and the power spectral density of the reference pink noise signal received by the calibration microphone;
[0036] Based on the power spectral density of the reference pink noise signal and the power spectral density of the reference pink noise signal received by the calibration microphone, the playback path frequency response of the measurement system is calculated.
[0037] Based on the playback path frequency response of the measurement system, the amplitude-frequency response of the second filter to be designed is determined;
[0038] The second filter is designed based on the amplitude-frequency response of the second filter to be designed.
[0039] An amplitude measuring device for a sound signal, the device comprising:
[0040] Acquisition unit, used to acquire the sound signal to be measured;
[0041] A pink noise signal generation unit is used to generate a pink noise signal corresponding to the sound signal to be measured, wherein the spectrum of the pink noise signal corresponds to the spectrum of the sound signal to be measured, and the amplitude of the pink noise signal corresponds to the amplitude of the sound signal to be measured.
[0042] The measurement unit is used to measure the amplitude of the pink noise signal and obtain the amplitude measurement value of the pink noise signal as the amplitude measurement value of the sound signal to be measured.
[0043] Optionally, the pink noise signal generation unit includes:
[0044] The original pink noise signal acquisition unit is used to acquire the original pink noise signal;
[0045] A filtering unit is used to filter the original pink noise signal to obtain a filtered pink noise signal, wherein the spectrum of the filtered pink noise signal corresponds to the spectrum of the sound signal to be measured.
[0046] An amplitude adjustment unit is used to adjust the amplitude of the filtered pink noise signal to obtain a pink noise signal corresponding to the sound signal to be measured.
[0047] Optionally, the filtering unit includes:
[0048] The first filter design unit is used to design the first filter;
[0049] A filtering subunit is used to input the original pink noise signal into the first filter, and the first filter outputs the filtered pink noise signal.
[0050] Optionally, the first filter design unit includes:
[0051] A spectrum calculation subunit is used to calculate the spectrum of the sound signal to be measured and the spectrum of the original pink noise signal;
[0052] The amplitude-frequency response calculation subunit of the first filter is used to determine the amplitude-frequency response of the first filter to be designed based on the spectrum of the sound signal to be measured and the spectrum of the original pink noise signal.
[0053] The first filter design subunit is used to design the first filter based on the amplitude-frequency response of the first filter to be designed.
[0054] Optionally, the amplitude adjustment unit includes:
[0055] An amplitude calculation subunit is used to calculate the amplitude of the sound signal to be measured and the amplitude of the filtered pink noise signal;
[0056] A gain calculation subunit is used to calculate the gain between the amplitude of the sound signal to be measured and the amplitude of the filtered pink noise signal;
[0057] An amplitude adjustment subunit is used to adjust the amplitude of the filtered pink noise signal based on the gain to obtain a pink noise signal corresponding to the sound signal to be measured.
[0058] Optionally, the measuring unit includes:
[0059] A determination unit is used to determine the playback device and the measuring device;
[0060] The second filter design unit is used to design a second filter, which is used to eliminate the influence of the playback device on the pink noise signal.
[0061] A filtering unit is used to input the pink noise signal into the second filter to obtain the pink noise signal output by the second filter;
[0062] The playback unit is used to input the pink noise signal output by the second filter into the playback device for playback.
[0063] The measurement subunit is used to receive the pink noise signal played by the playback device from the measurement device, and to measure the amplitude of the received pink noise signal to obtain the amplitude measurement value of the pink noise signal, which is used as the amplitude measurement value of the sound signal to be measured.
[0064] Optionally, the second filter design unit includes:
[0065] A calibration microphone setting unit is used to set a calibration microphone at the location of the measuring device;
[0066] A reference pink noise signal playback unit is used to input a reference pink noise signal into the playback device, and the calibration microphone receives the reference pink noise signal played by the playback device;
[0067] The second filter design subunit is used to design a second filter based on the reference pink noise signal and the reference pink noise signal received by the calibration microphone.
[0068] Optionally, the second filter design subunit includes:
[0069] A power spectral density calculation unit is used to calculate the power spectral density of the reference pink noise signal and the power spectral density of the reference pink noise signal received by the calibration microphone.
[0070] The playback path frequency response calculation unit of the measurement system is used to calculate the playback path frequency response of the measurement system based on the power spectral density of the reference pink noise signal and the power spectral density of the reference pink noise signal received by the calibration microphone.
[0071] The amplitude-frequency response calculation unit of the second filter is used to determine the amplitude-frequency response of the second filter to be designed based on the playback path frequency response of the measurement system.
[0072] The design unit is used to design a second filter based on the amplitude-frequency response of the second filter to be designed.
[0073] An amplitude measurement device for an audio signal, comprising a memory and a processor;
[0074] The memory is used to store programs;
[0075] The processor is used to execute the program to implement the various steps of the sound signal amplitude measurement method as described above.
[0076] A readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method for measuring the amplitude of a sound signal as described above.
[0077] Using the above technical solution, this application discloses a method, related equipment, and readable storage medium for measuring the amplitude of a sound signal. After acquiring the sound signal to be measured, a pink noise signal corresponding to the spectrum and amplitude of the sound signal to be measured is generated. The amplitude of the pink noise signal is then measured to obtain its amplitude measurement value, which can be used as the amplitude measurement value of the sound signal to be measured. Since the pink noise signal is a steady-state signal, its amplitude measurement yields a stable measurement value. Therefore, by converting the sound signal to be measured into its corresponding pink noise signal and using the pink noise signal to replace the sound signal to be measured for amplitude measurement, a stable amplitude measurement value can be obtained. Attached Figure Description
[0078] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the scope of this application. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings:
[0079] Figure 1 This is a flowchart illustrating a method for measuring the amplitude of a sound signal disclosed in an embodiment of this application.
[0080] Figure 2 This is a flowchart illustrating a method for generating a pink noise signal corresponding to the sound signal to be measured, as disclosed in an embodiment of this application.
[0081] Figure 3 This is a flowchart illustrating a method disclosed in an embodiment of this application for measuring the amplitude of a pink noise signal to obtain the amplitude measurement value of the pink noise signal, which is then used as the amplitude measurement value of the sound signal to be measured.
[0082] Figure 4This is a schematic diagram of a second filter design disclosed in an embodiment of this application;
[0083] Figure 5 This is a schematic diagram of the structure of a sound signal amplitude measuring device disclosed in an embodiment of this application;
[0084] Figure 6 This is a hardware structure block diagram of an amplitude measurement device for a sound signal disclosed in an embodiment of this application. Detailed Implementation
[0085] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0086] To achieve stable amplitude measurements of sound signals, the inventors of this invention discovered that currently, commonly used sound signal amplitude measuring instruments (such as sound level meters) cannot obtain stable amplitude values. However, a time-weighted method can be used to measure the amplitude of sound signals. The principle is to preset a measurement time period before measurement, then use a time-weighted sound signal amplitude measuring instrument (such as a sound level meter) to measure the sound signal, obtaining all transient amplitude values within the measurement time period. Finally, all transient amplitude values within the measurement time period are averaged to obtain a stable amplitude measurement value.
[0087] However, most sound signal amplitude measuring instruments do not have time weighting functions. Moreover, when using the time weighting method to measure the amplitude of a sound signal, it is necessary to preset the measurement time period. A short measurement time period will result in low accuracy of the measurement value, while a long measurement time period will affect the measurement efficiency.
[0088] In view of the problems existing in the above methods, the inventors of this application conducted in-depth research and finally proposed a method for measuring the amplitude of sound signals. This method can use commonly used sound signal amplitude measuring instruments (such as sound level meters) to measure the amplitude of sound signals and obtain stable amplitude measurement values. The following embodiments will then be used to describe the sound signal amplitude measurement method provided in this application.
[0089] Reference Figure 1 , Figure 1 This is a flowchart illustrating a method for measuring the amplitude of a sound signal disclosed in an embodiment of this application. The method may include:
[0090] Step S101: Acquire the sound signal to be measured.
[0091] In this application, the sound signal to be measured can be any sound signal (such as background noise, speech, music, etc.) in some test scenarios in the field of acoustic technology (such as voice interaction performance test scenario of intelligent voice products, voice communication effect test scenario of voice communication products, etc.). This application does not impose any limitations on this.
[0092] Step S102: Generate a pink noise signal corresponding to the sound signal to be measured.
[0093] It should be noted that, in this application, the spectrum of the pink noise signal corresponding to the sound signal to be measured corresponds to the spectrum of the sound signal to be measured, and the amplitude of the pink noise signal corresponding to the sound signal to be measured corresponds to the amplitude of the sound signal to be measured.
[0094] It should be further noted that the spectrum of the pink noise signal corresponding to the sound signal to be measured corresponds to the spectrum of the sound signal to be measured, meaning that the spectrum of the pink noise signal corresponding to the sound signal to be measured is as close as possible to the spectrum of the sound signal to be measured. The amplitude of the pink noise signal corresponding to the sound signal to be measured corresponds to the amplitude of the sound signal to be measured, meaning that the amplitude of the pink noise signal corresponding to the sound signal to be measured is as close as possible to the amplitude of the sound signal to be measured.
[0095] The specific implementation of generating the pink noise signal corresponding to the sound signal to be measured will be explained in the following embodiments, and will not be described in detail here.
[0096] Step S103: Measure the amplitude of the pink noise signal to obtain the amplitude measurement value of the pink noise signal, which is used as the amplitude measurement value of the sound signal to be measured.
[0097] In this application, the amplitude of the pink noise signal can be measured using conventional measuring equipment (such as a sound level meter) or measurement software; this application does not impose any limitations on this.
[0098] The specific implementation method for measuring the amplitude of the pink noise signal will be described in detail in the following embodiments, and will not be elaborated here.
[0099] This embodiment discloses a method for measuring the amplitude of a sound signal. After acquiring the sound signal to be measured, a pink noise signal corresponding to the spectrum and amplitude of the sound signal to be measured is generated. The amplitude of the pink noise signal is then measured to obtain its amplitude value, which can be used as the amplitude value of the sound signal to be measured. Since the pink noise signal is a steady-state signal, its amplitude measurement yields a stable value. Therefore, by converting the sound signal to be measured into its corresponding pink noise signal and using the pink noise signal to replace the sound signal to be measured for amplitude measurement, a stable amplitude measurement value can be obtained.
[0100] In another embodiment of this application, the specific implementation of step S102 is described in detail, referring to... Figure 2 , Figure 2 This is a flowchart illustrating a method for generating a pink noise signal corresponding to the sound signal to be measured, as disclosed in an embodiment of this application. The method may include:
[0101] Step S201: Obtain the original pink noise signal.
[0102] In this application, the original pink noise signal is randomly generated.
[0103] Step S202: Filter the original pink noise signal to obtain a filtered pink noise signal. The spectrum of the filtered pink noise signal corresponds to the spectrum of the sound signal to be measured.
[0104] As one possible implementation, filtering the original pink noise signal to obtain a filtered pink noise signal may include the following steps:
[0105] Step S2021: Design the first filter.
[0106] It should be noted that the first filter can be any type of filter, and this application does not impose any restrictions on it.
[0107] As one possible implementation, designing the first filter may include: calculating the spectrum of the sound signal to be measured and the spectrum of the original pink noise signal; determining the amplitude-frequency response of the first filter to be designed based on the spectrum of the sound signal to be measured and the spectrum of the original pink noise signal; and designing the first filter based on the amplitude-frequency response of the first filter to be designed.
[0108] It should be noted that the amplitude-frequency response of the first filter is the ratio of the spectrum of the sound signal to be measured to the spectrum of the original pink noise signal.
[0109] Step S2022: Input the original pink noise signal into the first filter, and the first filter outputs the filtered pink noise signal.
[0110] Step S203: Adjust the amplitude of the filtered pink noise signal to obtain a pink noise signal corresponding to the sound signal to be measured.
[0111] As one possible implementation, adjusting the amplitude of the filtered pink noise signal to obtain a pink noise signal corresponding to the sound signal to be measured includes: calculating the amplitude of the sound signal to be measured and the amplitude of the filtered pink noise signal; calculating the gain between the amplitude of the sound signal to be measured and the amplitude of the filtered pink noise signal; and adjusting the amplitude of the filtered pink noise signal based on the gain to obtain a pink noise signal corresponding to the sound signal to be measured.
[0112] It should be noted that adjusting the amplitude of the filtered pink noise signal based on the gain to obtain the pink noise signal corresponding to the sound signal to be measured means adding the gain to the current amplitude of the filtered pink noise signal.
[0113] As one possible implementation, the equivalent continuous sound pressure level of the sound signal to be measured can be calculated as the amplitude of the sound signal to be measured, and the equivalent continuous sound pressure level of the filtered pink noise signal can be calculated as the amplitude of the filtered pink noise signal.
[0114] The equivalent continuous sound pressure level can be calculated using the following formula:
[0115]
[0116] Among them, P A (t) represents the instantaneous A-weighted sound pressure; P0 represents the reference sound pressure of 20 uPa; and T represents the signal duration. Since this is a calculation performed on a purely digital signal terminal, the sensitivity of the electrical signal to acoustic signal conversion can be set to 1 when calculating the equivalent continuous sound pressure level.
[0117] In another embodiment of this application, the specific implementation of step S103 is described in detail, referring to... Figure 3 , Figure 3 This is a flowchart illustrating a method for measuring the amplitude of a pink noise signal, obtaining the amplitude measurement value of the pink noise signal, and using it as the amplitude measurement value of the sound signal to be measured, as disclosed in an embodiment of this application. The method may include:
[0118] Step S301: Determine the playback device and the measuring device.
[0119] In this application, the measuring device can be a conventional measuring device (such as a sound level meter), or a microphone and measuring software, with the measuring software performing measurements based on the signals received by the microphone.
[0120] Step S302: Design a second filter, which is used to eliminate the influence of the playback device on the pink noise signal.
[0121] It should be noted that in this application, the conversion between the sound signal to be measured and the pink noise signal is based on the transformation of the digital signal terminal. When the pink noise signal is played out by the playback device, the frequency response characteristics of the playback device will affect the amplitude measurement value of the pink noise signal. Therefore, in this application, a second filter needs to be designed to eliminate the influence of the playback device on the pink noise signal and improve the accuracy of the amplitude measurement value of the pink noise signal.
[0122] As one possible implementation, designing the second filter may include: setting a calibration microphone at the location of the measuring device; inputting a reference pink noise signal into the playback device, the calibration microphone receiving the reference pink noise signal played by the playback device; and designing a second filter based on the reference pink noise signal and the reference pink noise signal received by the calibration microphone.
[0123] It should be noted that the reference pink noise signal can be any pink noise signal.
[0124] For ease of understanding, please refer to Figure 4 , Figure 4 This is a schematic diagram of a second filter design disclosed in an embodiment of this application, such as... Figure 4 As shown, the reference pink noise signal is Pinknoise, the playback device is SPK, and the second filter is filter.
[0125] As one possible implementation, designing a second filter based on the reference pink noise signal and the reference pink noise signal received by the calibration microphone includes: calculating the power spectral density of the reference pink noise signal and the power spectral density of the reference pink noise signal received by the calibration microphone; calculating the playback path frequency response of the measurement system based on the power spectral density of the reference pink noise signal and the power spectral density of the reference pink noise signal received by the calibration microphone; determining the amplitude-frequency response of the second filter to be designed based on the playback path frequency response of the measurement system; and designing the second filter based on the amplitude-frequency response of the second filter to be designed.
[0126] Specifically, it can be achieved based on the following formula:
[0127]
[0128]
[0129] Among them, S LS (f) represents the power spectral density of the reference pink noise signal received by the calibration microphone, S pn (f) represents the power spectral density of the reference pink noise signal, H LS H is used to calculate the playback path frequency response of the measurement system. EQ This is the amplitude-frequency response of the second filter.
[0130] Step S303: Input the pink noise signal into the second filter to obtain the pink noise signal output by the second filter.
[0131] Step S304: Input the pink noise signal output by the second filter into the playback device for playback.
[0132] Step S305: The measuring device receives the pink noise signal played by the playback device and measures the amplitude of the received pink noise signal to obtain the amplitude measurement value of the pink noise signal, which is used as the amplitude measurement value of the sound signal to be measured.
[0133] It should be noted that when the measuring device is a sound level meter, the sound level meter can directly measure the amplitude of the pink noise signal. When the measuring device is a microphone and measuring software, the measuring software needs to calculate the sound pressure level of the pink noise signal received by the microphone, and then substitute this sound pressure level into the above-mentioned formula for calculating the equivalent continuous sound pressure level to obtain the amplitude of the pink noise signal. It should also be noted that in calculating the sound pressure level of the pink noise signal received by the microphone, the microphone's actual sensitivity needs to be obtained.
[0134] The amplitude measurement device for sound signals disclosed in the embodiments of this application will be described below. The amplitude measurement device for sound signals described below can be referred to in correspondence with the amplitude measurement method for sound signals described above.
[0135] Reference Figure 5 , Figure 5 This is a schematic diagram of the structure of a sound signal amplitude measurement device disclosed in an embodiment of this application. Figure 5 As shown, the amplitude measuring device for the sound signal may include:
[0136] Acquisition unit 11 is used to acquire the sound signal to be measured;
[0137] The pink noise signal generation unit 12 is used to generate a pink noise signal corresponding to the sound signal to be measured, wherein the spectrum of the pink noise signal corresponds to the spectrum of the sound signal to be measured, and the amplitude of the pink noise signal corresponds to the amplitude of the sound signal to be measured.
[0138] The measurement unit 13 is used to measure the amplitude of the pink noise signal and obtain the amplitude measurement value of the pink noise signal as the amplitude measurement value of the sound signal to be measured.
[0139] As one possible implementation, the pink noise signal generation unit includes:
[0140] The original pink noise signal acquisition unit is used to acquire the original pink noise signal;
[0141] A filtering unit is used to filter the original pink noise signal to obtain a filtered pink noise signal, wherein the spectrum of the filtered pink noise signal corresponds to the spectrum of the sound signal to be measured.
[0142] An amplitude adjustment unit is used to adjust the amplitude of the filtered pink noise signal to obtain a pink noise signal corresponding to the sound signal to be measured.
[0143] As one possible implementation, the filtering unit includes:
[0144] The first filter design unit is used to design the first filter;
[0145] A filtering subunit is used to input the original pink noise signal into the first filter, and the first filter outputs the filtered pink noise signal.
[0146] As one possible implementation, the first filter design unit includes:
[0147] A spectrum calculation subunit is used to calculate the spectrum of the sound signal to be measured and the spectrum of the original pink noise signal;
[0148] The amplitude-frequency response calculation subunit of the first filter is used to determine the amplitude-frequency response of the first filter to be designed based on the spectrum of the sound signal to be measured and the spectrum of the original pink noise signal.
[0149] The first filter design subunit is used to design the first filter based on the amplitude-frequency response of the first filter to be designed.
[0150] As one possible implementation, the amplitude adjustment unit includes:
[0151] An amplitude calculation subunit is used to calculate the amplitude of the sound signal to be measured and the amplitude of the filtered pink noise signal;
[0152] A gain calculation subunit is used to calculate the gain between the amplitude of the sound signal to be measured and the amplitude of the filtered pink noise signal;
[0153] An amplitude adjustment subunit is used to adjust the amplitude of the filtered pink noise signal based on the gain to obtain a pink noise signal corresponding to the sound signal to be measured.
[0154] As one possible implementation, the measuring unit includes:
[0155] A determination unit is used to determine the playback device and the measuring device;
[0156] The second filter design unit is used to design a second filter, which is used to eliminate the influence of the playback device on the pink noise signal.
[0157] A filtering unit is used to input the pink noise signal into the second filter to obtain the pink noise signal output by the second filter;
[0158] The playback unit is used to input the pink noise signal output by the second filter into the playback device for playback.
[0159] The measurement subunit is used to receive the pink noise signal played by the playback device from the measurement device, and to measure the amplitude of the received pink noise signal to obtain the amplitude measurement value of the pink noise signal, which is used as the amplitude measurement value of the sound signal to be measured.
[0160] As one possible implementation, the second filter design unit includes:
[0161] A calibration microphone setting unit is used to set a calibration microphone at the location of the measuring device;
[0162] A reference pink noise signal playback unit is used to input a reference pink noise signal into the playback device, and the calibration microphone receives the reference pink noise signal played by the playback device;
[0163] The second filter design subunit is used to design a second filter based on the reference pink noise signal and the reference pink noise signal received by the calibration microphone.
[0164] As one possible implementation, the second filter design subunit includes:
[0165] A power spectral density calculation unit is used to calculate the power spectral density of the reference pink noise signal and the power spectral density of the reference pink noise signal received by the calibration microphone.
[0166] The playback path frequency response calculation unit of the measurement system is used to calculate the playback path frequency response of the measurement system based on the power spectral density of the reference pink noise signal and the power spectral density of the reference pink noise signal received by the calibration microphone.
[0167] The amplitude-frequency response calculation unit of the second filter is used to determine the amplitude-frequency response of the second filter to be designed based on the playback path frequency response of the measurement system.
[0168] The design unit is used to design a second filter based on the amplitude-frequency response of the second filter to be designed.
[0169] Reference Figure 6 , Figure 6 A hardware structure block diagram of an amplitude measurement device for a sound signal provided in an embodiment of this application is shown below. Figure 6 The hardware structure of the sound signal amplitude measurement device may include: at least one processor 1, at least one communication interface 2, at least one memory 3, and at least one communication bus 4;
[0170] In this embodiment of the application, the number of processor 1, communication interface 2, memory 3, and communication bus 4 is at least one, and processor 1, communication interface 2, and memory 3 communicate with each other through communication bus 4;
[0171] Processor 1 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention.
[0172] Memory 3 may include high-speed RAM, and may also include non-volatile memory, such as at least one disk storage device;
[0173] The memory stores a program, which the processor can call. The program is used for:
[0174] Acquire the sound signal to be measured;
[0175] A pink noise signal corresponding to the sound signal to be measured is generated, wherein the spectrum of the pink noise signal corresponds to the spectrum of the sound signal to be measured, and the amplitude of the pink noise signal corresponds to the amplitude of the sound signal to be measured;
[0176] The amplitude of the pink noise signal is measured to obtain the amplitude measurement value of the pink noise signal, which is used as the amplitude measurement value of the sound signal to be measured.
[0177] Optionally, the refined and extended functions of the program can be found in the description above.
[0178] This application embodiment also provides a readable storage medium that can store a program suitable for execution by a processor, the program being used for:
[0179] Acquire the sound signal to be measured;
[0180] A pink noise signal corresponding to the sound signal to be measured is generated, wherein the spectrum of the pink noise signal corresponds to the spectrum of the sound signal to be measured, and the amplitude of the pink noise signal corresponds to the amplitude of the sound signal to be measured;
[0181] The amplitude of the pink noise signal is measured to obtain the amplitude measurement value of the pink noise signal, which is used as the amplitude measurement value of the sound signal to be measured.
[0182] Optionally, the refined and extended functions of the program can be found in the description above.
[0183] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0184] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.
[0185] The above description of the disclosed embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope corresponding to the principles and novel features disclosed herein.
Claims
1. A method for measuring the amplitude of a sound signal, characterized in that, The method includes: Acquire the sound signal to be measured; A pink noise signal corresponding to the sound signal to be measured is generated, wherein the spectrum of the pink noise signal corresponds to the spectrum of the sound signal to be measured, and the amplitude of the pink noise signal corresponds to the amplitude of the sound signal to be measured; The amplitude of the pink noise signal is measured to obtain the amplitude measurement value of the pink noise signal, which is used as the amplitude measurement value of the sound signal to be measured.
2. The method according to claim 1, characterized in that, The generation of the pink noise signal corresponding to the sound signal to be measured includes: Acquire the original pink noise signal; The original pink noise signal is filtered to obtain a filtered pink noise signal, and the spectrum of the filtered pink noise signal corresponds to the spectrum of the sound signal to be measured. The amplitude of the filtered pink noise signal is adjusted to obtain a pink noise signal corresponding to the sound signal to be measured.
3. The method according to claim 2, characterized in that, The step of filtering the original pink noise signal to obtain the filtered pink noise signal includes: Design the first filter; The original pink noise signal is input into the first filter, and the first filter outputs the filtered pink noise signal.
4. The method according to claim 3, characterized in that, The design of the first filter includes: Calculate the spectrum of the sound signal to be measured and the spectrum of the original pink noise signal; The amplitude-frequency response of the first filter to be designed is determined based on the spectrum of the sound signal to be measured and the spectrum of the original pink noise signal. The first filter is designed based on the amplitude-frequency response of the first filter to be designed.
5. The method according to claim 2, characterized in that, The step of adjusting the amplitude of the filtered pink noise signal to obtain a pink noise signal corresponding to the sound signal to be measured includes: Calculate the amplitude of the sound signal to be measured and the amplitude of the filtered pink noise signal; Calculate the gain between the amplitude of the sound signal to be measured and the amplitude of the filtered pink noise signal; The amplitude of the filtered pink noise signal is adjusted based on the gain to obtain a pink noise signal corresponding to the sound signal to be measured.
6. The method according to claim 1, characterized in that, The amplitude of the pink noise signal is measured to obtain the amplitude measurement value of the pink noise signal, which is used as the amplitude measurement value of the sound signal to be measured, including: Determine the playback device and measuring device; Design a second filter to eliminate the influence of the playback device on the pink noise signal; The pink noise signal is input into the second filter to obtain the pink noise signal output by the second filter; The pink noise signal output from the second filter is input into the playback device for playback. The measuring device receives the pink noise signal played by the playback device and measures the amplitude of the received pink noise signal to obtain the amplitude measurement value of the pink noise signal, which is used as the amplitude measurement value of the sound signal to be measured.
7. The method according to claim 6, characterized in that, The design of the second filter includes: A calibration microphone is placed at the location of the measuring device; A reference pink noise signal is input to the playback device, and the calibration microphone receives the reference pink noise signal played by the playback device. A second filter is designed based on the reference pink noise signal and the reference pink noise signal received by the calibration microphone.
8. The method according to claim 7, characterized in that, The design of the second filter based on the reference pink noise signal and the reference pink noise signal received by the calibration microphone includes: Calculate the power spectral density of the reference pink noise signal and the power spectral density of the reference pink noise signal received by the calibration microphone; Based on the power spectral density of the reference pink noise signal and the power spectral density of the reference pink noise signal received by the calibration microphone, the playback path frequency response of the measuring device is calculated. Based on the playback path frequency response of the measuring device, the amplitude-frequency response of the second filter to be designed is determined; The second filter is designed based on the amplitude-frequency response of the second filter to be designed.
9. A device for measuring the amplitude of a sound signal, characterized in that, The device includes: Acquisition unit, used to acquire the sound signal to be measured; A pink noise signal generation unit is used to generate a pink noise signal corresponding to the sound signal to be measured, wherein the spectrum of the pink noise signal corresponds to the spectrum of the sound signal to be measured, and the amplitude of the pink noise signal corresponds to the amplitude of the sound signal to be measured. The measurement unit is used to measure the amplitude of the pink noise signal and obtain the amplitude measurement value of the pink noise signal as the amplitude measurement value of the sound signal to be measured.
10. An amplitude measurement device for a sound signal, characterized in that, Including memory and processor; The memory is used to store programs; The processor is configured to execute the program to implement the various steps of the method for measuring the amplitude of a sound signal as described in any one of claims 1 to 8.
11. A readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements each step of the method for measuring the amplitude of a sound signal as described in any one of claims 1 to 8.