Microphone location determination method, headphones and storage media

By using a speaker in the headset to emit a sweeping signal and calculate the signal difference information to determine the microphone position, the problem of poor microphone positioning reliability in the prior art is solved, and the effect of simplifying hardware design and improving positioning reliability is achieved.

CN120769211BActive Publication Date: 2026-01-30GOERTEK INC
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202511294074.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-09-11
Publication Date
2026-01-30
Estimated Expiration
2045-09-11

AI Technical Summary

Technical Problem

In existing technologies, microphone position detection methods increase the complexity of the internal structure of the earphone, and the data between sensors interfere with each other, resulting in low reliability of positioning detection.

Method used

The system emits a sweep frequency signal through a speaker, and after the microphone collects the signal, it uses the signal difference information to calculate the target distance between the microphone and the speaker, thereby determining the microphone position. This simplifies the hardware design and improves the reliability of positioning.

Benefits of technology

The internal structure of the headphones has been simplified, production costs have been reduced, and the reliability and stability of microphone position detection have been improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120769211B_ABST
    Figure CN120769211B_ABST
Patent Text Reader

Abstract

This application discloses a method for determining the position of a microphone, an earphone, and a storage medium, relating to the field of earphone technology and applied to earphones. The earphone is equipped with a microphone and a speaker. The disclosed method for determining the position of the microphone includes: controlling the speaker to emit a sweep frequency signal and acquiring a microphone signal obtained by the microphone after acquiring the sweep frequency signal; determining a target distance between the microphone and the speaker based on the signal difference information between the sweep frequency signal and the microphone signal; and determining the microphone position based on the target distance. Based on this, by emitting a specific sweep frequency signal through the speaker and then acquiring the audio signal by the microphone, the time delay, frequency response, and phase are calculated to obtain the microphone position, improving the reliability and stability of the system when detecting the microphone position.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of earphones, in particular to a microphone position determination method, an earphone and a storage medium. BACKGROUND

[0002] On a game headset, a user can adjust the microphone telescopic rod according to his own needs, so as to adjust the position of the microphone and improve the voice quality. The telescopic position of the microphone is usually associated with the best noise reduction parameters and audio sound effect processing algorithm, so it is crucial to detect the telescopic position of the microphone telescopic rod.

[0003] In a related microphone position detection method, a plurality of positioning sensors are usually arranged on the earphone, and the microphone position is determined based on the relative positions of the plurality of sensors, for example, a plurality of contact or photoelectric sensors are arranged on the telescopic track to determine the microphone position. Although this detection method can realize coordinate positioning, it increases the complexity of the internal structure of the earphone, and the data between the sensors interfere with each other, reducing the reliability of the positioning detection.

[0004] The above content is only used to assist in understanding the technical solutions of the present application and does not represent the acknowledgement of the above content as prior art. SUMMARY

[0005] The main purpose of the present application is to provide a microphone position determination method, an earphone and a storage medium, which aims to solve the technical problem of poor microphone positioning reliability.

[0006] To achieve the above purpose, the present application provides a microphone position determination method applied to an earphone, wherein the earphone is provided with a microphone and a loudspeaker, and the microphone position determination method comprises the following steps:

[0007] controlling the loudspeaker to emit a sweep signal, and obtaining a microphone signal obtained after the microphone collects the sweep signal;

[0008] determining a target distance between the microphone and the loudspeaker according to signal difference information between the sweep signal and the microphone signal;

[0009] determining the microphone position according to the target distance.

[0010] In an embodiment, the earphone is provided with a rigid telescopic rod or a rigid rotating rod, and the step of determining the microphone position according to the target distance comprises:

[0011] determining a weight coefficient corresponding to the target distance, and determining the telescopic length of the rigid telescopic rod or the rotation angle of the rigid rotating rod according to the target distance and the weight coefficient;

[0012] The microphone position is determined according to the telescopic length, or the microphone position is determined according to the rotation angle.

[0013] In an embodiment, the earphone is provided with a rigid telescopic rod or a rigid rotation rod, and the step of determining the microphone position according to the target distance comprises:

[0014] A sphere is determined, with the speaker position as the center and the target distance as the diameter.

[0015] A movement track of the microphone is obtained, which is a line segment when the microphone is arranged on the rigid telescopic rod, or an arc when the microphone is arranged on the rigid rotation rod.

