Phase correction system, method, device and medium for audio signals

By leveraging the collaborative work of the application processor and digital signal processor and utilizing a preset mapping relationship to determine the microphone input pin identifiers, the problem of phase differences in audio signals picked up by multiple microphones is solved, achieving flexible and low-power audio signal phase correction suitable for various recording scenarios.

CN119854698BActive Publication Date: 2026-03-03GOERTEK INC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411859399.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-17
Publication Date
2026-03-03
Estimated Expiration
2044-12-17

AI Technical Summary

Technical Problem

The audio signals picked up by multiple microphones have temporal discrepancies, resulting in phase differences that affect the spatial perception and clarity of the synthesized audio signal.

Method used

The microphone identifier is obtained by the application processor, the microphone input pin identifier is determined by the preset mapping relationship, and then sent to the digital signal processor for audio signal correction. This avoids phase correction in the HAL layer, KERNEL layer or codec driver, and achieves automatic correction.

Benefits of technology

It achieves phase correction of the audio signal picked up by the microphone, covering all recording scenarios, avoiding limitations of specific scenarios, reducing computing power and power consumption, and does not interfere with the recording process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119854698B_ABST
    Figure CN119854698B_ABST
Patent Text Reader

Abstract

The application discloses a phase correction system, method, device and medium of an audio signal, and relates to the technical field of audio processing. The system comprises: an application processor, which is used for obtaining a microphone identifier of a microphone to be phase corrected for any microphone to be phase corrected, determining a microphone input pin identifier according to the microphone identifier and a preset mapping relationship, and sending the microphone input pin identifier to a digital signal processor, wherein the preset mapping relationship is used for reflecting the correspondence between the microphone identifier and the corresponding microphone input pin identifier; and the digital signal processor, which is used for obtaining the microphone input pin identifier from the application processor, determining the storage space where the audio signal picked up by the microphone corresponding to the microphone input pin identifier is located, and correcting the audio signal in the storage space. The system can complete the phase correction of the audio signal picked up by the microphone.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of audio processing technology, and more specifically, to a phase correction system, method, apparatus, and medium for audio signals. Background Technology

[0002] As a sound signal acquisition device, the performance of a microphone has a crucial impact on the sound quality of the final acquired sound signal.

[0003] When multiple microphones capture the same sound source, if the sound signals picked up by the microphones are out of phase, or if the sound signals arrive at each microphone at different times, a phase difference may occur in the sound signals picked up by each microphone. This difference can cause phase interference when the sound signals picked up by multiple microphones are combined. That is, when the waveforms of two or more sound signals are out of phase at certain frequencies, they will cancel each other out, resulting in the partial or complete loss of the combined sound signal. This severely affects the spatial perception and clarity of the combined sound signal during playback.

[0004] Therefore, in order to ensure that the sound signals recorded by multiple microphones can be correctly synthesized, it is necessary to correct the phase of the sound signals picked up by the microphones. Summary of the Invention

[0005] One objective of this application is to provide a new technical solution for phase correction of audio signals.

[0006] According to a first aspect of this application, a phase correction system for an audio signal is provided, comprising:

[0007] An application processor is configured to, for any microphone to be phase corrected, obtain the microphone identifier of the microphone to be phase corrected, determine the microphone input pin identifier based on the microphone identifier and a preset mapping relationship, and send the microphone input pin identifier to a digital signal processor. The preset mapping relationship is used to reflect the correspondence between the microphone identifier and the corresponding microphone input pin identifier.

[0008] The digital signal processor is configured to obtain the microphone input pin identifier from the application processor, determine the storage space where the audio signal picked up by the microphone corresponding to the microphone input pin identifier is located, and correct the audio signal in the storage space.

[0009] Optionally, the application processor is specifically used for:

[0010] Based on the microphone identifier and the first preset mapping relationship, determine the channel identifier corresponding to the microphone identifier;

[0011] The microphone input pin identifier is determined based on the channel identifier and the second preset mapping relationship;

[0012] The preset mapping relationship includes a first preset mapping sub-relationship and a second preset mapping relationship. The first preset mapping sub-relationship is used to reflect the correspondence between the microphone identifier and the corresponding channel identifier, and the second preset mapping relationship is used to reflect the correspondence between the channel identifier and the microphone input pin identifier.

[0013] Optionally, the application processor is further configured to acquire phase correction parameters of the microphone to be phase corrected, and to send the phase correction parameters to the digital signal processor;

[0014] The digital signal processor is specifically used to correct the audio signal in the storage space according to the phase correction parameters.

[0015] Optionally, the application processor is specifically used for:

[0016] Receive input from the microphone identifier of the microphone to be phase corrected in the display interface;

[0017] In response to the input operation, the microphone identifier of the microphone to be phase corrected is determined.

[0018] Optionally, the application processor is specifically configured to have a hardware abstraction layer deployed in the application processor obtain the microphone identifier of any microphone to be phase corrected, and a kernel layer deployed in the application processor determine the microphone input pin identifier according to the microphone identifier and a preset mapping relationship, and send the microphone input pin identifier to the digital signal processor.

[0019] Optionally, the application processor is specifically used for:

[0020] The hardware abstraction layer deployed in the application processor reads the phase correction configuration file, obtains the microphone identifier and phase correction identifier of the microphone to be phase corrected, encapsulates the microphone identifier and the phase correction identifier of the microphone to be phase corrected into a kcontrol node, and passes the kcontrol node to the kernel layer deployed in the application processor through the ioctl system. The phase correction identifier is used to instruct the application processor to determine the microphone input pin identifier based on the microphone identifier in the kernel layer, and sends the microphone input pin identifier to the digital signal processor.

