Audio signal processing method and device, wireless microphone and readable storage medium
By processing the original audio signal based on multiple target gains in the transmitter of the wireless microphone, decoding and gain normalization in the receiver, the problem of the difference between the audio playback effect and the actual effect of the wireless microphone is solved, and higher audio signal restoration quality and overall performance are achieved.
Patent Information
- Application Number
- CN202411722576.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-28
- Publication Date
- 2025-04-11
AI Technical Summary
The dynamic range and performance of wireless microphones are limited, resulting in differences in the audio playback effect and actual effect.
In the transmitter of the wireless microphone, multiple digital audio signals are obtained by receiving the original audio signal and performing gain conversion processing based on multiple target gains. Then, the first target audio signal to be encoded is determined from these digital audio signals and encoded it to generate a target coded signal and a target gain. These signals are wirelessly transmitted to the receiver, decoded and gain normalized, and finally obtain a second target audio signal for audio playback.
Through multi-objective gain processing and encoding technology, the restore quality of the audio signal is improved, making the audio playback effect closer to the sound characteristics of the original audio signal, thereby improving the overall performance of the wireless microphone.
Smart Images

Figure CN119815224A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of signal processing, and in particular to an audio signal processing method, an audio signal processing device, a wireless microphone and a computer-readable storage medium. Background Art
[0002] A wireless microphone is a microphone device that does not require a cable connection. It transmits sound signals to a receiving device via radio waves. The main components of a wireless microphone include a transmitter, a receiver, and the microphone itself. A wireless microphone converts the sound signals it picks up into radio waves through the transmitter and transmits them to the receiver via a specific frequency. After the receiver receives the radio waves, it converts them back into audio signals and outputs them to the sound system or other audio equipment.
[0003] The dynamic range and performance of wireless microphones may differ from actual audio playback effects due to hardware and software limitations. Summary of the invention
[0004] To overcome the problems existing in the related art, an exemplary embodiment of the present disclosure provides an audio signal processing method, which is applied to a transmitter of a wireless microphone, and the method includes: receiving an original audio signal; performing gain conversion processing on the original audio signal based on multiple target gains to obtain multiple digital audio signals corresponding to the original audio signal, and the digital audio signals correspond to the target gains one by one; determining a first target audio signal to be encoded from the multiple digital audio signals; encoding the first target audio signal to obtain a target encoded signal; sending the target encoded signal and the corresponding target gain so that the target encoded signal is decoded by a receiver of the wireless microphone, and obtaining a second target audio signal for audio playback based on the target gain.
[0005] In some embodiments, determining a first target audio signal to be encoded from a plurality of digital audio signals includes: determining an amplitude representation value of each digital audio signal respectively, the amplitude representation value being used to represent the signal strength of a corresponding data audio signal; determining a first sorting result in which a plurality of target gains are sorted in a specified order; based on the first sorting result, sorting the amplitude representation values of the plurality of digital audio signals in an order corresponding to the target gains to obtain a second sorting result; based on the second sorting result, taking a maximum amplitude representation value among the plurality of amplitude representation values that is less than a target threshold as a target amplitude representation value, and determining that the digital audio signal corresponding to the target amplitude representation value is the first target audio signal to be encoded.
[0006] In some embodiments, determining a first target audio signal to be encoded from a plurality of digital audio signals includes: determining a first sorting result of sorting a plurality of target gains in a specified order; determining, in turn, an amplitude representation value of the digital audio signal corresponding to each target gain according to the first sorting result; in response to the amplitude representation value of the current digital audio signal being less than a target threshold and having a minimum difference with the target threshold, determining the current digital audio signal to be the first target audio signal to be encoded.
[0007] In some embodiments, the process of determining the amplitude representation value of the digital audio signal is as follows: down-sampling the digital audio signal to determine an intermediate audio signal with a frame sampling rate of a specified sampling rate; based on the specified sampling rate, determining the signal amplitude change of the intermediate audio signal in the same frame to obtain the amplitude representation value of the digital audio signal.
[0008] In some embodiments, the transmitter includes multiple programmable gain amplifiers and multiple analog-to-digital converters, the analog-to-digital converters correspond to the programmable gain amplifiers, and the analog-to-digital converters are arranged downstream of the programmable gain amplifiers; based on multiple target gains, the original audio signal is gain converted to obtain multiple digital audio signals corresponding to the original audio signal, including: processing the original audio signal according to the corresponding target gain through the programmable gain amplifier to obtain a gain result; performing analog-to-digital conversion on the gain result through the analog-to-digital converter corresponding to the programmable gain amplifier to obtain a digital audio signal corresponding to the original audio signal.
[0009] In some embodiments, multiple analog-to-digital converters are calibrated through the following process: obtaining a first standard audio signal; inputting the first standard audio signal into multiple analog-to-digital converters respectively to obtain multiple first test audio signals; based on the DC components of the multiple first test audio signals, calibrating the multiple analog-to-digital converters so that the DC components of the corresponding outputs of the corrected multiple analog-to-digital converters are consistent.
[0010] In some embodiments, the target gain corresponding to the programmable gain amplifier is determined by the following process: obtaining a second standard audio signal; performing gain processing on the second standard audio signal according to an initial gain corresponding to the programmable gain amplifier to obtain an intermediate audio signal; performing analog-to-digital conversion processing on the intermediate audio signal through an analog-to-digital converter to obtain a second test audio signal; and adjusting the initial gain based on the second test audio signal to obtain the target gain corresponding to the programmable gain amplifier.
[0011] In a second aspect, the present disclosure also provides an audio signal processing method, which is applied to a receiver of a wireless microphone, and the method includes: receiving a target coding signal and a corresponding target gain sent by a transmitter of the wireless microphone, wherein the target coding signal and the target gain are determined by the transmitter using the audio signal processing method provided by any of the above aspects; decoding the target coding signal, and obtaining a second target audio signal for audio playback based on the target gain.
[0012] In some embodiments, decoding the target coded signal and obtaining a decoding result based on the target gain includes: decoding the target coded signal to obtain a decoding result; and normalizing the decoding result according to the target gain to obtain a second target audio signal for audio playback.
[0013] In a third aspect, the present disclosure also provides an audio signal processing device, which is applied to a transmitter of a wireless microphone, and the device includes: a first receiving module, used to receive an original audio signal; a first processing module, used to perform gain conversion processing on the original audio signal based on multiple target gains, and obtain multiple digital audio signals corresponding to the original audio signal, and the digital audio signals correspond to the target gains one by one; a screening module, used to determine a first target audio signal to be encoded from the multiple digital audio signals, and the amplitude representation value is used to represent the signal strength of the corresponding data audio signal; an encoding module, used to encode the first target audio signal to obtain a target encoded signal; a sending module, used to send the target encoded signal and the corresponding target gain, so that the target encoded signal is decoded by the receiver of the wireless microphone, and a second target audio signal for audio playback is obtained based on the target gain.
[0014] In a fourth aspect, the present disclosure also provides an audio signal processing device, which is applied to a receiver of a wireless microphone, and the device includes: a second receiving module, which is used to receive a target coding signal and a corresponding target gain sent by a transmitter of the wireless microphone, wherein the target coding signal and the target gain are determined by the transmitter using the audio signal processing method provided by any of the above aspects; a decoding module, which is used to decode the target coding signal and obtain a second target audio signal for audio playback based on the target gain.
[0015] In a fifth aspect, the present disclosure also provides a wireless microphone, comprising: a transmitter and a receiver; the transmitter is used to receive an original audio signal; based on multiple target gains, the original audio signal is gain converted to obtain multiple digital audio signals corresponding to the original audio signal; from the multiple digital audio signals, a first target audio signal to be encoded is determined; the first target audio signal is encoded to obtain a target encoded signal, and the target encoded signal and the corresponding target gain are sent, and the digital audio signal corresponds to the target gain one by one; the receiver is used to receive the target encoded signal and the corresponding target gain sent by the transmitter; and, the target encoded signal is decoded, and a second target audio signal for audio playback is obtained based on the target gain.
[0016] In a sixth aspect, the present disclosure further provides a computer-readable storage medium, which stores the following program, and the program is used to execute the audio signal processing method provided in any one of the above aspects.
[0017] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
[0018] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: According to the audio signal processing method provided by the present disclosure, the original audio signal is subjected to gain conversion processing based on different target gains, and the signal strength of the original audio signal can be simultaneously subjected to a variety of different amplification or reduction processing, and the optimal digital audio signal is selected as the first target audio signal to be encoded, thereby ensuring the quality and reliability of the target audio signal. By encoding the target audio signal, and sending the obtained target encoded signal and the corresponding target gain to the receiver of the wireless microphone, the receiver can perform targeted decoding processing on the target encoded signal according to the corresponding target gain, and obtain the second target audio signal for audio playback, thereby improving the restoration quality of the audio signal, so that when the audio is subsequently played, the playback audio effect can be closer to the sound characteristics of the original audio signal, thereby improving the overall performance of the wireless microphone. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The present invention may be better understood by describing exemplary embodiments of the present invention in conjunction with the accompanying drawings, in which:
[0020] Figure 1 is a schematic diagram of the architecture of a wireless microphone according to an exemplary embodiment of the disclosure;
[0021] Figure 2 is a flowchart of an audio signal processing method according to an exemplary embodiment of the disclosure;
[0022] Figure 3 is a flowchart of another audio signal processing method according to an exemplary embodiment of the disclosure;
[0023] Figure 4 is a flowchart of another audio signal processing method according to an exemplary embodiment of the disclosure;
[0024] Figure 5 is a flowchart of another audio signal processing method according to an exemplary embodiment of the disclosure;
[0025] Figure 6 is a schematic diagram of another architecture of a wireless microphone according to an exemplary embodiment of the disclosure;
[0026] Figure 7 is a structural schematic diagram of an audio signal processing device according to an exemplary embodiment of the disclosure;
[0027] Figure 8 It is a structural schematic diagram of another audio signal processing device according to an exemplary embodiment of the disclosure. DETAILED DESCRIPTION
[0028] The specific embodiments of the present invention will be described below. It should be noted that in the specific description of these embodiments, in order to provide a concise description, it is impossible for this specification to provide a detailed description of all the features of the actual embodiments. It should be understood that in the actual implementation of any embodiment, just as in the process of any engineering project or design project, in order to achieve the specific goals of the developer and to meet system-related or business-related restrictions, various specific decisions are often made, and this will also change from one embodiment to another. In addition, it can also be understood that although the efforts made in this development process may be complex and lengthy, for ordinary technicians in the field related to the content disclosed by the present invention, some changes such as design, manufacturing or production based on the technical content disclosed in this disclosure are just conventional technical means, and should not be understood as insufficient content of this disclosure.
[0029] Unless otherwise defined, the technical or scientific terms used in the claims and the specification shall have the usual meaning understood by persons with ordinary skills in the technical field to which the invention belongs. The words "first", "second" and similar words used in the patent application specification and the claims of the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. "One" or "one" and other similar words do not indicate a quantitative limitation, but indicate the existence of at least one. "Include" or "comprises" and other similar words mean that the elements or objects appearing before "include" or "comprises" include the elements or objects listed after "include" or "comprises" and their equivalent elements, and do not exclude other elements or objects. "Connected" or "connected" and other similar words are not limited to physical or mechanical connections, nor are they limited to direct or indirect connections.
[0030] like Figure 1 As shown, the wireless microphone 100 includes a transmitter 110 and a receiver 120. The transmitter 110 converts the picked-up sound signal into radio waves and transmits it to the receiver 120 via a specific frequency. After receiving the radio waves, the receiver 120 converts them back into audio signals and outputs them to a sound system or other audio device for audio playback.
[0031] However, the dynamic range of sound that the transmitter 110 can capture is limited. If the sound is low or loud, the corresponding sound signal may not be effectively recorded. The analog to digital converter (ADC) in the transmitter 110 will have its own limited dynamic range due to its own cost and power consumption, thereby affecting the conversion quality of the signal. During the encoding of the transmitter 110 and the decoding of the receiver 120, the word length of the encoder and decoder is limited, which will affect the signal processing accuracy. Therefore, no matter which of the above situations is, it will affect the audio playback effect of the wireless microphone.
[0032] To solve the above problems, the present disclosure provides an audio signal processing method, which is applied to the transmitter of a wireless microphone. Figure 2 As shown, the audio signal processing method may include the following steps:
[0033] Step S210: receiving an original audio signal.
[0034] The original audio signal refers to the signal received by the transmitter of the wireless microphone and not processed. The signal may come from the environment where the wireless microphone is located. For example, the original audio signal may be a human voice, natural sound, or sound emitted by an audio playback device collected in the environment where the wireless microphone is located.
[0035] Step S220: Based on the multiple target gains, the original audio signal is subjected to gain conversion processing to obtain multiple digital audio signals corresponding to the original audio signal.
[0036] Multiple target gains correspond to different gain values and the gain value types corresponding to each target gain are the same. The gain value of the target gain can be a linear value, a decibel (db) value or a corresponding indication value. In order to improve the reliability of audio restoration, after obtaining the original audio signal, the original audio signal is subjected to gain conversion processing according to different target gains, and the digital audio signal after analog-to-digital conversion processing of the original audio signal under different gain conditions is determined, thereby obtaining multiple digital audio signals. The digital audio signal corresponds to the target gain one by one.
[0037] In some examples, the target gain may be gain configuration information of a corresponding programmable gain amplifier. The gain configuration information may be a gain value of the programmable gain amplifier, such as a linear value or a db value. The gain configuration information may also be an indication value of the gain value of the programmable gain amplifier,
[0038] For example, if the gain value corresponding to the target gain is a linear value, when the original audio signal is subjected to gain conversion processing according to the linear value, the original audio signal is amplified or reduced by a corresponding multiple according to the size of the linear value. For example, if the gain value corresponding to the target gain is +2, when the original audio signal is subjected to gain conversion processing according to the linear value, the original audio signal is amplified twice and then subjected to analog-to-digital conversion processing, thereby obtaining a corresponding digital audio signal. If the gain value corresponding to the target gain is 1 / 4, when the original audio signal is subjected to gain conversion processing according to the linear value, the original audio signal is reduced four times and then subjected to analog-to-digital conversion processing, thereby obtaining a corresponding digital audio signal.
[0039] If the gain value corresponding to the target gain is a decibel (dB) value, when the original audio signal is subjected to gain conversion processing according to the decibel value, the decibel value is first converted into a corresponding linear gain value, and then the original audio signal is gained according to the linear value, and then analog-to-digital conversion processing is performed to obtain the corresponding digital audio signal. For example, if the gain value corresponding to the target gain is 10dB, when the original audio signal is subjected to gain conversion processing according to the decibel value, 10dB is first converted into a linear gain value (approximately 3.162 times), and then the original audio signal is amplified by a corresponding multiple and then subjected to analog-to-digital conversion processing to obtain the corresponding digital audio signal.
[0040] If the gain value corresponding to the target gain is an indication value, when performing gain conversion processing on the original audio signal according to the indication value, the meaning and unit of the indication value must be clarified first, and then the original audio signal is amplified specifically according to the converted linear gain value, and then the analog-to-digital conversion processing is performed to obtain the corresponding digital audio signal. For example, if the indication value is a percentage, the percentage needs to be converted into a corresponding linear gain value, and then the gain conversion processing is performed on the original audio signal according to the linear gain value.
[0041] Step S230: determining a first target audio signal to be encoded from a plurality of digital audio signals.
[0042] Due to the difference in the strength of different digital audio signals, a signal strength that is too strong may cause clipping distortion, while a signal strength that is too weak may cause a decrease in the signal-to-noise ratio, thereby affecting the restoration quality of the audio signal. Therefore, in order to improve the quality of the encoded audio signal, each digital audio signal is screened based on the amplitude characterization value of each digital audio signal to determine that the signal quality can be guaranteed while the signal quality range of the digital audio signal can be reasonably expanded, thereby obtaining a suitable first target audio signal. Among them, the amplitude characterization value is used to characterize the signal strength of the corresponding data audio signal. The signal strength can be the signal amplitude or signal power of the corresponding data audio signal.
[0043] Step S240: encode the first target audio signal to obtain a target encoded signal.
[0044] The first target audio signal is encoded using an audio encoding algorithm (such as MP3, AAC, etc.) to convert the format of the first target audio signal into a compressed format to obtain a target encoded signal, which is convenient for subsequent transmission to the receiver of the wireless microphone, thereby effectively reducing the size of the audio file, reducing transmission costs, and increasing transmission speed.
[0045] Step S250 , sending a target coded signal and a corresponding target gain, so that the target coded signal is decoded by a receiver of the wireless microphone, and a second target audio signal for audio playback is obtained based on the target gain.
[0046] The receiver of the wireless microphone is used to restore and play the original audio signal collected by the transmitter. In order to enable the receiver to play audio, the target coding signal and the corresponding target gain are sent to the receiver by wireless transmission, and after decoding the target coding signal, the receiver can perform gain normalization based on the target gain corresponding to the target coding signal to obtain a second target audio signal for audio playback, thereby achieving the purpose of improving the audio playback quality.
[0047] According to the audio signal processing method provided by the present disclosure, the original audio signal is subjected to gain conversion processing based on different target gains, and the signal strength of the original audio signal can be amplified or reduced in a variety of different ways at the same time, and the optimal digital audio signal is selected as the first target audio signal to be encoded, thereby ensuring the quality and reliability of the target audio signal. By encoding the target audio signal, and sending the obtained target encoded signal and the corresponding target gain to the receiver of the wireless microphone, the receiver can perform targeted decoding processing on the target encoded signal according to the corresponding target gain to obtain the second target audio signal for audio playback, which can reasonably expand the signal quality range and improve the restoration quality of the audio signal, so that when the audio is subsequently played, the played audio effect can be closer to the sound characteristics of the original audio signal, thereby improving the overall performance of the wireless microphone.
[0048] In some embodiments, Figure 3 As shown, the above step S230 may include the following steps S231 to S234:
[0049] Step S231, determining the amplitude representation value of each digital audio signal respectively.
[0050] Since the target gain corresponding to each digital audio signal is different, the signal strength of each digital audio signal is different. Therefore, in order to determine the signal strength of each digital audio signal and facilitate targeted selection, the amplitude representation value of each digital audio signal is determined separately, so that targeted screening can be carried out according to a unified standard later. Among them, the amplitude representation value is used to represent the signal strength of the corresponding digital audio signal.
[0051] In some optional examples, the process of determining the amplitude representation value of the digital audio signal may be as follows:
[0052] Step a1, down-sampling the digital audio signal to determine an intermediate audio signal with a frame sampling rate of a specified sampling rate;
[0053] Step a2: based on the specified sampling rate, determine the signal amplitude of the intermediate audio signal in the same frame to obtain the amplitude representation value of the digital audio signal.
[0054] Specifically, since the encoding process and the gain conversion process may correspond to different frame sampling rates, and the frame sampling rate of the gain conversion process is usually higher than the frame sampling rate of the encoding process. In order to ensure the smooth progress of the encoding process, each digital audio signal is downsampled to adjust the sampling rate of the audio frame, expand the dynamic range of the digital audio signal, and obtain an intermediate audio signal with a frame sampling rate of the specified sampling rate, thereby improving the quality of the digital audio signal. Among them, the specified sampling rate is less than the different frame sampling rates corresponding to the gain conversion process, and is greater than or equal to the frame sampling rate corresponding to the encoding process.
[0055] Determine the sampling rate ratio between the specified sampling rate and the frame sampling rate to be encoded, and determine the target frame length corresponding to the intermediate audio signal based on the ratio and the frame length corresponding to the encoding process. For example, if the specified sampling rate is f1, the frame sampling rate of the encoding process is f2, and the frame length corresponding to the encoding process is L1, then the sampling rate ratio N = f1 / f3, and the target frame length L = L1*N. Determining the target frame length in this way helps to ensure that the audio data can be correctly matched in the subsequent encoding process, and ensure the quality and reliability of the encoding.
[0056] The signal amplitude change of the intermediate audio signal in the same frame is determined according to the target frame length, and the amplitude representation value of the corresponding digital audio signal is determined according to the signal amplitude change, so that the screening reliability of the digital audio signal can be effectively improved during subsequent signal screening.
[0057] In some examples, the amplitude characterization value can be determined based on the signal amplitude or audio signal power in the audio frame in which it is located. If it is determined based on the signal amplitude in the audio frame in which it is located, the method for determining the amplitude characterization value may include but is not limited to any of the following determination methods: the amplitude characterization value may be the maximum signal amplitude of the digital audio signal frame in the audio frame in which it is located; the average value of the maximum signal amplitudes of the digital audio signal frame in the audio frame in which it is located; the maximum value after taking the absolute value of the signal amplitude of the digital audio signal in the audio frame in which it is located, or the average value of the maximum signal amplitudes; the root mean square value (RMS) of the digital audio signal in the audio frame in which it is located; or, the difference between the maximum signal amplitude and the minimum signal amplitude in the audio frame in which it is located. The specific determination method of the amplitude characterization value of the digital audio signal can be determined according to actual needs and is not limited here.
[0058] Step S232: determining a first sorting result of sorting the plurality of target gains in a specified order.
[0059] Different target increments are used to perform different amplification or reduction processing on the original audio signal. In order to determine the optimal target gain for performing gain conversion processing on the original audio signal in multiple gain conversion processes, the multiple target gains are sorted in a specified order to determine the gain distribution corresponding to each target gain. In one example, the specified order may be from large to small or from small to large. In another example, in order to facilitate the subsequent rapid screening of the required first target audio signal, the specified order may be from large to small.
[0060] Step S233: According to the first sorting result, the amplitude representation values of the plurality of digital audio signals are sorted in an order corresponding to the target gains to obtain a second sorting result.
[0061] According to the first sorting result, the sorting of each target gain can be clarified, and then the amplitude representation values of multiple digital audio signals are sorted according to the corresponding target gains, so as to obtain a second sorting result corresponding to the amplitude representation value of the digital audio signal.
[0062] Step S234: according to the second sorting result, the maximum amplitude representation value of the multiple amplitude representation values that is less than the target threshold is used as the target amplitude representation value, and the digital audio signal corresponding to the target amplitude representation value is determined as the first target audio signal to be encoded.
[0063] The target threshold is an amplitude characterization critical value used to determine whether the audio signal is saturated or distorted. Distortion refers to linear or nonlinear distortion caused by oversaturation or large amplitude of the audio signal, and also includes harmonic distortion. If the amplitude characterization value of the digital audio signal is greater than the target threshold, it indicates that the digital audio signal is in an oversaturated state or a state with large distortion. If the amplitude characterization value of the data audio signal is less than the target threshold, it indicates that the digital audio signal is in an undersaturated state. If the amplitude characterization value of the digital audio signal is equal to the target threshold or the difference between the amplitude characterization value and the target threshold is within a specified range, it can be considered that the data audio signal is in a saturated state or a distorted state. On the other hand, if the amplitude characterization critical value is too small, such as being much smaller than the target threshold, it will affect the signal-to-noise ratio of the audio signal, making the signal-to-noise ratio of the audio signal worse, and making the circuit noise of the analog-to-digital converter have a greater impact on the audio signal.
[0064] In order to ensure the quality of signal encoding and reduce signal loss, according to the second sorting result, the maximum amplitude representation value among multiple amplitude representation values that is less than the target threshold is used as the target amplitude representation value, and the digital audio signal corresponding to the target amplitude representation value is used as the first target audio signal to be encoded, so that the quality of encoding can be guaranteed during subsequent encoding processing.
[0065] By determining the first target audio signal in the above manner, the loss of the gain conversion processing of the original audio signal can be reduced, signal oversaturation or distortion can be avoided, and the audio signal can be guaranteed to have a high signal-to-noise ratio, thereby improving the selection reliability of the first target audio signal. When the signal is subsequently encoded, the interference of noise can be effectively reduced and the encoding quality can be improved, so that when the audio is subsequently played through the receiver, the sound quality can be effectively improved to meet user expectations.
[0066] In other embodiments, Figure 4 As shown, the above step S230 may further include the following steps S235 to S237:
[0067] Step S235 , determining a first sorting result of sorting the multiple target gains in a specified order.
[0068] Step S236: According to the first sorting result, determine the amplitude representation value of the digital audio signal corresponding to each target gain in turn.
[0069] According to the first sorting result, the sorting of each target gain can be determined. In order to improve the screening efficiency and reduce the screening cost, the amplitude representation value of the digital audio signal corresponding to each target gain is determined in sequence according to the first sorting result. Among them, the first sorting result can be obtained by arranging multiple target gains in order from small to large, or by arranging multiple target gains in order from large to small.
[0070] Step S237 : in response to the amplitude representation value of the current digital audio signal being smaller than the target threshold and having the smallest difference with the target threshold, determining the current digital audio signal as the first target audio signal to be encoded.
[0071] In response to the amplitude representation value of the current digital audio signal being less than the target threshold and the difference between the amplitude representation value and the target threshold being the smallest, it can be considered that the signal strength of the current digital audio signal is a relatively optimal audio digital signal among multiple digital audio signals. Therefore, the current digital audio signal is determined to be the first target audio signal to be encoded.
[0072] By determining the first target audio signal in the above manner and performing signal screening based on the first sorting results of multiple target gains, the signal screening range can be effectively narrowed, the screening cost can be reduced, and the efficiency of determining the first target audio signal can be effectively improved.
[0073] In some embodiments, the transmitter includes a plurality of programmable gain amplifiers (PGA) and a plurality of analog-to-digital converters, the analog-to-digital converters correspond to the programmable gain amplifiers, and the analog-to-digital converters are arranged downstream of the programmable gain amplifiers. The above step S220 includes:
[0074] Step b1, processing the original audio signal according to the corresponding target gain through a programmable gain amplifier to obtain a gain result;
[0075] Step b2: performing analog-to-digital conversion on the gain result through an analog-to-digital converter corresponding to the programmable gain amplifier to obtain a digital audio signal corresponding to the original audio signal.
[0076] Specifically, the properties of the multiple analog-to-digital converters are the same, the multiple programmable gain amplifiers are used to provide multiple target gains, the programmable gain amplifiers correspond to the target gains one by one, and the analog-to-digital converters are arranged downstream of the programmable gain amplifiers. In some examples, the number of analog-to-digital converters may be 2 or 3.
[0077] Therefore, after the transmitter collects the original audio signal, the original audio signal is synchronously sent to each programmable gain amplifier, so that each programmable gain amplifier performs amplification processing according to the corresponding target gain to obtain a gain result corresponding to each target gain. That is, the gain result refers to the audio signal amplified by the programmable gain amplifier with the target gain. For each analog-to-digital converter set downstream of the programmable gain amplifier, the process of analog-to-digital conversion processing of the gain result output by the upstream programmable gain amplifier is consistent, and one of the analog-to-digital converters will be used as an example for explanation below.
[0078] For the analog-to-digital converter, after obtaining the gain result output by the upstream programmable gain amplifier, the gain result is subjected to analog-to-digital conversion processing to obtain a digital audio signal corresponding to the original audio signal so that it can be effectively identified and read by the transmitter.
[0079] In some examples, the dynamic range of an analog-to-digital converter refers to the range of signal strengths that the analog-to-digital converter can effectively process, the ratio from the minimum detectable signal to the maximum processable signal. The dynamic range is usually expressed in decibels (dB). The dynamic range of an analog-to-digital converter is determined by its resolution (word length). The higher the resolution, the more voltage levels the analog-to-digital converter can distinguish, and the larger the corresponding dynamic range. The expression of the dynamic range can be as follows: dynamic range = 6.02*M+1.76. Among them, M is the word length of the analog-to-digital converter, and 6.02 represents the decibel increase in dynamic range for each additional bit of resolution. 1.76 represents the ideal quantization noise floor.
[0080] By performing gain conversion processing in the above manner, the dynamic range of the analog-to-digital converter can be reasonably expanded without changing the analog-to-digital converter, thereby effectively reducing the loss of the original audio signal during analog-to-digital conversion processing, avoiding signal oversaturation or distortion or low audio signal-to-noise ratio, thereby helping to improve the selection reliability of the first target audio signal and ensure encoding quality.
[0081] In other embodiments, there may be individual differences in the analog-to-digital converters during the production process. Therefore, in order to ensure the reliability of subsequent signal screening, multiple analog-to-digital converters are calibrated so that the DC components of the corresponding outputs of the multiple analog-to-digital converters can be consistent, and then when the first target audio signal is subsequently determined, the occurrence of misidentification can be effectively reduced, which is conducive to ensuring the conversion quality of the audio signal. Among them, multiple analog-to-digital converters can be calibrated through the following process:
[0082] Step c1, obtaining a first standard audio signal;
[0083] Step c2, inputting the first standard audio signal into a plurality of analog-to-digital converters respectively to obtain a plurality of first test audio signals;
[0084] Step c3: calibrating the plurality of analog-to-digital converters based on the DC components of the plurality of first test audio signals, so that the DC components of the corresponding outputs of the plurality of calibrated analog-to-digital converters are consistent.
[0085] Specifically, during the production process of analog-to-digital converters, individual differences may cause differences in the DC components output by analog-to-digital converters of the same model. In addition, different audio frames correspond to different DC components. If the target gains for the corresponding gain conversion processing are different, the output digital audio signal will contain interference sounds that affect the sound quality. For example, interference sounds may include, but are not limited to, "pop" sounds, "puff" sounds, etc.
[0086] Therefore, in order to make multiple analog-to-digital converters output the same digital audio signal with the same DC component when performing gain conversion processing, multiple analog-to-digital converters are calibrated by the first standard audio signal. That is, the first standard audio signal is input into multiple analog-to-digital converters respectively to obtain the first test audio signal outputted by each analog-to-digital converter. The DC component of each first test audio signal is measured respectively, and the multiple analog-to-digital converters are calibrated according to the DC component of each first test audio signal, so that the DC components of the corresponding outputs of the corrected multiple analog-to-digital converters are consistent, and then when the gain conversion processing is subsequently performed by multiple analog-to-digital converters, the noise interference caused by the differences between the analog-to-digital converters can be overcome, thereby effectively improving the quality of each digital audio signal and ensuring the reliability of subsequent encoding processing.
[0087] In some further embodiments, the target gain corresponding to the programmable gain amplifier may be determined by the following process:
[0088] Step d1, obtaining a second standard audio signal;
[0089] Step d2, performing gain processing on the second standard audio signal according to the initial gain corresponding to the programmable gain amplifier to obtain an intermediate audio signal;
[0090] Step d3, performing analog-to-digital conversion processing on the intermediate audio signal through an analog-to-digital converter to obtain a second test audio signal;
[0091] Step d3: Based on the second test audio signal, adjust the initial gain to obtain a target gain corresponding to the programmable gain amplifier.
[0092] Specifically, the nominal value corresponding to the programmable gain amplifier may have deviations due to production reasons. This deviation may be 0.3db, 0.5db, 1db, or even 2db. Therefore, in order to improve the quality of the gain conversion processing, the programmable gain amplifier is calibrated through the second standard audio. Specifically, the second standard audio signal is gain processed according to the initial gain corresponding to the programmable gain amplifier to obtain an intermediate audio signal. The intermediate audio signal is gain converted by an analog-to-digital converter to obtain a second test audio signal. The second test audio signal is compared with the actual reference audio signal, and the gain deviation value corresponding to the programmable gain amplifier is determined based on the comparison result. The initial gain is adjusted according to the gain deviation value to obtain the target gain corresponding to the programmable gain amplifier. Among them, the actual reference audio signal refers to the digital audio signal obtained after the second standard audio signal is gain converted according to the target gain.
[0093] In an example, the gain deviation value may be determined by comparing the signal amplitude, power, or maximum value of the second test audio signal with the actual reference audio signal.
[0094] In some further embodiments, before the transmitter processes the audio signal, in order to ensure the reliability of subsequent audio signal processing, multiple analog-to-digital converters can be calibrated in advance, and the target gain corresponding to each programmable gain amplifier can be determined, so that when the audio signal is subsequently normalized at the receiving end based on the target gain, it can be avoided that the errors of each target gain are different, resulting in gain errors in each frame of audio signal, and the amplitude of each frame of audio signal changes, affecting the listening experience, so that the user can hear a noise similar to "pop". At the same time, it can also ensure that the output digital audio signal has sufficient dynamic range, and can also effectively reduce noise interference, which helps to improve the quality of the first target audio signal.
[0095] Based on the same inventive concept, the present invention also provides an audio signal processing method, which is applied to a receiver of a wireless microphone. Figure 5 As shown, the audio signal processing method may include the following steps:
[0096] Step S310: receiving a target coding signal and a corresponding target gain sent by a transmitter of a wireless microphone.
[0097] The target coding signal and the target gain are determined by the transmitter using any one of the audio signal processing methods provided by the present invention.
[0098] In some implementation scenarios, the target gain received by the receiver may be the gain configuration information of the corresponding programmable gain amplifier. The gain configuration information may be the gain value of the programmable gain amplifier, such as a linear value or a db value. The gain configuration information may also be an indication value of the gain value of the programmable gain amplifier, such as setting an indication value for each of the N programmable gain amplifier gains corresponding to the N ADCs, such as indicating with a value from 1 to N. The gain corresponding to each i (1<=i<=N) programmable gain amplifier may be sent to the receiver by the transmitter wirelessly, so that the specific gain value does not need to be transmitted in each frame.
[0099] In other implementation scenarios, the gain configuration information may be pre-configured for the receiver, and when the receiver receives the target gain, the target gain-related information may be quickly determined, facilitating subsequent targeted target gain normalization operations.
[0100] Step S320: decode the target coded signal, and obtain a second target audio signal for audio playback based on the target gain.
[0101] Since different gains correspond to different frame sampling rates, in order to improve the decoding quality, the target coded signal is decoded in a targeted manner according to the target gain corresponding to the target decoded signal to ensure the accuracy and reliability of the decoding, thereby obtaining a second target audio signal for audio playback, so as to subsequently play the audio through the audio playback device. The second target audio signal may be a pulse code modulation (PCM) audio signal.
[0102] According to the audio signal processing method provided by the present invention, the receiver performs target gain normalization processing on the audio signal after decoding the target coded signal based on the target gain corresponding to the target coded signal, which can ensure the dynamic range of the target audio signal, improve the quality of the target audio signal, and avoid distortion or signal quality degradation caused by insufficient word length of the audio encoder and decoder. Therefore, when the second target audio signal is subsequently played back, the audio playback effect can be made closer to the sound characteristics of the original audio signal, which is beneficial to improving the overall performance of the wireless microphone.
[0103] In some embodiments, the above step S320 includes the following steps:
[0104] Step e1, decoding the target coded signal to obtain a decoding result;
[0105] Step e2: normalize the decoding result according to the target gain to obtain a second target audio signal for audio playback.
[0106] Specifically, an audio decoding algorithm corresponding to the audio encoding algorithm is used to decode the target encoded signal to ensure the smooth decoding, thereby obtaining a decoding result. The decoding result is normalized according to the target gain to obtain a second target audio signal for audio playback, which is conducive to ensuring the integrity and accuracy of the audio signal and helping the subsequent playback effect to meet expectations.
[0107] In some examples, the transmitter may send a DC correction compensation value of an analog-to-digital converter to the receiver in advance. Before obtaining the second target audio signal for audio playback, the decoding result may be compensated by the DC correction compensation value to eliminate the noise interference signal in the decoding result, so that when normalized according to the target gain, the quality of the second target audio signal can be effectively improved. Among them, the DC correction compensation value may be determined based on the calibration of multiple analog-to-digital converters. Alternatively, after normalization according to the target gain, the normalized processing result obtained is compensated by the DC correction compensation value to eliminate the interference signal that affects the quality of the second target audio signal in the normalized processing result, thereby achieving the purpose of improving the accuracy of the second target audio signal.
[0108] In other examples, the receiver may perform gain compensation processing. Specifically, the transmitter may send gain deviation values corresponding to multiple programmable gain amplifiers to the receiver, and then the receiver may perform compensation processing before or after normalization processing based on the target coded signal and target gain sent by the transmitter, using the gain deviation value of the programmable gain amplifier corresponding to the target gain, to avoid or reduce the occurrence of clipping or overload, thereby achieving the purpose of improving the reliability of the second target audio signal.
[0109] In some other examples, the receiver may perform DC correction compensation processing. Specifically, the transmitter may send the analog-to-digital converter DC correction compensation value and the gain deviation values corresponding to the multiple programmable gain amplifiers to the receiver, and then before the receiver determines the second target audio signal, the decoding result or the normalization processing result may be compensated to ensure the integrity and accuracy of the second target audio signal, which helps the subsequent playback effect meet expectations.
[0110] In some optional application scenarios, such as Figure 6 The wireless microphone 400 shown in the figure includes a transmitter 410 and a receiver 420, and the corresponding execution functions thereof are as follows:
[0111] The transmitter 410 is used to receive an original audio signal; based on multiple target gains, perform gain conversion processing on the original audio signal to obtain multiple digital audio signals corresponding to the original audio signal; determine a first target audio signal to be encoded from the multiple digital audio signals; encode the first target audio signal to obtain a target encoded signal, and send the target encoded signal and the corresponding target gain, the digital audio signal corresponds to the target gain one by one, and the amplitude representation value is used to represent the signal strength of the corresponding data audio signal;
[0112] The receiver 420 is configured to receive the target coded signal and the corresponding target gain sent by the transmitter 410; and decode the target coded signal, and obtain a second target audio signal for audio playback based on the target gain.
[0113] Regarding the audio signal processing device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0114] In some optional application scenarios, such as Figure 5 As shown, the transmitter 410 may include: a sound receiver 411, multiple programmable gain amplifiers 412, multiple analog-to-digital converters 413, a signal selector 414, an audio compression encoder 415, and a first wireless module 416. The receiver 420 may include: a second wireless module 421, an audio decoder 422, and a signal conditioning module 423.
[0115] Among them, the sound receiver 411 is used to receive the original audio signal. Multiple programmable gain amplifiers 412 are respectively located downstream of the sound receiver 411, and the programmable gain amplifiers 412 are used to provide corresponding target gains to amplify the original audio signal according to the corresponding target gains. The analog-to-digital converter 413 corresponds to the programmable gain amplifier 412 one by one and is located downstream of the programmable gain amplifier 412. The analog-to-digital converter 413 is used to perform gain conversion processing on the original audio signal based on the target gain to obtain a digital audio signal corresponding to the original audio signal. The signal selector 414 is used to determine the first target audio signal from the multiple digital audio signals, and send the first target audio signal to the audio compression encoder 415. The audio compression encoder 415 is used to encode the first target audio signal to obtain a target encoded signal. The first wireless module 416 is used to send the target encoded signal and the corresponding target gain to the second wireless module 421. The second wireless module 421 is used to send the target encoded signal and the target gain to the audio decoder 422. The audio decoder 422 is used to decode the target encoded signal to obtain a decoding result. The signal adjustment module 423 is used to perform normalization processing on the decoding result according to the target gain to obtain a second target audio signal for audio playback.
[0116] The audio compression encoder 415 can be a general audio encoder, for example, it can be a Spectral Band Replication (SBC) encoder, an Advanced Audio Coding (AAC) encoder, a Low Complexity AAC (Lc3) encoder or an Opus Audio Codec. The specific audio compression encoder used can be determined according to actual needs.
[0117] The first wireless module 416 corresponds to the second wireless module 421 , and may be a Bluetooth module, a WIFI module, or a Bluetooth Low Energy (BLE) module.
[0118] In some examples, the number of transmitters 410 is at least one. If the number of transmitters 410 is multiple, the number of transmitters 410 may be 2, 3, 4, or 8, etc.
[0119] Through Figure 5 The process of audio playback using the wireless microphone shown can be as follows:
[0120] In the transmitter 410, the original audio signal is received by the sound receiver 411. The sound receiver 411 transmits the original audio signal to the corresponding analog-to-digital converter 413 through multiple programmable gain amplifiers 412, and the analog-to-digital converter 413 performs gain conversion processing on the original audio signal according to the corresponding target gain to obtain the corresponding digital audio signal. Multiple analog-to-digital converters 413 send the digital audio signals output by each to the signal selector 414. The signal selector 414 performs downsampling processing on each digital audio signal respectively, determines the intermediate audio signal with a frame sampling rate of a specified sampling rate, and then determines the signal amplitude change of the intermediate audio signal in the same frame based on the specified sampling rate, and obtains the amplitude representation value of each digital audio signal. The signal selector 414 is used to determine the first sorting result of sorting multiple target gains in a specified order. After determining the amplitude characterization value of each digital audio signal, the signal selector 414 sorts the amplitude characterization values of the multiple digital audio signals in the order of corresponding target gains according to the first sorting result to obtain a second sorting result; and according to the second sorting result, the maximum amplitude characterization value less than the target threshold value among the multiple amplitude characterization values is used as the target amplitude characterization value, and the digital audio signal corresponding to the target amplitude characterization value is determined to be the first target audio signal to be encoded. The signal selector 414 sends the selected first target audio signal to the audio compression encoder 415. The first target audio signal is encoded by the audio compression encoder 415 to obtain a target encoded signal. The first wireless module 416 is used to send the target encoded signal and the corresponding target gain to the second wireless module 421 of the receiver 420.
[0121] In the receiver 420, the second wireless module 421 sends the target coded signal and the target gain to the audio decoder 422. The target coded signal is decoded by the audio decoder 422 to obtain a decoding result. The decoding result is normalized according to the target gain by the signal adjustment module 423 to obtain a second target audio signal for audio playback. Through the audio player 424.
[0122] By the audio signal processing method provided by the present disclosure, if the word length of the audio compression encoder is N1 bits, that is, the audio signal with a word length of N1 bits is compressed and encoded, then the word length of the adjusted second target audio signal in the receiver 420 can be N2 bits; N2 is greater than N1, and N2 is greater than 24 bits. For example. For SBC, AAC, Lc3 or opus encoders, the word length is 16 bits or 24 bits. By the audio signal processing method provided by the present disclosure, the word length corresponding to the dynamic range of the microphone input can be greater than 24 bits, and can be 28 bits, 32 bits, etc., or even longer. For a very small original audio signal, a programmable gain amplifier with a larger target gain can be selected, such as 30db, 40db, 50db, etc. On the receiver 420 side, the target audio signal obtained after normalization can have a word length of 28 bits, 32 bits, etc., or even longer. That is, through the audio signal processing method provided by the present disclosure, when the audio codec word length is small (such as 24 bits), the receiver 420 can obtain a target audio signal with a word length of 30 bits, 32 bits or longer. This greatly improves the audio signal performance of the wireless microphone.
[0123] In summary, the audio signal processing method provided by the present invention can not only overcome the dynamic range limitation of the analog-to-digital converter, but also overcome the insufficient dynamic range of the original audio signal collected by the wireless microphone (i.e., the wireless MIC receiving device, i.e., the receiver 420, and the final audio signal) due to the limited word length of the audio encoder and decoder, thereby not only improving the audio restoration quality, but also effectively improving the overall performance of the wireless microphone.
[0124] Based on the same inventive concept, the present disclosure also provides an audio signal processing device, which is applied to a transmitter of a wireless microphone. Figure 7 As shown, the audio signal processing device 500 includes:
[0125] A first receiving module 510, configured to receive an original audio signal;
[0126] A first processing module 520 is used to perform gain conversion processing on the original audio signal based on multiple target gains to obtain multiple digital audio signals corresponding to the original audio signal, and the digital audio signals correspond to the target gains one by one;
[0127] A screening module 530, configured to determine a first target audio signal to be encoded from a plurality of digital audio signals;
[0128] The encoding module 540 is used to encode the first target audio signal to obtain a target encoded signal;
[0129] The sending module 550 is used to send the target coded signal and the corresponding target gain so that the target coded signal can be decoded by the receiver of the wireless microphone and a second target audio signal for audio playback can be obtained based on the target gain.
[0130] In some embodiments, the screening module 530 includes: a first determination unit, used to determine the amplitude representation value of each digital audio signal respectively, and the amplitude representation value is used to represent the signal strength of the corresponding data audio signal; a second determination unit, used to determine a first sorting result in which multiple target gains are sorted in a specified order; a first processing unit, used to sort the amplitude representation values of multiple digital audio signals in the order of corresponding target gains according to the first sorting result, to obtain a second sorting result; a second processing unit, used to take the maximum amplitude representation value of the multiple amplitude representation values that is less than the target threshold as the target amplitude representation value according to the second sorting result, and determine that the digital audio signal corresponding to the target amplitude representation value is the first target audio signal to be encoded.
[0131] In some embodiments, the screening module 530 also includes: a third determination unit, used to determine a first sorting result of the multiple target gains in a specified order; a signal screening unit, used to determine the amplitude representation value of the digital audio signal corresponding to each target gain in turn according to the first sorting result; a third processing unit, used to determine the current digital audio signal as the first target audio signal to be encoded in response to the amplitude representation value of the current digital audio signal being less than the target threshold and the difference between the amplitude representation value and the target threshold being the smallest.
[0132] In some embodiments, the first determination unit includes: a first execution unit, used to downsample the digital audio signal to determine an intermediate audio signal with a frame sampling rate of a specified sampling rate; a second execution unit, used to determine the signal amplitude change of the intermediate audio signal in the same frame based on the specified sampling rate, and obtain the amplitude representation value of the digital audio signal.
[0133] In some embodiments, the transmitter includes multiple programmable gain amplifiers and multiple analog-to-digital converters, the analog-to-digital converters correspond to the programmable gain amplifiers, and the analog-to-digital converters are arranged downstream of the programmable gain amplifiers; the first processing module 520 includes: a fourth processing unit, used to process the original audio signal according to the corresponding target gain through the programmable gain amplifier to obtain a gain result; a fifth processing unit, used to perform analog-to-digital conversion on the gain result through the analog-to-digital converter corresponding to the programmable gain amplifier to obtain a digital audio signal corresponding to the original audio signal.
[0134] In some embodiments, multiple analog-to-digital converters are calibrated by the following devices: a first acquisition module, used to acquire a first standard audio signal; a first execution module, used to input the first standard audio signal into multiple analog-to-digital converters respectively to obtain multiple first test audio signals; a first correction module, used to calibrate multiple analog-to-digital converters based on the DC components of the multiple first test audio signals so that the DC components of the corresponding outputs of the corrected multiple analog-to-digital converters are consistent.
[0135] In some embodiments, the target gain corresponding to the programmable gain amplifier is determined by the following devices: a second acquisition module, used to acquire a second standard audio signal; a second execution module, used to perform gain conversion processing on the second standard audio signal according to the initial gain corresponding to the programmable gain amplifier through an analog-to-digital converter to obtain a second test audio signal; a second correction module, used to adjust the initial gain based on the second test audio signal to obtain the target gain corresponding to the programmable gain amplifier.
[0136] Regarding the audio signal processing device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0137] Based on the same inventive concept, the present disclosure also provides an audio signal processing device, which is applied to a receiver of a wireless microphone. Figure 8 As shown, the audio signal processing device 600 includes:
[0138] A second receiving module 610 is used to receive a target coding signal and a corresponding target gain sent by a transmitter of a wireless microphone, where the target coding signal and the target gain are determined by the transmitter using the audio signal processing method of any of the aforementioned embodiments;
[0139] The decoding module 620 is used to decode the target coded signal and obtain a second target audio signal for audio playback based on the target gain.
[0140] In some embodiments, the decoding module 620 includes: a sixth processing unit, used to decode the target encoded signal to obtain a decoding result; and a seventh processing unit, used to normalize the decoding result according to the target gain to obtain a second target audio signal for audio playback.
[0141] Regarding the audio signal processing device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0142] Based on the same inventive concept, the present disclosure further provides a computer-readable storage medium, which stores the following program, and the program is used to execute the audio signal processing method of any of the aforementioned embodiments.
[0143] The present application uses specific words to describe the embodiments of the present application. For example, "one embodiment", "an embodiment", and / or "some embodiments" refer to a certain feature, structure or characteristic related to at least one embodiment of the present application. Therefore, it should be emphasized and noted that "one embodiment" or "an embodiment" or "an alternative embodiment" mentioned twice or multiple times in different positions in this specification does not necessarily refer to the same embodiment. In addition, some features, structures or characteristics in one or more embodiments of the present application can be appropriately combined.
[0144] In the context of this application, unless the context clearly indicates an exception, the words "a", "an", "a kind" and / or "the" do not refer to the singular, but may also include the plural. Generally speaking, the terms "include" and "comprise" only indicate the inclusion of the steps and elements that have been clearly identified, and these steps and elements do not constitute an exclusive list, and the method or device may also include other steps or elements.
[0145] Similarly, it should be noted that in order to simplify the description of the disclosure of this application and thus help understand one or more application embodiments, in the above description of the embodiments of this application, multiple features are sometimes merged into one embodiment, figure or description thereof. However, this disclosure method does not mean that the features required by the object of this application are more than the features mentioned in the claims. In fact, the features of the embodiments are less than all the features of the single embodiment disclosed above.
[0146] The basic concepts have been described above. Obviously, for those skilled in the art, the above disclosure is only for example and does not constitute a limitation of the present application. Although not explicitly stated herein, those skilled in the art may make various modifications, improvements and amendments to the present application. Such modifications, improvements and amendments are suggested in the present application, so such modifications, improvements and amendments still belong to the spirit and scope of the embodiments of the present application.
Claims
1. An audio signal processing method, applied to a transmitter of a wireless microphone, the method comprising: receiving an original audio signal; Based on multiple target gains, the original audio signal is subjected to gain conversion processing to obtain multiple digital audio signals corresponding to the original audio signal, wherein the digital audio signals correspond to the target gains one by one; Determining a first target audio signal to be encoded from the plurality of digital audio signals; Performing encoding processing on the first target audio signal to obtain a target encoded signal; The target coded signal and the corresponding target gain are sent so that the target coded signal can be decoded by a receiver of the wireless microphone, and a second target audio signal for audio playback can be obtained based on the target gain.
2. The audio signal processing method according to claim 1, wherein: The step of determining a first target audio signal to be encoded from the plurality of digital audio signals comprises: Determine an amplitude representation value of each digital audio signal respectively, wherein the amplitude representation value is used to represent the signal strength of the corresponding digital audio signal; Determine a first sorting result of sorting the plurality of target gains in a specified order; According to the first sorting result, the amplitude representation values of the plurality of digital audio signals are sorted in an order corresponding to the target gains to obtain a second sorting result; According to the second sorting result, a maximum amplitude representation value that is less than a target threshold value among the multiple amplitude representation values is taken as a target amplitude representation value, and the digital audio signal corresponding to the target amplitude representation value is determined as a first target audio signal to be encoded.
3. The audio signal processing method according to claim 1, wherein: The step of determining a first target audio signal to be encoded from the plurality of digital audio signals comprises: Determine a first sorting result of sorting the plurality of target gains in a specified order; According to the first sorting result, determining in sequence the amplitude representation value of the digital audio signal corresponding to each target gain; In response to the amplitude representation value of the current digital audio signal being smaller than the target threshold and having a minimum difference with the target threshold, the current digital audio signal is determined to be the first target audio signal to be encoded.
4. The audio signal processing method according to claim 2 or 3, wherein: The process of determining the amplitude characterization value of the digital audio signal is as follows: Down-sampling the digital audio signal to determine an intermediate audio signal with a frame sampling rate of a specified sampling rate; Based on the specified sampling rate, the signal amplitude of the intermediate audio signal in the same frame is determined to obtain an amplitude representation value of the digital audio signal.
5. The audio signal processing method according to claim 1, wherein: The transmitter includes a plurality of programmable gain amplifiers and a plurality of analog-to-digital converters, the analog-to-digital converters correspond to the programmable gain amplifiers, and the analog-to-digital converters are arranged downstream of the programmable gain amplifiers; the gain conversion processing is performed on the original audio signal based on the plurality of target gains to obtain a plurality of digital audio signals corresponding to the original audio signal, including: Processing the original audio signal according to the corresponding target gain through the programmable gain amplifier to obtain a gain result; The gain result is subjected to analog-to-digital conversion processing by the analog-to-digital converter corresponding to the programmable gain amplifier to obtain a digital audio signal corresponding to the original audio signal.
6. The audio signal processing method according to claim 5, wherein: The multiple analog-to-digital converters are calibrated by the following process: Acquiring a first standard audio signal; Inputting the first standard audio signal into the multiple analog-to-digital converters respectively to obtain multiple first test audio signals; Based on the DC components of the multiple first test audio signals, the multiple analog-to-digital converters are calibrated so that the DC components of the corresponding outputs of the multiple analog-to-digital converters after correction are consistent.
7. The audio signal processing method according to claim 5, wherein: The target gain corresponding to the programmable gain amplifier is determined by the following process: Acquiring a second standard audio signal; Performing gain processing on the second standard audio signal according to an initial gain corresponding to the programmable gain amplifier to obtain an intermediate audio signal; Performing analog-to-digital conversion processing on the intermediate audio signal by the analog-to-digital converter to obtain a second test audio signal; Based on the second test audio signal, the initial gain is adjusted to obtain a target gain corresponding to the programmable gain amplifier.
8. An audio signal processing method, applied to a receiver of a wireless microphone, the method comprising: Receiving a target coding signal and a corresponding target gain sent by a transmitter of the wireless microphone, wherein the target coding signal and the target gain are determined by the transmitter using the audio signal processing method according to any one of claims 1 to 7; The target coded signal is decoded, and a second target audio signal for audio playback is obtained based on the target gain.
9. The audio signal processing method according to claim 8, wherein: The decoding of the target coded signal and obtaining a decoding result based on the target gain includes: Decoding the target coded signal to obtain a decoding result; The decoding result is normalized according to the target gain to obtain the second target audio signal.
10. An audio signal processing device, applied to a transmitter of a wireless microphone, the device comprising: A first receiving module, used for receiving an original audio signal; A first processing module, configured to perform gain conversion processing on the original audio signal based on multiple target gains to obtain multiple digital audio signals corresponding to the original audio signal, wherein the digital audio signals correspond to the target gains one by one; A screening module, used for determining a first target audio signal to be encoded from the plurality of digital audio signals; An encoding module, used for encoding the first target audio signal to obtain a target encoded signal; The sending module is used to send the target coded signal and the corresponding target gain, so that the target coded signal can be decoded by the receiver of the wireless microphone, and a second target audio signal for audio playback can be obtained based on the target gain.
11. An audio signal processing device, applied to a receiver of a wireless microphone, the device comprising: A second receiving module, configured to receive a target coding signal and a corresponding target gain sent by a transmitter of the wireless microphone, wherein the target coding signal and the target gain are determined by the transmitter using the audio signal processing method according to any one of claims 1 to 7; A decoding module is used to decode the target coded signal and obtain a second target audio signal for audio playback based on the target gain.
12. A wireless microphone, comprising: Transmitters and receivers; The transmitter is used to receive the original audio signal; Based on multiple target gains, the original audio signal is subjected to gain conversion processing to obtain multiple digital audio signals corresponding to the original audio signal; from the multiple digital audio signals, a first target audio signal to be encoded is determined; the first target audio signal is subjected to encoding processing to obtain a target encoded signal, and the target encoded signal and the corresponding target gain are sent, and the digital audio signal corresponds to the target gain one by one; The receiver is used to receive the target coded signal and the corresponding target gain sent by the transmitter; and decode the target coded signal, and obtain a second target audio signal for audio playback based on the target gain.
13. A computer-readable storage medium storing the following program, wherein the program is used to execute the audio signal processing method according to any one of claims 1 to 7 or the audio signal processing method according to any one of claims 8 to 9.