[0016] The microphone position is determined according to the intersection of the movement track and the sphere in space.

[0017] In an embodiment, the earphone is provided with a flexible rod and at least four speakers at different positions, and the step of determining the microphone position according to the target distance comprises:

[0018] The positions of the speakers are determined, and at least four spheres are determined between the positions of the speakers and the target distance.

[0019] The microphone position is determined according to the intersection of the at least four spheres.

[0020] In an embodiment, the speakers are arranged in the earphone hole and outside the earphone.

[0021] In an embodiment, the step of determining the target distance between the microphone and the speaker according to the signal difference information between the sweep signal and the microphone signal comprises:

[0022] A first distance between the microphone and the speaker is determined according to the time delay information between the sweep signal and the microphone signal.

[0023] The phase difference and the amplitude between each frequency point are determined according to the fast Fourier transform results corresponding to the sweep signal and the microphone signal respectively.

[0024] A second distance between the microphone and the speaker is determined according to the phase difference, and a third distance between the microphone and the speaker is determined according to the amplitude.

[0025] In an embodiment, the step of determining the first distance between the microphone and the speaker according to the time delay information between the sweep signal and the microphone signal comprises:

[0026] determining the time delay information according to a cross-correlation function between the sweep signal and the microphone signal;

[0027] calculating the first distance between the microphone and the speaker according to the time delay information and a sound velocity parameter.

[0028] In an embodiment, the step of determining a second distance between the microphone and the speaker according to the phase difference; determining a third distance between the microphone and the speaker according to the amplitude includes:

[0029] calculating a phase difference distance corresponding to each frequency point according to the phase difference, and setting an average value of the phase difference distances as the second distance;

[0030] calculating an amplitude distance corresponding to each frequency point according to the amplitude, and setting the amplitude distance as the third distance.

[0031] In addition, to achieve the above object, the present application further provides an earphone, which comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program is configured to implement the steps of the microphone position determination method.

[0032] In addition, to achieve the above object, the present application further provides a storage medium, which is a computer readable storage medium, and the storage medium stores a computer program, and the computer program is executed by a processor to implement the steps of the microphone position determination method.

[0033] The one or more technical solutions provided by the present application have at least the following technical effects:

[0034] When determining the position of the microphone, the speaker is first controlled to emit a sweep signal, and the sweep signal is collected by the microphone to obtain a microphone signal, then the target distance between the microphone and the speaker is calculated through the signal difference information such as time delay, frequency response and phase between the sweep signal and the microphone signal, and finally the actual position of the microphone is determined through the target distance and the position of the speaker. Based on this, the specific sweep signal is emitted by the speaker, and the audio signal is collected by the microphone, the time delay, the frequency response and the phase are calculated, and the position of the microphone is obtained. Not only the hardware design is simplified, but also the production cost is reduced, and the reliability and stability of the system in detecting the position of the microphone are improved. BRIEF DESCRIPTION OF DRAWINGS

[0035] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the application.