[0021] The kernel layer deployed in the application processor calls the put function registered by the kcontrol node to obtain the microphone identifier and phase correction identifier of the microphone to be phase corrected encapsulated in the kcontrol node. Under the indication of the phase correction identifier, the microphone input pin identifier is determined according to the microphone identifier and the preset mapping relationship, and the microphone input pin identifier is sent to the digital signal processor.

[0022] According to a second aspect of this application, a phase correction method for an audio signal is provided, comprising:

[0023] For any microphone to be phase corrected, the application processor obtains the microphone identifier of the microphone to be phase corrected, determines the microphone input pin identifier based on the microphone identifier and a preset mapping relationship, and sends the microphone input pin identifier to the digital signal processor. The preset mapping relationship is used to reflect the correspondence between the microphone identifier and the corresponding microphone input pin identifier.

[0024] The digital signal processor obtains the microphone input pin identifier from the application processor, determines the storage space where the audio signal picked up by the microphone corresponding to the microphone input pin identifier is located, and corrects the audio signal in the storage space.

[0025] Optionally, determining the microphone input pin identifier based on the microphone identifier includes:

[0026] Based on the microphone identifier and the first preset mapping relationship, determine the channel identifier corresponding to the microphone identifier;

[0027] The microphone input pin identifier is determined based on the channel identifier and the second preset mapping relationship;

[0028] The preset mapping relationship includes a first preset mapping sub-relationship and a second preset mapping relationship. The first preset mapping sub-relationship is used to reflect the correspondence between the microphone identifier and the corresponding channel identifier, and the second preset mapping relationship is used to reflect the correspondence between the channel identifier and the microphone input pin identifier.

[0029] Optionally, the method further includes:

[0030] The application processor acquires the phase correction parameters of the microphone to be phase corrected, and sends the phase correction parameters to the digital signal processor.

[0031] The digital signal processor corrects the stored audio signal in the storage space according to the phase correction parameter.

[0032] Optionally, obtaining the microphone identifier of the microphone to be phase corrected includes:

[0033] Receive input from the microphone identifier of the microphone to be phase corrected in the display interface;

[0034] In response to the input operation, the microphone identifier of the microphone to be phase corrected is determined.

[0035] Optionally, for any microphone to be phase-corrected, the application processor obtains the microphone identifier of the microphone to be phase-corrected, determines the microphone input pin identifier based on the microphone identifier, and sends the microphone input pin identifier to the digital signal processor, including:

[0036] For any microphone to be phase-corrected, the hardware abstraction layer deployed in the application processor obtains the microphone identifier of the microphone to be phase-corrected, and the kernel layer deployed in the application processor determines the microphone input pin identifier according to the microphone identifier and a preset mapping relationship, and sends the microphone input pin identifier to the digital signal processor.

[0037] Optionally, the hardware abstraction layer deployed in the application processor acquires the microphone identifier of any microphone to be phase-corrected, and the kernel layer deployed in the application processor determines the microphone input pin identifier based on the microphone identifier and a preset mapping relationship, and sends the microphone input pin identifier to the digital signal processor, including:

[0038] The hardware abstraction layer deployed in the application processor reads the phase correction configuration file, obtains the microphone identifier and phase correction identifier of the microphone to be phase corrected, encapsulates the microphone identifier and the phase correction identifier of the microphone to be phase corrected into a kcontrol node, and passes the kcontrol node to the kernel layer deployed in the application processor through the ioctl system. The phase correction identifier is used to instruct the application processor to determine the microphone input pin identifier based on the microphone identifier in the kernel layer, and sends the microphone input pin identifier to the digital signal processor.

[0039] The kernel layer deployed in the application processor calls the put function registered by the kcontrol node to obtain the microphone identifier and phase correction identifier of the microphone to be phase corrected encapsulated in the kcontrol node. Under the indication of the phase correction identifier, the microphone input pin identifier is determined according to the microphone identifier and the preset mapping relationship, and the microphone input pin identifier is sent to the digital signal processor.

[0040] According to a third aspect of this application, an electronic device is provided, the electronic device comprising a phase correction system for an audio signal as described in any of the first aspects; or,

[0041] The electronic device includes a memory and a processor, the memory being used to store computer instructions, and the processor being used to retrieve the computer instructions from the memory to perform the method as described in any one of the second aspects.

[0042] According to a fourth aspect of this application, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the method according to any one of the second aspects.

[0043] This application provides an audio signal phase correction system, comprising: an application processor, configured to, for any microphone to be phase corrected, acquire a microphone identifier of the microphone to be phase corrected, determine a microphone input pin identifier based on the microphone identifier and a preset mapping relationship, and send the microphone input pin identifier to a digital signal processor (DSP). The preset mapping relationship reflects the correspondence between the microphone identifier and the corresponding microphone input pin identifier. The DSP is configured to acquire the microphone input pin identifier from the application processor, determine the storage space where the audio signal picked up by the microphone corresponding to the microphone input pin identifier is located, and correct the audio signal in the storage space. This audio signal phase correction system can complete the phase correction of the audio signal picked up by the microphone. Specifically, the application processor transmits the microphone input pin identifier corresponding to the microphone to be phase corrected to the DSP, and the DSP corrects the audio signal of the microphone to be phase corrected based on the microphone input pin identifier. In this way, on the one hand, phase correction is avoided in the HAL layer, KERNEL layer, or codec driver of the application processor, thereby avoiding the problem of not being able to perform phase correction due to the inability to obtain the audio signal of a single microphone. On the other hand, it can operate independently of the limitations of any recording scenario, covering all recording scenarios. This avoids the problem of integrating correction algorithms for specific recording scenarios into a digital signal processor, which limits audio correction to the specific recording scenario in which the algorithm is loaded. Furthermore, it automatically performs phase correction without interfering with the microphone's recording process, making it imperceptible to the user. Finally, by correcting the audio signal stored in the microphone's audio signal storage space, it requires minimal additional computing power and consumes minimal power.

