Signal conversion methods, devices, electronic equipment and storage media
By dividing the measurement range according to the noise sound pressure level and determining the voltage range and amplification factor, and combining the minimum output voltage variation value of the analog-to-digital converter, the problems of high cost of high-level ADC and insufficient resolution of low-level ADC are solved, achieving high-resolution signal conversion and reducing costs.
Patent Information
- Application Number
- CN202210980271.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-16
- Publication Date
- 2025-10-28
- Estimated Expiration
- 2042-08-16
AI Technical Summary
In existing technologies, the number of bits in an ADC directly affects the resolution of signal conversion. High-bit ADCs are expensive, while low-bit ADCs are difficult to meet the resolution requirements in noise measurement. Furthermore, multi-channel low-bit ADCs suffer from data overlap and channel selection issues, resulting in poor signal conversion resolution.
By dividing the measurement range according to the noise sound pressure level, the voltage range and signal amplification factor corresponding to the measurement range are determined. Combined with the minimum output voltage change value of the analog-to-digital converter, the target conversion bit number is determined. This enables the low-order ADC module, along with the peripheral circuitry, to perform adaptive channel selection and data synthesis, converting the signal into a single-channel noise signal.
It improves the resolution of signal conversion, while reducing the cost of use and improving the reliability of the circuit.
Smart Images