[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the accompanying drawings needed to be used in the embodiments or prior art description will be briefly introduced. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without any creative effort.

[0037] Figure 1 The flowchart provided for the first embodiment of the microphone position determination method of the present application;

[0038] Figure 2 The earphone schematic diagram provided for the microphone position determination method of the present application with a rigid telescopic rod or a rigid rotary rod;

[0039] Figure 3 The earphone schematic diagram provided for the microphone position determination method of the present application with a flexible rod;

[0040] Figure 4 The flowchart provided for the fourth embodiment of the microphone position determination method of the present application;

[0041] Figure 5 The brief flowchart of the microphone position determination method obtained by combining the various embodiments of the microphone position determination method of the present application;

[0042] Figure 6 The device structure schematic diagram of the hardware running environment involved in the microphone position determination method in the embodiments of the present application.

[0043] Explanation of the reference signs:

[0044] 1. rigid telescopic rod;

[0045] 2. rigid rotary rod;

[0046] 3. knob;

[0047] 4. flexible rod.

[0048] The purpose implementation, functional features and advantages of the present application will be further explained with reference to the embodiments and the accompanying drawings. DETAILED DESCRIPTION

[0049] It should be understood that the specific embodiments described here are only used to explain the technical solutions of the present application, and are not used to limit the present application.

[0050] The main solution of the embodiments of the present application is to control the loudspeaker to emit a sweep signal, and obtain the microphone signal obtained after the microphone collects the sweep signal;

[0051] According to signal difference information between the sweep signal and the microphone signal, a target distance between the microphone and the loudspeaker is determined.

[0052] A microphone position is determined according to the target distance.

[0053] In the present embodiment, the following is described taking a headset as the execution subject for the sake of description.

[0054] On a game headset, the adjustability of the microphone telescopic rod enables the user to adjust the position of the microphone according to his own needs, thereby improving the voice quality and enhancing the user's game experience. However, in order to optimize the noise reduction and audio sound effect processing algorithm, it is crucial to detect the extension position of the microphone telescopic rod.

[0055] In related microphone position detection methods, a plurality of positioning sensors are usually arranged on the headset, and the microphone is positioned based on the relative positions of the plurality of sensors. For example, a plurality of contact or photoelectric sensors are arranged on the extension track to determine the position of the microphone. Although this detection method can achieve coordinate positioning, it increases the complexity of the internal structure of the headset, and the data of the sensors interfere with each other, reducing the reliability of the positioning detection.

[0056] The present application provides a solution, which emits a specific sweep signal through a loudspeaker, and then collects the audio signal through a microphone, calculates the time delay, frequency response and phase to obtain the position of the microphone, thereby improving the reliability and stability of the microphone position detection by the system.

[0057] In order to better understand the technical solutions of the present application, the following will be described in detail in combination with the drawings of the specification and specific embodiments.

[0058] The present application provides a microphone position determination method, which is applied to a headset, and the headset is provided with a microphone and a loudspeaker. When the headset is an in-ear headset, the microphone is usually arranged in a fixed area. When the headset is a headset, the microphone can be connected to the headset through different types of connecting rods, such as a rigid telescopic rod, a rigid rotating rod and a flexible telescopic rod, etc., and connected with the headset body or externally connected to the headset body. Based on this, please refer to Figure 1 , Figure 1 The flowchart of the first embodiment of the microphone position determination method of the present application.

[0059] In the present embodiment, the microphone position determination method comprises steps S10-S30:

[0060] Step S10, control the loudspeaker to emit a sweep signal, and obtain the microphone signal obtained after the microphone collects the sweep signal.

[0061] It should be noted that in the traditional microphone position detection method, the position is detected by a sensor, however, the sensor detection method not only increases the hardware cost, but also increases the complexity of the earphone structure, resulting in low detection reliability and accuracy.

[0062] In the embodiment, the sensor is not required to be arranged on the microphone, and the position of the microphone on the connecting rod can be directly calculated through acoustic signal processing of the microphone and the loudspeaker. Therefore, when the position of the microphone is detected, the loudspeaker is controlled to emit a sweep frequency signal, so that the microphone collects the sweep frequency signal and generates a microphone signal, and the straight line distance between the signal emission point and the receiving point is calculated through the difference between the microphone signal and the sweep frequency signal.

[0063] It should be noted that the loudspeaker is arranged on the earphone hole and outside the earphone. For the traditional closed headset, a double-unit loudspeaker is required, and at this time, the loudspeaker outside the earphone can output audio to the outside of the ear cover, that is, emit a sweep frequency signal, so that the microphone on the connecting rod can collect the audio signal. For the open headset, since there is no closed ear cover, only the sweep frequency signal needs to be played, at this time, the directional sound field can not be made, and it is only required that the microphone can collect the signal.

[0064] In step S20, the target distance between the microphone and the loudspeaker is determined according to the signal difference information between the sweep frequency signal and the microphone signal.

[0065] In the embodiment, the signal difference information includes time delay, phase, frequency response, amplitude, bandwidth, frequency modulation slope and the like of the signal. The distance between the microphone and the loudspeaker can be calculated by one of the signal difference information, or the distance can be calculated by at least two signal difference information, and then the actual distance is optimized based on the calculated weight value. It can be understood that the distance is calculated by the time delay method, that is, the distance is obtained by multiplying the time difference of signal propagation by the speed, the difference between the phases, and the like. The specific calculation method is not limited in the present application.

[0066] It should be noted that the calculated target distance can be one or multiple, which can be set according to the actual situation of the earphone.

[0067] In step S30, the position of the microphone is determined according to the target distance.

[0068] In the embodiment, the loudspeaker is usually provided with a sensor, and the position of the loudspeaker is relatively fixed, and the position of the loudspeaker can be determined based on the sensor.

[0069] Different types of earphones and earphones with different microphone connecting rods have different calculation methods when calculating the position of the microphone. For example, when the movement trajectory of the microphone is relatively simple, such as a linear segment or an arc, the length of the linear segment or the radian of the arc associated with the target distance can be calculated, and then the position of the microphone can be determined based on the length of the linear segment or the radian of the arc. It can be understood that when the movement trajectory of the microphone is relatively simple, that is, the microphone is arranged on a rigid telescopic rod, it can be extended to a fixed length, and when it is arranged on a rigid rotating rod, it can be rotated by a certain angle.

[0070] In addition, the position of the microphone can also be determined by the target distance, the movement trajectory of the microphone and the position of the loudspeaker, such as determining a sphere by the position of the loudspeaker and the target distance, and determining the position of the microphone according to the intersection of the sphere and the movement trajectory.

[0071] Alternatively, if the movement trajectory of the microphone is complex, such as being able to move arbitrarily on a certain spherical surface in space, at least four loudspeakers at different positions and corresponding four target distances are required to calculate the position of the microphone.

[0072] The embodiment provides a method for determining the position of a microphone. The collected swept frequency signal and the original swept frequency signal emitted by the loudspeaker are calculated to obtain the target distance between the microphone and the loudspeaker. Then, the length of the linear segment or the radian of the arc is calculated based on the target distance, and the position of the microphone is determined by the length of the linear segment or the radian of the arc. Alternatively, a sphere is calculated by the target distance and the position of the loudspeaker, and the position of the microphone is calculated by the intersection of the sphere and the trajectory. In this way, the position of the microphone is accurately calculated by processing the acoustic signals of the microphone and the loudspeaker, and the reliability of the calculation of the position of the microphone is improved.

[0073] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as the above first embodiment can be referred to the above introduction, and will not be described in detail. On this basis, please refer to Figure 2 A, when the microphone is arranged on the rigid telescopic rod 1, the microphone can move in the linear telescopic area of the rigid telescopic rod 1. Please refer to Figure 2 B, when the microphone is arranged on the rigid rotating rod 2, the user can adjust the position of the microphone through the rigid rotating rod and the knob 3, so that the microphone moves in a specific arc telescopic area. At this time, since the movement trajectory of the microphone is a known trajectory, the position of the microphone can be directly calculated by the target distance.

[0074] Therefore, the earphone is provided with a rigid telescopic rod or a rigid rotating rod, that is, the microphone is arranged on the rigid telescopic rod or the rigid rotating rod. As an optional implementation of determining the position of the microphone according to the target distance, the weight coefficient corresponding to the target distance can be determined, and the telescopic length of the rigid telescopic rod or the rotation angle of the rigid rotating rod is determined according to the target distance and the weight coefficient. Finally, the position of the microphone is determined according to the telescopic length or the rotation angle. When the target distance is one, the weight coefficient corresponding to the target distance is one, and when the target distance is multiple, the weight coefficient is also multiple.

[0075] In the embodiment, when the microphone is arranged on the rigid telescopic rod or the rigid rotating rod, the microphone can only move in a specific position, and because the position of the loudspeaker is relatively fixed with the position of the earphone, each distance calculated based on the acoustic signal corresponds to the telescopic length of the rigid telescopic rod or the rotation angle of the rigid rotating rod of the microphone.

[0076] Therefore, the length of the rigid telescopic rod of the microphone corresponding to the target distance and the weight coefficient thereof can be calculated by using the linear regression model, or the rotation angle of the rigid rotating rod can be calculated. Because the microphone can only move in a fixed position, the length of the telescopic rod corresponds to the position of the microphone, and the rotation angle also corresponds to the position of the microphone. That is, the position of the microphone can be directly determined according to the telescopic length, or the position of the microphone can be determined according to the rotation angle. For example, the length of the telescopic rod is a, and the corresponding position of the microphone is (x1, y1, z1). The rotation angle is b, and the corresponding position of the microphone is (x2, y2, z2). It can be understood that in the training stage of the linear regression model, the distance values obtained in three ways of time delay, frequency response, and phase difference of the left and right ears can be calculated when the telescopic rod of the microphone extends different lengths, so as to collect as many distance values of different positions as possible, and the corresponding extension lengths are recorded, thereby improving the accuracy of the determination of the position of the microphone.

[0077] Further, in order to improve the accuracy of the determination of the position of the microphone, the sweep frequency signal can be emitted by multiple different loudspeakers, so as to obtain multiple different target distances, thereby improving the accuracy of the determination of the telescopic length or the rotation angle according to the target distance, and further improving the accuracy of the determination of the position of the microphone.

[0078] Alternatively, in another optional implementation of determining the position of the microphone according to the target distance, a sphere with the position of the loudspeaker as the center and the target distance as the radius can be determined, then the moving track of the microphone is obtained, the moving track is a line segment when the microphone is arranged on the rigid telescopic rod, and the moving track is an arc when the microphone is arranged on the rigid rotating rod, and finally the position of the microphone is determined according to the intersection of the moving track and the sphere in space. The position of the microphone corresponds to the telescopic length of the rigid telescopic rod or the rotation angle of the rigid rotating rod.

[0079] Further, in order to improve the accuracy of the microphone position determination, a plurality of spheres can be determined through a plurality of different speaker positions and their corresponding target distances. Taking at least two spheres as an example, after determining the two spheres, the intersection circle between the two spheres is determined, and finally the intersection point between the moving track and the intersection circle is set as the microphone position. By determining the microphone position through at least two spheres, the error influence of the target distance is effectively reduced.

[0080] It can be understood that, in a normal and undamaged case, since the connecting rod is a rigid rod, the moving track is a known and fixed track, and there is usually only one intersection point between the track and the sphere. When the rigid rod is damaged, the microphone position detection is usually not required. If the detection is still performed and a plurality of intersection points are detected, whether the position is an accurate position is analyzed through the intersection point position. The specific judgment process is not limited in the present application.

[0081] The embodiment provides a microphone position determination method. When a rigid telescopic rod or a rigid rotating rod is arranged in an earphone, the microphone moves at a specific position based on the telescopic rod or the rotating rod. At this time, the microphone position is determined through a linear regression model to determine the target distance associated with the telescopic length or the rotation angle, or the intersection point of the sphere formed by the speaker position and the target position and the theoretical moving track of the microphone is calculated to determine the microphone position. Based on this, the microphone position is accurately calculated through acoustic signal processing of the microphone and the speaker, and the accuracy and reliability of the microphone position calculation are improved.

[0082] Based on the first embodiment of the present application, in the third embodiment of the present application, the same or similar contents as the above first embodiment can be referred to the above introduction, and will not be described in detail. On this basis, please refer to Figure 3 The microphone is arranged on the flexible rod 4, and the microphone can move in a specific range based on the length of the flexible rod 1, that is, the moving track is relatively complex.

[0083] Therefore, when the earphone is provided with a flexible rod and the microphone is arranged on the flexible rod, the earphone is further provided with at least four speakers at different positions. As an optional embodiment for determining the microphone position according to the target distance and the speaker position, the positions of the speakers and at least four spheres between the positions of the speakers and the target distance are determined, and then the microphone position is determined according to the intersection points between the at least four spheres. The equation formed by the four spheres has only one real solution, and the real solution is the microphone position.

[0084] It can be understood that the earphone usually only has one type of connecting rod.

[0085] Based on the first embodiment of this application, in the fourth embodiment of this application, the same or similar content as the first embodiment can be referred to the above description, and will not be repeated hereafter. On this basis, the signal difference information includes time delay information, phase difference between frequency points after the signal undergoes a fast Fourier transform, and frequency response information, while the target distance includes a first distance calculated based on the time delay information, a second distance calculated based on the phase difference, and a third distance calculated based on the frequency response.

[0086] Therefore, please refer to Figure 4 Step S20 includes steps S21 to S23:

[0087] Step S21: Determine the first distance between the microphone and the speaker based on the time delay information between the frequency sweep signal and the microphone signal.

[0088] In this embodiment, the delay information is the time delay from signal transmission to reception, which can be determined based on the cross-correlation function between the sweep frequency signal and the microphone signal.

[0089] Specifically, the cross-correlation function is calculated for the original swept frequency signal x(t) played by the speaker and the signal y(t) collected by the microphone:

[0090] .

[0091] in This is a frequency sweep signal. It is the microphone signal captured by the microphone. It's a time delay.

[0092] It is to find the one that maximizes the cross-correlation function. value, It is the time delay information between the signal collected by the microphone and the original frequency sweep signal.

[0093] After obtaining the time delay information, a first distance between the microphone and the speaker can be calculated based on the time delay information and the sound speed parameters. That is, the first distance. c is the signal propagation speed.

[0094] Step S22: Determine the phase difference and amplitude between each frequency point based on the Fast Fourier Transform results corresponding to the frequency sweep signal and the microphone signal, respectively.

[0095] In this embodiment, when calculating the target distance based on frequency response and phase difference, it is necessary to perform Fast Fourier Transform (FFT) processing on the original sweep frequency signal and the microphone signal collected by the microphone. The parameter corresponding to the frequency response is the amplitude between frequency points. Therefore, the phase difference and amplitude between frequency points can be determined based on the FFT processing result.

[0096] Step S23: Determine the second distance between the microphone and the speaker based on the phase difference; determine the third distance between the microphone and the speaker based on the amplitude.

[0097] In this embodiment, during the determination of the second distance, the phase difference distance corresponding to each frequency point can be calculated based on the phase difference, and the average value of the phase difference distance is set as the second distance. Specifically, the phase difference between the microphone signal and the sweep signal is calculated for each frequency point:

[0098] ,

[0099] Then calculate based on the phase difference:

[0100] ,

[0101] in, It is the phase difference calculated in the previous step. It's frequency. It's distance. It's the speed of sound.

[0102] Similarly, a set of distances can be calculated for different frequency points. Therefore, the final distance calculation for the phase difference method is as follows:

[0103] ,

[0104] in, Let i be the distance calculated by the phase difference at frequency i, and n be the total number of frequency points.

[0105] Furthermore, in determining the third distance, the amplitude distance corresponding to each frequency point can be calculated based on the amplitude, and this amplitude distance can be set as the third distance. Specifically, the amplitude of each frequency point can be calculated, and then the distance of each frequency point can be calculated:

[0106] ,

[0107] in, It represents the energy at a distance d when the frequency is f. It is the energy of the frequency sweep signal. It is the attenuation coefficient of a signal propagating through the air at a frequency of f. This represents the distance between the original signal and the acquired signal.

[0108] At this time, the corresponding distance can be calculated for each frequency point Therefore, the final distance calculation for the frequency response method is:

[0109] ,

[0110] wherein is the distance calculated by the frequency response of the frequency point i, and n is the number of all frequency points.

[0111] Further, after calculating a plurality of different target distances through the difference information of different categories of signals, the accuracy of calculating the extension length of the rigid extension rod or the rotation angle of the rigid rotation rod based on the linear regression model can be effectively improved.

[0112] Taking the rigid extension rod as an example, after calculating the target distance between two different loudspeakers and microphones through time delay, frequency response, and phase difference, the distance values obtained are: , , , , , The corresponding weight coefficients for this set of distance values are Therefore, the length L of the corresponding rigid extension rod calculated by the linear regression model is as follows:

[0113] .

[0114] The embodiment provides a position determination method of a microphone. The target distance values corresponding to different parameters are calculated through the time difference, phase difference, and frequency response parameters between the original sweep signal and the microphone signal, so as to calculate the position of the microphone based on the different target distance values in multiple dimensions, thereby improving the accuracy and reliability of the microphone position calculation.

[0115] Based on the first embodiment of the application, in the fifth embodiment of the application, the same or similar contents as the above first embodiment can be referred to the above introduction, and will not be described in detail. On this basis, after determining the position of the microphone, the audio noise reduction parameter and the audio optimization algorithm associated with the position of the microphone can be obtained, and then the audio parameter collected by the microphone is updated according to the audio noise reduction parameter and the audio optimization algorithm. In this way, the actual position of the earphone is used to improve the output effect of the audio.

[0116] Exemplarily, in order to help understand the implementation process of the position determination method of the microphone obtained after the above various embodiments, please refer to Figure 5 , Figure 5A brief flowchart of a microphone position determination method is provided, taking a rigid telescopic rod as an example, specifically: first, detect the earphone state and after detecting that the earphone is in a wearing state, control the loudspeaker to play a sweep signal and collect the signal through the telescopic rod microphone, then calculate the distances corresponding to the three dimensions of signal delay, frequency response and phase difference, and calculate the telescopic rod length based on a linear regression model and at least three types of distances, so as to determine the microphone position through the telescopic rod length, finally adjust the noise reduction parameters and sound effect optimization algorithm through the microphone position to improve the audio output effect, based on which the microphone position is accurately learned, and the output sound effect is improved based on the microphone position.

[0117] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the microphone position determination method of the present application, and more forms of simple transformation based on this technical concept are within the protection scope of the present application.

[0118] The present application provides an earphone, which comprises: at least one processor; and a memory in communication connection with the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the microphone position determination method in the first embodiment.

[0119] Reference will be made to the accompanying drawings Figure 6 which shows a structural schematic diagram of an earphone suitable for use to implement the embodiments of the present application. Figure 6 The earphone shown is only an example and should not bring any limitation to the function and use range of the embodiments of the present application.

[0120] As Figure 6As shown, the earphone can include a processing device 1001 (e.g., a central processing unit, a graphics processing unit, etc.) that can perform various appropriate actions and processes according to programs stored in a read-only memory (ROM) 1002 or programs loaded from a storage device 1003 into a random access memory (RAM) 1004. Various programs and data required for earphone operation are also stored in the random access memory 1004. The processing device 1001, the read-only memory 1002, and the random access memory 1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the input / output interface 1006: input devices 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; the storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the earphone to communicate wirelessly or wiredly with other devices to exchange data. Although the earphone with various systems is shown in the figure, it should be understood that all the systems shown are not required to be implemented or possessed. More or fewer systems can be alternatively implemented or possessed.

[0121] In particular, according to the embodiments disclosed in the present application, the processes described above with reference to the flowcharts can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product comprising a computer program carried on a computer readable medium, the computer program containing program codes for executing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network through the communication device, or installed from the storage device 1003, or installed from the read-only memory 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the methods of the embodiments disclosed in the present application are performed.

[0122] The earphone provided in the present application adopts the microphone position determination method in the above-mentioned embodiments, and can solve the technical problem of poor microphone positioning reliability. Compared with the prior art, the earphone provided in the present application has the same beneficial effects as the microphone position determination method provided in the above-mentioned embodiments, and other technical features in the earphone are the same as the features disclosed in the previous embodiment method, which will not be repeated here.

[0123] It should be understood that various parts of the present application can be realized in hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0124] The above merely provides the specific implementation of the present application, but the protection scope of the present application is not limited to this. Any person skilled in the art can easily think of the changes or replacements within the technical range disclosed by the present application, which should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