[0044] Other features and advantages of this application will become clear from the following detailed description of exemplary embodiments with reference to the accompanying drawings. Attached Figure Description

[0045] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments of the present application and, together with their description, serve to explain the principles of the present application.

[0046] Figure 1 This is a schematic diagram of the structure of an audio signal phase correction system provided in this application. Figure 1 ;

[0047] Figure 2 This is a schematic diagram of the structure of an audio signal phase correction system provided in this application. Figure 2 ;

[0048] Figure 3 This is a schematic diagram of the structure of an audio signal phase correction system provided in this application. Figure 3 ;

[0049] Figure 4 This is a schematic flowchart of a phase correction system for audio signals provided in this application;

[0050] Figure 5 This is a schematic diagram of the structure of an electronic device provided in this application. Detailed Implementation

[0051] Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. It should be noted that, unless otherwise specifically stated, the relative arrangement, numerical expressions, and values ​​of the components and steps set forth in these embodiments do not limit the scope of the present application.

[0052] The following description of at least one exemplary embodiment is merely illustrative and is in no way intended to limit the scope of this application and its application or use.

[0053] Techniques, methods, and equipment known to those skilled in the art may not be discussed in detail, but where appropriate, such techniques, methods, and equipment should be considered part of the specification.

[0054] In all the examples shown and discussed herein, any specific values ​​should be interpreted as merely exemplary and not as limitations. Therefore, other examples of exemplary embodiments may have different values.

[0055] It should be noted that similar labels and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be discussed further in subsequent figures.

[0056] This application provides a phase correction system 100 for audio signals, such as... Figure 1 As shown, it includes:

[0057] Application processor 101 is used to obtain the microphone identifier of any microphone to be phase corrected, determine the microphone input pin identifier according to the microphone identifier and a preset mapping relationship, and send the microphone input pin identifier to the digital signal processor. The preset mapping relationship is used to reflect the correspondence between the microphone identifier and the corresponding microphone input pin identifier.

[0058] The digital signal processor 102 is used to obtain the microphone input pin identifier from the application processor 101, determine the storage space where the audio signal picked up by the microphone corresponding to the microphone input pin identifier is located, and correct the audio signal in the storage space.

[0059] In this embodiment, for the same electronic device, the microphones requiring phase correction are determined in advance based on acoustic experiments, for example, the microphones in the microphone array included in the electronic device that require phase correction are determined. Further, after determining the microphones requiring phase correction, the microphone identifier of the microphones requiring phase correction is input to the application processor 101. It is understood that an electronic device corresponds to at least one microphone requiring phase correction. The following embodiment uses one microphone requiring phase correction as an example to illustrate the phase correction process.

[0060] Based on the above, the application processor 101 can specifically obtain the microphone identifier of the microphone to be phase corrected through the following steps S11 and S12.

[0061] Step S11: Receive input on the display interface for the microphone identifier of the microphone to be phase corrected.

[0062] Step S12: In response to the input operation, determine the microphone identifier of the microphone to be phase corrected.

[0063] In one embodiment of this application, the application processor 101 provides a display interface with an input interface for a user to input the microphone identifier of the microphone to be phase-corrected. The user inputs the microphone identifier of the microphone to be phase-corrected through the input interface. The application processor 101 recognizes the user's input of the microphone identifier of the microphone to be phase-corrected through the input interface as an input operation. Further, the application processor 101 parses the input operation to determine the microphone identifier of the microphone to be phase-corrected.

[0064] In one example, the microphone identifier could be, for instance, the microphone number.

[0065] In one embodiment of this application, after obtaining the microphone identifier of the microphone to be phase-corrected based on the above steps S11 and S12, the application processor 101 writes the microphone identifier and the phase correction identifier of the microphone to be phase-corrected into a phase correction configuration file. The phase correction identifier is used to instruct the application processor 101, after reading the microphone identifier, to determine the microphone input pin identifier according to the microphone identifier and a preset mapping relationship, and then send the microphone input pin identifier to the digital signal processor 102.

[0066] Through the above steps S11 and S12, in the audio signal phase correction system 100 provided by this application, the user can specify the microphone identifier of the microphone that needs to be phase corrected, which improves the flexibility of the audio signal phase correction system 100 provided by this application.

[0067] In one embodiment of this application, such as Figure 2 As shown, the application processor 101 deploys a Hardware Abstraction Layer (HAL) and a KERNEL layer. Specifically, the application processor 101 performs the following steps S21 and S22 to obtain the microphone identifier of any microphone to be phase corrected, determine the microphone input pin identifier based on the microphone identifier, and send the microphone input pin identifier to the digital signal processor 102.

[0068] Step S21: The hardware abstraction layer deployed in the application processor 101 obtains the microphone identifier of any microphone to be phase corrected.