Figure CN115361021B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of signal processing technology, and in particular to a signal conversion method, apparatus, electronic device and storage medium. Background Technology
[0002] In related technologies, the number of bits in an ADC (analog-to-digital converter) directly affects the resolution for signal conversion and noise measurement. However, high-bit ADCs are expensive, while low-bit ADCs often fail to meet the resolution requirements for noise measurement. Furthermore, combining multiple low-bit ADCs can lead to data overlap and channel selection issues. Therefore, related technologies suffer from poor resolution in signal conversion. Summary of the Invention
[0003] In view of this, the purpose of this application is to provide a signal conversion method, apparatus, electronic device and storage medium.
[0004] In view of the above objectives, in a first aspect, this application provides a signal conversion method, comprising:
[0005] The received multiple noise signals are divided according to the noise sound pressure level to determine the range interval, and the first voltage range corresponding to the range interval is determined.
[0006] The signal amplification factor of the range interval is determined based on the first voltage range and the input voltage determined by the analog-to-digital conversion module.
[0007] The second voltage range after amplification of the range interval is determined based on the signal amplification factor.
[0008] The minimum output voltage variation value corresponding to the range interval is determined based on the predetermined resolution of the multi-channel noise signals;
[0009] The target number of bits for the analog-to-digital converter is determined based on the second voltage range and the minimum change value of the output voltage.
[0010] The multi-channel noise signal is converted into a single-channel noise signal based on the first voltage range and the target conversion bit depth.
[0011] In one possible implementation, the step of dividing the received multiple noise signals according to the noise sound pressure level to determine a range interval, and determining the first voltage range corresponding to the range interval, includes:
[0012] The interval of the range is determined based on the predetermined starting and ending sound pressure levels of the range range.
[0013] Based on the sound pressure level determination formula, the sound pressure level range corresponding to the range interval is determined according to the starting sound pressure level and the ending sound pressure level of the range interval;
[0014] The range interval is determined based on the interval spacing and the sound pressure level range;
[0015] The minimum and maximum voltage values output by the sound sensor within the range are determined based on the sound pressure level range, and the first voltage range is determined based on the minimum and maximum voltage values.
[0016] The sound pressure level determination formula is expressed as follows:
[0017]
[0018] Among them, R g Indicates the interval length, I t The range interval is indicated by start, end, and k.
[0019] The interval is represented as
[0020]
[0021] Where N represents the number of measurement range intervals;
[0022] The minimum voltage output by the sound sensor is represented as
[0023]
[0024] Where S represents the sensitivity of the sound sensor, and P0 = 2 × 10⁻⁶ -5 Pa represents the reference sound pressure level;
[0025] The maximum voltage output by the sound sensor is expressed as:
[0026]
[0027] In one possible implementation, determining the signal amplification factor of the measurement range based on the first voltage corresponding to the measurement range and the input voltage determined by the analog-to-digital conversion module includes:
[0028] The analog-to-digital conversion module determines the maximum allowable input voltage of the input channel;
[0029] The signal amplification factor is determined based on the maximum voltage output by the sound sensor and the second voltage;
[0030] Wherein, the signal amplification factor is expressed as
[0031]
[0032] Where j represents the index of any range interval, U pinmax This indicates the maximum allowable input voltage for the input channel.
[0033] In one possible implementation, the second voltage range includes: the amplified minimum voltage value and the amplified maximum voltage value;
[0034] Determining the second voltage range after amplification of the range interval based on the signal amplification factor includes:
[0035] The minimum amplified voltage value is determined based on the signal amplification factor and the minimum voltage value output by the sound sensor;
[0036] The amplified maximum voltage value is determined based on the signal amplification factor and the maximum voltage value output by the sound sensor;
[0037] The second voltage range is determined based on the minimum and maximum amplified voltage values.
[0038] Wherein, the second voltage range is represented as
[0039]
[0040] Among them, U 放min (j) represents the minimum voltage after amplification, U 放max (j) represents the maximum voltage value after amplification.
[0041] In one possible implementation, the minimum change in output voltage is expressed as:
[0042]
[0043] Where ΔF represents the resolution of the multi-channel noise signal.
[0044] In one possible implementation, determining the target number of bits for the analog-to-digital converter based on the second voltage range and the minimum output voltage variation includes:
[0045] The conversion bit depth of the analog-to-digital converter corresponding to all the range intervals is determined based on the maximum amplified voltage value and the minimum output voltage change value.
[0046] The maximum number of converted bits is determined as the target number of converted bits;
[0047] Wherein, the target conversion bits are represented as...
[0048]
[0049] In one possible implementation, converting the multiplexed noise signal into a single-channel noise signal based on the first voltage range and the target conversion bit depth includes:
[0050] Determine whether each noise signal in the multi-channel noise signal is entirely within the range based on the first voltage range and the target conversion bit depth;
[0051] In response to the fact that not all of the multiple noise signals are within the range, the current range corresponding to the noise signal that is not within the range is adjusted until all of the multiple noise signals are within the range.
[0052] The target output voltage is determined based on the minimum output voltage variation and the signal amplification factor to convert the multi-channel noise signal into a single-channel noise signal;
[0053] Wherein, the target output voltage is expressed as
[0054] U 传 (j)=U 放 (j) / A LR (j).
[0055] In a second aspect, this application provides a signal conversion device, comprising:
[0056] The first determining module is configured to divide the received multiple noise signals according to the noise sound pressure level to determine the range interval, and to determine the first voltage range corresponding to the range interval;
[0057] The second determining module is configured to determine the signal amplification factor of the range interval based on the first voltage range corresponding to the range interval and the input voltage determined by the analog-to-digital conversion module.
[0058] The third determining module is configured to determine the second voltage range after amplification of the range interval based on the signal amplification factor.
[0059] The fourth determining module is configured to determine the minimum output voltage variation value corresponding to the range interval based on the resolution of the predetermined sound signal;
[0060] The fifth determining module is configured to determine the target number of bits for the analog-to-digital converter based on the second voltage range and the minimum change value of the output voltage;
[0061] The conversion module is configured to convert the multi-channel noise signal into a single-channel noise signal based on the first voltage range and the target conversion bit depth.
[0062] In a third aspect, this application provides an electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the program, implements the signal conversion method as described in the first aspect.
[0063] In a fourth aspect, this application provides a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the signal conversion method as described in the first aspect.
[0064] As can be seen from the above, the signal conversion method, apparatus, electronic device, and storage medium provided in this application divide the received multiple noise signals into range intervals based on the noise sound pressure level, and determine a first voltage range corresponding to the range interval; determine the signal amplification factor of the range interval based on the first voltage range and the input voltage determined by the analog-to-digital converter module; determine a second voltage range after amplification based on the signal amplification factor; determine the minimum output voltage change value corresponding to the range interval based on the predetermined resolution of the multiple noise signals; determine the target conversion bit depth of the analog-to-digital converter based on the second voltage range and the minimum output voltage change value; and convert the multiple noise signals into a single noise signal based on the first voltage range and the target conversion bit depth. Through adaptive channel selection and data synthesis, the function of a high-level ADC is realized using a low-level ADC module plus peripheral circuitry, the target conversion bit depth is determined, and the multiple noise signals are further converted into a single noise signal, thereby improving resolution, reducing usage costs, and improving circuit reliability. Attached Figure Description
[0065] To more clearly illustrate the technical solutions in this application or related technologies, the drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0066] Figure 1 An exemplary flowchart of a signal conversion method provided in an embodiment of this application is shown.
[0067] Figure 2 An exemplary structural diagram of the circuit hardware framework according to an embodiment of this application is shown.
[0068] Figure 3 A schematic diagram of an exemplary structure of a signal conversion device provided in an embodiment of this application is shown.
[0069] Figure 4This illustration shows an exemplary structural diagram of an electronic device provided in an embodiment of this application. Detailed Implementation
[0070] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with specific embodiments and the accompanying drawings.
[0071] It should be noted that, unless otherwise defined, the technical or scientific terms used in the embodiments of this application should have the ordinary meaning understood by one of ordinary skill in the art to which this application pertains. The terms "first," "second," and similar terms used in the embodiments of this application do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Terms such as "comprising" or "including" mean that the element or object preceding the word encompasses the elements or objects listed after the word and their equivalents, without excluding other elements or objects. Terms such as "connected" or "linked" are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. Terms such as "upper," "lower," "left," and "right" are only used to indicate relative positional relationships; when the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0072] As described in the background section, in many noise signal measurement applications, noise signal acquisition is achieved by converting sound signals into voltage signals using corresponding sound signal sensors. The converted voltage is an analog signal. For a computer to process it, the input noise signal must be converted into a corresponding digital signal. Typically, the input port of a digital-to-analog converter has a maximum voltage limit. If the input voltage exceeds the maximum voltage of the input port, it will not only cause signal distortion but also risk damaging the converter. Therefore, a corresponding circuit is needed to convert the input analog signal range into the voltage range required by the input port.
[0073] The inventors' research revealed that in some related technologies, a large dynamic range of noise signals inevitably leads to a large dynamic range of the output voltage signal of the sound signal sensor. If the same method is used to process the corresponding noise analog signals, the resolution may be insufficient when processing small signals, which may be detrimental to further processing of these noise signals. In order to distinguish noise signals with weak amplitude, a higher bit digital-to-analog converter chip is generally used. However, this will result in insufficient and uneven use of the number of bits converted by the digital-to-analog converter chip, and will also increase the cost.
[0074] Therefore, the related technologies suffer from poor resolution in signal conversion.
[0075] Therefore, this application provides a signal conversion method, apparatus, electronic device, and storage medium that divides received multiple noise signals into range intervals based on noise sound pressure levels, and determines a first voltage range corresponding to the range intervals; determines the signal amplification factor of the range intervals based on the first voltage range and the input voltage determined by the analog-to-digital converter module; determines a second voltage range after amplification based on the signal amplification factor; determines the minimum output voltage change value corresponding to the range intervals based on the predetermined resolution of the multiple noise signals; determines the target conversion bit depth of the analog-to-digital converter based on the second voltage range and the minimum output voltage change value; and converts the multiple noise signals into a single noise signal based on the first voltage range and the target conversion bit depth. Through adaptive channel selection and data synthesis, the function of a high-level ADC is achieved using a low-level ADC module plus peripheral circuitry, the target conversion bit depth is determined, and the multiple noise signals are further converted into a single noise signal. This improves resolution while reducing operating costs and enhancing circuit reliability.
[0076] The signal conversion method provided in this application will be specifically described below through specific embodiments.
[0077] Figure 1 An exemplary flowchart of a signal conversion method provided in an embodiment of this application is shown.
[0078] refer to Figure 1 The signal conversion method provided in this application specifically includes the following steps:
[0079] S102: Divide the received multiple noise signals into range intervals according to the noise sound pressure level, and determine the first voltage range corresponding to the range interval.
[0080] S104: Determine the signal amplification factor of the range interval based on the first voltage range and the input voltage determined by the analog-to-digital conversion module.
[0081] S106: Determine the second voltage range after amplification of the range interval based on the signal amplification factor.
[0082] S108: Determine the minimum output voltage variation value corresponding to the range interval based on the predetermined resolution of the multi-channel noise signal.
[0083] S110: Determine the target number of bits for the analog-to-digital converter based on the second voltage range and the minimum change value of the output voltage.
[0084] S112: Convert the multi-channel noise signal into a single-channel noise signal according to the first voltage range and the target conversion bit number.
[0085] refer to Figure 2 This illustrates the circuit hardware framework used in the method provided in this application, which uses a low-level ADC module plus peripheral circuitry and employs adaptive channel selection and data synthesis to realize the function of a high-level ADC.
[0086] In some embodiments, the sound sensor selected in this application may be the Hengyang Hengyi 1 / 2-inch prepolarized condenser microphone HY207, with a sensitivity of S = 50mV / Pa.
[0087] In some embodiments, the range of the detected noise signal can be 30dB-130dB, and the interval length can be R. g =70dB. The interval between the measured ranges can be determined based on the predetermined start and stop sound pressure levels of the range. For example, the interval can be set to I. t =10dB. Further, based on the sound pressure level determination formula, the sound pressure level range corresponding to the range interval is determined according to the starting and ending sound pressure levels of the range interval. The range interval is determined according to the interval spacing and the sound pressure level range. Further still, the minimum and maximum voltage values output by the sound sensor within the range interval are determined according to the sound pressure level range, and the first voltage range is determined according to the minimum and maximum voltage values.
[0088] Specifically, the signal output by the sound sensor can be divided into four range intervals based on the noise sound pressure level, and the corresponding sensor output voltage ranges for each range interval can be calculated as Lu1, Lu2, Lu3, and Lu4. The sound pressure level ranges corresponding to each range interval are [LR(1), LR(2)], [LR(3), LR(4)], [LR(5), LR(6)], and [LR(7), LR(8)]. The formula for determining the sound pressure level can be expressed as follows:
[0089]
[0090] Among them, R g Indicates the interval length, I t The range interval is indicated by start, end, and k.
[0091] Then, L was calculated. R (1) = 30dB, L R (2) = 100dB, L R (3) = 40dB, L R (4) = 110dB, L R (5) = 50dB, L R (6) = 120dB, LR (7) = 60dB, L R (8) = 130dB, so it can be divided into four ranges: Lu1: 30dB~100dB, Lu2: 40dB~110dB, Lu3: 50dB~120dB, Lu4: 60dB~130dB.
[0092] It should be noted that the interval can be expressed as
[0093]
[0094] Where N represents the number of measurement range intervals. Generally, I t <R g This means that overlapping ranges are allowed to improve the anti-interference capability of the measurement range. R g Generally less than 90dB, its value includes but is not limited to 80dB, 70dB, and 60dB; after determining the range, calculate the output voltage range [U] of the j-th range interval. 传min (j),U 传max [(j)], j = 1, 2, 3, 4 represent 4 measurement ranges, and the sound pressure level L R The minimum voltage U output by the corresponding sound sensor 传min (j) and maximum value U 传max The relationship of (j) is
[0095]
[0096]
[0097] Where S is the sensitivity of the sound sensor used, and P0 = 2 × 10⁻⁶ -5 Pa is the reference sound pressure level.
[0098] That is, when the sensor sensitivity is S = 50mV / Pa, the output voltage range of each range sensor [U] can be calculated according to the formula. 传min (j),U 传max [j] is as follows: Lu1: 31.6uV~100mV; Lu2: 0.1mV~316.2mV; Lu3: 0.316mV~1V; Lu4: 1mV~3.16V.
[0099] In some embodiments, after determining the measurement range, the maximum allowable input voltage of the input channel determined by the analog-to-digital conversion module can be determined; the signal amplification factor is determined based on the maximum voltage output by the sound sensor and the second voltage; wherein, the signal amplification factor can be expressed as...
[0100]
[0101] Where j represents the index of any range interval, U pinmax This indicates the maximum allowable input voltage for the input channel. For ease of implementation of the voltage amplifier, the amplification factor can preferably be an integer multiple of 100 or 10. Generally, the power supply for this chip is 3.3V, i.e., U... pinmax =3.3V, U has been calculated in step S102. 传max (1) = 100mV, U 传max (2) = 316.2mV, U 传max (3) = 1V, U 传max (4) = 3.16V, then calculate the amplification factor A for each range according to the formula. LR For: A LR (1) = 300, A LR (2) = 10, A LR (3) = 3, A LR (4) = 1.
[0102] In some embodiments, the second voltage range includes: a minimum amplified voltage and a maximum amplified voltage. Further, the minimum amplified voltage can be determined based on the signal amplification factor and the minimum voltage output by the sound sensor; the maximum amplified voltage can be determined based on the signal amplification factor and the maximum voltage output by the sound sensor; and the second voltage range can be determined based on the minimum amplified voltage and the maximum amplified voltage; wherein, the second voltage range is represented as...
[0103]
[0104] Among them, U 放min (j) represents the minimum voltage after amplification, U 放max (j) represents the maximum voltage value after amplification.
[0105] Since the measurement range can include multiple ranges, the signal amplification factor corresponding to each range can be calculated. Referring to Table 1, the output voltage range of each range can be further calculated.
[0106] Table 1 Output voltage range corresponding to each measurement range interval
[0107]
[0108]
[0109] Furthermore, based on the actual system requirements, the resolution ΔF of the audio signal is selected, in dB, including but not limited to 0.1dB, 0.5dB, and 1dB; the minimum output voltage change ΔU of the amplifier is calculated.放 (j). The minimum change value of the output voltage can be expressed as:
[0110]
[0111] Where ΔF represents the resolution of the multi-channel noise signals. Specifically, the audio signal resolution ΔF = 1dB is determined, and the output voltage change corresponding to each range interval is calculated as ΔU. 放 (1) = 1.158mV, ΔU 放 (2) = 0.122mV, ΔU 放 (3) = 0.1158mV, ΔU 放 (4) = 0.122mV.
[0112] In some embodiments, the conversion bit depth of the analog-to-digital converter corresponding to all the range intervals can be determined based on the amplified maximum voltage value and the minimum output voltage change value; the conversion bit depth with the largest value is determined as the target conversion bit depth; wherein, the target conversion bit depth can be expressed as...
[0113]
[0114] It should be noted that, referring to Table 2, the minimum output voltage change ΔU can be determined based on the steps described above. 放 (j) Calculate the number of bits required for the analog-to-digital converter for each range interval, and take the maximum value as the number of bits of the analog-to-digital converter.
[0115] Table 2 shows the conversion bits for each measurement range.
[0116] <![CDATA[U 放max ]]> <![CDATA[ΔU 放 ]]> n Lu1 3V 1.158mV 12 Lu2 3.16V 0.122mV 15 Lu3 3V 0.1158mV 15 Lu4 3.16V 0.122mV 15
[0117] After calculating the range of each range interval, the maximum value of n is the number of bits required for the analog-to-digital converter. Therefore, n = 15. Furthermore, when the number of bits of the analog-to-digital converter is 15, it can meet the 1dB audio signal resolution.
[0118] In some embodiments, it can be determined whether each noise signal in the multiple noise signals is within the range based on the first voltage range and the target conversion bit depth; in response to the fact that not all noise signals in the multiple noise signals are within the range, the current range corresponding to the noise signal that is not within the range is adjusted until all noise signals in the multiple noise signals are within the range; a target output voltage is determined based on the minimum output voltage change value and the signal amplification factor to convert the multiple noise signals into a single noise signal; wherein, the target output voltage can be expressed as
[0119] U 传 (j)=U放 (j) / A LR (j).
[0120] Specifically, the first step is to determine the measurement range. The algorithm is as follows: a variable `stat` is used to record the current state. The initial value of the `stat` variable is set to Lu1. Based on the state of `stat`, the input port voltage value of the corresponding measurement range is read. It is then determined whether the voltage value is within the range. If it is within the range, the read voltage value is divided by the corresponding amplification factor or the actual voltage value. If it is outside the range, the value of the `stat` variable is changed. If the voltage exceeds the range, the measurement range is switched sequentially from left to right, i.e., Lu1, Lu2, Lu3, Lu4, until the read voltage is within the specified range. If the voltage is below the range, the measurement range is switched sequentially in the order of Lu4, Lu3, Lu2, Lu1, until the voltage is within the specified range. After determining the range, the corresponding amplifier output voltage U is read. 放 (j), j = 1, 2, 3, 4 represent four range intervals in sequence, according to formula U 传 (j)=U 放 (j) / A LR (j), calculate the sensor output voltage U 传 (j), thus realizing the conversion of multiple signals into a single signal.
[0121] In one specific embodiment, referring to Table 3, the range switching can be performed entirely based on the algorithm. That is, when the input voltage is within the range, the range does not switch; when the detected voltage is greater than the range, the range switches upward; when the range is lower than the range, the range switches downward. After switching the range, the corresponding range's U is read again. 放 (j), the sensor output voltage U is calculated according to the formula. 传 (j). This combines the four signals into a single signal.
[0122] Table 3. Range conversion for four noise signals.
[0123]
[0124]
[0125] As can be seen from the above, the signal conversion method, apparatus, electronic device, and storage medium provided in this application divide the received multiple noise signals into range intervals based on the noise sound pressure level, and determine a first voltage range corresponding to the range interval; determine the signal amplification factor of the range interval based on the first voltage range and the input voltage determined by the analog-to-digital converter module; determine a second voltage range after amplification based on the signal amplification factor; determine the minimum output voltage change value corresponding to the range interval based on the predetermined resolution of the multiple noise signals; determine the target conversion bit depth of the analog-to-digital converter based on the second voltage range and the minimum output voltage change value; and convert the multiple noise signals into a single noise signal based on the first voltage range and the target conversion bit depth. Through adaptive channel selection and data synthesis, the function of a high-level ADC is realized using a low-level ADC module plus peripheral circuitry, the target conversion bit depth is determined, and the multiple noise signals are further converted into a single noise signal, thereby improving resolution, reducing usage costs, and improving circuit reliability.
[0126] It should be noted that the method in this embodiment can be executed by a single device, such as a computer or server. The method can also be applied in a distributed scenario, where multiple devices cooperate to complete the task. In such a distributed scenario, one of these devices may execute only one or more steps of the method in this embodiment, and the multiple devices will interact with each other to complete the method described.
[0127] It should be noted that the above description describes some embodiments of this application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in a different order than that shown in the above embodiments and still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require a specific or sequential order to achieve the desired result. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0128] Figure 3 A schematic diagram of an exemplary structure of a signal conversion device provided in an embodiment of this application is shown.
[0129] Based on the same inventive concept, corresponding to any of the above embodiments, this application also provides a signal conversion device.
[0130] refer to Figure 3 The signal conversion device includes: a first determining module, a second determining module, a third determining module, a fourth determining module, a fifth determining module, and a conversion module; wherein,
[0131] The first determining module is configured to divide the received multiple noise signals according to the noise sound pressure level to determine the range interval, and to determine the first voltage range corresponding to the range interval;
[0132] The second determining module is configured to determine the signal amplification factor of the range interval based on the first voltage range corresponding to the range interval and the input voltage determined by the analog-to-digital conversion module.
[0133] The third determining module is configured to determine the second voltage range after amplification of the range interval based on the signal amplification factor.
[0134] The fourth determining module is configured to determine the minimum output voltage variation value corresponding to the range interval based on the resolution of the predetermined sound signal;
[0135] The fifth determining module is configured to determine the target number of bits for the analog-to-digital converter based on the second voltage range and the minimum change value of the output voltage;
[0136] The conversion module is configured to convert the multi-channel noise signal into a single-channel noise signal based on the first voltage range and the target conversion bit depth.
[0137] In one possible implementation, the first determining module is further configured as follows:
[0138] The interval of the range is determined based on the predetermined starting and ending sound pressure levels of the range range.
[0139] Based on the sound pressure level determination formula, the sound pressure level range corresponding to the range interval is determined according to the starting sound pressure level and the ending sound pressure level of the range interval;
[0140] The range interval is determined based on the interval spacing and the sound pressure level range;
[0141] The minimum and maximum voltage values output by the sound sensor within the range are determined based on the sound pressure level range, and the first voltage range is determined based on the minimum and maximum voltage values.
[0142] The sound pressure level determination formula is expressed as follows:
[0143]
[0144] Among them, R g Indicates the interval length, I t The range interval is indicated by start, end, and k.
[0145] The interval is represented as
[0146]
[0147] Where N represents the number of measurement range intervals;
[0148] The minimum voltage output by the sound sensor is represented as
[0149]
[0150] Where S represents the sensitivity of the sound sensor, and P0 = 2 × 10⁻⁶ -5 Pa represents the reference sound pressure level;
[0151] The maximum voltage output by the sound sensor is expressed as:
[0152]
[0153] In one possible implementation, the second determining module is further configured as follows:
[0154] The analog-to-digital conversion module determines the maximum allowable input voltage of the input channel;
[0155] The signal amplification factor is determined based on the maximum voltage output by the sound sensor and the second voltage;
[0156] Wherein, the signal amplification factor is expressed as
[0157]
[0158] Where j represents the index of any range interval, U pinmax This indicates the maximum allowable input voltage for the input channel.
[0159] In one possible implementation, the second voltage range includes: the amplified minimum voltage value and the amplified maximum voltage value;
[0160] The third determining module is further configured to:
[0161] The minimum amplified voltage value is determined based on the signal amplification factor and the minimum voltage value output by the sound sensor;
[0162] The amplified maximum voltage value is determined based on the signal amplification factor and the maximum voltage value output by the sound sensor;
[0163] The second voltage range is determined based on the minimum and maximum amplified voltage values.
[0164] Wherein, the second voltage range is represented as
[0165]
[0166] Among them, U 放min (j) represents the minimum voltage after amplification, U 放max (j) represents the maximum voltage value after amplification.
[0167] In one possible implementation, the minimum change in output voltage is expressed as:
[0168]
[0169] Where ΔF represents the resolution of the multi-channel noise signal.
[0170] In one possible implementation, the fifth determining module is further configured as follows:
[0171] The conversion bit depth of the analog-to-digital converter corresponding to all the range intervals is determined based on the maximum amplified voltage value and the minimum output voltage change value.
[0172] The maximum number of converted bits is determined as the target number of converted bits;
[0173] Wherein, the target conversion bits are represented as...
[0174]
[0175] In one possible implementation, the conversion module is further configured as follows:
[0176] Determine whether each noise signal in the multi-channel noise signal is entirely within the range based on the first voltage range and the target conversion bit depth;
[0177] In response to the fact that not all of the multiple noise signals are within the range, the current range corresponding to the noise signal that is not within the range is adjusted until all of the multiple noise signals are within the range.
[0178] The target output voltage is determined based on the minimum output voltage variation and the signal amplification factor to convert the multi-channel noise signal into a single-channel noise signal;
[0179] Wherein, the target output voltage is expressed as
[0180] U 传 (j)=U 放 (j) / A LR (j).
[0181] For ease of description, the above devices are described in terms of function, divided into various modules. Of course, in implementing this application, the functions of each module can be implemented in one or more software and / or hardware.
[0182] The apparatus of the above embodiments is used to implement the corresponding signal conversion method in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0183] Figure 4 This illustration shows an exemplary structural diagram of an electronic device provided in an embodiment of this application.
[0184] Based on the same inventive concept, corresponding to the methods of any of the above embodiments, this application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the signal conversion method described in any of the above embodiments. Figure 4 This illustration shows a more specific hardware structure diagram of an electronic device provided in this embodiment. The device may include: a processor 410, a memory 420, an input / output interface 430, a communication interface 440, and a bus 450. The processor 410, memory 420, input / output interface 430, and communication interface 440 are interconnected internally via the bus 450.
[0185] The processor 410 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.
[0186] The memory 420 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 420 can store the operating system and other applications. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program code is stored in the memory 420 and is called and executed by the processor 410.
[0187] Input / output interface 430 is used to connect input / output modules to realize information input and output. Input / output modules can be configured as components in the device (not shown in the figure) or externally connected to the device to provide corresponding functions. Input devices may include keyboards, mice, touch screens, microphones, various sensors, etc., and output devices may include displays, speakers, vibrators, indicator lights, etc.
[0188] The communication interface 440 is used to connect a communication module (not shown in the figure) to enable communication between this device and other devices. The communication module can communicate via wired means (e.g., USB, Ethernet cable) or wireless means (e.g., mobile network, Wi-Fi, Bluetooth).
[0189] Bus 450 includes a pathway for transmitting information between various components of the device (e.g., processor 410, memory 420, input / output interface 430, and communication interface 440).
[0190] It should be noted that although the above-described device only shows the processor 410, memory 420, input / output interface 430, communication interface 440, and bus 450, in specific implementations, the device may also include other components necessary for normal operation. Furthermore, those skilled in the art will understand that the above-described device may only include the components necessary for implementing the embodiments of this specification, and not necessarily all the components shown in the figures.
[0191] The electronic devices described above are used to implement the corresponding signal conversion methods in any of the foregoing embodiments and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0192] Based on the same inventive concept, corresponding to the methods of any of the above embodiments, this application also provides a non-transitory computer-readable storage medium that stores computer instructions for causing the computer to perform the signal conversion method as described in any of the above embodiments.
[0193] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transfer medium that can be used to store information accessible by a computing device.
[0194] The computer instructions stored in the storage medium of the above embodiments are used to cause the computer to execute the signal conversion method as described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0195] Those skilled in the art should understand that the discussion of any of the above embodiments is merely exemplary and is not intended to imply that the scope of this application (including the claims) is limited to these examples; within the framework of this application, the technical features of the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other variations of different aspects of the embodiments of this application as described above, which are not provided in the details for the sake of brevity.
[0196] Additionally, to simplify the description and discussion, and to avoid obscuring the embodiments of this application, the well-known power / ground connections to integrated circuit (IC) chips and other components may or may not be shown in the provided drawings. Furthermore, the apparatus may be shown in block diagram form to avoid obscuring the embodiments of this application, and this also takes into account the fact that the details of the implementation of these block diagram apparatuses are highly dependent on the platform on which the embodiments of this application will be implemented (i.e., these details should be fully understood by those skilled in the art). While specific details (e.g., circuits) have been set forth to describe exemplary embodiments of this application, it will be apparent to those skilled in the art that the embodiments of this application can be implemented without these specific details or with variations thereof. Therefore, these descriptions should be considered illustrative rather than restrictive.
[0197] Although this application has been described in conjunction with specific embodiments thereof, many substitutions, modifications, and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may be used with the embodiments discussed.
[0198] The embodiments of this application are intended to cover all such substitutions, modifications, and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the embodiments of this application should be included within the protection scope of this application.
Claims
1. A signal conversion method, characterized in that, include: The received multiple noise signals are divided according to the noise sound pressure level to determine the range interval, and the first voltage range corresponding to the range interval is determined. The signal amplification factor of the range interval is determined based on the first voltage range and the input voltage determined by the analog-to-digital conversion module. The second voltage range after amplification of the range interval is determined based on the signal amplification factor. The minimum output voltage variation value corresponding to the range interval is determined based on the predetermined resolution of the multi-channel noise signals; The target number of bits for the analog-to-digital conversion module is determined based on the second voltage range and the minimum change value of the output voltage. The multi-channel noise signal is converted into a single-channel noise signal according to the first voltage range and the target conversion bit depth. The step of dividing the received multiple noise signals into range intervals based on the noise sound pressure level, and determining the first voltage range corresponding to the range interval, includes: The interval of the range is determined based on the predetermined starting and ending sound pressure levels of the range range. Based on the sound pressure level determination formula, the sound pressure level range corresponding to the range interval is determined according to the starting sound pressure level and the ending sound pressure level of the range interval; The range interval is determined based on the interval spacing and the sound pressure level range; The minimum and maximum voltage values output by the sound sensor within the range are determined based on the sound pressure level range, and the first voltage range is determined based on the minimum and maximum voltage values. The sound pressure level determination formula is expressed as follows: Among them, R g Indicates the interval length, I t The range interval is indicated by start, end, and k. The interval is represented as Where N represents the number of measurement range intervals; The minimum voltage output by the sound sensor is represented as Where S represents the sensitivity of the sound sensor, and P0 = 2 × 10⁻⁶ -5 Pa represents the reference sound pressure level; The maximum voltage output by the sound sensor is expressed as:
2. The method according to claim 1, characterized in that, The step of determining the signal amplification factor of the range interval based on the first voltage range corresponding to the range interval and the input voltage determined by the analog-to-digital conversion module includes: The analog-to-digital conversion module determines the maximum allowable input voltage of the input channel; The signal amplification factor is determined based on the maximum voltage output by the sound sensor and the maximum allowable input voltage of the input channel; Wherein, the signal amplification factor is expressed as Where j represents the index of any range interval, U pinmax This indicates the maximum allowable input voltage for the input channel.
3. The method according to claim 2, characterized in that, The second voltage range includes: the amplified minimum voltage and the amplified maximum voltage; Determining the second voltage range after amplification of the range interval based on the signal amplification factor includes: The minimum amplified voltage value is determined based on the signal amplification factor and the minimum voltage value output by the sound sensor; The amplified maximum voltage value is determined based on the signal amplification factor and the maximum voltage value output by the sound sensor; The second voltage range is determined based on the minimum and maximum amplified voltage values. Wherein, the second voltage range is represented as Among them, U 放min (j) represents the minimum voltage after amplification, U 放max (j) represents the maximum voltage value after amplification.
4. The method according to claim 3, characterized in that, The minimum change value of the output voltage is expressed as: Where ΔF represents the resolution of the multi-channel noise signal.
5. The method according to claim 4, characterized in that, Determining the target conversion bit depth of the analog-to-digital conversion module based on the second voltage range and the minimum output voltage variation includes: The conversion bit depth of the analog-to-digital converter module corresponding to all the range intervals is determined based on the maximum amplified voltage value and the minimum output voltage change value. The maximum number of converted bits is determined as the target number of converted bits; Wherein, the target conversion bits are represented as...
6. The method according to claim 5, characterized in that, The step of converting the multi-channel noise signal into a single-channel noise signal according to the first voltage range and the target conversion bit depth includes: Determine whether each noise signal in the multi-channel noise signal is entirely within the range based on the first voltage range and the target conversion bit depth; In response to the fact that not all of the multiple noise signals are within the range, the current range corresponding to the noise signal that is not within the range is adjusted until all of the multiple noise signals are within the range. The target output voltage is determined based on the minimum output voltage variation and the signal amplification factor to convert the multi-channel noise signal into a single-channel noise signal; Wherein, the target output voltage is expressed as U 传 (j)=ΔU 放 (j) / A LR (j)。 7. A signal conversion apparatus employing the signal conversion method as described in any one of claims 1-6, characterized in that, include: The first determining module is configured to divide the received multiple noise signals according to the noise sound pressure level to determine the range interval, and to determine the first voltage range corresponding to the range interval; The second determining module is configured to determine the signal amplification factor of the range interval based on the first voltage range corresponding to the range interval and the input voltage determined by the analog-to-digital conversion module. The third determining module is configured to determine the second voltage range after amplification of the range interval based on the signal amplification factor. The fourth determining module is configured to determine the minimum output voltage variation value corresponding to the range interval based on the resolution of the predetermined sound signal; The fifth determining module is configured to determine the target number of bits for the analog-to-digital conversion module based on the second voltage range and the minimum change value of the output voltage; The conversion module is configured to convert the multi-channel noise signal into a single-channel noise signal based on the first voltage range and the target conversion bit depth.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the method as described in any one of claims 1 to 6.
9. A non-transitory computer-readable storage medium storing computer instructions, characterized in that, The computer instructions are used to cause the computer to implement the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Hearing protection method and mobile terminal
CN106101929A
Microphone, and method and device for audio processing
CN108370476A