[0125] The present application provides a computer readable storage medium having stored thereon computer readable program instructions (i.e. computer programs) for performing the position determination method of the microphone in the above embodiments.

[0126] The computer readable storage medium provided by the present application may, for example, be a U disk, but is not limited to an electric, magnetic, optical, electromagnetic, infrared or semiconductor system, system or device, or any combination of the above. More specific examples of the computer readable storage medium can include, but are not limited to: an electric connection with one or more conductive wires, a portable computer disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present embodiment, the computer readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system or device. The program code contained on the computer readable storage medium can be transmitted by any suitable medium, including but not limited to: electric wires, optical cables, radio frequencies (RF), etc., or any suitable combination of the above.

[0127] The above computer readable storage medium can be contained in the earphone; or can exist separately without being assembled into the earphone.

[0128] The above computer readable storage medium carries one or more programs, which, when executed by the earphone, cause the earphone to:

[0129] control the loudspeaker to emit a sweep signal, and acquire a microphone signal obtained after the microphone collects the sweep signal;

[0130] According to signal difference information between the sweep signal and the microphone signal, a target distance between the microphone and the loudspeaker is determined;

[0131] According to the target distance, a microphone position is determined.

[0132] Computer program code for carrying out operations of the present application can be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code can execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection can be made to an external computer (for example, through the Internet using an Internet Service Provider).