[0069] In step S22, the kernel layer deployed in the application processor 101 determines the microphone input pin identifier based on the microphone identifier and the preset mapping relationship, and sends the microphone input pin identifier to the digital signal processor 102.

[0070] In one embodiment of this application, step S21 is implemented by step S210.

[0071] In step S210, the hardware abstraction layer deployed in the application processor 101 reads the phase correction configuration file, obtains the microphone identifier and phase correction identifier of the microphone to be phase corrected, encapsulates the microphone identifier and phase correction identifier of the microphone to be phase corrected into a kcontrol node, and transmits the kcontrol node to the kernel layer deployed in the application processor through the ioctl system. The phase correction identifier is used to instruct the application processor to determine the microphone input pin identifier in the kernel layer based on the microphone identifier, and sends the microphone input pin identifier to the digital signal processor 102.

[0072] In one embodiment of this application, step S22 is implemented by step S220.

[0073] In step S220, the kernel layer deployed in the application processor 101 calls the put function registered by the kcontrol node to obtain the microphone identifier and phase correction identifier of the microphone to be phase corrected encapsulated in the kcontrol node, and determines the microphone input pin identifier according to the microphone identifier and the preset mapping relationship under the indication of the phase correction identifier, and sends the microphone input pin identifier to the digital signal processor 102.

[0074] In this embodiment, after the application processor 101 reads the phase correction configuration file at the HAL layer to obtain the microphone identifier and correction identifier of the microphone to be phase corrected, it encapsulates the microphone identifier and phase correction identifier of the microphone to be phase corrected into a kcontrol node and transmits the kcontrol node to the KERNEL layer through the ioctl system. The phase correction identifier is used to instruct the application processor 101 to determine the microphone input pin identifier at the KERNEL layer based on the microphone identifier, and then send the microphone input pin identifier to the digital signal processor 102. The phase correction identifier can be, for example, true. Based on this, the application processor 101 responds to the aforementioned ioctl system at the KERNEL layer, calling the put function registered by the aforementioned kcontrol node to obtain the microphone identifier and phase correction identifier of the microphone to be phase corrected from the kcontrol node. Under the instruction of the phase correction identifier, it determines the microphone input pin identifier according to the microphone identifier and a preset mapping relationship, and then sends the microphone input pin identifier to the digital signal processor 102.

[0075] The `kcontrol` node is the control interface in the sound card, used to implement various control functions for audio devices. The `ioctl` (Input / Output Control) system is an input / output control system, a system call widely used in UNIX and UNIX-like operating systems (such as Linux and BSD). Its main function is to provide a mechanism for low-level communication between user programs and kernel drivers or device drivers.

[0076] In one embodiment of this application, different microphone identifiers correspond to different microphone input pin identifiers. Based on this, the application processor 101 records a preset mapping relationship between the microphone identifier and the microphone input pin identifier for each microphone. The application processor 101 then searches the aforementioned preset mapping relationship for a microphone input pin identifier that matches the microphone identifier of the microphone to be phase corrected, thereby achieving the aforementioned determination of the microphone input pin identifier based on the microphone identifier.

[0077] In one embodiment of this application, in practical applications, if the configured channel of the microphone changes, in order to avoid the problem of incorrectly identifying the microphone input pin identifier due to the change in the configured channel of the microphone, the application processor 101 performs the following steps S31 and S32 to determine the microphone input pin identifier based on the microphone identifier.

[0078] Step S31: Determine the channel identifier corresponding to the microphone identifier based on the microphone identifier and the first preset mapping relationship.

[0079] Step S32: Determine the microphone input pin identifier based on the channel identifier and the second preset mapping relationship.

[0080] The preset mapping relationship includes a first preset mapping sub-relationship and a second preset mapping relationship. The first preset mapping sub-relationship is used to reflect the correspondence between the microphone identifier and the corresponding channel identifier, and the second preset mapping relationship is used to reflect the correspondence between the channel identifier and the microphone input pin identifier.

[0081] In this embodiment, different microphones are configured to different channels in different scenarios. The application processor 101 records a first preset mapping relationship between the microphone identifier of each microphone in the current scenario and the channel identifier of the configured channel. To achieve this, the application processor searches the aforementioned first preset mapping relationship for a channel identifier that matches the microphone identifier of the microphone to be phase corrected, thus implementing step S31.

[0082] Furthermore, the correspondence between audio channels and microphone input pins is fixed. The application processor 101 records a second preset mapping relationship between the microphone input pin identifiers (i.e., AFE pin identifiers) corresponding to the audio channel identifiers of different channels. In this regard, a microphone input pin identifier that matches the audio channel identifier obtained based on the above step S31 is searched in the aforementioned second preset mapping relationship to implement the above step S32.

[0083] In one embodiment of this application, the application processor 101 may obtain any of the above mapping relationships in the mixer path configuration.

[0084] After obtaining the microphone input pin identifier, the application processor 101 sends the microphone input pin identifier to the digital signal processor 102. In one embodiment of this application, the digital signal processor 102 may specifically be a digital audio signal processor.

