Microphone position determination method, earphone and storage medium
The microphone position is calculated by using the difference information between the sweep frequency signal emitted by the speaker and the signal of the microphone, which solves the problem of poor microphone positioning reliability in the existing technology and achieves the effect of simplifying hardware design and improving detection reliability.
Patent Information
- Application Number
- CN202511294074.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-11
- Publication Date
- 2025-10-10
- Estimated Expiration
- 2045-09-11
AI Technical Summary
In the prior art, the microphone position detection method increases 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.
A sweep signal is sent out through the speaker. After the microphone collects the signal, the target distance between the microphone and the speaker is calculated using the signal difference information. The position of the microphone is determined by combining the movement trajectory of the microphone and the position of the speaker.
The hardware design is simplified, the production cost is reduced, and the reliability and stability of microphone position detection are improved.
Smart Images

Figure CN120769211A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of earphone technology, and in particular to a method for determining the position of a microphone, an earphone, and a storage medium. Background Art
[0002] On gaming headsets, users can adjust the microphone's telescopic stem to suit their needs, adjusting the microphone's position and improving voice quality. The microphone's telescopic position often correlates with optimal noise reduction parameters and audio processing algorithms, making detection of the microphone's telescopic stem's telescopic position crucial.
[0003] Related microphone position detection methods typically use multiple positioning sensors installed on the headset to determine the microphone's position based on their relative positions. For example, multiple contact or photoelectric sensors are placed on a telescopic track to determine the microphone's position. While this detection method can achieve coordinate positioning, it increases the complexity of the headset's internal structure and can interfere with data between sensors, reducing the reliability of position detection.
[0004] The above content is only used to assist in understanding the technical solution of this application and does not constitute an admission that the above content is prior art. Summary of the Invention
[0005] The main purpose of this application is to provide a method for determining the position of a microphone, headphones and a storage medium, aiming to solve the technical problem of poor microphone positioning reliability.
[0006] To achieve the above objectives, the present application proposes a method for determining the position of a microphone, which is applied to a headset provided with a microphone and a speaker. The method for determining the position of the microphone includes: Controlling the loudspeaker to emit a frequency sweep signal, and acquiring a microphone signal obtained after the microphone collects the frequency sweep signal; determining a target distance between the microphone and the speaker based on signal difference information between the frequency sweep signal and the microphone signal; A microphone position is determined based on the target distance.
[0007] In one embodiment, the headset 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 includes: Determining a weight coefficient corresponding to the target distance, and determining a telescopic length of the rigid telescopic rod or a rotation angle of the rigid rotating rod according to the target distance and the weight coefficient; The microphone position is determined according to the telescopic length, or the microphone position is determined according to the rotation angle.
[0008] In one embodiment, the headset 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 includes: Determine a sphere with the speaker position as the sphere center and the target distance as the sphere diameter; Acquiring a movement trajectory of the microphone, wherein the movement trajectory is a line segment when the microphone is arranged on the rigid telescopic rod, or the movement trajectory is an arc when the microphone is arranged on the rigid rotating rod; The position of the microphone is determined according to the intersection of the movement trajectory and the sphere in space.
[0009] In one embodiment, the headset 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 includes: determining a position of the speaker and at least four spheres between the position of the speaker and the target distance; The microphone position is determined according to the intersection points between at least four of the spheres.
[0010] In one embodiment, the speaker is disposed at the earphone jack and outside the earphone.
[0011] In one embodiment, the step of determining the target distance between the microphone and the speaker based on signal difference information between the frequency sweep signal and the microphone signal includes: determining a first distance between the microphone and the speaker based on time delay information between the frequency sweep signal and the microphone signal; Determine the phase difference and amplitude between each frequency point according to the fast Fourier transform results corresponding to the swept frequency signal and the microphone signal respectively; 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.
[0012] In one embodiment, the step of determining the first distance between the microphone and the speaker based on the time delay information between the frequency sweep signal and the microphone signal includes: determining the time delay information according to a cross-correlation function between the frequency sweep signal and the microphone signal; The first distance between the microphone and the speaker is calculated according to the time delay information and the sound speed parameter.
[0013] In one embodiment, the steps of determining the second distance between the microphone and the speaker based on the phase difference; and determining the third distance between the microphone and the speaker based on the amplitude include: According to the phase difference, a phase difference distance corresponding to each frequency point is calculated, and an average value of the phase difference distance is set as the second distance. According to the amplitude, an amplitude distance corresponding to each frequency point is calculated, and the amplitude distance is set as the third distance.
[0014] In addition, to achieve the above-mentioned purpose, the 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.
[0015] In addition, to achieve the above-mentioned purpose, the 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.
[0016] The one or more technical solutions provided by the application have at least the following technical effects: When determining the position of the microphone, the loudspeaker is first controlled to emit a sweep frequency signal, and the sweep frequency signal is collected by the microphone to obtain a microphone signal, then the target distance between the microphone and the loudspeaker is calculated through the signal difference information such as time delay, frequency response and phase between the sweep frequency signal and the microphone signal, and finally the actual position of the microphone is determined through the target distance and the position of the loudspeaker. Based on this, the specific sweep frequency signal is emitted by the loudspeaker, and the audio signal is collected by the microphone, the time delay, frequency response and phase are calculated, and the position of the microphone is obtained. Not only simplifies the hardware design, but also reduces the production cost, and improves the reliability and stability of the system when detecting the position of the microphone. BRIEF DESCRIPTION OF DRAWINGS
[0017] The accompanying drawings, which are incorporated into and form part of the specification, illustrate embodiments consistent with the application and, together with the specification, serve to explain the principles of the application.
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the 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 also be obtained without creative labor based on these drawings.
[0019] Figure 1 The flowchart provided by the first embodiment of the microphone position determination method of the application; Figure 2 The earphone schematic diagram of the microphone position determination method of the application is provided with a rigid telescopic rod or a rigid rotating rod; Figure 3 A schematic diagram of an earphone with a flexible rod for use in the microphone position determination method of the present application; Figure 4 A schematic diagram of a flow chart of a fourth embodiment of a method for determining a microphone position of the present application; Figure 5 This is a schematic diagram of a simplified flow chart of a method for determining a microphone position obtained by combining various embodiments of the method for determining a microphone position of the present application; Figure 6 Schematic diagram of the device structure of the hardware operating environment involved in the microphone position determination method in the embodiment of the present application.
[0020] Description of Figure Numbers: 1. Rigid telescopic rod; 2. Rigid rotating rod; 3. Knob; 4. Flexible rod.
[0021] The purpose, features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0022] It should be understood that the specific embodiments described herein are merely used to explain the technical solutions of the present application and are not intended to limit the present application.
[0023] The main solution of the embodiment of the present application is: controlling the speaker to emit a sweep frequency signal, and obtaining a microphone signal obtained after the microphone collects the sweep frequency signal; determining a target distance between the microphone and the speaker based on signal difference information between the frequency sweep signal and the microphone signal; A microphone position is determined based on the target distance.
[0024] In this embodiment, for ease of description, the following description is made with headphones as the execution subject.
[0025] The adjustable microphone boom on gaming headsets allows users to adjust the microphone's position to their needs, improving voice quality and enhancing the gaming experience. However, detecting the boom's extended position is crucial to optimizing noise reduction and audio processing algorithms.
[0026] Related microphone position detection methods typically use multiple positioning sensors installed on the headset to determine the microphone's position based on their relative positions. For example, multiple contact or photoelectric sensors are placed on a telescopic track to determine the microphone's position. While this detection method can achieve coordinate positioning, it increases the complexity of the headset's internal structure and can interfere with data between sensors, reducing the reliability of position detection.
[0027] This application provides a solution in which a specific sweep frequency signal is emitted by a loudspeaker, and then the microphone collects the audio signal, calculates the time delay, frequency response and phase, and obtains the position of the microphone, thereby improving the reliability and stability of the system when performing microphone position detection.
[0028] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0029] The embodiment of the present application provides a method for determining the position of a microphone, which is applied to headphones. The headphones are provided with a microphone and a speaker. When the headphones are in-ear headphones, the microphone is usually set in a fixed area, and when the headphones are headphones, the microphone can be connected to the headphones through different types of connecting rods, such as the microphone is connected to the headphone body through a rigid telescopic rod, a rigid rotating rod, and a flexible telescopic rod, or is externally connected to the headphone body. Based on this, please refer to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the method for determining the position of a microphone of the present application.
[0030] In this embodiment, the method for determining the position of the microphone includes steps S10 to S30: Step S10: Control the loudspeaker to emit a frequency sweep signal, and obtain a microphone signal obtained after the microphone collects the frequency sweep signal.
[0031] It should be noted that in the traditional microphone position detection method, position detection is achieved through sensors. However, the sensor detection method not only increases hardware costs, but also increases the complexity of the earphone structure, resulting in lower detection reliability and accuracy.
[0032] In this embodiment, there's no need to install a sensor on the microphone. By processing the acoustic signals from the microphone and speaker, the microphone's position on the connecting rod can be directly calculated. Therefore, when detecting the microphone's position, the earphone controls the speaker to emit a sweeping frequency signal, which the microphone then captures and generates a microphone signal. The linear distance between the signal's emission and reception points can then be calculated based on the difference in signal type between the microphone signal and the sweeping frequency signal.
[0033] It should be noted that speakers are located in the headphone jack and on the outside of the headphones. For traditional closed-back headphones, dual-unit speakers are required. In this case, the speakers on the outside of the headphones can output audio to the outside of the earcup, that is, send a sweeping frequency signal so that the microphone on the connecting rod can collect the audio signal. For open-back headphones, since there is no airtight earcup, when only a sweeping frequency signal is needed, a directional sound field can be omitted to ensure that the microphone can collect the signal.
[0034] Step S20 : determining a target distance between the microphone and the speaker based on signal difference information between the frequency sweep signal and the microphone signal.
[0035] In this embodiment, the signal difference information includes the signal's time delay, phase, frequency response, amplitude, bandwidth, and frequency modulation slope. The distance between the microphone and the speaker can be calculated using one of the signal difference information, or the distance can be calculated using at least two signal difference information, and then the actual distance can be optimized based on the calculated weights. It is understood that the specific calculation methods used in this application are not limited to the time delay method, which is based on the time difference in signal propagation multiplied by the speed, and the distance calculated using the phase difference.
[0036] It should be noted that the calculated target distance can be one or more, and can be set according to the actual situation of the headset.
[0037] Step S30: determining the microphone position according to the target distance.
[0038] In this embodiment, the speaker is usually provided with a sensor, and the position of the speaker is relatively fixed. The position of the speaker can be determined based on the sensor.
[0039] Different types of headphones and headphones with different microphone connection rods use different calculation methods to calculate the microphone position. For example, if the microphone's movement trajectory is relatively simple, such as a line segment or arc, the target distance can be used to calculate the length of the line segment associated with the target distance, or the radian of the arc, and then the microphone position can be determined based on the length of the line segment or the radian of the arc. It is understandable that when the microphone's movement trajectory is relatively simple, that is, when the microphone is set on a rigid telescopic rod, it can extend a fixed length, and when it is set on a rigid rotating rod, it can rotate to a specific angle.
[0040] In addition, the microphone position can also be determined by the target distance, the movement trajectory of the microphone, and the speaker position. For example, a sphere is determined by the speaker position and the target distance, and the microphone position is determined according to the intersection of the sphere and the movement trajectory.
[0041] Optionally, if the movement trajectory of the microphone is complex, such as being able to move arbitrarily on a spherical surface in space, at least four speakers at different positions and corresponding four target distances are required to calculate the microphone position.
[0042] This embodiment provides a method for determining the position of a microphone, which calculates the collected sweep frequency signal and the original sweep frequency signal emitted by the speaker to obtain the target distance between the microphone and the speaker, and then calculates the line segment length or arc radian based on the target distance, and determines the microphone position through the line segment length or arc radian, or calculates a sphere through the target distance and the speaker position, and calculates the microphone position through the intersection of the sphere and the trajectory. In this way, the microphone position is accurately calculated by processing the acoustic signals of the microphone and the speaker, thereby improving the reliability of the microphone position calculation.
[0043] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the first embodiment can be referred to the above introduction and will not be described in detail later. Figure 2 A. When the microphone is installed on the rigid telescopic rod 1, the microphone can move within the linear telescopic area of the rigid telescopic rod 1. Figure 2 B. When the microphone is mounted on a rigid rotating rod 2, the user can adjust the microphone's position using the rigid rotating rod and knob 3, allowing the microphone to move within a specific arc extension area. Since the microphone's movement trajectory is known, the microphone's position can be directly calculated using the target distance.
[0044] Therefore, when the headset is equipped with a rigid telescopic rod or a rigid rotating rod, that is, the microphone is installed on the rigid telescopic rod or the rigid rotating rod, as an optional embodiment of determining the microphone position based on the target distance, a 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 can be determined based on the target distance and the weight coefficient. Finally, the microphone position is determined based on the telescopic length or the rotation angle. When the target distance is one, the corresponding weight coefficient is one, and when the target distance is multiple, the corresponding weight coefficients are also multiple.
[0045] In this embodiment, when the microphone is set on a rigid telescopic rod or a rigid rotating rod, it can only move at a specific position. Since the position of the speaker is relatively fixed with respect to the position of the earphone, each distance calculated based on the acoustic signal corresponds to the telescopic length of the rigid telescopic rod of the microphone or the rotation angle of the rigid rotating rod.
[0046] Therefore, the length of the microphone's rigid telescopic rod corresponding to the target distance and its weight coefficient can be calculated using a linear regression model, or the rotation angle of the rigid rotating rod can be calculated. Since the microphone can only move in a fixed position, the length of the telescopic rod corresponds to the microphone position, and the same applies to the rotation angle. In other words, the microphone position can be determined directly based on the telescopic length, or based on the rotation angle. For example, if the telescopic rod length is a, the corresponding microphone position is (x1, y1, z1), and if the rotation angle is b, the corresponding microphone position is (x2, y2, z2). It can be understood that during the training phase of the linear regression model, the distance values obtained by three methods, namely, time delay, frequency response, and phase difference between the left and right ears, can be calculated when the microphone's telescopic rod is extended to different lengths. This allows for the collection of as many distance values at different positions as possible, while also recording the corresponding extension lengths, to improve the accuracy of the microphone position determination.
[0047] Furthermore, in order to improve the accuracy of microphone position determination, sweep frequency signals can be emitted through multiple different speakers to obtain multiple different target distances, thereby improving the accuracy of determining the telescopic length or rotation angle through the target distance, thereby improving the accuracy of the microphone position.
[0048] Alternatively, in another embodiment of determining the microphone position based on the target distance, a sphere with the speaker position as the center and the target distance as the radius can be first determined. The microphone's movement trajectory is then obtained. The movement trajectory is a line segment when the microphone is mounted on a rigid telescopic rod, and an arc when the microphone is mounted on a rigid rotating rod. Finally, the microphone position is determined based on the intersection of the movement trajectory and the sphere in space. The microphone position corresponds to the telescopic length of the rigid telescopic rod or the rotation angle of the rigid rotating rod.
[0049] To further improve the accuracy of microphone position determination, multiple spheres can be determined using multiple different speaker positions and their corresponding target distances. For example, using at least two spheres, after determining the two spheres, the intersection circle between the two spheres is determined, and finally, the intersection point between the movement trajectory and the intersection circle is set as the microphone position. Determining the microphone position using at least two spheres effectively reduces the impact of target distance errors.
[0050] It is understood that in a normal, undamaged state, since the connecting rod is rigid, its movement trajectory is known and fixed, and there is typically only one intersection point between these trajectories and the sphere. However, when the rigid rod is damaged, microphone position detection is generally unnecessary. If detection is still performed and multiple intersection points are detected, the intersection locations are used to determine whether the position is accurate. This application does not limit the specific determination process.
[0051] This embodiment provides a method for determining the position of a microphone. When a headset is equipped with a rigid telescopic rod or a rigid rotating rod, the microphone moves to a specific position based on the telescopic rod or rotating rod. In this case, the microphone position is determined by using a linear regression model to determine the telescopic length or rotation angle associated with the target distance. Alternatively, the microphone position is determined by calculating the intersection of the sphere formed by the speaker position and the target position and the theoretical movement trajectory of the microphone. Based on this, the microphone position is accurately calculated by processing the acoustic signals of the microphone and speaker, improving the accuracy and reliability of the microphone position calculation.
[0052] Based on the first embodiment of the present application, in the third embodiment of the present application, the same or similar contents as those in the first embodiment can be referred to the above introduction and will not be described in detail later. Figure 3 The microphone is set on the flexible rod 4, and the microphone can move within a specific range based on the length of the flexible rod 1, that is, the movement trajectory is relatively complex.
[0053] Therefore, when the headset is provided with a flexible rod, i.e., the microphone is provided on the flexible rod, and the headset is also provided with at least four speakers at different positions, as an optional embodiment of determining the microphone position based on the target distance and the speaker position, the speaker position and at least four spheres between the speaker position and the target distance can be first determined, and then the microphone position can be determined based on the intersection of the at least four spheres. The equation formed by the four spheres has only one real number solution, and this real number solution is the microphone position.
[0054] It is understandable that headphones are usually provided with only one type of connecting rod.
[0055] Based on the first embodiment of the present application, in the fourth embodiment of the present application, the same or similar content as the above-mentioned first embodiment can be referred to the above introduction and will not be repeated hereafter. On this basis, the signal difference information includes delay information, the phase difference between the frequency points after the signal is fast Fourier transformed, and the frequency response information, and the target distance includes a first distance calculated based on the delay information, a second distance calculated based on the phase difference, and a third distance calculated based on the frequency response.
[0056] Therefore, please refer to Figure 4 , step S20 includes steps S21 to S23: Step S21 : determining a first distance between the microphone and the speaker according to time delay information between the frequency sweep signal and the microphone signal.
[0057] In this embodiment, the time delay information is the time delay from when the signal is sent to when it is received. The time delay information can be determined according to a cross-correlation function between the swept frequency signal and the microphone signal.
[0058] Specifically, the cross-correlation function is calculated for the original frequency sweep signal x(t) played by the speaker and the signal y(t) collected by the microphone: .
[0059] in is the frequency sweep signal, is the microphone signal collected by the microphone, is the time delay, is to find the maximum cross-correlation function value, It is the time delay between the signal collected by the microphone and the original swept frequency signal, that is, the delay information.
[0060] After obtaining the time delay information, the first distance between the microphone and the speaker can be calculated based on the time delay information and the sound speed parameter. , c is the signal propagation speed.
[0061] Step S22: determining the phase difference and amplitude between the frequency points according to the fast Fourier transform results corresponding to the frequency sweep signal and the microphone signal.
[0062] In this embodiment, when calculating the target distance based on the frequency response and phase difference, both the original swept frequency signal and the microphone signal collected by the microphone need to be processed by fast Fourier transform respectively. The parameter corresponding to the frequency response is the amplitude between the frequency points. Therefore, the phase difference and amplitude between the frequency points can be determined based on the fast Fourier transform processing results.
[0063] Step S23: determining a second distance between the microphone and the speaker according to the phase difference; and determining a third distance between the microphone and the speaker according to the amplitude.
[0064] In this embodiment, in the process of determining 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 swept frequency signal is calculated for each frequency point: , Then calculate based on the phase difference: , in, is the phase difference calculated in the previous step, is the frequency, It's distance, It's the speed of sound.
[0065] Similarly, a set of distances can be calculated for different frequency points, so the final distance calculation for the phase difference method is: , in, is the distance calculated by phase difference of frequency point i, and n is the number of all frequency points.
[0066] Furthermore, in the process of determining the third distance, the amplitude distance corresponding to each frequency point can be calculated based on the amplitude, and the 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: , in, is the energy at distance d when the frequency is f, is the energy of the sweep signal, is the attenuation coefficient of the signal propagating in the air when the frequency is f, is the distance between the original signal and the collected signal.
[0067] At this time, the corresponding distance can be calculated for each frequency point , so the final distance calculation for the frequency response method is: , in is the distance of frequency point i calculated through frequency response, and n is the number of all frequency points.
[0068] Furthermore, after calculating multiple different target distances through signal difference information of different categories, the accuracy of calculating the telescopic length of the rigid telescopic rod or the rotation angle of the rigid rotating rod based on the linear regression model can be effectively improved.
[0069] Taking a rigid telescopic rod as an example, after calculating the target distance between two different speakers and microphones using three methods, namely time delay, frequency response, and phase difference, the distance value obtained is: , , , , , , for this set of distance values, the corresponding weight coefficient is , so the length L of the corresponding rigid telescopic rod is calculated by the linear regression model as follows: .
[0070] The embodiment provides a microphone position determination method, which calculates corresponding target distance values under different parameters through time difference, phase difference and frequency response parameters between an original sweep signal and a microphone signal, so as to calculate the position of the microphone based on different target distance values in multiple dimensions, thereby improving the accuracy and reliability of microphone position calculation.
[0071] Based on the first embodiment, in the fifth embodiment, the same or similar contents as the first embodiment can be referred to the above description, and the subsequent description will not be repeated. On this basis, after the position of the microphone is determined, 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 improves the output effect of the audio.
[0072] Exemplarily, in order to help understand the implementation process of the microphone position determination method obtained by combining the above various embodiments, please refer to Figure 5 , Figure 5 A brief flowchart of a microphone position determination method is provided, taking a rigid telescopic rod as an example. Specifically, first, the earphone state is detected, and after detecting that the earphone is in a wearing state, the speaker is controlled to play a sweep signal and the signal is collected by the telescopic rod microphone. Then, the distances corresponding to the three dimensions of signal delay, frequency response and phase difference are calculated, and the length of the telescopic rod is calculated based on a linear regression model and at least three types of distances, so as to determine the position of the microphone through the length of the telescopic rod. Finally, the noise reduction parameter and the audio optimization algorithm are adjusted through the microphone position, so as to improve the output effect of the audio. Based on this, the position of the microphone is accurately obtained, and the output audio effect is improved based on the position of the microphone.
[0073] 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. More forms of simple transformation based on this technical concept are within the protection scope of the present application.
[0074] 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.
[0075] Reference will be made to Figure 6 which shows a structural schematic diagram of an earphone suitable for implementing the embodiments of the present application. Figure 6 The earphone shown is only an example and should not limit the functions and use range of the embodiments of the present application.
[0076] As Figure 6 As shown, the headset may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes based on programs stored in a read-only memory (ROM) 1002 or programs loaded from a storage device 1003 into a random access memory (RAM) 1004. RAM 1004 also stores various programs and data required for headset operation. The processing device 1001, ROM 1002, and RAM 1004 are interconnected via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems may be connected to the I / O interface 1006: input devices 1007, such as a touchscreen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output devices 1008, such as a liquid crystal display (LCD), speaker, vibrator, etc.; storage device 1003, such as a magnetic tape or hard disk; and communication device 1009. The communication device 1009 can allow the headset to communicate with other devices wirelessly or wired to exchange data. Although the figure shows a headset with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have instead.
[0077] In particular, according to the embodiments disclosed in the present application, the processes described above with reference to the flowcharts can be implemented as computer software programs. 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 comprising program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via a communication device, or installed from a storage device 1003, or installed from a read-only memory 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are performed.
[0078] The headphones provided in this application utilize the microphone position determination method described in the aforementioned embodiment to address the technical issue of poor microphone positioning reliability. Compared to the prior art, the headphones provided in this application achieve the same beneficial effects as the microphone position determination method described in the aforementioned embodiment. Other technical features of the headphones are the same as those disclosed in the aforementioned embodiment and are not further elaborated here.
[0079] It should be understood that portions of the application disclosed can be realized with hardware, software, firmware or any combination thereof. In the description of the foregoing embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0080] The above description is merely illustrative of the application and the scope of the application should be determined by reasonable interpretation of the appended claims.
[0081] The 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-described embodiments.
[0082] The computer readable storage medium provided by the 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 an electric wire, an optical cable, a radio frequency (RF), etc., or any suitable combination of the above.
[0083] The above computer readable storage medium can be contained in the earphone; or can exist separately and not be assembled into the earphone.
[0084] The above computer readable storage medium carries one or more programs, which, when executed by the earphone, cause the earphone to: control the loudspeaker to emit a sweep signal, and acquire a microphone signal obtained by the microphone after collecting the sweep signal; determining a target distance between the microphone and the speaker based on signal difference information between the frequency sweep signal and the microphone signal; A microphone position is determined based on the target distance.
[0085] Computer program code for performing the operations of the present application may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of 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).
[0086] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, program segment or part of code, and the module, program segment or part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, as well as the combination of boxes in the block diagram and / or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or can be implemented using a combination of dedicated hardware and computer instructions.
[0087] The modules described in the embodiments of the present application may be implemented in software or hardware, wherein the name of a module does not necessarily limit the unit itself.
[0088] The computer-readable storage medium provided in this application stores computer-readable program instructions (i.e., a computer program) for executing the aforementioned microphone position determination method, thereby resolving the technical issue of poor microphone positioning reliability. Compared to the prior art, the computer-readable storage medium provided in this application offers the same beneficial effects as the microphone position determination method provided in the aforementioned embodiments, and therefore will not be further elaborated upon here.
[0089] The above description is only part of the embodiments of the present application and does not limit the patent scope of the present application. All equivalent structural transformations made by using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect application in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A method for determining the position of a microphone, characterized in that: Applied to headphones, the headphones are provided with a microphone and a speaker, and the method for determining the position of the microphone includes: Controlling the loudspeaker to emit a frequency sweep signal, and acquiring a microphone signal obtained after the microphone collects the frequency sweep signal; determining a target distance between the microphone and the speaker based on signal difference information between the frequency sweep signal and the microphone signal; A microphone position is determined based on the target distance.
2. The method for determining the position of a microphone according to claim 1, wherein: The headset 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 includes: Determining a weight coefficient corresponding to the target distance, and determining a telescopic length of the rigid telescopic rod or a rotation angle of the rigid rotating rod according to the target distance and the weight coefficient; The microphone position is determined according to the telescopic length, or the microphone position is determined according to the rotation angle.
3. The method for determining the position of a microphone according to claim 1, wherein: The headset 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 includes: Determine a sphere with the speaker position as the sphere center and the target distance as the sphere diameter; Acquiring a movement trajectory of the microphone, wherein the movement trajectory is a line segment when the microphone is arranged on the rigid telescopic rod, or the movement trajectory is an arc when the microphone is arranged on the rigid rotating rod; The position of the microphone is determined according to the intersection of the movement trajectory and the sphere in space.
4. The method for determining the position of a microphone according to claim 1, wherein: 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 includes: determining a position of the speaker and at least four spheres between the position of the speaker and the target distance; The microphone position is determined according to the intersection points between at least four of the spheres.
5. The method for determining the position of a microphone according to any one of claims 1 to 4, wherein: The speakers are arranged at the earphone hole and outside the earphone.
6. The method for determining the position of a microphone according to claim 1, wherein: The step of determining the target distance between the microphone and the speaker based on signal difference information between the frequency sweep signal and the microphone signal comprises: determining a first distance between the microphone and the speaker based on time delay information between the frequency sweep signal and the microphone signal; Determine the phase difference and amplitude between each frequency point according to the fast Fourier transform results corresponding to the swept frequency signal and the microphone signal respectively; 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.
7. The method for determining the position of a microphone according to claim 6, wherein: The step of determining the first distance between the microphone and the speaker according to the time delay information between the frequency sweep signal and the microphone signal comprises: determining the time delay information according to a cross-correlation function between the frequency sweep signal and the microphone signal; The first distance between the microphone and the speaker is calculated according to the time delay information and the sound speed parameter.
8. The method for determining the position of a microphone according to claim 6, wherein: determining a second distance between the microphone and the speaker according to the phase difference; The step of determining a third distance between the microphone and the speaker according to the amplitude comprises: Calculating the phase difference distance corresponding to each frequency point according to the phase difference, and setting the average value of the phase difference distance as the second distance; The amplitude distance corresponding to each frequency point is calculated according to the amplitude, and the amplitude distance is set as the third distance.
9. A headset, characterized in that: The headset comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the method for determining the position of a microphone according to any one of claims 1 to 8.
10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the method for determining the position of a microphone according to any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Voice amplifying method and mobile terminal
CN106357871A
Earphone and method for outputting audio signals
CN109348329A
Headset
CN109361975A
Method and system for determining a position of a microphone
CN110320498A
Microphone adjusting method and earphone
CN114979894A