[0133] The flow diagrams and the block diagrams in the drawings are illustrations of architectures, functionalities, and operations of possible implementations of systems, methods, and computer program products according to various embodiments of present application. In this regard, each block in the flow diagrams or block diagrams can represent a module, a procedure, or a part of code, which comprises one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions noted in the blocks can occur out of the order noted in the figures. For example, two blocks shown in succession may, in some cases, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and / or flow diagrams, and combinations thereof, can be implemented by a dedicated hardware-based system that carries out specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.

[0134] The modules involved in the embodiments of the present application can be implemented in software or hardware. In some cases, the names of the modules do not constitute a limitation on the modules themselves.

[0135] The readable storage medium provided by the application is a computer readable storage medium, which stores computer readable program instructions (i.e. computer programs) for executing the above-mentioned microphone position determination method, and can solve the technical problem of poor microphone positioning reliability. Compared with the prior art, the computer readable storage medium provided by the application has the same beneficial effects as the microphone position determination method provided by the above-mentioned embodiments, and will not be described here.

[0136] The above is only part of the embodiments of the application, and does not limit the patent scope of the application. Any equivalent structural transformation made by using the content of the application specification and drawings, or direct / indirect application in other related technical fields is included in the patent protection scope of the application.

Claims

1. A method of position determination of a microphone, characterized by, The application is applied to earphone which is provided with microphone and speaker, and the earphone is provided with rigid telescopic rod or rigid rotating rod, and the position determination method of the microphone comprises: controlling the speaker to emit sweep signal and obtaining microphone signal obtained after the microphone collects the sweep signal; determining target distance between the microphone and the speaker according to signal difference information between the sweep signal and the microphone signal; determining microphone position according to the target distance, including when the earphone is provided with rigid telescopic rod, determining sphere with the position of the speaker as sphere center and the target distance as sphere diameter; obtaining moving track of the microphone, the moving track being line segment; determining the microphone position according to intersection of the moving track and the sphere in space; or when the earphone is provided with rigid rotating rod, determining sphere with the position of the speaker as sphere center and the target distance as sphere diameter; obtaining moving track of the microphone, the moving track being arc; determining the microphone position according to intersection of the moving track and the sphere in space.