[0085] Furthermore, to send the microphone input pin identifier to the digital signal processor 102, the microphone input pin identifier is encapsulated into an APR message and sent to the digital signal processor 102. Upon receiving the APR message, the digital signal processor 102 parses the APR message to obtain the microphone input pin identifier. Further, based on the fact that the sound signal picked up by the microphone is stored in the corresponding storage space via the microphone input pin connected to the corresponding channel, the storage space of the audio signal picked up by the microphone corresponding to that microphone input pin identifier can be determined according to the microphone input pin identifier. Even further, the audio data stored in the aforementioned storage space is corrected. In one example, if the microphone to be phase corrected is a microphone whose phase needs to be adjusted by 180°, the audio data 'data' in the aforementioned storage space is corrected to 0-'data'.

[0086] Based on the above, the audio signal phase correction system 100 provided in this application can perform phase correction of the audio signal picked up by the microphone. Specifically, the application processor 101 transmits the microphone input pin identifier corresponding to the microphone to be phase corrected to the digital signal processor 102, and the digital signal processor 102 corrects the audio signal of the microphone to be phase corrected based on the microphone input pin identifier. This avoids the problem of not being able to perform phase correction due to the inability to obtain the audio signal of a single microphone, thus avoiding the limitation of the recording scenario and covering all recording scenarios. This avoids the problem of only being able to perform audio correction in the specific recording scenario where the correction algorithm for a specific recording scenario is integrated into the digital signal processor 102. Furthermore, the phase correction is completed automatically without interfering with the microphone's recording process, and is imperceptible to the user. Finally, by correcting the audio signal in the storage space where the audio signal of the microphone to be phase corrected is located, the computational power and power consumption are low.

[0087] This application provides an audio signal phase correction system, comprising: an application processor, configured to, for any microphone to be phase corrected, acquire the microphone identifier of the microphone to be phase corrected, determine the microphone input pin identifier based on the microphone identifier and a preset mapping relationship, and send the microphone input pin identifier to a digital signal processor; the preset mapping relationship reflects the correspondence between the microphone identifier and the corresponding microphone input pin identifier; and a digital signal processor, configured to acquire the microphone input pin identifier from the application processor, determine the storage space where the audio signal picked up by the microphone corresponding to the microphone input pin identifier is located, and correct the audio signal in the storage space. This audio signal phase correction system can complete the phase correction of the audio signal picked up by the microphone. Specifically, the application processor transmits the microphone input pin identifier corresponding to the microphone to be phase corrected to the digital signal processor, and the digital signal processor corrects the audio signal of the microphone to be phase corrected based on the microphone input pin identifier. This avoids performing phase correction in the application processor's HAL layer, KERNEL layer, or codec driver, thus avoiding the problem of being unable to perform phase correction due to the inability to obtain the audio signal of a single microphone. On the other hand, it can operate independently of the limitations of any recording scenario, covering all recording scenarios. This avoids the problem of integrating correction algorithms for specific recording scenarios into a digital signal processor, which limits audio correction to the specific recording scenario in which the algorithm is loaded. Furthermore, it automatically performs phase correction without interfering with the microphone's recording process, making it imperceptible to the user. Finally, by correcting the audio signal stored in the microphone's audio signal storage space, it requires minimal additional computing power and consumes minimal power.

[0088] In one embodiment of this application, in order to accurately correct the audio phase of the microphone to be phase corrected, the phase correction parameters corresponding to the audio signal of the microphone to be phase corrected can be determined in advance based on acoustic experiments. The phase correction parameters include the phase correction direction and the phase correction amplitude. Based on this, the application processor 101 is further configured to perform the following step S41.

[0089] Step S41: Obtain the phase correction parameters of the microphone to be phase corrected, and send the phase correction parameters to the digital signal processor 102.

[0090] Corresponding to step S41 above, the digital signal processor 102 is specifically used to correct the audio signal in the storage space according to step S42 below.

[0091] Step S42: Correct the audio signal in the storage space according to the phase correction parameters.

[0092] It should be noted that the method by which the application processor 101 obtains the phase correction parameters of the microphone in step S41 above can be the same as the method by which the application processor obtains the microphone identifier, and the method by which the phase correction parameters are sent to the digital signal processor 102 can be the same as the method by which the application processor sends the microphone input pin identifier to the digital signal processor 102. Further details will not be provided here.

[0093] Based on the above, in one embodiment of this application, an audio signal phase correction system 100 is provided, such as... Figure 3 As shown. The application processor 101 includes a phase correction indication module 1011, a kcontrol node configuration module 1012, a microphone identifier to channel identifier mapping module 1013, a channel identifier to microphone input pin identifier mapping module 1014, and an APR message sending module 1015. The phase correction indication module 1011 and the kcontrol node configuration module 1012 are implemented through the HAL layer, while the microphone identifier to channel identifier mapping module 1013, the channel identifier to microphone input pin identifier mapping module 1014, and the APR message sending module 1015 are implemented through the KERNEL layer. The digital signal processor 102 includes an APR message receiving module 1021 and a phase correction module 1022.

[0094] Specifically, the phase correction indicator module 1011 is used to obtain the microphone identifier of the microphone to be phase corrected, and write the microphone identifier of the microphone to be phase corrected and the phase correction identifier into the phase correction configuration file.

[0095] The kcontrol node configuration module 1012 is used to read the phase correction configuration file to obtain the microphone identifier and correction identifier of the microphone to be phase corrected, encapsulate the microphone identifier and phase correction identifier of the microphone to be phase corrected into a kcontrol node, and pass the aforementioned kcontrol node to the KERNEL layer through the ioctl system.

[0096] The microphone identifier and channel identifier mapping module 1013 is used to determine the channel identifier corresponding to the microphone identifier based on the microphone identifier;

