Audio processing method, electronic device, storage medium, and program product
By employing differentiated filtering processing on audio signals of different frequency bands, the shortcomings of the existing technology's uniform filtering strategy across the entire frequency band are addressed, achieving more efficient and accurate audio signal processing and improving the accuracy and stability of sound image localization.
Patent Information
- Application Number
- CN202680002161.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-06-30
- Publication Date
- 2026-11-20
AI Technical Summary
Existing technologies fail to effectively utilize psychoacoustic characteristics when acquiring spatial audio signals, resulting in the use of a uniform filtering strategy for audio signals across the entire frequency band. This fails to meet the differentiated processing needs of different frequency bands, affecting the flexibility and efficiency of audio processing.
Different filters are used to process different frequency bands. Based on psychoacoustic characteristics, the sound signal is divided into phase-dominant, amplitude-dominant, and transition frequency bands, and delays, delays and amplitude or amplitude constraints are applied respectively to ensure that the filtering process conforms to the natural perception habits of the human ear.
It improves the flexibility and efficiency of audio processing, ensures subjective sound image quality, reduces overall filtering complexity, avoids matrix ill-conditioning and solution divergence problems, and enhances the accuracy and stability of sound image localization.
Smart Images

Figure CN123146985A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of communication technology, and in particular to audio processing methods, electronic devices, storage media, and program products. Background Technology
[0002] Electronic devices can use multiple microphones to collect spatial audio signals and generate stereo output with a sense of space through filtering. Traditional acquisition methods generally use a uniform filtering strategy for audio signals across the entire frequency band. Summary of the Invention
[0003] This disclosure presents an audio processing method, an electronic device, a storage medium, and a program product.
[0004] According to a first aspect of the present disclosure, an audio processing method is provided, executed by an electronic device, the method comprising:
[0005] Acquire a first sound signal, the first sound signal including multiple frequency bands, the first sound signal including audio signals collected by multiple microphones;
[0006] Different filters are used to process different frequency bands of the first sound signal to obtain the second sound signal.
[0007] According to a second aspect of the present disclosure, an electronic device is provided, which may include at least one of a transceiver module and a processing module; wherein the electronic device may be used to perform an optional implementation of the first aspect.
[0008] According to a third aspect of the present disclosure, an electronic device is provided that can be used to perform the method described in an optional implementation of the first aspect.
[0009] According to a fourth aspect of the embodiments of this disclosure, an electronic device is provided, comprising:
[0010] One or more processors;
[0011] The electronic device can be used to perform the method described in the optional implementation of the first aspect.
[0012] According to a fifth aspect of the present disclosure, a storage medium is provided that stores instructions which, when executed on an electronic device, cause the electronic device to perform the method as described in an optional implementation of the first aspect.
[0013] According to a sixth aspect of the present disclosure, a program product is provided, including at least one of a program and instructions, wherein the program and instructions, when executed by an electronic device, implement the method described in the optional implementation of the first aspect.
[0014] The technical solution provided in this disclosure can produce the following beneficial effects: Electronic devices can obtain a second sound signal by processing different frequency bands of a sound signal containing multiple frequency bands using different filters. This ensures that different frequency bands can adopt differentiated filtering strategies according to their respective characteristics, rather than using a uniform filtering process for all frequency bands. This reduces the overall filtering complexity and improves the flexibility and efficiency of the algorithm processing while ensuring subjective sound and image quality.
[0015] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0016] To more clearly illustrate the technical solutions in the embodiments of this disclosure, the accompanying drawings required for the description of the embodiments are introduced below. The following drawings are only some embodiments of this disclosure and do not impose specific limitations on the protection scope of this disclosure.
[0017] Figure 1 This is a schematic flowchart illustrating an audio processing method according to an embodiment of the present disclosure.
[0018] Figure 2 This is a schematic flowchart illustrating an audio processing method according to an embodiment of the present disclosure.
[0019] Figure 3 This is a schematic flowchart illustrating an audio processing method according to an embodiment of the present disclosure.
[0020] Figure 4 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure.
[0021] Figure 5 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure.
[0022] Figure 6 This is a schematic diagram of the chip structure proposed according to an embodiment of the present disclosure. Detailed Implementation
[0023] This disclosure presents an audio processing method, an electronic device, a storage medium, and a program product.
[0024] In a first aspect, embodiments of this disclosure provide an audio processing method executed by an electronic device, the method comprising:
[0025] Acquire a first sound signal, the first sound signal including multiple frequency bands, the first sound signal including audio signals collected by multiple microphones;
[0026] Different filters are used to process different frequency bands of the first sound signal to obtain the second sound signal.
[0027] In the above embodiments, the electronic device can obtain a second sound signal by processing different frequency bands of a sound signal containing multiple frequency bands using different filters. This ensures that different frequency bands can adopt differentiated filtering strategies according to their respective characteristics, rather than applying a uniform filtering process to all frequency bands. This reduces the overall filtering complexity and improves the flexibility and efficiency of the algorithm processing while ensuring subjective sound image quality.
[0028] In conjunction with some embodiments of the first aspect, in some embodiments, the plurality of frequency bands includes at least one of the following:
[0029] In the first frequency band, the human ear is more sensitive to channel time difference than to channel amplitude difference, and the difference between the sensitivity to channel time difference and the sensitivity to channel amplitude difference is greater than or equal to a first threshold.
[0030] In the second frequency band, the difference between the human ear's sensitivity to channel time difference and its sensitivity to channel amplitude difference is less than or equal to a second threshold.
[0031] In the third frequency band, the human ear is less sensitive to channel time difference than to channel amplitude difference, and the difference between the sensitivity to channel time difference and the sensitivity to channel amplitude difference is greater than or equal to a third threshold.
[0032] In the above embodiments, based on psychoacoustic characteristics, the sound signal is divided into a phase-dominated first frequency band, an amplitude-dominated third frequency band, and a second frequency band in between. This ensures that the frequency band division is based on the actual perceptual characteristics of the human ear, making subsequent filtering processing more consistent with the natural perceptual habits of the human ear, thereby improving the subjective positioning accuracy of the output stereo sound and making the sound image positioning more accurate and stable.
[0033] In conjunction with some embodiments of the first aspect, in some embodiments, different filters include at least one of the following:
[0034] A first filter, wherein the first filter is used to apply a first constraint to the delay of the audio signal;
[0035] The second filter is used to apply a second constraint on the delay and amplitude of the audio signal;
[0036] A third filter is used to apply a third constraint to the amplitude of the audio signal.
[0037] In the above embodiments, the electronic device can constrain only the delay of the sound signal through the first filter, or only the amplitude of the sound signal through the third filter, or constrain both the delay and amplitude of the sound signal through the second filter. This allows the electronic device to select the appropriate type of filter for different processing needs, improving the flexibility and selectivity of filtering processing.
[0038] In conjunction with some embodiments of the first aspect, in some embodiments, processing different frequency bands of the first audio signal using different filters includes at least one of the following:
[0039] The first filter is used to process the first frequency band of the first sound signal to obtain a first filtered signal, and the second sound signal includes the first filtered signal;
[0040] The second filter is used to process the sound signal in the second frequency band to obtain a second filtered signal, wherein the second sound signal includes the second filtered signal;
[0041] The third filter is used to process the audio signal in the third frequency band to obtain a third filtered signal, and the second audio signal includes the third filtered signal.
[0042] In the above embodiments, the electronic device can use different types of filters to process audio signals of different frequency bands separately, and can combine the filtering results of each frequency band to obtain a second audio signal. This reliably achieves differentiated filtering processing across frequency bands, improving the precision of audio processing and the quality of the output signal.
[0043] In conjunction with some embodiments of the first aspect, in some embodiments, processing different frequency bands of the first sound signal using different filters to obtain the second sound signal includes:
[0044] The first filter is used to process the sound signal in the first frequency band to obtain the first filtered signal;
[0045] The first filter is used to apply a first constraint to the delay of the sound signal, and the second sound signal includes the first filtered signal.
[0046] In the above embodiments, the electronic device can use a first filter to process the audio signal in the first frequency band, imposing constraints only on the delay. This ensures that the primary objective in the phase-dominant frequency band is to meet the design specifications in terms of phase response, without imposing corresponding constraints on amplitude. This guarantees the accuracy of sound image localization while avoiding ill-conditioned constraint matrices and solution divergence problems caused by over-optimizing unnecessary objectives, significantly improving the robustness of the algorithm in this critical frequency band.
[0047] In conjunction with some embodiments of the first aspect, in some embodiments, the first constraint includes:
[0048] When the first angle is less than 0 degrees, the delay of the first channel in the audio signal is constrained to be less than the delay of the second channel;
[0049] When the first angle is equal to 0 degrees, the delay of the first channel in the audio signal is constrained to be equal to the delay of the second channel;
[0050] When the first angle is greater than 0 degrees, the delay of the first channel in the audio signal is constrained to be greater than the delay of the second channel;
[0051] Wherein, the first angle is the angle of the sound source relative to the reference direction, the angle of the direction corresponding to the first channel relative to the reference direction is less than 0 degrees, and the angle of the direction corresponding to the second channel relative to the reference direction is greater than 0 degrees.
[0052] In the above embodiments, the electronic device can apply constraints corresponding to the sound source position to the delay of the left and right channels of the first frequency band based on the angle of the sound source relative to the reference direction. This ensures that the delay constraints match the actual spatial position of the sound source, making the filtered sound image position consistent with the original sound source position, thus improving the accuracy and stability of sound image localization in the phase-dominant frequency band.
[0053] In conjunction with some embodiments of the first aspect, in some embodiments,
[0054] The process of processing different frequency bands of the first sound signal using different filters to obtain the second sound signal includes:
[0055] The second filter is used to process the audio signal in the second frequency band to obtain the second filtered signal;
[0056] The second filter is used to apply a second constraint on the delay and amplitude of the sound signal, and the second sound signal includes the second filtered signal.
[0057] In the above embodiments, the electronic device can use a second filter to process the audio signal in the transition frequency band, while imposing constraints on delay and amplitude. This ensures that both amplitude and phase parameters are considered in the transition frequency band, so that the filtering process simultaneously meets the human ear's perceptual needs for time and amplitude differences within this frequency band, thus guaranteeing the overall quality of sound image localization in the transition frequency band.
[0058] In conjunction with some embodiments of the first aspect, in some embodiments, the second constraint includes:
[0059] When the first angle is less than 0 degrees, the delay of the first channel in the audio signal is constrained to be less than the delay of the second channel, and the amplitude of the first channel is constrained to be greater than the amplitude of the second channel.
[0060] When the first angle is equal to 0 degrees, the delay of the first channel in the audio signal is constrained to be equal to the delay of the second channel, and the amplitude of the first channel is constrained to be equal to the amplitude of the second channel.
[0061] When the first angle is greater than 0 degrees, the delay of the first channel in the audio signal is constrained to be greater than the delay of the second channel, and the amplitude of the first channel is constrained to be less than the amplitude of the second channel.
[0062] Wherein, the first angle is the angle of the sound source relative to the reference direction, the angle of the direction corresponding to the first channel relative to the reference direction is less than 0 degrees, and the angle of the direction corresponding to the second channel relative to the reference direction is greater than 0 degrees.
[0063] In the above embodiments, the electronic device can simultaneously apply delay and amplitude constraints to the left and right channels of the second frequency band according to the angle of the sound source relative to the reference direction, and the directions of the delay and amplitude constraints correspond to the sound source position. This ensures that the amplitude and phase constraints of the transition frequency band are coordinated and matched with the spatial position of the sound source, so that the filtered sound image position accurately reflects the original sound source position, improving the consistency and accuracy of sound image localization in the transition frequency band.
[0064] In conjunction with some embodiments of the first aspect, in some embodiments, processing different frequency bands of the first sound signal using different filters to obtain the second sound signal includes:
[0065] The third filter is used to process the audio signal in the third frequency band to obtain the third filtered signal;
[0066] The third filter is used to apply a third constraint to the amplitude of the sound signal, and the second sound signal includes the third filtered signal.
[0067] In the above embodiments, the electronic device can use a third filter to process the audio signal in the third frequency band, imposing constraints only on the amplitude. This ensures that the amplitude response meets the design specifications as the primary goal in the amplitude-dominant frequency band, while relaxing the constraints on the phase response. Since the phase information measurement in the amplitude-dominant frequency band has high noise and is not sensitive to sound images, reducing the phase constraints in this frequency band not only ensures the accuracy of sound image localization but also avoids problems such as matrix ill-conditioning and solution divergence, thus improving the robustness of the algorithm.
[0068] In conjunction with some embodiments of the first aspect, in some embodiments, the third constraint includes:
[0069] When the first angle is less than 0 degrees, the amplitude of the first channel in the sound signal is constrained to be less than the amplitude of the second channel;
[0070] When the first angle is equal to 0 degrees, the amplitude of the first channel in the sound signal is constrained to be equal to the amplitude of the second channel;
[0071] When the first angle is greater than 0 degrees, the amplitude of the first channel in the sound signal is constrained to be greater than the amplitude of the second channel.
[0072] Wherein, the first angle is the angle of the sound source relative to the reference direction, the angle of the direction corresponding to the first channel relative to the reference direction is less than 0 degrees, and the angle of the direction corresponding to the second channel relative to the reference direction is greater than 0 degrees.
[0073] In the above embodiments, the electronic device can apply constraints corresponding to the sound source position to the amplitudes of the left and right channels of the third frequency band based on the angle of the sound source relative to the reference direction. This ensures that the amplitude constraints match the actual spatial position of the sound source, making the filtered sound image position consistent with the original sound source position. Simultaneously, by constraining only the amplitude and relaxing the phase constraints, the matrix ill-conditioning problem caused by phase measurement noise in the amplitude-dominant frequency band is avoided, thus improving the numerical stability of the algorithm while ensuring the accuracy of sound image localization.
[0074] In a second aspect, embodiments of this disclosure provide an electronic device that may include at least one of a transceiver module and a processing module; wherein the electronic device may be used to execute an optional implementation of the first aspect.
[0075] Thirdly, embodiments of this disclosure provide an electronic device that may include one or more processors; wherein the electronic device may be used to perform an optional implementation of the first aspect.
[0076] Fourthly, embodiments of this disclosure provide a storage medium storing instructions that, when executed on an electronic device, cause the electronic device to perform the method described in the optional implementation of the first aspect.
[0077] Fifthly, embodiments of this disclosure provide a program product that, when executed by an electronic device, causes the electronic device to perform the method described in the optional implementation of the first aspect.
[0078] In a sixth aspect, embodiments of this disclosure provide a computer program that, when run on a computer, causes the computer to perform the method as described in the alternative implementation of the first aspect.
[0079] In a seventh aspect, embodiments of this disclosure provide a chip or chip system. The chip or chip system includes processing circuitry configured to perform the methods described in the alternative implementations of the first aspect.
[0080] It is understood that the aforementioned audio processing methods, electronic devices, storage media, and program products are all used to execute the methods proposed in the embodiments of this disclosure. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects in the corresponding methods, and will not be repeated here.
[0081] This disclosure provides audio processing methods, electronic devices, storage media, and program products. In some embodiments, the terms audio processing method, communication method, information processing method, and information transmission method may be used interchangeably.
[0082] This disclosure is not exhaustive, but merely illustrative of some embodiments, and is not intended to limit the scope of protection of this disclosure. Unless otherwise specified, each step in a particular embodiment can be implemented as an independent embodiment, and the steps can be arbitrarily combined. For example, a solution after removing some steps in a particular embodiment can also be implemented as an independent embodiment, and the order of the steps in a particular embodiment can be arbitrarily interchanged. Furthermore, the optional implementation methods in a particular embodiment can be arbitrarily combined; moreover, the embodiments can be arbitrarily combined, for example, some or all steps of different embodiments can be arbitrarily combined, and a particular embodiment can be arbitrarily combined with the optional implementation methods of other embodiments. In all embodiments of this disclosure, unless otherwise specified or logically conflicting, the terminology and / or descriptions between the embodiments are consistent and can be mutually referenced. Technical features in different embodiments can be combined to form new embodiments based on their inherent logical relationships.
[0083] The terminology used in the embodiments of this disclosure is for the purpose of describing particular embodiments only and is not intended to limit the scope of this disclosure.
[0084] In this embodiment of the disclosure, unless otherwise stated, elements expressed in the singular form, such as "a," "an," "the," "the," "the," "the," "the," "the," "this," etc., can mean "one and only one," or "one or more," "at least one," etc. For example, when using articles such as "a," "an," "the," etc. in translation, the noun following the article can be understood as either a singular expression or a plural expression.
[0085] In the embodiments of this disclosure, "multiple" refers to two or more.
[0086] In some embodiments, the terms “at least one of A or B, at least one of A and B”, “one or more”, “a plurality of”, “multiple”, etc., may be used interchangeably.
[0087] In some embodiments, the notation "at least one of A and B", "A and / or B", "A in one case, B in another", "in response to one case A, in response to another case B", etc., may include the following technical solutions depending on the situation: in some embodiments, A (execute A regardless of whether there is a branch B); in some embodiments, B (execute B regardless of whether there is a branch A); in some embodiments, execution is selected from A and B (A and B are selectively executed); in some embodiments, both A and B are executed. The same applies when there are more branches such as A, B, C, etc.
[0088] In some embodiments, the notation "A or B" may include the following technical solutions, depending on the situation: in some embodiments, A (execute A regardless of whether a branch B exists); in some embodiments, B (execute B regardless of whether a branch A exists); in some embodiments, execution is selected from A and B (A and B are selectively executed). The same applies when there are more branches such as A, B, and C.
[0089] The prefixes "first," "second," etc., used in the embodiments of this disclosure are merely for distinguishing different descriptive objects and do not impose restrictions on the position, order, priority, quantity, or content of the descriptive objects. The description of the descriptive objects is found in the claims or the context of the embodiments, and the use of prefixes should not constitute unnecessary restrictions. For example, if the descriptive object is a "field," the ordinal numbers preceding "field" in "first field" and "second field" do not restrict the position or order of the "fields." "First" and "second" do not restrict whether the "fields" they modify are in the same message, nor do they restrict the order of "first field" and "second field." Similarly, if the descriptive object is a "level," the ordinal numbers preceding "level" in "first level" and "second level" do not restrict the priority between "levels." Furthermore, the number of descriptive objects is not limited by ordinal numbers and can be one or more. For example, in "first device," the number of "devices" can be one or more. Furthermore, the objects modified by different prefixes can be the same or different. For example, if the object being described is "device", then "first device" and "second device" can be the same device or different devices, and their types can be the same or different. Similarly, if the object being described is "information", then "first information" and "second information" can be the same information or different information, and their content can be the same or different.
[0090] In some embodiments, “including A,” “containing A,” “for indicating A,” and “carrying A” can be interpreted as directly carrying A or indirectly indicating A.
[0091] In some embodiments, terms such as "time / frequency" and "time-frequency domain" refer to the time domain and / or frequency domain.
[0092] In some embodiments, terms such as “in response to…”, “in response to determining…”, “in the case of…”, “when…”, “when…”, “if…”, etc. can be used interchangeably. These descriptions all refer to the device making a corresponding action under certain objective circumstances. They do not necessarily limit the time, nor do they require the device to make a judgment action when implementing it, nor do they mean that there must be other limitations.
[0093] In some embodiments, the terms “greater than,” “greater than or equal to,” “not less than,” “more than,” “more than or equal to,” “not less than,” “higher than,” “higher than or equal to,” “not lower than,” and “above” can be used interchangeably, as can the terms “less than,” “less than or equal to,” “not greater than,” “less than,” “less than or equal to,” “not more than,” “lower than,” “lower than or equal to,” “not higher than,” and “below”.
[0094] In some embodiments, devices, etc., may be interpreted as physical or virtual, and their names are not limited to those described in the embodiments. Terms such as “device,” “equipment,” “circuit,” “network element,” “network function,” “network device,” “function,” “node,” “unit,” “section,” “system,” “network,” “chip,” “chip system,” “entity,” and “subject” are interchangeable.
[0095] In some embodiments, the acquisition of data, information, etc., may comply with the laws and regulations of the country where the location is situated.
[0096] In some embodiments, data, information, etc., may be obtained with the user's consent.
[0097] Furthermore, each element, each row, or each column in the table of this disclosure can be implemented as an independent embodiment, and any combination of any element, any row, or any column can also be implemented as an independent embodiment.
[0098] In some embodiments, the audio processing method disclosed herein is applied to an electronic device.
[0099] In some embodiments, the electronic device may be a terminal. Terminals include, but are not limited to, at least one of the following: mobile phones, wearable devices with audio processing capabilities, Internet of Things (IoT) devices, automobiles, smart cars, tablets, computers with wireless transceiver capabilities, virtual reality (VR) terminal devices, augmented reality (AR) terminal devices, wireless terminal devices in industrial control, wireless terminal devices in self-driving, wireless terminal devices in remote medical surgery, wireless terminal devices in smart grids, wireless terminal devices in transportation safety, wireless terminal devices in smart cities, and wireless terminal devices in smart homes.
[0100] In some embodiments, the terms "terminal", "terminal device", "user equipment (UE)", "user terminal", "mobile station (MS)", "mobile terminal (MT)", subscriber station, mobile unit, subscriber unit, wireless unit, remote unit, mobile device, wireless device, wireless communication device, remote device, mobile subscriberstation, access terminal, mobile terminal, wireless terminal, remote terminal, handset, user agent, mobile client, and client can be used interchangeably.
[0101] In some embodiments, the electronic device may be a network device with audio processing capabilities. The network device may include at least one of an access network device and a core network device.
[0102] In some embodiments, the electronic device internally includes multiple filters and at least two microphones. This enables the electronic device to acquire and process audio signals, thus providing audio processing capabilities.
[0103] For example, the electronic device internally includes at least two microphones. In some embodiments, the microphones integrate at least one set of filters. In some embodiments, the electronic device externally connects multiple filters. This enables the electronic device to acquire and process audio signals, thus providing audio processing capabilities.
[0104] For example, the electronic device can be an audio interface, a drone or aerial photography device, a recording module for scientific research or industrial use, a live streaming sound card and mixing console, industrial-grade audio equipment, a movie camera, a camcorder, an audio expansion module for smart home control, etc.
[0105] In some embodiments, at least two of the microphones are used to pick up audio signals. Thus, by capturing sound from different locations using multiple microphones, the limitations of a single microphone are avoided, providing rich sound information for subsequent audio processing, which helps to restore stereo audio signals and improves the quality of audio processing.
[0106] In some embodiments, the number of microphones is greater than or equal to 2.
[0107] In some embodiments, at least two microphones may be arranged according to specific rules, such as linear, circular, or planar arrays, to form a microphone array.
[0108] In some embodiments, at least two microphones may be arranged in an irregular manner.
[0109] In some embodiments, the present disclosure does not limit the microphone's position, type, or other parameters.
[0110] For example, the microphone is an omnidirectional microphone, or a microphone that picks up sound from a specific direction.
[0111] In some embodiments, the terms "microphone" and "sound acquisition device" may be used interchangeably.
[0112] In some embodiments, the filters involved in this disclosure are used to adjust the amplitude and / or delay of sound, so that the human ear can more accurately locate the sound based on the filtered sound signal.
[0113] In some embodiments, the present disclosure does not limit the number, type, or other parameters of the filters.
[0114] In some embodiments, the multiple filters involved in this disclosure, such as the first filter, the second filter, and the third filter, can be either independent filters or integrated into a single filter. For example, the multiple filters are actually multiple components of the same filter.
[0115] In some embodiments, the term "filter" can be used interchangeably with terms such as "beamformer" and "beam controller".
[0116] In some embodiments of this disclosure, the microphone employs pickup formats such as XY, MS (mid-side), AB (A-Bspaced pair), ORTF, Decca Tree, and binaural recording to achieve stereo recording.
[0117] With the rapid development of immersive audio services, some embodiments of this disclosure have been specifically studied for a diverse audio capture system, proposing the possibility of using multiple microphones on a terminal device to achieve spatial audio capture.
[0118] In some embodiments, the stereo acquisition scheme lacks a systematic frequency band filtering architecture. Acquisition methods typically employ a uniform filtering strategy for all frequency bands, failing to differentiate between different frequency bands and thus failing to meet psychoacoustic requirements.
[0119] In some embodiments of this disclosure, it is proposed that different strategies be adopted for different frequency bands based on psychoacoustics. For example, in frequency bands where phase perception is insensitive, filters that do not rely on phase constraints are used, while in frequency bands where phase perception is sensitive, filters that include phase constraints are used. Therefore, the sound signal obtained after processing based on this scheme not only satisfies the characteristics of psychoacoustics but also avoids over-optimization of the sound signal. This not only allows users to locate information more accurately but also effectively reduces the complexity of audio processing and avoids problems such as ill-conditioned constraint matrices and divergent solutions.
[0120] Figure 1 This is a schematic flowchart illustrating an audio processing method according to an embodiment of this disclosure. Figure 1 As shown, this disclosure relates to an audio processing method, executed by an electronic device. The audio processing method includes:
[0121] Step S1101: Acquire the first sound signal.
[0122] In some embodiments, the electronic device acquires the first sound signal.
[0123] In some embodiments, the electronic device receives a first sound signal sent by another electronic device, the first sound signal being acquired by the other electronic device. Optionally, the electronic device is used to process the first sound signal.
[0124] In some embodiments, the first sound signal may be the acquired, unprocessed raw sound signal. Optionally, the first sound signal may be a signal after preliminary processing of the acquired raw sound signal.
[0125] In some embodiments, the first audio signal is acquired by a plurality of microphones. Optionally, the first audio signal includes an audio signal acquired by the plurality of microphones. Optionally, the first audio signal may be a stereo signal acquired by the plurality of microphones. Optionally, the plurality of microphones may constitute a microphone array.
[0126] In some embodiments, the first audio signal includes at least two channels. Optionally, the first audio signal includes channel signals of at least two channels.
[0127] In some embodiments, each of the multiple channels included in the first audio signal corresponds to one microphone. Optionally, the electronic device acquires multiple audio signals through multiple microphones, with each audio signal corresponding to one channel. Optionally, the direction corresponding to a channel can be the pickup direction of the microphone corresponding to that channel.
[0128] In some embodiments, each of the multiple channels included in the first audio signal corresponds to one or more microphones. Optionally, the electronic device can acquire multiple audio signals through multiple microphones and process a portion of the audio signals to obtain a signal corresponding to a single channel. Optionally, the direction corresponding to a channel can be determined based on the pickup direction of the one or more microphones corresponding to that channel.
[0129] For example, an electronic device includes four microphones. After acquiring audio signals through the four microphones, the electronic device can generate a channel signal for one channel based on the audio signals acquired by two of the microphones, and generate a channel signal for another channel based on the audio signals acquired by the other two microphones. The first sound signal can include the channel signals for both channels.
[0130] In some embodiments, the first audio signal includes a first channel and a second channel, wherein the angle between the direction corresponding to the first channel and the reference direction is less than 0 degrees, and the angle between the direction corresponding to the second channel and the reference direction is greater than 0 degrees.
[0131] In some embodiments, the first audio signal includes a channel signal of a first channel and a channel signal of a second channel. Optionally, the channel signal of the first channel is acquired by one or more microphones, and the channel signal of the second channel may also be acquired by one or more microphones.
[0132] In some embodiments, the first channel may be the left channel and the second channel may be the right channel.
[0133] In some embodiments, the reference direction may refer to the direction based on a device or location on the electronic device.
[0134] For example, the reference direction is the direction in which the screen of the electronic device faces outwards, or the reference direction is the direction in which the screen of the electronic device faces inwards.
[0135] For example, the reference direction is the outward direction of the back cover of the electronic device, or the reference direction is the inward direction of the back cover of the electronic device.
[0136] In some embodiments, the reference direction is defined as 0 degrees, -90 degrees to the left of the reference direction is defined as -90 degrees, and 90 degrees to the right of the first direction is defined as 90 degrees. Optionally, the opposite direction of the reference direction can be represented as 0 degrees.
[0137] In some embodiments, the reference direction may be determined based on the location of the microphone.
[0138] In some embodiments, the reference direction can be a predefined direction pointing from a reference position, wherein the reference position can be determined by the location of multiple microphones.
[0139] For example, if an electronic device has two microphones, the reference position can be the midpoint between the locations of the two microphones, and the reference direction can be any direction perpendicular to the line connecting the locations of the two microphones, or a predefined direction. That is, the reference direction can be any direction or a predefined direction on a first two-dimensional surface, starting from the midpoint between the locations of the two microphones. The first two-dimensional surface can be a two-dimensional surface perpendicular to the line connecting the locations of the two microphones and including the midpoint between the locations of the two microphones. Where the two microphones are located at the bottom of the electronic device, and the predefined direction points to the top of the electronic device, then the reference direction can be a direction pointing from the midpoint between the locations of the two microphones to the top of the electronic device.
[0140] In one example, if the reference direction is due north on the horizontal plane when the electronic device collects the first sound signal, the direction corresponding to the first channel can be between 0 degrees east of north and 180 degrees (i.e., between 0 and 180 degrees, such as due east), and the direction corresponding to the second channel can be between 0 degrees west of north and 180 degrees (i.e., between -180 degrees and 0 degrees, such as due west).
[0141] In some embodiments, the first audio signal can be divided into multiple channels by audio channels, and the first audio signal can also be divided into multiple frequency bands by frequency.
[0142] In some embodiments, the first sound signal can be divided into multiple frequency bands based on psychoacoustics. Alternatively, the first sound signal can be divided into multiple frequency bands based on the relationship between the physical properties of sound and auditory perception.
[0143] In some embodiments, based on the binaural effect, the main factors for sound source localization may include the time difference and amplitude difference between the two ears. Specifically, for long-wavelength sound signals, the intensity difference between the two ears is small, and human ear localization mainly relies on phase or time factors, with high sensitivity to phase; for short-wavelength sound signals, phase changes are complex, and human ear localization mainly relies on amplitude factors, with high sensitivity to amplitude; for medium-wavelength sound signals, localization depends on the combined effect of time and amplitude factors, and the human ear's sensitivity to phase and amplitude is relatively similar.
[0144] In some embodiments, the plurality of frequency bands includes at least one of the following, and correspondingly, the first audio signal includes audio signals of at least one of the following frequency bands:
[0145] In the first frequency band, the human ear is more sensitive to interchannel time difference (ICTD) than to interchannel level difference (ICLD), and the difference between the sensitivity to interchannel time difference and the sensitivity to interchannel level difference is greater than or equal to the first threshold.
[0146] In the second frequency band, the difference between the human ear's sensitivity to channel time difference and its sensitivity to channel amplitude difference is less than or equal to the second threshold.
[0147] In the third frequency band, the human ear is less sensitive to channel time difference than to channel amplitude difference, and the difference between the sensitivity to channel time difference and the sensitivity to channel amplitude difference is greater than or equal to the third threshold.
[0148] For example, if all frequencies of the first sound signal are within the first frequency band, then the first sound signal may only include sound signals within the first frequency band. If the first sound signal includes sound signals within both the first and second frequency bands, then the first sound signal may include sound signals within both the first and second frequency bands.
[0149] In some embodiments, for a sound signal in the first frequency band, human ear localization mainly depends on the channel time difference.
[0150] In some embodiments, for a second frequency band sound signal, human ear localization depends on the channel time difference and the channel amplitude difference.
[0151] In some embodiments, for a second frequency band sound signal, human ear localization mainly depends on the channel amplitude difference.
[0152] In some embodiments, the values of the first threshold, the second threshold, and the third threshold may be the same or different.
[0153] In some embodiments, the sensitivity of the human ear to channel time difference and channel amplitude difference at a certain frequency or band can be determined in advance through experiments. Those skilled in the art can calibrate the frequency ranges corresponding to the first, second, and third frequency bands based on relevant experimental results and threshold values. This disclosure does not limit the specific ranges of the first, second, and third frequency bands.
[0154] In some embodiments, the first frequency band is greater than the second frequency band, and the second frequency band is greater than the third frequency band.
[0155] In some embodiments, the minimum frequency of the first frequency band is greater than or equal to the maximum frequency of the second frequency band. Optionally, the minimum frequency of the second frequency band is greater than or equal to the maximum frequency of the third frequency band.
[0156] As one possible implementation, the sensitivity of the human ear to channel time difference and the sensitivity of the human ear to channel amplitude difference can be parameter values obtained by quantifying the subjective perceptions of the test subjects during the experiment. Specifically, sound signals of different frequency bands can be played to multiple test subjects to obtain their subjective perceptions of locating sound sources at different frequency bands. The subjective perceptions of each test subject are then quantified to obtain the sensitivity of the human ear to channel time difference and the sensitivity of the human ear to channel amplitude difference, thereby calibrating the frequency ranges corresponding to the first, second, and third frequency bands.
[0157] In some embodiments, the terms "audio channel" can be used interchangeably with "channel", "path", "audio track", etc.
[0158] In some embodiments, the terms "sound signal" can be used interchangeably with "audio signal," "signal," "audio," etc.
[0159] Step S1102: The first filter is used to process the sound signal of the first frequency band to obtain the first filtered signal.
[0160] In some embodiments, the electronic device inputs a first frequency band audio signal into a first filter to obtain a first filtered signal output by the first filter.
[0161] In some embodiments, the first filter is used to impose a first constraint on the delay of the audio signal. Optionally, the first filter is used to impose a first constraint on the delay of an audio signal in a first frequency band. Optionally, the first filter does not impose a constraint on the amplitude of the audio signal.
[0162] In some embodiments, the first filter is used to process the delay of the audio signal so that the delay between the first channel and the second channel in the output audio signal (i.e., the first filtered signal) satisfies the first constraint.
[0163] In some embodiments, the first filter may not process the amplitude of the audio signal.
[0164] In some embodiments, the first constraint includes:
[0165] When the first angle is less than 0 degrees, the delay of the first channel in the audio signal is constrained to be less than the delay of the second channel;
[0166] When the first angle is equal to 0 degrees, the delay of the first channel in the audio signal is constrained to be equal to the delay of the second channel;
[0167] When the first angle is greater than 0 degrees, the delay of the first channel in the audio signal is constrained to be greater than the delay of the second channel;
[0168] Wherein, the first angle is the angle of the sound source relative to the reference direction, the angle of the direction corresponding to the first channel relative to the reference direction is less than 0 degrees, and the angle of the direction corresponding to the second channel relative to the reference direction is greater than 0 degrees.
[0169] In some embodiments, the electronic device can determine the angle of the sound source relative to a reference direction based on sound signals from multiple channels or sound signals collected by multiple microphones.
[0170] In some embodiments, when the first angle is less than 0 degrees, the direction corresponding to the sound source and the first channel is located on the same side of the reference direction.
[0171] Optionally, when the first angle is less than 0 degrees, the sound source is located to the left of the reference direction. Optionally, when the sound source is located to the left of the reference direction, the first filter is used to constrain the delay of the left channel to be less than the delay of the right channel.
[0172] In some embodiments, when the first angle is greater than 0 degrees, the direction corresponding to the sound source and the second channel is on the same side of the reference direction.
[0173] Optionally, when the first angle is greater than 0 degrees, the sound source is located to the right of the reference direction. Optionally, when the sound source is located to the right of the reference direction, the first filter is used to constrain the delay of the right channel to be greater than the delay of the left channel.
[0174] In some embodiments, when the first angle is equal to 0 degrees, the sound source is located in the reference direction or in the opposite direction of the reference direction.
[0175] Optionally, when the first angle is 0 degrees, the first filter is used to constrain the delay of the right channel to be equal to the delay of the left channel.
[0176] In some embodiments, the electronic device or the first filter may also constrain the delay of the sound signal based on the value of the first angle.
[0177] Optionally, when the absolute value of the first angle is between 0 and 90 degrees, after processing by the first filter, the difference between the delay of the first channel and the delay of the second channel is positively correlated with the value of the first angle.
[0178] Optionally, when the absolute value of the first angle is between 90 degrees and 180 degrees, after processing by the second filter, the difference between the delay of the first channel and the delay of the second channel is negatively correlated with the value of the first angle.
[0179] For example, when the first angle is 90 degrees, the delay of the first channel can be constrained to be greater than the delay of the second channel and the difference between the two is the first difference value. When the first angle is 45 degrees, the delay of the first channel can be constrained to be greater than the delay of the second channel and the difference between the two is the second difference value, wherein the first difference value is greater than the second difference value.
[0180] Similarly, when the first angle is -90 degrees, the delay of the first channel can be constrained to be less than the delay of the second channel and the difference between the two is the first difference value. When the first angle is -45 degrees, the delay of the first channel can be constrained to be less than the delay of the second channel and the difference between the two is the second difference value. The first difference value is greater than the second difference value.
[0181] Step S1103: The second filter is used to process the sound signal of the second frequency band to obtain the second filtered signal.
[0182] In some embodiments, the electronic device inputs a second frequency band audio signal into a second filter to obtain a second filtered signal output by a third filter.
[0183] In some embodiments, the second filter is used to impose a second constraint on the delay of the audio signal. Optionally, the second filter is used to impose a second constraint on the delay and amplitude of the audio signal in a second frequency band.
[0184] In some embodiments, the second filter is used to process the delay and amplitude of the audio signal so that the delay of the first channel and the second channel, as well as the amplitude of the first channel and the second channel in the output audio signal (i.e., the second filtered signal), both satisfy the second constraint.
[0185] In some embodiments, the second constraint includes:
[0186] When the first angle is less than 0 degrees, the delay of the first channel in the audio signal is constrained to be less than the delay of the second channel, and the amplitude of the first channel is constrained to be greater than the amplitude of the second channel.
[0187] When the first angle is equal to 0 degrees, the delay of the first channel in the audio signal is constrained to be equal to the delay of the second channel, and the amplitude of the first channel is constrained to be equal to the amplitude of the second channel.
[0188] When the first angle is greater than 0 degrees, the delay of the first channel in the audio signal is constrained to be greater than the delay of the second channel, and the amplitude of the first channel is constrained to be less than the amplitude of the second channel.
[0189] Wherein, the first angle is the angle of the sound source relative to the reference direction, the angle of the direction corresponding to the first channel relative to the reference direction is less than 0 degrees, and the angle of the direction corresponding to the second channel relative to the reference direction is greater than 0 degrees.
[0190] In some embodiments, when the first angle is less than 0 degrees, the direction corresponding to the sound source and the first channel is located on the same side of the reference direction.
[0191] Optionally, when the first angle is less than 0 degrees, the sound source is located to the left of the reference direction. Optionally, when the sound source is located to the left of the reference direction, the second filter is used to constrain the delay of the left channel to be less than the delay of the right channel, and to constrain the amplitude of the left channel to be greater than the amplitude of the right channel.
[0192] In some embodiments, when the first angle is greater than 0 degrees, the direction corresponding to the sound source and the second channel is on the same side of the reference direction.
[0193] Optionally, when the first angle is greater than 0 degrees, the sound source is located to the right of the reference direction. Optionally, when the sound source is located to the right of the reference direction, the second filter is used to constrain the delay of the right channel to be less than the delay of the left channel, and to constrain the amplitude of the left channel to be less than the amplitude of the right channel.
[0194] In some embodiments, when the first angle is equal to 0 degrees, the sound source is located in the reference direction or in the opposite direction of the reference direction.
[0195] Optionally, when the first angle is equal to 0 degrees, the first filter is used to constrain the delay of the right channel to be equal to the delay of the left channel, and to constrain the amplitude of the right channel to be equal to the amplitude of the left channel.
[0196] In some embodiments, the electronic device or the second filter may also constrain the delay and / or amplitude of the sound signal based on the value of the first angle.
[0197] Optionally, when the absolute value of the first angle is between 0 and 90 degrees, after processing by the second filter, the difference between the delay of the first channel and the delay of the second channel is positively correlated with the value of the first angle, and / or, the difference between the amplitude of the first channel and the amplitude of the second channel is positively correlated with the value of the first angle.
[0198] Optionally, when the absolute value of the first angle is between 90 degrees and 180 degrees, after processing by the second filter, the difference between the delay of the first channel and the delay of the second channel is negatively correlated with the value of the first angle, and / or, the difference between the amplitude of the first channel and the amplitude of the second channel is negatively correlated with the value of the first angle.
[0199] Step S1104: Use the third filter to process the audio signal of the third frequency band to obtain the third filtered signal.
[0200] In some embodiments, the electronic device inputs the audio signal of the third frequency band into the third filter to obtain the third filtered signal output by the third filter.
[0201] In some embodiments, the third filter is used to impose a third constraint on the amplitude of the audio signal. Optionally, the third filter is used to impose a third constraint on the amplitude of the audio signal in a third frequency band. Optionally, the third filter does not impose a constraint on the delay of the audio signal.
[0202] In some embodiments, the third filter is used to process the amplitude of the audio signal so that the amplitudes of the first channel and the second channel in the output audio signal (i.e., the third filtered signal) satisfy the third constraint.
[0203] In some embodiments, the third filter may not process the delay of the audio signal.
[0204] In some embodiments, the third constraint includes:
[0205] When the first angle is less than 0 degrees, the amplitude of the first channel in the sound signal is constrained to be less than the amplitude of the second channel;
[0206] When the first angle is equal to 0 degrees, the amplitude of the first channel in the sound signal is constrained to be equal to the amplitude of the second channel;
[0207] When the first angle is greater than 0 degrees, the amplitude of the first channel in the sound signal is constrained to be greater than the amplitude of the second channel.
[0208] Wherein, the first angle is the angle of the sound source relative to the reference direction, the angle of the direction corresponding to the first channel relative to the reference direction is less than 0 degrees, and the angle of the direction corresponding to the second channel relative to the reference direction is greater than 0 degrees.
[0209] In some embodiments, the electronic device can determine the angle of the sound source relative to a reference direction based on sound signals from multiple channels or sound signals collected by multiple microphones.
[0210] In some embodiments, when the first angle is less than 0 degrees, the direction corresponding to the sound source and the first channel is located on the same side of the reference direction.
[0211] Optionally, when the first angle is less than 0 degrees, the sound source is located to the left of the reference direction. Optionally, when the sound source is located to the left of the reference direction, the third filter is used to constrain the amplitude of the left channel to be less than the amplitude of the right channel.
[0212] In some embodiments, when the first angle is greater than 0 degrees, the direction corresponding to the sound source and the second channel is on the same side of the reference direction.
[0213] Optionally, when the first angle is greater than 0 degrees, the sound source is located to the right of the reference direction. Optionally, when the sound source is located to the right of the reference direction, the third filter is used to constrain the amplitude of the right channel to be greater than the amplitude of the left channel.
[0214] In some embodiments, when the first angle is equal to 0 degrees, the sound source is located in the reference direction or in the opposite direction of the reference direction.
[0215] Optionally, when the first angle is 0 degrees, the third filter is used to constrain the amplitude of the right channel to be equal to the amplitude of the left channel.
[0216] In some embodiments, the electronic device or the third filter can also constrain the amplitude of the sound signal based on the value of the first angle.
[0217] Optionally, when the absolute value of the first angle is between 0 and 90 degrees, after processing by the third filter, the difference between the amplitude of the first channel and the amplitude of the second channel is positively correlated with the value of the first angle.
[0218] Optionally, when the absolute value of the first angle is between 90 degrees and 180 degrees, after processing by the third filter, the difference between the amplitude of the first channel and the amplitude of the second channel is negatively correlated with the value of the first angle.
[0219] In some embodiments, steps S1102, S1103, and S1104 are optional.
[0220] In some embodiments, the method includes at least one of steps S1102, S1103, and S1104.
[0221] For example, if the first sound signal only includes the sound signal of the first frequency band, then steps S1103 and S1104 can be omitted.
[0222] Step S1105: Obtain the second sound signal based on one or more of the first filtered signal, the second filtered signal, and the third filtered signal.
[0223] In some embodiments, the second audio signal includes audio signals of multiple frequency bands. Optionally, the audio signals of multiple frequency bands are obtained by processing with different filters.
[0224] In some embodiments, the second audio signal may be obtained by adding one or more of the first filtered signal, the second filtered signal, and the third filtered signal.
[0225] For example, if the first sound signal only includes the sound signals of the first frequency band and the second frequency band, the second sound signal can be obtained by adding the first filtered signal and the second filtered signal.
[0226] In some embodiments, the electronic device adds one or more of the first filtered signal, the second filtered signal, and the third filtered signal to obtain the second sound signal.
[0227] In some embodiments, the second audio signal includes a first channel and a second channel.
[0228] Optionally, the first channel in the second audio signal is obtained by adding one or more of the first channel of the first filtered signal, the first channel of the second filter, and the first channel of the third filtered signal.
[0229] Optionally, the second channel in the second audio signal is obtained by adding one or more of the second channel of the first filtered signal, the second channel of the second filter, and the second channel of the third filtered signal.
[0230] In some embodiments, the audio signal in the first frequency band of the second audio signal satisfies the first constraint, the audio signal in the second frequency band satisfies the second constraint, and the audio signal in the third frequency band satisfies the third constraint.
[0231] In some embodiments, the electronic device outputs a second sound signal.
[0232] Optionally, the electronic device outputs the first channel of the second sound signal through the first audio player and the second channel of the second sound signal through the second audio player.
[0233] Optionally, the electronic device outputs the first channel audio signal through the left earphone and the second channel audio signal through the right earphone.
[0234] In some embodiments, an electronic device sends a second sound signal to other electronic devices, which in turn output the second sound signal.
[0235] In some embodiments, the names of signals, etc., are not limited to those described in the embodiments, and terms such as "signal," "information," and "data" can be used interchangeably.
[0236] In some embodiments, the terms “acquire”, “get”, “obtain”, “receive”, “collect”, “gather”, etc., can be used interchangeably.
[0237] The audio processing method disclosed herein may include at least one of steps S1101 to S1105. For example, step S1102 may be implemented as a separate embodiment, step S1103 may be implemented as a separate embodiment, step S1104 may be implemented as a separate embodiment, and steps S1102 to S1104 may be implemented as separate embodiments, but are not limited thereto.
[0238] In some embodiments, steps S1102, S1103, and S1104 may be performed simultaneously or in an alternating order.
[0239] In some embodiments, the steps and their optional implementations in other embodiments described before or after this embodiment, as well as other related parts in the specification, can be referred to, and will not be repeated here.
[0240] Figure 2 This is a schematic flowchart illustrating an audio processing method according to an embodiment of this disclosure. Figure 2 As shown, this disclosure relates to an audio processing method, executed by an electronic device. The audio processing method includes:
[0241] Step S2101: Acquire the first sound signal.
[0242] The first sound signal includes multiple frequency bands and includes audio signals collected by multiple microphones.
[0243] Step S2102: Process the different frequency bands of the first sound signal using different filters to obtain the second sound signal.
[0244] In some embodiments, the multiple frequency bands include at least one of the following:
[0245] In the first frequency band, the human ear is more sensitive to channel time difference than to channel amplitude difference, and the difference between the sensitivity to channel time difference and the sensitivity to channel amplitude difference is greater than or equal to a first threshold.
[0246] In the second frequency band, the difference between the human ear's sensitivity to channel time difference and its sensitivity to channel amplitude difference is less than or equal to the second threshold.
[0247] In the third frequency band, the human ear is less sensitive to channel time difference than to channel amplitude difference, and the difference between the sensitivity to channel time difference and the sensitivity to channel amplitude difference is greater than or equal to the third threshold.
[0248] In some embodiments, the different filters include at least one of the following:
[0249] The first filter is used to apply a first constraint to the delay of the audio signal;
[0250] The second filter is used to apply a second constraint on the delay and amplitude of the audio signal;
[0251] The third filter is used to apply a third constraint to the amplitude of the audio signal.
[0252] In some embodiments, processing different frequency bands of the first audio signal using different filters includes at least one of the following:
[0253] The first filter is used to process the first frequency band of the first sound signal to obtain the first filtered signal, and the second sound signal includes the first filtered signal;
[0254] The second filter is used to process the audio signal in the second frequency band to obtain the second filtered signal, and the second audio signal includes the second filtered signal;
[0255] The third filter is used to process the audio signal in the third frequency band to obtain the third filtered signal. The second audio signal includes the third filtered signal.
[0256] In some embodiments, the first constraint includes:
[0257] When the first angle is less than 0 degrees, the delay of the first channel in the audio signal is constrained to be less than the delay of the second channel;
[0258] When the first angle is equal to 0 degrees, the delay of the first channel in the audio signal is constrained to be equal to the delay of the second channel;
[0259] When the first angle is greater than 0 degrees, the delay of the first channel in the audio signal is constrained to be greater than the delay of the second channel;
[0260] Wherein, the first angle is the angle of the sound source relative to the reference direction, the angle of the direction corresponding to the first channel relative to the reference direction is less than 0 degrees, and the angle of the direction corresponding to the second channel relative to the reference direction is greater than 0 degrees.
[0261] In some embodiments, the second constraint includes:
[0262] When the first angle is less than 0 degrees, the delay of the first channel in the audio signal is constrained to be less than the delay of the second channel, and the amplitude of the first channel is constrained to be greater than the amplitude of the second channel.
[0263] When the first angle is equal to 0 degrees, the delay of the first channel in the audio signal is constrained to be equal to the delay of the second channel, and the amplitude of the first channel is constrained to be equal to the amplitude of the second channel.
[0264] When the first angle is greater than 0 degrees, the delay of the first channel in the audio signal is constrained to be greater than the delay of the second channel, and the amplitude of the first channel is constrained to be less than the amplitude of the second channel.
[0265] Wherein, the first angle is the angle of the sound source relative to the reference direction, the angle of the direction corresponding to the first channel relative to the reference direction is less than 0 degrees, and the angle of the direction corresponding to the second channel relative to the reference direction is greater than 0 degrees.
[0266] In some embodiments, the third constraint includes:
[0267] When the first angle is less than 0 degrees, the amplitude of the first channel in the sound signal is constrained to be less than the amplitude of the second channel;
[0268] When the first angle is equal to 0 degrees, the amplitude of the first channel in the sound signal is constrained to be equal to the amplitude of the second channel;
[0269] When the first angle is greater than 0 degrees, the amplitude of the first channel in the sound signal is constrained to be greater than the amplitude of the second channel.
[0270] Wherein, the first angle is the angle of the sound source relative to the reference direction, the angle of the direction corresponding to the first channel relative to the reference direction is less than 0 degrees, and the angle of the direction corresponding to the second channel relative to the reference direction is greater than 0 degrees.
[0271] In some embodiments, the steps and their optional implementations in other embodiments described before or after this embodiment, as well as other related parts in the specification, can be referred to, and will not be repeated here.
[0272] Figure 3 This is a schematic flowchart illustrating an audio processing method according to an embodiment of this disclosure. Figure 3 As shown, this disclosure relates to an audio processing method, executed by an electronic device. The audio processing method includes:
[0273] Step S3101: Divide the signal into phase-dominant frequency band, transition frequency band, and amplitude-dominant frequency band.
[0274] In some embodiments, the signal is divided into phase-dominant bands, transition bands, and amplitude-dominant bands based on psychoacoustic characteristics.
[0275] In some embodiments, the phase-dominant frequency band may be the first frequency band involved in the foregoing embodiments.
[0276] In some embodiments, the transition band may be the second band involved in the foregoing embodiments.
[0277] In some embodiments, the amplitude-dominant frequency band may be the third frequency band involved in the foregoing embodiments.
[0278] In some embodiments, the phase-dominant frequency band: the auditory system mainly relies on ICLD localization, with ICLD localization perception contributing very little;
[0279] Transition bands: Both ICLD and ICTD affect positioning;
[0280] Amplitude-dominant frequency band: The auditory system mainly relies on ICLD for localization, while ICTD contributes very little to localization perception.
[0281] Step S3102: The phase-dominant frequency band, the transition frequency band, and the amplitude-dominant frequency band are filtered using an amplitude-relaxed phase filter, an amplitude-phase joint constraint filter, and a phase-relaxed amplitude filter, respectively.
[0282] In some embodiments, the amplitude relaxation phase filter may be the first filter involved in the foregoing embodiments.
[0283] In some embodiments, the amplitude-phase joint constraint filter may be the second filter involved in the foregoing embodiments.
[0284] In some embodiments, the phase relaxation amplitude filter may be the third filter involved in the foregoing embodiments.
[0285] In some embodiments, an amplitude-relaxed phase filter is used in the phase-dominant frequency band. Optionally, this filter imposes preset constraints on the phase response while relaxing constraints on the amplitude response. That is, during the optimization process, meeting the design specifications for the phase response is the primary objective, while allowing the amplitude response to deviate from the ideal value within a certain range.
[0286] In some embodiments, the amplitude relaxation phase filter may be subject to the following constraints:
[0287] When θ < 0°, the delay of the left channel is less than the delay of the right channel;
[0288] When θ = 0°, the delay of the left channel equals the delay of the right channel;
[0289] When θ > 0°, the delay of the left channel is greater than the delay of the right channel.
[0290] Where θ represents the angle of the sound source.
[0291] In some embodiments, a combined amplitude and phase constraint filter is used in the transition band. Optionally, this filter applies preset constraints to both the amplitude and phase responses simultaneously. That is, both amplitude and phase parameters are considered during the optimization process.
[0292] In some embodiments, the amplitude-phase joint constraint filter may be subject to the following constraints:
[0293] When θ < 0°, the left channel delay < the right channel delay, and the left channel amplitude > the right channel amplitude.
[0294] When θ = 0°, the left channel delay equals the right channel delay, and the left channel amplitude equals the right channel amplitude.
[0295] When θ>0°, the delay of the left channel is greater than the delay of the right channel, and the amplitude of the left channel is less than the amplitude of the right channel.
[0296] In some embodiments, a phase-relaxed amplitude filter is used in the amplitude-dominant frequency band. Optionally, this filter imposes preset constraints on the amplitude response while relaxing constraints on the phase response. That is, during the optimization process, meeting the design specifications for the amplitude response is the primary objective, while allowing the phase response to deviate from the ideal value within a certain range.
[0297] In some embodiments, the phase relaxation amplitude filter may be subject to the following constraints:
[0298] When θ < 0°, the amplitude of the left channel is greater than the amplitude of the right channel;
[0299] When θ = 0°, the amplitude of the left channel equals the amplitude of the right channel;
[0300] When θ>0°, the amplitude of the left channel is less than the amplitude of the right channel.
[0301] In the above embodiments, by processing the positioning clues in frequency bands, the output stereo sound is made to better match the natural perception habits of the human ear, and the sound image positioning is more accurate and stable.
[0302] In one respect, considering that the phase information measurement in the amplitude-dominant frequency band is noisy and insensitive to acoustic images, reducing the phase constraints in this frequency band avoids problems such as matrix ill-conditioning and solution divergence, thereby improving the robustness of the algorithm.
[0303] On another front, for the phase-dominant frequency band, by constraining the phase of the band and reducing the amplitude constraint, the ill-conditioned constraint matrix and divergence caused by over-optimizing unnecessary objectives are avoided, which greatly improves the robustness of the algorithm in this key frequency band.
[0304] In some embodiments, the steps and their optional implementations in other embodiments described before or after this embodiment, as well as other related parts in the specification, can be referred to, and will not be repeated here.
[0305] This disclosure also proposes an apparatus (also referred to as an electronic device, etc.) for implementing any of the above audio processing methods. For example, an apparatus is proposed that includes units or modules for implementing the steps performed by the electronic device in any of the above audio processing methods.
[0306] It should be understood that the division of units or modules in the above device is only a logical functional division. In actual implementation, they can be fully or partially integrated into a single physical entity, or they can be physically separated. Furthermore, the units or modules in the device can be implemented by a processor calling software: for example, the device includes a processor connected to a memory containing instructions. The processor calls the instructions stored in the memory to implement any of the above audio processing methods or to implement the functions of each unit or module of the above device. The processor can be, for example, a general-purpose processor, such as a Central Processing Unit (CPU) or a microprocessor, and the memory can be internal or external to the device. Alternatively, the units or modules in the device can be implemented in the form of hardware circuits. The functionality of some or all of the units or modules can be achieved through the design of these hardware circuits, which can be understood as one or more processors. For example, in one implementation, the hardware circuit is an application-specific integrated circuit (ASIC). The functionality of some or all of the units or modules is achieved through the design of the logical relationships between the components within the circuit. In another implementation, the hardware circuit can be implemented using a programmable logic device (PLD). Taking a field-programmable gate array (FPGA) as an example, it can include a large number of logic gates. The connection relationships between the logic gates are configured through configuration files, thereby achieving the functionality of some or all of the units or modules. All units or modules of the above device can be implemented entirely through processor-called software, entirely through hardware circuits, or partially through processor-called software with the remaining parts implemented through hardware circuits.
[0307] In this embodiment, the processor is a circuit with signal processing capabilities. In one implementation, the processor can be a circuit with instruction read and execute capabilities, such as a Central Processing Unit (CPU), a microprocessor, a graphics processing unit (GPU) (which can be understood as a microprocessor), or a digital signal processor (DSP). In another implementation, the processor can implement certain functions through the logical relationships of hardware circuits. The logical relationships of the aforementioned hardware circuits are fixed or reconfigurable. For example, the processor is a hardware circuit implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD), such as an FPGA. In a reconfigurable hardware circuit, the process of the processor loading a configuration document and configuring the hardware circuit can be understood as the process of the processor loading instructions to implement the functions of some or all of the above units or modules. Furthermore, it can also be a hardware circuit designed for artificial intelligence, which can be understood as an ASIC, such as a Neural Network Processing Unit (NPU), a Tensor Processing Unit (TPU), or a Deep Learning Processing Unit (DPU).
[0308] It should be noted that the various embodiments / examples described above in this disclosure can be used in conjunction with the foregoing and / or subsequent embodiments, or they can be used independently. Whether used alone or in conjunction with the foregoing and / or subsequent embodiments, the implementation principle is similar. In this disclosure, some embodiments are described as implementations used together. Of course, such illustrative examples are not intended to limit the scope of this disclosure.
[0309] Figure 4 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure. The electronic device 400 is used to perform any of the above methods. In some embodiments, such as... Figure 4As shown, the electronic device 400 may include at least one of a transceiver module 401, a processing module 402, etc. In some embodiments, the processing module 402 is used to obtain an output signal, the output signal including a left channel and a right channel, the left channel and the right channel being obtained by beamforming the audio signals collected by at least two microphones through at least one set of filters, the at least one set of filters being used to make the directivity of the desired response of the left channel and the directivity of the desired response of the right channel a cardioid shape that is a mirror image of each other. Optionally, the processing module is used to perform at least one of the processing steps performed by the electronic device in any of the above methods, which will not be elaborated here.
[0310] In some embodiments, the transceiver module may include a transmitting module and / or a receiving module, which may be separate or integrated. Optionally, the transceiver module may be interchangeable with a transceiver.
[0311] In some embodiments, the processing module may be a single module or may include multiple sub-modules. Optionally, the multiple sub-modules may each perform all or part of the steps required by the processing module.
[0312] In some embodiments, the processing module can be interchanged with the processor, and the transceiver module can be interchanged with the transceiver.
[0313] Figure 5 This is a schematic diagram of the structure of an electronic device according to an embodiment of this disclosure. For example, the electronic device 500 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.
[0314] Reference Figure 5 The electronic device 500 may include one or more of the following components: processing component 502, memory 504, power supply component 506, multimedia component 508, audio component 510, input / output interface 512, sensor component 514, and communication component 516.
[0315] Processing component 502 typically controls the overall operation of electronic device 500, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 502 may include one or more processors 520 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 502 may include one or more modules to facilitate interaction between processing component 502 and other components. For example, processing component 502 may include a multimedia module to facilitate interaction between multimedia component 508 and processing component 502.
[0316] In some embodiments, the processor 520 performs at least one of the processing steps.
[0317] Memory 504 is configured to store various types of data to support the operation of electronic device 500. Examples of such data include instructions for any application or method operating on electronic device 500, contact data, phonebook data, messages, pictures, videos, etc. Memory 504 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0318] Power supply component 506 provides power to various components of electronic device 500. Power supply component 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 500.
[0319] Multimedia component 508 includes a screen that provides an output interface between the electronic device 500 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 508 includes a front-facing camera and / or a rear-facing camera. When the electronic device 500 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0320] Audio component 510 is configured to output and / or input audio signals. For example, audio component 510 includes a microphone (MIC) configured to receive external audio signals when electronic device 500 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 504 or transmitted via communication component 516. In some embodiments, audio component 510 also includes a speaker for outputting audio signals.
[0321] Input / output interface 512 provides an interface between processing component 502 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, start buttons, and lock buttons.
[0322] Sensor assembly 514 includes one or more sensors for providing state assessments of various aspects of electronic device 500. For example, sensor assembly 514 may detect the on / off state of electronic device 500, the relative positioning of components such as the display and keypad of electronic device 500, changes in position of electronic device 500 or a component of electronic device 500, the presence or absence of user contact with electronic device 500, orientation or acceleration / deceleration of electronic device 500, and temperature changes of electronic device 500. Sensor assembly 514 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 514 may also include an accelerometer, gyroscope, magnetometer, pressure sensor, or temperature sensor.
[0323] Communication component 516 is configured to facilitate wired or wireless communication between electronic device 500 and other devices. Electronic device 500 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 516 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 516 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0324] In an exemplary embodiment, the electronic device 500 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.
[0325] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 504 including instructions, which can be executed by a processor 520 of an electronic device 500 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0326] Figure 6 This is a schematic diagram of the chip structure according to an embodiment of this disclosure. For cases where the electronic device 500 can be a chip or a chip system, please refer to... Figure 6 The diagram shown is a schematic representation of the structure of chip 600, but it is not limited to this.
[0327] Chip 600 includes one or more processors 601. Chip 600 is used to perform any of the methods described above.
[0328] In some embodiments, chip 600 further includes one or more interface circuits 602. Optionally, terms such as interface circuit, interface, and transceiver pin can be used interchangeably. In some embodiments, chip 600 further includes one or more memories 603 for storing data and / or instructions. Optionally, all or part of the memories 603 may be located outside chip 600. Optionally, interface circuit 602 is connected to memory 603, and interface circuit 602 can be used to receive data and / or instructions from memory 603 or other devices, and interface circuit 602 can be used to send data and / or instructions to memory 603 or other devices. For example, interface circuit 602 can read data and / or instructions stored in memory 603 and send the data and / or instructions to processor 601.
[0329] In some embodiments, processor 601 performs at least one of the processing steps.
[0330] The modules and / or devices described in the various embodiments, such as virtual devices, physical devices, and chips, can be combined or separated arbitrarily as needed. Optionally, some or all steps can also be performed collaboratively by multiple modules and / or devices, which is not limited here.
[0331] This disclosure also proposes a storage medium storing instructions that, when executed on an electronic device, cause the electronic device to perform any of the above methods. Optionally, the storage medium is an electronic storage medium. Optionally, the storage medium is a computer-readable storage medium, but not limited thereto; it may also be a storage medium readable by other devices. Optionally, the storage medium may be a non-transitory storage medium, but not limited thereto; it may also be a temporary storage medium.
[0332] This disclosure also proposes a program product, including a program and / or instructions, which, when executed by an electronic device, cause the electronic device to perform any of the above methods. Optionally, the program product is a computer program product. Optionally, the program product is stored on the storage medium.
[0333] This disclosure also proposes a computer program that, when run on a computer, causes the computer to perform any of the above methods.
Claims
1. An audio processing method, characterized in that, Performed by an electronic device, the method includes: Acquire a first sound signal, the first sound signal including multiple frequency bands, the first sound signal including audio signals collected by multiple microphones; Different filters are used to process different frequency bands of the first sound signal to obtain the second sound signal.
2. The method according to claim 1, characterized in that, The multiple frequency bands include at least one of the following: In the first frequency band, the human ear is more sensitive to channel time difference than to channel amplitude difference, and the difference between the sensitivity to channel time difference and the sensitivity to channel amplitude difference is greater than or equal to a first threshold. In the second frequency band, the difference between the human ear's sensitivity to channel time difference and its sensitivity to channel amplitude difference is less than or equal to a second threshold. In the third frequency band, the human ear is less sensitive to channel time difference than to channel amplitude difference, and the difference between the sensitivity to channel time difference and the sensitivity to channel amplitude difference is greater than or equal to a third threshold.
3. The method according to claim 2, characterized in that, Different filters include at least one of the following: A first filter, wherein the first filter is used to apply a first constraint to the delay of the audio signal; The second filter is used to apply a second constraint on the delay and amplitude of the audio signal; A third filter is used to apply a third constraint to the amplitude of the audio signal.
4. The method according to claim 3, characterized in that, The processing of different frequency bands of the first audio signal using different filters includes at least one of the following: The first filter is used to process the first frequency band of the first sound signal to obtain a first filtered signal, and the second sound signal includes the first filtered signal; The second filter is used to process the sound signal in the second frequency band to obtain a second filtered signal, wherein the second sound signal includes the second filtered signal; The third filter is used to process the audio signal in the third frequency band to obtain a third filtered signal, and the second audio signal includes the third filtered signal.
5. The method according to claim 3 or 4, characterized in that, The first constraint includes: When the first angle is less than 0 degrees, the delay of the first channel in the audio signal is constrained to be less than the delay of the second channel; When the first angle is equal to 0 degrees, the delay of the first channel in the audio signal is constrained to be equal to the delay of the second channel; When the first angle is greater than 0 degrees, the delay of the first channel in the audio signal is constrained to be greater than the delay of the second channel; Wherein, the first angle is the angle of the sound source relative to the reference direction, the angle of the direction corresponding to the first channel relative to the reference direction is less than 0 degrees, and the angle of the direction corresponding to the second channel relative to the reference direction is greater than 0 degrees.
6. The method according to any one of claims 3-5, characterized in that, The second constraint includes: When the first angle is less than 0 degrees, the delay of the first channel in the audio signal is constrained to be less than the delay of the second channel, and the amplitude of the first channel is constrained to be greater than the amplitude of the second channel. When the first angle is equal to 0 degrees, the delay of the first channel in the audio signal is constrained to be equal to the delay of the second channel, and the amplitude of the first channel is constrained to be equal to the amplitude of the second channel. When the first angle is greater than 0 degrees, the delay of the first channel in the audio signal is constrained to be greater than the delay of the second channel, and the amplitude of the first channel is constrained to be less than the amplitude of the second channel. Wherein, the first angle is the angle of the sound source relative to the reference direction, the angle of the direction corresponding to the first channel relative to the reference direction is less than 0 degrees, and the angle of the direction corresponding to the second channel relative to the reference direction is greater than 0 degrees.
7. The method according to any one of claims 3-6, characterized in that, The third constraint includes: When the first angle is less than 0 degrees, the amplitude of the first channel in the sound signal is constrained to be less than the amplitude of the second channel; When the first angle is equal to 0 degrees, the amplitude of the first channel in the sound signal is constrained to be equal to the amplitude of the second channel; When the first angle is greater than 0 degrees, the amplitude of the first channel in the sound signal is constrained to be greater than the amplitude of the second channel. Wherein, the first angle is the angle of the sound source relative to the reference direction, the angle of the direction corresponding to the first channel relative to the reference direction is less than 0 degrees, and the angle of the direction corresponding to the second channel relative to the reference direction is greater than 0 degrees.
8. An electronic device, characterized in that, The electronic device is used to perform the audio processing method according to any one of claims 1-8.
9. A storage medium storing instructions, characterized in that, When the instructions are executed on an electronic device, the electronic device causes the electronic device to perform the audio processing method according to any one of claims 1-7.
10. A program product comprising at least one of a program and instructions, characterized in that, When at least one of the programs or instructions is executed by an electronic device, it implements the audio processing method according to any one of claims 1-7.