2. The microphone position determination method of claim 1, wherein, The step of determining microphone position according to the target distance when the earphone is provided with rigid telescopic rod or rigid rotating rod comprises: determining weight coefficient corresponding to the target distance and determining telescopic length of the rigid telescopic rod or determining rotating angle of the rigid rotating rod according to the target distance and the weight coefficient; determining the microphone position according to the telescopic length or determining the microphone position according to the rotating angle.

3. The microphone position determination method according to any one of claims 1 to 2, wherein The speaker is arranged in earphone hole and outside the earphone.

4. The microphone position determination method of claim 1, wherein, The step of determining target distance between the microphone and the speaker according to signal difference information between the sweep signal and the microphone signal comprises: determining first distance between the microphone and the speaker according to time delay information between the sweep signal and the microphone signal; determining phase difference and amplitude between each frequency point according to fast Fourier transform results corresponding to the sweep signal and the microphone signal respectively; determining second distance between the microphone and the speaker according to the phase difference and determining third distance between the microphone and the speaker according to the amplitude.

5. The microphone position determination method of claim 4, wherein, The step of determining first distance between the microphone and the speaker according to time delay information between the sweep signal and the microphone signal comprises: determining the time delay information according to cross-correlation function between the sweep signal and the microphone signal; calculating the first distance between the microphone and the speaker according to the time delay information and sound velocity parameter.

6. The microphone position determination method of claim 4, wherein, The step of determining second distance between the microphone and the speaker according to the phase difference comprises: calculating phase difference distance corresponding to each frequency point according to the phase difference and setting average value of the phase difference distance as the second distance; calculating amplitude distance corresponding to each frequency point according to the amplitude and setting the amplitude distance as the third distance. ​ 7. An earphone, characterized by The earphone comprises a memory, a processor, and a computer program stored on the memory and executable on the processor, and the computer program is configured to implement the steps of the microphone position determination method according to any one of claims 1 to 6.

8. A storage medium, characterized by The storage medium is a computer readable storage medium, and the storage medium stores a computer program, and the computer program is executed by a processor to implement the steps of the microphone position determination method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Voice amplifying method and mobile terminal

    CN106357871A

  • Method and system for determining a position of a microphone

    CN110320498A

  • Microphone position adjusting method, device and system and readable storage medium

    CN115604612A