[0097] The channel identifier and microphone input pin identifier mapping module 1014 is used to determine the microphone input pin identifier based on the channel identifier;

[0098] The APR message sending module 1015 is used to encapsulate the microphone input pin identifier into an APR message and send the APR message to the digital signal processor 102;

[0099] The APR message receiving module 1021 is used to receive the APR message sent by the APR message sending module 1015, parse the APR message, and obtain the microphone input pin identifier.

[0100] The phase correction module 1022 is used to determine the storage space of the audio signal picked up by the microphone corresponding to the microphone input pin according to the microphone input pin identifier, and to correct the audio data stored in the aforementioned storage space.

[0101] This application also provides a phase correction method for audio signals, such as... Figure 4 As shown, it includes the following steps S410 and S420.

[0102] Step S410: For any microphone to be phase corrected, the application processor obtains the microphone identifier of the microphone to be phase corrected, determines the microphone input pin identifier according to the microphone identifier and the preset mapping relationship, and sends the microphone input pin identifier to the digital signal processor. The preset mapping relationship is used to reflect the correspondence between the microphone identifier and the corresponding microphone input pin identifier.

[0103] In step S420, the digital signal processor obtains the microphone input pin identifier from the application processor, determines the storage space where the audio signal picked up by the microphone corresponding to the microphone input pin identifier is located, and corrects the audio signal in the storage space.

[0104] In one embodiment of this application, the step S410 above, which involves determining the microphone input pin identifier based on the microphone identifier, includes the following steps S411 and S412.

[0105] Step S411: Determine the channel identifier corresponding to the microphone identifier based on the microphone identifier and the first preset mapping relationship;

[0106] Step S412: Determine the microphone input pin identifier based on the channel identifier and the second preset mapping relationship;

[0107] The preset mapping relationship includes a first preset mapping sub-relationship and a second preset mapping relationship. The first preset mapping sub-relationship is used to reflect the correspondence between the microphone identifier and the corresponding channel identifier, and the second preset mapping relationship is used to reflect the correspondence between the channel identifier and the microphone input pin identifier.

[0108] In one embodiment of this application, the phase correction method for audio signals provided in this application further includes the following step S430.

[0109] Step S430: The application processor obtains the phase correction parameters of the microphone to be phase corrected, and sends the phase correction parameters to the digital signal processor.

[0110] In this embodiment, the correction of the audio signal in the storage space in step S420 is specifically implemented through step S421 below.

[0111] Step S421: The digital signal processor corrects the audio signal stored in the storage space according to the phase correction parameter.

[0112] In one embodiment of this application, the acquisition of the microphone identifier of the microphone to be phase corrected in step S410 is achieved by the following steps S413 and S414.

[0113] Step S413: Receive input operation on the display interface for the microphone identifier of the microphone to be phase corrected;

[0114] Step S414: In response to the input operation, determine the microphone identifier of the microphone to be phase corrected.

[0115] In one embodiment of this application, step S410 is specifically implemented through step S415.

[0116] In step S415, the hardware abstraction layer deployed in the application processor obtains the microphone identifier of any microphone to be phase corrected, and the kernel layer deployed in the application processor determines the microphone input pin identifier according to the microphone identifier and a preset mapping relationship, and sends the microphone input pin identifier to the digital signal processor.

[0117] In one embodiment of this application, step S415 is specifically implemented through step S4151.

[0118] In step S4151, the hardware abstraction layer deployed in the application processor reads the phase correction configuration file, obtains the microphone identifier and phase correction identifier of the microphone to be phase corrected, encapsulates the microphone identifier and the phase correction identifier of the microphone to be phase corrected into a kcontrol node, and transmits the kcontrol node to the kernel layer deployed in the application processor through the ioctl system. The phase correction identifier is used to instruct the application processor to determine the microphone input pin identifier based on the microphone identifier in the kernel layer, and sends the microphone input pin identifier to the digital signal processor.

[0119] The kernel layer deployed in the application processor calls the put function registered by the kcontrol node to obtain the microphone identifier and phase correction identifier of the microphone to be phase corrected encapsulated in the kcontrol node. Under the indication of the phase correction identifier, the microphone input pin identifier is determined according to the microphone identifier and the preset mapping relationship, and the microphone input pin identifier is sent to the digital signal processor.

[0120] This application also provides an electronic device that includes the phase correction system 100 for audio signals provided in any of the above embodiments.

[0121] Or, such as Figure 5 As shown, the electronic device 500 includes a memory 510 and a processor 520. The memory 510 is used to store computer instructions, and the processor 520 is used to call the computer instructions from the memory 510 to execute any of the audio signal phase correction methods provided in the above method embodiments.

[0122] In the above embodiments, the processor 520 includes an application processor and a digital signal processor.

[0123] This application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a phase correction method for any of the audio signals provided in the above-described method embodiments.

[0124] This application may be a system, method, and / or computer program product. A computer program product may include a computer-readable storage medium having computer-readable program instructions loaded thereon for causing a processor to implement various aspects of this application.

[0125] Computer-readable storage media can be tangible devices capable of holding and storing instructions for use by an instruction execution device. Computer-readable storage media can be, for example—but not limited to—electrical storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, or any suitable combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disc read-only memory (CD-ROM), digital multifunction disc (DVD), memory sticks, floppy disks, mechanical encoding devices, such as punch cards or recessed protrusions storing instructions thereon, and any suitable combination thereof. The computer-readable storage media used herein are not to be construed as transient signals themselves, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., light pulses through fiber optic cables), or electrical signals transmitted through wires.

[0126] The computer-readable program instructions described herein can be downloaded from computer-readable storage media to various computing / processing devices, or downloaded via a network, such as the Internet, local area network, wide area network, and / or wireless network, to an external computer or external storage device. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards them to the computer-readable storage media in the respective computing / processing device.

[0127] The computer program instructions used to perform the operations of this application may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Smalltalk, C++, etc., and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The computer-readable program instructions may be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or may be connected to an external computer (e.g., via the Internet using an Internet service provider). In some embodiments, electronic circuits, such as programmable logic circuits, field-programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), are personalized by utilizing state information from the computer-readable program instructions. These electronic circuits can execute the computer-readable program instructions to implement various aspects of this application.

[0128] Various aspects of this application are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer-readable program instructions.

[0129] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that, when executed by the processor of the computer or other programmable data processing apparatus, they create means for implementing the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium that causes a computer, programmable data processing apparatus, and / or other device to operate in a particular manner; thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.

[0130] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to perform the functions / actions specified in one or more boxes of a flowchart and / or block diagram.

[0131] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of an instruction containing one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions. It will be well known to those skilled in the art that implementation in hardware, implementation in software, and implementation using a combination of software and hardware are equivalent.

[0132] The various embodiments of this application have been described above. These descriptions are exemplary and not exhaustive, nor are they limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen to best explain the principles, practical applications, or technical improvements to the technology in the market, or to enable others skilled in the art to understand the embodiments disclosed herein. The scope of this application is defined by the appended claims.

Claims

1. A phase correction system for an audio signal, characterized by The application comprises: An application processor is configured to obtain a microphone identifier of a microphone to be phase-corrected, determine a microphone input pin identifier according to the microphone identifier and a preset mapping relationship, and send the microphone input pin identifier to a digital signal processor, where the preset mapping relationship reflects a correspondence between the microphone identifier and the corresponding microphone input pin identifier; The digital signal processor is configured to obtain the microphone input pin identifier from the application processor, determine a storage space where an audio signal picked up by the microphone corresponding to the microphone input pin identifier is stored, and correct the audio signal in the storage space. The application processor is specifically configured to obtain a microphone identifier of a microphone to be phase-corrected by a hardware abstraction layer deployed in the application processor, and determine a microphone input pin identifier according to the microphone identifier and a preset mapping relationship by a kernel layer deployed in the application processor, and send the microphone input pin identifier to a digital signal processor. The application processor is specifically configured to: The hardware abstraction layer deployed in the application processor reads a phase correction configuration file, obtains a microphone identifier of a microphone to be phase-corrected and a phase correction identifier, encapsulates the microphone identifier of the microphone to be phase-corrected and the phase correction identifier as a kcontrol node, and transfers the kcontrol node to the kernel layer deployed in the application processor through an ioctl system, where the phase correction identifier is used to instruct the application processor to determine a microphone input pin identifier according to the microphone identifier in the kernel layer, and send the microphone input pin identifier to the digital signal processor. The kernel layer deployed in the application processor calls a put function registered by the kcontrol node to obtain the microphone identifier of the microphone to be phase-corrected and the phase correction identifier encapsulated in the kcontrol node, and determines a microphone input pin identifier according to the microphone identifier and a preset mapping relationship under the instruction of the phase correction identifier, and sends the microphone input pin identifier to the digital signal processor.

2. The system of claim 1, wherein, The application processor is specifically configured to: determine a sound channel identifier corresponding to the microphone identifier according to the microphone identifier and a first preset mapping sub-relationship; determine a microphone input pin identifier according to the sound channel identifier and a second preset mapping sub-relationship; The preset mapping relationship comprises the first preset mapping sub-relationship and the second preset mapping sub-relationship, the first preset mapping sub-relationship is used to reflect a correspondence between the microphone identifier and the corresponding sound channel identifier, and the second preset mapping sub-relationship is used to reflect a correspondence between the sound channel identifier and the microphone input pin identifier.

3. The system of claim 1, wherein, The application processor is further configured to obtain a phase correction parameter of the microphone to be phase-corrected, and send the phase correction parameter to the digital signal processor. The digital signal processor is specifically configured to correct the audio signal in the storage space according to the phase correction parameter.

4. The system of claim 1, wherein, The application processor is specifically used for: receiving an input operation of a microphone identifier of a microphone to be phase-corrected in a display interface; in response to the input operation, determining the microphone identifier of the microphone to be phase-corrected.

5. A phase correction method of an audio signal, characterized by, comprise: The application processor obtains the microphone identifier of the microphone to be phase-corrected, determines the microphone input pin identifier according to the microphone identifier and a preset mapping relationship, and sends the microphone input pin identifier to the digital signal processor for any microphone to be phase-corrected. The digital signal processor obtains the microphone input pin identifier from the application processor, determines a storage space of an audio signal picked up by the microphone corresponding to the microphone input pin identifier, and corrects the audio signal in the storage space. The application processor obtains the microphone identifier of the microphone to be phase-corrected, determines the microphone input pin identifier according to the microphone identifier and a preset mapping relationship, and sends the microphone input pin identifier to the digital signal processor for any microphone to be phase-corrected, comprising: The hardware abstraction layer deployed in the application processor obtains the microphone identifier of the microphone to be phase-corrected, and the kernel layer deployed in the application processor determines the microphone input pin identifier according to the microphone identifier and a preset mapping relationship, and sends the microphone input pin identifier to the digital signal processor. The hardware abstraction layer deployed in the application processor obtains the microphone identifier of the microphone to be phase-corrected, and the kernel layer deployed in the application processor determines the microphone input pin identifier according to the microphone identifier and a preset mapping relationship, and sends the microphone input pin identifier to the digital signal processor, comprising: The hardware abstraction layer deployed in the application processor reads a phase correction configuration file, obtains the microphone identifier of the microphone to be phase-corrected and a phase correction identifier, encapsulates the microphone identifier of the microphone to be phase-corrected and the phase correction identifier as a kcontrol node, and transmits the kcontrol node to the kernel layer deployed in the application processor through an ioctl system, wherein the phase correction identifier is used to instruct the application processor to determine the microphone input pin identifier according to the microphone identifier in the kernel layer, and send the microphone input pin identifier to the digital signal processor. The kernel layer deployed in the application processor calls a put function registered by the kcontrol node to obtain the microphone identifier of the microphone to be phase-corrected and the phase correction identifier encapsulated in the kcontrol node, and determines the microphone input pin identifier according to the microphone identifier and a preset mapping relationship under the instruction of the phase correction identifier, and sends the microphone input pin identifier to the digital signal processor.

6. The method of claim 5, wherein, The method further comprises: The application processor obtains a phase correction parameter of the microphone to be phase corrected, and sends the phase correction parameter to the digital signal processor; The digital signal processor corrects the stored audio signal in the storage space according to the phase correction parameter. The method further comprises:

7. The method of claim 5, wherein, The application processor obtains a phase correction parameter of the microphone to be phase corrected, and sends the phase correction parameter to the digital signal processor; The digital signal processor corrects the stored audio signal in the storage space according to the phase correction parameter. The method further comprises:

8. The method of claim 5, wherein, The application processor obtains a phase correction parameter of the microphone to be phase corrected, and sends the phase correction parameter to the digital signal processor; The digital signal processor corrects the stored audio signal in the storage space according to the phase correction parameter. The method further comprises:

9. An electronic device, comprising: The application processor obtains a phase correction parameter of the microphone to be phase corrected, and sends the phase correction parameter to the digital signal processor; The digital signal processor corrects the stored audio signal in the storage space according to the phase correction parameter.

10. A computer-readable storage medium, characterized in that, The method further comprises: The application processor obtains a phase correction parameter of the microphone to be phase corrected, and sends the phase correction parameter to the digital signal processor; The digital signal processor corrects the stored audio signal in the storage space according to the phase correction parameter. The method further comprises: The application processor obtains a phase correction parameter of the microphone to be phase corrected, and sends the phase correction parameter to the digital signal processor; The digital signal processor corrects the stored audio signal in the storage space according to the phase correction parameter. The method further comprises: The application processor obtains a phase correction parameter of the microphone to be phase corrected, and sends the phase correction parameter to the digital signal processor; The digital signal processor corrects the stored audio signal in the storage space according to the phase correction parameter. The method further comprises: The application processor obtains a phase correction parameter of the microphone to be phase corrected, and sends the phase correction parameter to the digital signal processor; The digital signal processor corrects the stored audio signal in the storage space according to the phase correction parameter. The method further comprises: The application processor obtains a phase correction parameter of the microphone to be phase corrected, and sends the phase correction parameter to the digital signal processor; The digital signal processor corrects the stored audio signal in the storage space according to the phase correction parameter. The method further comprises: The application processor obtains a phase correction parameter of the microphone to be phase corrected, and sends the phase correction parameter to the digital signal processor; The digital signal processor corrects the stored audio signal in the storage space according to the phase correction parameter. The method further comprises: The application processor obtains a phase correction parameter of the microphone to be phase corrected, and sends the phase correction parameter to the digital signal processor; The digital signal processor corrects the stored audio signal in the storage space according to the phase correction parameter. The method further comprises: The application processor obtains a phase correction parameter of the microphone to be phase corrected, and sends the phase correction parameter to the digital signal processor; The digital signal processor corrects the stored audio signal in the storage space according to the phase correction parameter. The method further comprises: The application processor obtains a phase correction parameter of the microphone to be phase corrected, and sends the phase correction parameter to the digital signal processor; The digital signal processor corrects the stored audio signal in the storage space according to the phase correction parameter. The method further comprises: The application processor obtains a phase correction parameter of the microphone to be phase corrected, and sends the phase correction parameter to the digital signal processor; The digital signal processor corrects the stored audio signal in the storage space according to the phase correction parameter. The method further comprises: The application processor obtains a phase correction parameter of the microphone to be phase corrected, and sends the phase correction parameter to the digital signal processor; The digital signal processor corrects the stored audio signal in the storage space according to the phase correction parameter. The method further comprises: The application processor obtains a phase correction parameter of the microphone to be phase corrected, and sends the phase correction parameter to the digital signal processor; The digital signal processor corrects the stored audio signal in the storage space according to the phase correction parameter. The method further comprises: The application processor obtains a phase correction parameter of the microphone to be phase corrected, and sends the phase correction parameter to the digital signal processor; The digital signal processor corrects the stored audio signal in the storage space according to the phase correction parameter. The method further comprises

Citation Information

Patent Citations

  • Microphone test device, calibration method thereof and readable storage medium

    CN111683333A

  • Electronic equipment and signal processing method and device

    CN114095834A