CN114697790A - Position recognition method and earphone device - Google Patents

Position recognition method and earphone device Download PDF

Info

Publication number
CN114697790A
CN114697790A CN202011606044.0A CN202011606044A CN114697790A CN 114697790 A CN114697790 A CN 114697790A CN 202011606044 A CN202011606044 A CN 202011606044A CN 114697790 A CN114697790 A CN 114697790A
Authority
CN
China
Prior art keywords
earphone
amplitude
signal
determining
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011606044.0A
Other languages
Chinese (zh)
Other versions
CN114697790B (en
Inventor
黎椿键
朱梦尧
恽毅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202011606044.0A priority Critical patent/CN114697790B/en
Priority to PCT/CN2021/139766 priority patent/WO2022143268A1/en
Publication of CN114697790A publication Critical patent/CN114697790A/en
Application granted granted Critical
Publication of CN114697790B publication Critical patent/CN114697790B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones

Abstract

The application provides a position identification method and earphone equipment, in the method, a first instruction is sent, the first instruction is used for enabling a first sound sending unit to send a first sending signal, a first receiving signal is obtained, amplitude information is determined according to the signal received by a first microphone aiming at the first sending signal, the amplitude information corresponds to appointed frequency information of the first receiving signal, and the wearing position of the first earphone is determined according to the size relation between the amplitude information and a preset threshold value, so that the two earphones are automatically identified to be worn on the left ear or the right ear, a user does not need to distinguish the left earphone from the right earphone, and user experience is improved.

Description

Position recognition method and earphone device
Technical Field
The application relates to the technical field of intelligent terminals, in particular to a position identification method and earphone equipment.
Background
In order to achieve a better listening experience for the user, many headphone devices, such as stereo headphones and physical multi-channel headphones, have different channels configured in the left headphone and the right headphone, respectively. When a user wears the earphones, the left and right ears need to be distinguished, the left earphones are worn to the left ears, and the right earphones are worn to the right ears. The left and right earphones can not be exchanged and used alternately, otherwise the fidelity and the audio-visual effect of the sound source are directly influenced.
In order to avoid that the user brings the left earphone and the right earphone in reverse when using the earphone, the left earphone and the right earphone are generally distinguished from each other in appearance. For example, in the headphone device shown in fig. 1, the left headphone and the right headphone are mirror symmetric, the external shapes of the left headphone and the right headphone are designed in a copying manner according to the shape of human ears, and L, R marks are added on the left headphone and the right headphone respectively. Based on the structure shown in fig. 1, when a user wears the left and right earphones reversely, the appearance structure of the earphones is not completely matched with the human ears, so that the user feels uncomfortable to wear, and the user is made aware of the wearing error of the earphones.
However, the difference in appearance can prevent the user from wearing the earphones reversely to some extent, but the user needs to distinguish the left earphone from the right earphone, which causes inconvenience in use for the user; especially in dark environment or under the scene that the condition is urgent, the user still has the earphone and wears the possibility of turning on the contrary, and the user wears the back and need take off the earphone again, wears again, influences user experience.
Disclosure of Invention
The application provides a position identification method and earphone equipment, which can automatically identify whether two earphones are worn on the left ear or the right ear without distinguishing the left earphone from the right earphone by a user, so that the user experience is improved.
In a first aspect, the present application provides a position identification method, which is applied to an earphone device, where the earphone device includes a first earphone, and a first sound emitting unit and a first microphone are disposed on the first earphone; the method is characterized by comprising the following steps: transmitting a first instruction, wherein the first instruction is used for enabling a first sound-emitting unit to transmit a first transmission signal; acquiring a first receiving signal, wherein the first receiving information is a signal received by a first microphone aiming at a first sending signal; determining amplitude information corresponding to the designated frequency information of the first received signal; and determining the wearing position of the first earphone according to the size relation between the amplitude information and a preset threshold value. The wearing position may be: the left ear of the user, or the right ear of the user. According to the method, a first instruction is sent to enable a first sound-emitting unit to send a first sending signal, and the wearing position of a first earphone is determined to be the left ear or the right ear of a user according to amplitude information of signals received by a first microphone, so that the left ear or the right ear of the user can be automatically identified, the user does not need to distinguish the left earphone from the right earphone, and user experience is improved.
In one possible implementation, the specifying frequency information includes: assigning a frequency point; the amplitude information includes: designating an amplitude value of a frequency point; determining the wearing position of the first earphone according to the magnitude relation between the amplitude information and a preset threshold value, wherein the determining step comprises the following steps: if the amplitude value is larger than a preset first threshold value, determining that the wearing position of the first earphone is the left ear; if the amplitude value is smaller than a preset first threshold value, determining that the wearing position of the first earphone is the right ear; or if the amplitude value is larger than a preset second threshold value, determining that the wearing position of the first earphone is the right ear; and if the amplitude value is smaller than a preset second threshold value, determining that the wearing position of the first earphone is the left ear.
In one possible implementation, the specifying frequency information includes: assigning a frequency band; the amplitude information includes: specifying an amplitude mean value of a frequency band; determining amplitude information corresponding to the designated frequency information of the first received signal, including: acquiring amplitude values of N designated frequency points of a first receiving signal in a designated frequency band; n is a natural number greater than 1; and calculating the average value of the acquired N amplitude values to obtain the amplitude average value of the specified frequency band.
In one possible implementation manner, determining the wearing position of the first earphone according to the magnitude relationship between the amplitude information and the preset threshold includes: if the amplitude mean value is larger than a preset third threshold value, determining that the wearing position of the first earphone is the left ear; if the amplitude average value is smaller than a preset third threshold value, determining that the wearing position of the first earphone is the right ear; or if the amplitude mean value is larger than a preset fourth threshold value, determining that the wearing position of the first earphone is the right ear; and if the amplitude average value is smaller than a preset fourth threshold value, determining that the wearing position of the first earphone is the left ear.
In one possible implementation, the first transmission signal is a pulse signal, a maximum length sequence or a swept frequency sequence.
In a second aspect, the present application provides a position identification method, which is applied to an earphone device, where the earphone device includes a first earphone, and a first sound emitting unit and a first microphone are disposed on the first earphone; the method is characterized by comprising the following steps: transmitting a first instruction, wherein the first instruction is used for enabling a first sound-emitting unit to transmit a first transmission signal; acquiring a first receiving signal, wherein the first receiving information is a signal received by a first microphone aiming at a first sending signal; determining amplitude information corresponding to the designated frequency information of the first received signal; determining the wearing position of the first earphone according to the magnitude relation between the amplitude information and a preset threshold value;
the specified frequency information includes: assigning a frequency point; the amplitude information includes: designating the amplitude value of a frequency point; determining the wearing position of the first earphone according to the magnitude relation between the amplitude information and a preset threshold value, wherein the determining step comprises the following steps: if the amplitude value is larger than a preset first threshold value, determining that the wearing position of the first earphone is the left ear; if the amplitude value is smaller than a preset first threshold value, determining that the wearing position of the first earphone is the right ear; or if the amplitude value is larger than a preset second threshold value, determining that the wearing position of the first earphone is the right ear; if the amplitude value is smaller than a preset second threshold value, determining that the wearing position of the first earphone is the left ear; alternatively, the specified frequency information includes: assigning a frequency band; the amplitude information includes: specifying an amplitude mean value of a frequency band; determining amplitude information corresponding to the designated frequency information of the first received signal, including: acquiring amplitude values of N designated frequency points of a first receiving signal in a designated frequency band; n is a natural number greater than 1; calculating the average value of the obtained N amplitude values to obtain the amplitude average value of the specified frequency band;
determining the wearing position of the first earphone according to the magnitude relation between the amplitude information and a preset threshold value, wherein the determining step comprises the following steps: if the amplitude mean value is larger than a preset third threshold value, determining that the wearing position of the first earphone is the left ear; if the amplitude average value is smaller than a preset third threshold value, determining that the wearing position of the first earphone is the right ear; or if the amplitude mean value is larger than a preset fourth threshold value, determining that the wearing position of the first earphone is the right ear; if the amplitude mean value is smaller than a preset fourth threshold value, determining that the wearing position of the first earphone is the left ear;
the first transmitted signal is a pulse signal, a maximum length sequence, or a swept frequency sequence.
In a third aspect, an embodiment of the present application provides a position identification method, which is applied to an earphone device, where the earphone device includes a first earphone and a second earphone, the first earphone is provided with a first sound generating unit and a first microphone, and the second earphone is provided with a second sound generating unit and a second microphone; the method comprises the following steps: sending a first instruction and a second instruction, wherein the first instruction is used for enabling the first sound-emitting unit to send a first sending signal, and the second instruction is used for enabling the second sound-emitting unit to send a second sending signal; acquiring a first receiving signal and a second receiving signal, wherein the first receiving signal is a signal received by a first microphone aiming at a first sending signal, and the second receiving signal is a signal received by a second microphone aiming at a second sending signal; determining first amplitude information and second amplitude information, wherein the first amplitude information corresponds to the appointed frequency information of the first receiving signal, and the second amplitude information corresponds to the appointed frequency information of the second receiving signal; and determining the wearing positions of the first earphone and the second earphone according to the size relation between the first amplitude information and the second amplitude information. According to the method, a first instruction is sent to enable a first sound-emitting unit to send a first sending signal, a second instruction is sent to enable a second sound-emitting unit to send a second sending signal, and the wearing positions of a first earphone and a second earphone are determined according to first amplitude information of signals received by a first microphone and second amplitude information of signals received by a second microphone, so that whether the two earphones are worn on the left ear or the right ear is automatically identified, a user does not need to distinguish the left earphone from the right earphone, and user experience is improved.
In one possible implementation, the specifying frequency information includes: assigning a frequency point; the amplitude information includes: designating the amplitude value of a frequency point; determining the wearing positions of the first earphone and the second earphone according to the size relation between the first amplitude information and the second amplitude information, comprising: if the first amplitude information is larger than the second amplitude information, determining that the wearing position of the first earphone is the left ear and the wearing position of the second earphone is the right ear; if the first amplitude information is smaller than the preset second amplitude information, determining that the wearing position of the first earphone is a right ear and the wearing position of the second earphone is a left ear; or if the first amplitude information is larger than the second amplitude information, determining that the wearing position of the first earphone is the right ear and the wearing position of the second earphone is the left ear; and if the first amplitude information is smaller than the preset second amplitude information, determining that the wearing position of the first earphone is the left ear and the wearing position of the second earphone is the right ear.
In one possible implementation, the specifying frequency information includes: assigning a frequency band; the amplitude information includes: specifying an amplitude mean value of a frequency band; determining first amplitude information corresponding to the specified frequency information of the first received signal and second amplitude information corresponding to the specified frequency information of the second received signal, including: obtaining amplitude values of N designated frequency points of a first receiving signal in a designated frequency band; n is a natural number greater than 1; calculating the average value of the obtained N amplitude values to obtain a first amplitude average value of the specified frequency band; acquiring amplitude values of N designated frequency points of a second receiving signal in a designated frequency band; n is a natural number greater than 1; and calculating the average value of the acquired N amplitude values to obtain a second amplitude average value of the specified frequency band.
In one possible implementation manner, determining the wearing positions of the first earphone and the second earphone according to the size relationship between the first amplitude information and the second amplitude information includes: if the first amplitude mean value is larger than the second amplitude mean value, determining that the wearing position of the first earphone is the left ear and the wearing position of the second earphone is the right ear; if the first amplitude average value is smaller than a preset second amplitude average value, determining that the wearing position of the first earphone is a right ear and the wearing position of the second earphone is a left ear; or if the first amplitude mean value is larger than the second amplitude mean value, determining that the wearing position of the first earphone is the right ear and the wearing position of the second earphone is the left ear; and if the first amplitude average value is smaller than the preset second amplitude average value, determining that the wearing position of the first earphone is the left ear and the wearing position of the second earphone is the right ear.
In one possible implementation, the first transmission signal and the second transmission signal are the same; the first transmission signal and the second transmission signal are pulse signals, maximum length sequences or swept frequency sequences.
In a fourth aspect, an embodiment of the present application provides a position identification method, which is applied to an earphone device, where the earphone device includes a first earphone and a second earphone, the first earphone is provided with a first sound generating unit and a first microphone, and the second earphone is provided with a second sound generating unit and a second microphone; the method comprises the following steps: sending a first instruction and a second instruction, wherein the first instruction is used for enabling the first sound-emitting unit to send a first sending signal, and the second instruction is used for enabling the second sound-emitting unit to send a second sending signal; acquiring a first receiving signal and a second receiving signal, wherein the first receiving signal is a signal received by a first microphone aiming at a first sending signal, and the second receiving signal is a signal received by a second microphone aiming at a second sending signal; determining first amplitude information and second amplitude information, wherein the first amplitude information corresponds to the appointed frequency information of the first receiving signal, and the second amplitude information corresponds to the appointed frequency information of the second receiving signal; determining the wearing positions of the first earphone and the second earphone according to the size relation between the first amplitude information and the second amplitude information;
the specified frequency information includes: assigning a frequency point; the amplitude information includes: designating the amplitude value of a frequency point; determining the wearing positions of the first earphone and the second earphone according to the size relation between the first amplitude information and the second amplitude information, comprising: if the first amplitude information is larger than the second amplitude information, determining that the wearing position of the first earphone is the left ear and the wearing position of the second earphone is the right ear; if the first amplitude information is smaller than the preset second amplitude information, determining that the wearing position of the first earphone is a right ear and the wearing position of the second earphone is a left ear; or if the first amplitude information is larger than the second amplitude information, determining that the wearing position of the first earphone is the right ear and the wearing position of the second earphone is the left ear; if the first amplitude information is smaller than the preset second amplitude information, determining that the wearing position of the first earphone is a left ear and the wearing position of the second earphone is a right ear; alternatively, the specified frequency information includes: assigning a frequency band; the amplitude information includes: specifying an amplitude mean value of a frequency band; determining first amplitude information corresponding to the designated frequency information of the first received signal and second amplitude information corresponding to the designated frequency information of the second received signal, including: acquiring amplitude values of N designated frequency points of a first receiving signal in a designated frequency band; n is a natural number greater than 1; calculating the average value of the obtained N amplitude values to obtain a first amplitude average value of the specified frequency band; acquiring amplitude values of N designated frequency points of a second receiving signal in a designated frequency band; n is a natural number greater than 1; calculating the average value of the obtained N amplitude values to obtain a second amplitude average value of the specified frequency band;
determining the wearing positions of the first earphone and the second earphone according to the size relation between the first amplitude information and the second amplitude information, comprising: if the first amplitude mean value is larger than the second amplitude mean value, determining that the wearing position of the first earphone is the left ear and the wearing position of the second earphone is the right ear; if the first amplitude average value is smaller than a preset second amplitude average value, determining that the wearing position of the first earphone is a right ear and the wearing position of the second earphone is a left ear; or if the first amplitude mean value is larger than the second amplitude mean value, determining that the wearing position of the first earphone is the right ear and the wearing position of the second earphone is the left ear; if the first amplitude mean value is smaller than a preset second amplitude mean value, determining that the wearing position of the first earphone is the left ear and the wearing position of the second earphone is the right ear;
the first transmission signal and the second transmission signal are the same; the first transmission signal and the second transmission signal are pulse signals, maximum length sequences or swept frequency sequences.
In a fifth aspect, an embodiment of the present application provides a position identification method, which is applied to an earphone device, where the earphone device includes a first earphone, and the first earphone is provided with a first sound generating unit, a second sound generating unit, and a first microphone; the method comprises the following steps: sending a first instruction and a second instruction, wherein the first instruction is used for enabling the first sound-emitting unit to send a first sending signal, and the second instruction is used for enabling the second sound-emitting unit to send a second sending signal; acquiring a first receiving signal and a second receiving signal, wherein the first receiving signal is a signal received by a first microphone aiming at a first sending signal, and the second receiving signal is a signal received by the first microphone aiming at a second sending signal; determining first amplitude information and second amplitude information, wherein the first amplitude information corresponds to the appointed frequency information of the first receiving signal, and the second amplitude information corresponds to the appointed frequency information of the second receiving signal; and determining the wearing positions of the first earphone and the second earphone according to the size relation between the first amplitude information and the second amplitude information. According to the method, a first instruction is sent to enable a first sound-emitting unit to send a first sending signal, a second instruction is sent to enable a second sound-emitting unit to send a second sending signal, and the wearing positions of a first earphone and a second earphone are determined according to first amplitude information of signals received by a first microphone and second amplitude information of signals received by a second microphone, so that whether the two earphones are worn on the left ear or the right ear is automatically identified, a user does not need to distinguish the left earphone from the right earphone, and user experience is improved.
In one possible implementation, the specifying frequency information includes: assigning a frequency point; the amplitude information includes: designating the amplitude value of a frequency point; determining the wearing positions of the first earphone and the second earphone according to the size relation between the first amplitude information and the second amplitude information, comprising: if the difference value of the first amplitude information and the second amplitude information is larger than a fifth threshold value, determining that the wearing position of the first earphone is the left ear; if the difference value between the first amplitude information and the second amplitude information is smaller than a sixth threshold value, determining that the wearing position of the first earphone is the right ear; the fifth threshold value is greater than or equal to 0, and the sixth threshold value is less than or equal to 0; or if the difference value between the first amplitude information and the second amplitude information is larger than a seventh threshold value, determining that the wearing position of the first earphone is the right ear; if the difference value between the first amplitude information and the second amplitude information is smaller than an eighth threshold value, determining that the wearing position of the first earphone is the left ear; the seventh threshold value is equal to or greater than 0, and the eighth threshold value is equal to or less than 0.
In one possible implementation, the specifying frequency information includes: assigning a frequency band; the amplitude information includes: specifying an amplitude mean value of a frequency band; determining first amplitude information corresponding to the designated frequency information of the first received signal and second amplitude information corresponding to the designated frequency information of the second received signal, including: acquiring amplitude values of N designated frequency points of a first receiving signal in a designated frequency band; n is a natural number greater than 1; calculating the average value of the obtained N amplitude values to obtain a first amplitude average value of the specified frequency band; acquiring amplitude values of N designated frequency points of a second receiving signal in a designated frequency band; n is a natural number greater than 1; and calculating the average value of the acquired N amplitude values to obtain a second amplitude average value of the specified frequency band.
In a possible implementation manner, determining the wearing positions of the first earphone and the second earphone according to the magnitude relation between the first amplitude information and the second amplitude information includes: if the difference value of the first amplitude mean value and the second amplitude mean value is larger than a ninth threshold value, determining that the wearing position of the first earphone is the left ear; if the difference value of the first amplitude mean value and the second amplitude mean value is smaller than a tenth threshold value, determining that the wearing position of the first earphone is the right ear; the ninth threshold value is greater than or equal to 0, and the tenth threshold value is less than or equal to 0; or if the difference value of the first amplitude mean value and the second amplitude mean value is larger than an eleventh threshold value, determining that the wearing position of the first earphone is the right ear; if the difference value of the first amplitude mean value and the second amplitude mean value is smaller than a twelfth threshold value, determining that the wearing position of the first earphone is the left ear; the eleventh threshold value is 0 or more and the twelfth threshold value is 0 or less.
In one possible implementation, the first transmission signal and the second transmission signal are the same; the first transmission signal and the second transmission signal are pulse signals, maximum length sequences or swept frequency sequences.
In a sixth aspect, an embodiment of the present application provides a position identification method, which is applied to an earphone device, where the earphone device includes a first earphone, and the first earphone is provided with a first sound generating unit, a second sound generating unit, and a first microphone; the method comprises the following steps: sending a first instruction and a second instruction, wherein the first instruction is used for enabling the first sound-emitting unit to send a first sending signal, and the second instruction is used for enabling the second sound-emitting unit to send a second sending signal; acquiring a first receiving signal and a second receiving signal, wherein the first receiving signal is a signal received by a first microphone aiming at a first sending signal, and the second receiving signal is a signal received by the first microphone aiming at a second sending signal; determining first amplitude information and second amplitude information, wherein the first amplitude information corresponds to the appointed frequency information of the first receiving signal, and the second amplitude information corresponds to the appointed frequency information of the second receiving signal; determining the wearing positions of the first earphone and the second earphone according to the size relation between the first amplitude information and the second amplitude information;
the specified frequency information includes: assigning a frequency point; the amplitude information includes: designating the amplitude value of a frequency point; determining the wearing positions of the first earphone and the second earphone according to the size relation between the first amplitude information and the second amplitude information, comprising: if the difference value of the first amplitude information and the second amplitude information is larger than a fifth threshold value, determining that the wearing position of the first earphone is the left ear; if the difference value of the first amplitude information and the second amplitude information is smaller than a sixth threshold value, determining that the wearing position of the first earphone is the right ear; the fifth threshold value is greater than or equal to 0, and the sixth threshold value is less than or equal to 0; or if the difference value between the first amplitude information and the second amplitude information is larger than a seventh threshold value, determining that the wearing position of the first earphone is the right ear; if the difference value between the first amplitude information and the second amplitude information is smaller than an eighth threshold value, determining that the wearing position of the first earphone is the left ear; the seventh threshold value is greater than or equal to 0, and the eighth threshold value is less than or equal to 0; alternatively, the specified frequency information includes: assigning a frequency band; the amplitude information includes: specifying an amplitude mean value of a frequency band; determining first amplitude information corresponding to the designated frequency information of the first received signal and second amplitude information corresponding to the designated frequency information of the second received signal, including: acquiring amplitude values of N designated frequency points of a first receiving signal in a designated frequency band; n is a natural number greater than 1; calculating the average value of the obtained N amplitude values to obtain a first amplitude average value of the specified frequency band; acquiring amplitude values of N designated frequency points of a second receiving signal in a designated frequency band; n is a natural number greater than 1; calculating the average value of the obtained N amplitude values to obtain a second amplitude average value of the specified frequency band;
determining the wearing positions of the first earphone and the second earphone according to the size relation between the first amplitude information and the second amplitude information, comprising: if the difference value of the first amplitude mean value and the second amplitude mean value is larger than a ninth threshold value, determining that the wearing position of the first earphone is the left ear; if the difference value of the first amplitude mean value and the second amplitude mean value is smaller than a tenth threshold value, determining that the wearing position of the first earphone is the right ear; the ninth threshold value is greater than or equal to 0, and the tenth threshold value is less than or equal to 0; or if the difference value of the first amplitude mean value and the second amplitude mean value is larger than an eleventh threshold value, determining that the wearing position of the first earphone is the right ear; if the difference value of the first amplitude mean value and the second amplitude mean value is smaller than a twelfth threshold value, determining that the wearing position of the first earphone is the left ear; the eleventh threshold value is 0 or more and the twelfth threshold value is 0 or less;
the first transmission signal and the second transmission signal are the same; the first transmission signal and the second transmission signal are pulse signals, maximum length sequences or swept frequency sequences.
In a seventh aspect, an embodiment of the present application provides an earphone device, including: the first earphone is provided with a first sound emitting unit and a first microphone; one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions which, when executed by the apparatus, cause the apparatus to perform the method of any of the first aspects.
In an eighth aspect, an embodiment of the present application provides an earphone device, including: the earphone comprises a first earphone and a second earphone, wherein the first earphone is provided with a first sound generating unit and a first microphone, and the second earphone is provided with a second sound generating unit and a second microphone; one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions which, when executed by the apparatus, cause the apparatus to perform the method of any of the second aspects.
In a ninth aspect, an embodiment of the present application provides an earphone device, including: the first earphone is provided with a first sound generating unit, a second sound generating unit and a first microphone; one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions, which when executed by the apparatus, cause the apparatus to perform the method of any of the third aspects.
The earphone device may be a headphone, an ear-hook earphone or an in-ear earphone. The first earphone and the second earphone included in the earphone device may be identical in appearance without distinguishing between the left and right earphones. The sound generating unit is generally disposed on a front surface of the earphone (the first earphone or the second earphone) on the side where the sound generating unit is located, where the front surface of the earphone refers to a surface of the user that is close to the ear when wearing the earphone.
In a tenth aspect, embodiments of the present application provide a computer-readable storage medium, in which a computer program is stored, which, when run on a computer, causes the computer to perform the method of any one of the first to third aspects.
In an eleventh aspect, the present application provides a computer program for performing the method of the first aspect when the computer program is executed by a computer.
In a possible design, the program in the eleventh aspect may be stored in whole or in part on a storage medium packaged with the processor, or in part or in whole on a memory not packaged with the processor.
Drawings
Fig. 1 is a schematic diagram of a prior art earphone device;
fig. 2 is a schematic structural diagram of an earphone device according to an embodiment of the present application;
fig. 3 is another schematic structural diagram of an earphone device according to an embodiment of the present application;
fig. 4 is a diagram illustrating a front side of an earphone in a headphone device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a headset according to an embodiment of the present application;
FIG. 6 is a schematic diagram of signals received by a microphone according to an embodiment of the present invention;
FIG. 7 is a flow chart of one embodiment of a location identification method of the present application;
FIG. 8 is a flow chart of another embodiment of a method for identifying a location of the present application;
FIG. 9 is a flow chart of yet another embodiment of a location identification method of the present application;
FIG. 10 is a flow chart of yet another embodiment of a method of identifying a location of the present application;
fig. 11 is a schematic view of another structure of a headphone according to an embodiment of the present application;
FIG. 12 is a schematic diagram of signals received by a microphone according to an embodiment of the present application;
FIG. 13 is a flow chart of yet another embodiment of a location identification method of the present application;
FIG. 14 is a flow chart of yet another embodiment of a method for location identification of the present application;
FIG. 15 is a block diagram of one embodiment of a position identifying device of the present application;
FIG. 16 is a block diagram of another embodiment of a position identifying device of the present application;
fig. 17 is a block diagram of another embodiment of the position recognition apparatus of the present application.
Detailed Description
The terminology used in the description of the embodiments section of the present application is for the purpose of describing particular embodiments of the present application only and is not intended to be limiting of the present application.
Fig. 2 is a diagram illustrating an example of a structure of a headset device according to the present invention, and as shown in fig. 2, a headset device 200 may include: a first headset 210, a second headset 220, a processor 230; each of the first earphone 210 and the second earphone 220 includes: a sound emitting unit 241 and a microphone 242.
It is to be understood that the illustrated structure of the embodiment of the present invention does not constitute a specific limitation to the ear speaker device 200. In other embodiments of the present application, the earphone device 200 may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. For example, referring to fig. 3, the processor 230 may be split into a first processor 310 and a second processor 320, the first processor 310 is connected to the sound generating unit and the microphone in the first earphone 210, and the second processor 320 is connected to the sound generating unit and the microphone in the second earphone 220.
The number of the sound emitting units 241 included in the first earphone 210 is 1 or more, and the embodiment of the present application is not limited. The number of the microphones 242 included in the first earphone 210 is 1 or more, and the embodiment of the present application is not limited.
The number of the sound emitting units 241 included in the second earphone 220 is 1 or more, and the embodiment of the present application is not limited. The number of the microphones 242 included in the second earphone 220 is 1 or more, and the embodiment of the present application is not limited.
Processor 230 may include one or more processing units, such as: the processor 230 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. Wherein, the different processing units may be independent devices or may be integrated in one or more processors.
A memory may also be provided in processor 230 for storing instructions and data. In some embodiments, the memory in the processor 230 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 230. If the processor 230 needs to reuse the instruction or data, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 230, thereby increasing the efficiency of the system.
The sound generating unit 241 is configured to convert the audio electrical signal into a sound signal.
The microphone 242, also referred to as a "microphone," is used to convert sound signals into electrical audio signals.
For convenience of understanding, the following embodiments of the present application will specifically describe the method provided by the embodiments of the present application by taking the earphone device having the structure shown in fig. 2 as an example, with reference to the accompanying drawings and application scenarios.
The earphone device of the embodiment of the application can be a headset, an ear-hook earphone or an in-ear earphone.
The first earphone and the second earphone which are included in the earphone device of the embodiment of the application can be the same in appearance, and the left earphone and the right earphone are not distinguished.
The sound generating unit of the embodiment of the application is generally arranged on the front face of the earphone (the first earphone or the second earphone) on the side where the sound generating unit belongs, and the front face of the earphone refers to the face, close to the ear, of a user when wearing the earphone. Referring to fig. 4, the front faces 41 of a first and second of the headphones are shown.
The wearing position of the earphone referred to in the embodiments of the present application refers to the left ear of the user or the right ear of the user.
The position recognition method can realize position recognition by using one sound production unit in one earphone.
The implementation principle is first explained.
For a headset device, the position of the sound unit and the microphone in the headset is determined. If the earphone is worn on one side of the ear of the user, it is assumed that the sound generating unit sends a signal X, and the microphone receives a signal Y based on the signal X sent by the sound generating unit, and if the sound generating unit sends the signal X multiple times, the frequency spectrums of the signal Y received by the microphone multiple times are similar, for example, at the same frequency point, the amplitudes of the multiple signals Y are generally similar. The spectrum of the signal Y received by the microphone when the earphone is worn on the left ear of the user is different from the spectrum of the signal Y received by the microphone when the earphone is worn on the right ear of the user. The above differences can be reflected in: and in some frequency points or frequency bands, the amplitude of the signal Y corresponding to the left ear and the amplitude of the signal Y corresponding to the right ear have detectable difference.
Referring to fig. 5, a headphone device is taken as an example, which includes a first earphone 210 and a second earphone 220, each in the form of an ear cup. The first earphone 210 and the second earphone 220 have the same external structure, and are provided with a sound-emitting unit 511 and a sound-emitting unit 521 at the same position, respectively, and a microphone 512 and a microphone 522 at the same position, respectively. Assume that the user wears the first earphone 210 on the left ear and the second earphone 220 on the right ear. The sound generating unit 511 and the sound generating unit 521 respectively generate the same signal, which may be a pulse signal, an MLS sequence (Maximum length sequence), a frequency sweep sequence, or the like.
The microphone 512 receives the signal from the sound generating unit 511, and the microphone 522 receives the signal from the sound generating unit 521, but due to the difference between the left and right ear structures, the signals received by the microphone 512 and the microphone 522 are different although the signals transmitted by the sound generating unit 511 and the sound generating unit 521 are the same.
For example, as shown in fig. 6, an exemplary graph of the signal spectrums received by the microphones 512 and 522 is given, a waveform 61 shown by a solid line is an exemplary graph of the signal spectrum received by the microphone 512, and a waveform 62 shown by a dotted line is an exemplary graph of the signal spectrum received by the microphone 522, based on the exemplary graph, at many frequency points and frequency bands, the amplitude of the signal received by the microphone 512 is smaller than the amplitude of the signal received by the microphone 522, that is, the amplitude of the signal received by the microphone worn on the left ear is larger than the amplitude of the signal received by the microphone worn on the right ear, especially, the frequency band of 0 to 10kHZ, which is more obvious.
It should be noted that fig. 6 is only an example of signals received by the first microphone and the second microphone, and the signals received by the microphones may be affected by different structures of the earphones, different positions of the sound generating unit in the ear muff, different signals emitted by the sound generating unit, different positions of the microphones in the ear muff, and the like, but it may be determined that, due to the difference of the left and right ear structures, the same earmuff is worn on the left ear and the right ear to receive the signal, in some frequency points or frequency bands, the signal amplitude of the same frequency point has difference, and the difference has commonality, that is, the amplitude of the signal received by the microphone worn on the left ear is smaller than the amplitude of the signal received by the microphone worn on the right ear, alternatively, the microphone worn on the left ear receives a signal having a magnitude that is greater than the magnitude of the signal received by the microphone worn on the right ear. Technical personnel can obtain specific signals received by microphones in two earphones under the condition that the sound production unit sends the same signal through an experimental mode based on the designed earphones, so that the difference degree of the signal amplitude of each frequency point between the two signals is determined.
Based on this, the position recognition methods shown in fig. 7 to 10 are provided, taking as an example that the amplitude of the signal received by the microphone worn on the left ear is larger than the amplitude of the signal received by the microphone worn on the right ear at the same frequency point.
Fig. 7 is a flowchart of an embodiment of the location identification method of the present application, and as shown in fig. 7, the method may include:
step 701: and sending a first instruction, wherein the first instruction is used for enabling a first sound-emitting unit of the first earphone to send a first sending signal.
The first transmission signal may be a pulse signal, a Maximum Length Sequence (MLS), a swept frequency sequence, or the like.
The first earphone may be any one of 2 earphones included in the earphone device, and the first sound generating unit is disposed in the first earphone, preferably, on a front surface of the first earphone.
Step 702: a first receive signal is obtained, the first receive signal being a signal received by a first microphone of a first headset.
The first microphone is arranged in the first earphone, preferably in the front of the first earphone.
Step 703: and determining the amplitude value of the first received signal at the designated frequency point.
The designated frequency point may have different values for different headset devices, and the embodiment of the present application is not limited. It should be noted that, assuming that a signal received by the first microphone is a first signal when the first earphone is worn on the left ear, and a signal received by the first microphone is a second signal when the first earphone is worn on the right ear, a technician may obtain the first signal and the second signal through an experimental manner, obtain waveforms of the two signals shown in fig. 6, for example, and select a frequency point with a relatively large difference in amplitude value. Taking fig. 6 as an example, any frequency point in 20Hz to 20kHz may be selected as the designated frequency point, for example, the frequency point a with the largest amplitude difference may be selected, so as to improve the detection accuracy. Or, in order to prevent the signal emitted by the sound emitting unit from being recognized as noise by human ears and improve user experience, a certain frequency point in 0 to 20Hz or a certain frequency point above 20kHz may be selected as the designated frequency point, so that the detection of the left and right ears can be realized without being perceived by the user, for example, in the waveform shown in fig. 6, a frequency point with a relatively large amplitude difference in the frequency points of 0 to 20Hz or above 20kHz may be selected as the designated frequency point.
It should be noted that, in order to make the selection of the designated frequency point more accurate, a plurality of first signals and second signals may be obtained through multiple experiments, and the designated frequency point is determined through a statistical manner, which is not described herein again.
Step 704: and judging whether the amplitude value is larger than a preset first threshold value, if so, determining that the wearing position of the first earphone is the left ear of the user, and otherwise, determining that the wearing position of the first earphone is the right ear of the user.
The specific value of the first threshold is related to the selection of the designated frequency point in step 703, and the embodiment of the present application is not limited. In one possible implementation manner, continuing with the description in step 703, once the specified frequency point is determined, the mean value between the two amplitude values, i.e. the amplitude values of the two amplitude values, may be taken as the first threshold value based on the amplitude value of the first signal at the specified frequency point and the amplitude value of the second signal at the specified frequency point. Continuing with the example in step 703, if the designated frequency point is frequency point a shown in fig. 6, and the two amplitude values at frequency point a are b1 and b2, respectively, the median values of b1 and b2 can be calculated as the first threshold. If a plurality of first signals and second signals are obtained through a plurality of experiments, a plurality of first threshold values can also be obtained through statistics, and the average value of the plurality of first threshold values is taken as the final first threshold value.
Optionally, in order to improve the identification accuracy of the position identification method of the present application, the above steps 701 to 703 may be executed M times, where M is a natural number greater than 1, to obtain M amplitude values of the first received signal at the designated frequency point, and before step 704, the method may further include: calculating the average value or median of the M amplitude values; accordingly, in step 704, it can be determined whether the average or median of the amplitude values is greater than a predetermined first threshold.
Alternatively, in order to improve the recognition accuracy of the position recognition method of the present application, the method shown in fig. 7 may be performed K times, where K is a natural number greater than 1, to obtain K position recognition results, and the earphone device may select a position recognition result with a relatively large number of occurrences as a final position recognition result based on the K position recognition results.
Unlike the embodiment shown in fig. 7, which determines that the first earphone is worn on the left ear or the right ear based on the amplitude value of the first received signal at the specified frequency point, in the embodiment shown in fig. 8, the first earphone is determined to be worn on the left ear or the right ear based on the amplitude average value of the first received signal at the specified frequency band, at this time, steps 703 to 704 are replaced by steps 801 to 802:
step 801: and calculating the amplitude average value of the first receiving signal in the designated frequency band.
In one possible implementation, the step may include:
obtaining amplitude values of a first receiving signal at N designated frequency points, wherein the N designated frequency points are all located in a designated frequency band;
and calculating the average value of the acquired N amplitude values to obtain the amplitude average value of the specified frequency band.
The selection of the designated frequency point is similar to the selection of the designated frequency point in step 703, and after the first signal and the second signal are obtained through experiments, a frequency band with a relatively large difference in amplitude value of each frequency point may be selected as the designated frequency band, for example, the frequency band shown in fig. 6 is 0.1 to 10 kHz.
Step 802: and judging whether the amplitude mean value is larger than a preset second threshold value, if so, determining that the wearing position of the first earphone is the left ear of the user, and otherwise, determining that the wearing position of the first earphone is the right ear of the user.
The determination of the second threshold is similar to the determination of the first threshold in step 704, and the specific value is not limited in this embodiment of the application. In one possible implementation, continuing with the description in step 703, once the specified frequency point is determined, a mean value of the amplitude values may be calculated based on the amplitude values of the first signal at the specified frequency segment, a mean value of the amplitude values may be calculated based on the amplitude values of the second signal at the specified frequency segment, and then a mean value of the mean values of the two amplitude values may be further calculated as the second threshold. If a plurality of first signals and second signals are obtained through a plurality of experiments, a plurality of second threshold values can also be obtained through statistics, and the average value of the plurality of second threshold values is taken as the final second threshold value.
Optionally, in order to improve the identification accuracy of the position identification method of the present application, the above steps 701 to 801 may be executed M times, where M is a natural number greater than 1, to obtain M amplitude average values of the first received signal in the specified frequency band, and before step 802, the method may further include: calculating the average value or median of the M amplitude mean values; accordingly, in step 802, it may be determined whether the average value or median of the amplitude mean is greater than a preset first threshold.
Alternatively, in order to improve the recognition accuracy of the position recognition method of the present application, the method shown in fig. 8 may be performed K times, where K is a natural number greater than 1, to obtain K position recognition results, and the earphone device may select a position recognition result with a relatively large number of occurrences as a final position recognition result based on the K position recognition results.
The methods shown in fig. 7 and 8 may be applied to the earphone device with the structure shown in fig. 2, and if the methods shown in fig. 7 and 8 are extended to the earphone device with the structure shown in fig. 3, the methods shown in fig. 7 and 8 may be executed by the first processor, and after obtaining the wearing position of the first earphone, that is, the position identification result, the identification result may be sent to the second processor, so that the first processor and the second processor may perform audio playing based on the position identification result.
The position identification method can respectively use one sound production unit in two earphones to carry out position identification.
The implementation principle can refer to the foregoing description about fig. 5 and fig. 6, specifically: at many frequency points and frequency bands, the amplitude of the signal received by the microphone worn on the left ear is smaller than the amplitude of the signal received by the microphone worn on the right ear. Based on this, the position recognition method shown in fig. 9 and 10 is provided.
Referring to fig. 9, a position identification method according to an embodiment of the present application may include:
step 901: and sending a first instruction, wherein the first instruction is used for enabling a first sound-emitting unit of the first earphone to send a first sending signal.
Step 902: and sending a second instruction, wherein the second instruction is used for enabling a second sound production unit of the second earphone to send a second sending signal.
Optionally, the first transmit signal and the second transmit signal are the same signal. The first transmit signal and the second transmit signal may be pulsed signals, MLS sequences, swept frequency sequences, and the like.
Step 903: a first receive signal and a second receive signal are obtained, the first receive signal being a signal received by a first microphone of a first headset and the second receive signal being a signal received by a second microphone of a second headset.
Step 904: and determining a first amplitude value of the first received signal at the designated frequency point, and determining a second amplitude value of the second received signal at the designated frequency point.
The selection of the designated frequency point in this step may refer to the description in step 703, which is not described herein again.
Step 905: calculating the difference value between the first amplitude value and the second amplitude value, and if the difference value is larger than 0, determining that the wearing position of the first earphone is the left ear of the user and the wearing position of the second earphone is the right ear of the user; if the difference value is less than 0, determining that the wearing position of the first earphone is the right ear of the user, and the wearing position of the second earphone is the left ear of the user; if the difference is equal to 0, the process returns to step 901 and step 902, and the first instruction and the second instruction are retransmitted, and the position recognition is performed again.
Optionally, the steps 901 to 904 may be executed M times, where M is a natural number greater than 1, to obtain M first amplitude values of the first received signal at the designated frequency point, and M second amplitude values of the second received signal at the designated frequency point; step 905 may be preceded by: calculating the average value or median of the M first amplitude values, and calculating the average value or median of the M second amplitude values; accordingly, the difference between the average value and the median can be calculated in step 905 for subsequent processing.
Alternatively, in order to improve the recognition accuracy of the position recognition method of the present application, the method shown in fig. 9 may be performed K times, where K is a natural number greater than 1, to obtain K position recognition results, and the earphone device may select a position recognition result with a relatively large number of occurrences as a final position recognition result based on the K position recognition results.
Unlike the method shown in fig. 9 in which the wearing positions of the first earphone and the second earphone are determined by the difference between the amplitude values of the two received signals at the designated frequency point, in the method shown in fig. 10, the wearing positions of the first earphone and the second earphone are determined by the difference between the average amplitude values of the two received signals at the designated frequency band, specifically, steps 904 and step 905 are replaced by the following steps 1001 to 1002:
step 1001: and calculating a first amplitude average value of the first receiving signal in the designated frequency band, and calculating a second amplitude average value of the second receiving signal in the designated frequency band.
The selection of the designated frequency band in this step may refer to the description in step 801, which is not described herein again.
Step 1002: calculating the difference value of the first amplitude mean value and the second amplitude mean value, and if the difference value is greater than 0, determining that the wearing position of the first earphone is the left ear of the user and the wearing position of the second earphone is the right ear of the user; if the difference value is less than 0, the wearing position of the first earphone is the right ear of the user, and the wearing position of the second earphone is the left ear of the user; if the difference is equal to 0, the process returns to step 901 and step 902, and the first instruction and the second instruction are retransmitted, and the position recognition is performed again.
Optionally, the steps 901 to 1001 may be executed M times, where M is a natural number greater than 1, to obtain M first amplitude averages of the first received signal in the designated frequency band, and M second amplitude averages of the second received signal in the designated frequency band; step 1002 may be preceded by: calculating the average value or median of the M first amplitude mean values, and calculating the average value or median of the M second amplitude mean values; accordingly, the difference between the average value and the median can be calculated in step 1002 for subsequent processing.
Alternatively, in order to improve the recognition accuracy of the position recognition method of the present application, the method shown in fig. 10 may be performed K times, where K is a natural number greater than 1, to obtain K position recognition results, and the earphone device may select a position recognition result with a relatively large number of occurrences as a final position recognition result based on the K position recognition results.
If the method shown in fig. 9 and 10 is extended to the earphone device with the structure shown in fig. 2, fig. 9 and 10 may be executed by a first processor, and at this time, the first processor may send a second instruction to a second processor, and then the second processor controls a second sound generating unit to send a second sending signal, and accordingly, a second receiving signal may also be sent to the first processor by a second microphone through the second processor, and after the first processor obtains a position recognition result, the position recognition result may be sent to the second processor, so that the first processor and the second processor perform audio playing based on the position recognition result.
In the above fig. 7 to 10, taking the case that the amplitude of the signal received by the microphone worn on the left ear is greater than the amplitude of the signal received by the microphone worn on the right ear at the same frequency point as an example, if the amplitude of the signal received by the microphone worn on the left ear is less than the amplitude of the signal received by the microphone worn on the right ear at the same frequency point, the position identification method may be implemented with reference to the above fig. 7 to 10, except that the final identification result is opposite to that in the above fig. 7 to 10.
The position recognition method can realize position recognition by using 2 sound production units in one earphone.
The implementation principle is first explained.
Referring to fig. 11, taking a headphone device as an example, two earphones exist in the form of earmuffs, and the appearance structures of the two earphones are the same. The first earphone 210 is one earphone of a headphone device, and the first earphone 210 is provided with a first sound emitting unit 111, a second sound emitting unit 112, and a first microphone 113. Optionally, the first sound emitting unit 111, the second sound emitting unit 112, and the first microphone 113 are disposed on the front surface of the first earphone 210, and the positional relationship therebetween is not limited in the embodiments of the present application. In fig. 11, the first sound emitting unit 111 and the second sound emitting unit 112 are respectively located on both sides of the first microphone 113 as an example.
As shown in the left diagram of fig. 11, when the first earphone 210 is worn on the left ear, the first sound generating unit 111 is located on the back side of the auricle of the left ear, and the second sound generating unit 112 is located on the front side of the auricle of the left ear, and at this time, the first sound generating unit 111 and the second sound generating unit 112 respectively generate a signal 1 and a signal 2, and optionally, the signal 1 and the signal 2 are the same; taking the signals 1 and 2 as the same example, the first sound generating unit 111 and the second sound generating unit 112 may sequentially emit the signals 1 and 2, the first microphone 113 receives the signal 3 for the signal 1, and receives the signal 4 for the signal 2, because the positions of the first sound generating unit 111 and the second sound generating unit 112 relative to the left ear are different, and the positions relative to the first microphone are different, at this time, the signal amplitudes of the signal 3 and the signal 4 at many frequency points or frequency bands are different, and the specific difference is related to the structure of the first earphone 210, the positional relationship among the first sound generating unit 111, the second sound generating unit 112, and the first microphone 113, but the amplitude difference is unidirectional in many cases, that is, the amplitude of one signal at most frequency points or frequency bands is greater than that of the other signal, for example, in the left diagram of fig. 12, the frequency spectrum of the signal 3 may be as shown by a waveform 121, the frequency spectrum of the signal 4 can be shown as a waveform 122, and it can be seen that in most frequency bands, the amplitude of the signal 121 is greater than that of the signal 122, for example, the frequency band is 0-10 kHz, which is more obvious;
as shown in the right diagram of fig. 11, when the first earphone 210 is worn on the right ear, the first sound generating unit 111 is located on the front side of the auricle of the right ear, the second sound generating unit 112 is located on the back side of the auricle of the right ear, at this time, if the signal 1 and the signal 2 are the same, the first sound generating unit 111 and the second sound generating unit 112 sequentially emit the signal 1 and the signal 2, the first microphone 113 receives the signal 5 for the signal 1, and receives the signal 6 for the signal 2, because the positions of the first sound generating unit 111 and the second sound generating unit 112 relative to the right ear are different, at this time, the signal amplitudes of the signal 5 and the signal 6 at many frequency points or frequency bands also have differences, which amplitude differences are unidirectional in many cases, and because the positional relationships of the first sound generating unit 111 and the second sound generating unit 112 relative to the right ear are just opposite to the positional relationships of the first sound generating unit 111 and the second sound generating unit 112 relative to the left ear, this amplitude difference is also opposite to the difference between signal 3 and signal 4 described above. For example, if signal 3 has a greater magnitude than signal 4 at many frequency points or bands, then signal 5 has a lesser magnitude than signal 6 at many frequency points or bands. For example, in the right diagram of fig. 12, the spectrum of signal 6 may be as shown by waveform 123, and the spectrum of signal 5 may be as shown by waveform 124, with the amplitude of signal 5 being less than the amplitude of signal 6 for most of the frequency bands.
In the above description, for example, the amplitude of the signal 3 is greater than the amplitude of the signal 4, and the amplitude of the signal 5 is less than the amplitude of the signal 6 at the same frequency point, and after the positions of the first sound generating unit 111 and the second sound generating unit 112 are changed, the situation that the amplitude of the signal 3 is less than the amplitude of the signal 4, and the amplitude of the signal 5 is greater than the amplitude of the signal 6 at the same frequency point may also occur.
The position recognition methods shown in fig. 13 and 14 are provided below by taking as an example that the amplitude of the signal 3 is larger than that of the signal 4 and the amplitude of the signal 5 is smaller than that of the signal 6.
Referring to fig. 13, a position identification method according to an embodiment of the present application may include:
step 1301: and sending a first instruction, wherein the first instruction is used for enabling a first sound sending unit of the first earphone to send a first sending signal and obtain a first receiving signal, and the first receiving signal is a signal received by a first microphone of the first earphone aiming at the first sending signal.
Step 1302: and sending a second instruction, wherein the second instruction is used for sending a second sending signal by a second sound-generating unit of the first earphone and acquiring a second receiving signal, and the first receiving signal is a signal received by a first microphone of the first earphone aiming at the second sending signal.
Optionally, the first transmit signal and the second transmit signal are the same signal. The first transmission signal and the second transmission signal may be pulse signals, MLS sequences, swept sequences, and the like.
Step 1303: and determining a first amplitude value of the first received signal at the designated frequency point, and determining a second amplitude value of the second received signal at the designated frequency point.
The designated frequency point may have different values for different headset devices, and the embodiment of the present application is not limited. It should be noted that, a technician may obtain, through an experimental manner, a first received signal and a second received signal when the first earphone is worn on the left ear, and a first received signal and a second received signal when the first earphone is worn on the right ear, and obtain a frequency point with opposite amplitude value differences corresponding to the left ear and the right ear as an assigned frequency point. Taking fig. 12 as an example, any frequency point of 20Hz to 10kHz may be selected as the designated frequency point, for example, the frequency point a with the largest amplitude difference may be selected, so as to improve the detection accuracy. Or, in order to prevent the signal emitted by the sound emitting unit from being recognized as noise by human ears and improve user experience, a certain frequency point in 0 to 20Hz or a certain frequency point above 20kHz may be selected as the designated frequency point, so that the detection of the left and right ears can be realized without being perceived by the user, for example, in the waveform shown in fig. 6, a frequency point with a relatively large amplitude difference in the frequency points of 0 to 20Hz or above 20kHz may be selected as the designated frequency point.
Step 1304: calculating a difference value between the first amplitude value and the second amplitude value, and if the difference value is larger than a first difference value threshold value, determining that the wearing position of the first earphone is the left ear of the user and the wearing position of the second earphone is the right ear of the user; if the difference value is smaller than a second difference value threshold value, determining that the wearing position of the first earphone is the right ear of the user, and the wearing position of the second earphone is the left ear of the user; otherwise, returning to step 1301 and step 1302, resending the first instruction and the second instruction, and performing position identification again.
Wherein the first difference threshold and the second difference threshold may both be 0; or, the first difference threshold is greater than 0, and the second difference threshold is less than 0, and preferably, the absolute values of the first difference threshold and the second difference threshold are equal.
Optionally, the steps 1301 to 1303 may be executed M times, where M is a natural number greater than 1, to obtain M first amplitude values of the first received signal at the designated frequency point, and M second amplitude values of the second received signal at the designated frequency point; step 1304 may also be preceded by: calculating the average value or median of the M first amplitude values, and calculating the average value or median of the M second amplitude values; accordingly, the difference between the average value and the median may be calculated in step 1305 for subsequent processing.
Alternatively, in order to improve the recognition accuracy of the position recognition method of the present application, the method shown in fig. 13 may be executed K times, where K is a natural number greater than 1, to obtain K position recognition results, and the earphone device may select a position recognition result with a relatively large number of occurrences as a final position recognition result based on the K position recognition results.
Unlike the method shown in fig. 13 in which the first headset wearing position is determined by the difference between the amplitude values of the two received signals at the designated frequency point, in the method shown in fig. 14, the first headset wearing position is determined by the difference between the average amplitude values of the two received signals at the designated frequency band, specifically, step 1303 and step 1304 are replaced by the following steps 1401 to 1402:
step 1401: and calculating a first amplitude average value of the first receiving signal in the designated frequency band, and calculating a second amplitude average value of the second receiving signal in the designated frequency band.
The specification of the designated frequency point in step 1303 can be referred to for the selection of the designated frequency band, and the difference is that the frequency band with opposite amplitude value difference corresponding to the left ear and the right ear is selected in step 1401 as the designated frequency band. Taking fig. 12 as an example, 0.1 to 10kHz can be selected as the designated frequency band.
Step 1402: calculating the difference value of the first amplitude mean value and the second amplitude mean value, and if the difference value is larger than a third difference value threshold value, determining that the wearing position of the first earphone is the left ear of the user and the wearing position of the second earphone is the right ear of the user; if the difference value is smaller than the fourth difference value threshold value, determining that the wearing position of the first earphone is the right ear of the user, and the wearing position of the second earphone is the left ear of the user; otherwise, returning to step 1301 and step 1302, resending the first instruction and the second instruction, and performing position identification again.
Wherein the third difference threshold and the fourth difference threshold may both be 0; or the third difference threshold is greater than 0 and the fourth difference threshold is less than 0, or the third difference threshold and the fourth difference threshold are equal in absolute value.
Optionally, the steps 1301 to 1401 may be executed M times, where M is a natural number greater than 1, to obtain M first amplitude averages of the first received signal in the designated frequency band, and M second amplitude averages of the second received signal in the designated frequency band; step 1402 may be preceded by: calculating the average value or median of the M first amplitude mean values, and calculating the average value or median of the M second amplitude mean values; accordingly, the difference between the average value and the median may be calculated in step 1402, and the subsequent processing may be performed.
Alternatively, in order to improve the recognition accuracy of the position recognition method of the present application, the method shown in fig. 14 may be executed K times, where K is a natural number greater than 1, to obtain K position recognition results, and the earphone device may select a position recognition result with a relatively large number of occurrences as a final position recognition result based on the K position recognition results.
The methods shown in fig. 13 and 14 may be applied to the earphone device with the structure shown in fig. 2, and if the methods shown in fig. 13 and 14 are extended to the earphone device with the structure shown in fig. 3, fig. 13 and 14 may be executed by the first processor, and after obtaining the wearing position of the first earphone, that is, the position recognition result may be sent to the second processor, so that the first processor and the second processor may perform audio playing based on the position recognition result.
In the above fig. 11 to 12, taking the same frequency point as an example, the amplitude of the signal 3 is greater than that of the signal 4, and the amplitude of the signal 5 is less than that of the signal 6, if the amplitude of the signal 3 is less than that of the signal 4 and the amplitude of the signal 5 is greater than that of the signal 6 at the same frequency point, the position identification method can be implemented with reference to the above fig. 11 to 12, except that the final identification result is opposite to that of the above fig. 11 to 12.
Based on the implementation principle shown in fig. 11 and 12, in the position identification method according to the embodiment of the present application, 2 sound units in two earphones can be used to respectively implement position identification, at this time, 2 sound units in the first earphone can be used to obtain a first position identification result by the method shown in fig. 13 or 14, 2 sound units in the second earphone can be used to obtain a second position identification result by the method shown in fig. 13 or 14, the two position identification results are compared, when the two position identification results are consistent, it is indicated that the first position identification result and the second position identification result are accurate, otherwise, the position identification is performed again.
By the position identification method provided by the embodiment of the application, 2 earphones in the earphone equipment are automatically identified to be worn on the left ear or the right ear after the user wears the earphone equipment, and the user does not need to distinguish the left earphone from the right earphone, so that the use of the user is facilitated, and the user experience is improved.
In addition, 2 earphones in the earphone equipment do not need to distinguish the left and right ears in appearance or carry out identification, so that the situation that a user wears left and right earphones reversely is avoided, and the discomfort caused by the fact that the earphones cannot be matched with the ears when the user wears the left and right earphones reversely in the prior art is avoided; moreover, the left and right earphones can be completely consistent in appearance, the left and right earphones can share a structural part and a die, the number of parts is reduced, the manufacturing cost is reduced to a certain degree, and the left and right earphones do not need to be strictly distinguished during production line assembly.
It is to be understood that some or all of the steps or operations in the above-described embodiments are merely examples, and other operations or variations of various operations may be performed by the embodiments of the present application. Further, the various steps may be performed in a different order presented in the above-described embodiments, and it is possible that not all of the operations in the above-described embodiments are performed.
Fig. 15 is a schematic structural diagram of an embodiment of a position recognition apparatus according to the present application, where the apparatus can be applied to a headset device, where the headset device includes a first headset, and a first sound generating unit and a first microphone are disposed on the first headset; as shown in fig. 15, the apparatus 1500 may include:
a transmitting unit 1510 configured to transmit a first instruction, the first instruction being configured to cause the first sound emitting unit to transmit a first transmission signal;
an obtaining unit 1520, configured to obtain a first received signal, where the first received signal is a signal received by the first microphone with respect to the first transmitted signal;
a determining unit 1530 for determining amplitude information corresponding to the designated frequency information of the first received signal; and determining the wearing position of the first earphone according to the size relation between the amplitude information and a preset threshold value.
In one possible implementation, the specifying frequency information includes: assigning a frequency point; the amplitude information includes: designating the amplitude value of a frequency point; the determining unit 1530 may specifically be configured to: if the amplitude value is larger than a preset first threshold value, determining that the wearing position of the first earphone is the left ear; if the amplitude value is smaller than a preset first threshold value, determining that the wearing position of the first earphone is the right ear; or if the amplitude value is larger than a preset second threshold value, determining that the wearing position of the first earphone is the right ear; and if the amplitude value is smaller than a preset second threshold value, determining that the wearing position of the first earphone is the left ear.
In one possible implementation, the specifying frequency information includes: assigning a frequency band; the amplitude information includes: specifying an amplitude mean value of a frequency band; the determining unit 1530 may specifically be configured to: acquiring amplitude values of N designated frequency points of a first receiving signal in a designated frequency band; n is a natural number greater than 1; and calculating the average value of the acquired N amplitude values to obtain the amplitude average value of the specified frequency band.
In a possible implementation manner, the determining unit 1530 may specifically be configured to: if the amplitude average value is larger than a preset third threshold value, determining that the wearing position of the first earphone is the left ear; if the amplitude average value is smaller than a preset third threshold value, determining that the wearing position of the first earphone is the right ear; or if the amplitude mean value is larger than a preset fourth threshold value, determining that the wearing position of the first earphone is the right ear; and if the amplitude average value is smaller than a preset fourth threshold value, determining that the wearing position of the first earphone is the left ear.
In one possible implementation, the first transmission signal is a pulse signal, a maximum length sequence or a swept frequency sequence.
Fig. 16 is a schematic structural diagram of an embodiment of a position recognition apparatus according to the present application, where the apparatus can be applied to a headset device, where the headset device includes a first headset and a second headset, a first sound generating unit and a first microphone are disposed on the first headset, and a second sound generating unit and a second microphone are disposed on the second headset; as shown in fig. 16, the apparatus 1600 may comprise:
a sending unit 1610 configured to send a first instruction and a second instruction, where the first instruction is configured to enable the first sound generating unit to send a first sending signal, and the second instruction is configured to enable the second sound generating unit to send a second sending signal;
an obtaining unit 1620 configured to obtain a first received signal and a second received signal, where the first received signal is a signal received by the first microphone with respect to the first transmitted signal, and the second received signal is a signal received by the second microphone with respect to the second transmitted signal;
a determining unit 1630 configured to determine first amplitude information corresponding to the specified frequency information of the first received signal and second amplitude information corresponding to the specified frequency information of the second received signal; and determining the wearing positions of the first earphone and the second earphone according to the size relation between the first amplitude information and the second amplitude information.
In one possible implementation, the specifying frequency information includes: assigning a frequency point; the amplitude information includes: designating the amplitude value of a frequency point; the determining unit 1630 may specifically be configured to: if the first amplitude information is larger than the second amplitude information, determining that the wearing position of the first earphone is the left ear and the wearing position of the second earphone is the right ear; if the first amplitude information is smaller than the preset second amplitude information, determining that the wearing position of the first earphone is a right ear and the wearing position of the second earphone is a left ear; or if the first amplitude information is larger than the second amplitude information, determining that the wearing position of the first earphone is the right ear and the wearing position of the second earphone is the left ear; and if the first amplitude information is smaller than the preset second amplitude information, determining that the wearing position of the first earphone is the left ear and the wearing position of the second earphone is the right ear.
In one possible implementation, the specifying frequency information includes: assigning a frequency band; the amplitude information includes: specifying an amplitude mean value of a frequency band; the determining unit 1630 may specifically be configured to: acquiring amplitude values of N designated frequency points of a first receiving signal in a designated frequency band; n is a natural number greater than 1; calculating the average value of the obtained N amplitude values to obtain a first amplitude average value of the specified frequency band; acquiring amplitude values of N designated frequency points of a second receiving signal in a designated frequency band; n is a natural number greater than 1; and calculating the average value of the acquired N amplitude values to obtain a second amplitude average value of the specified frequency band.
In a possible implementation manner, the determining unit 1630 may specifically be configured to: if the first amplitude mean value is larger than the second amplitude mean value, determining that the wearing position of the first earphone is the left ear and the wearing position of the second earphone is the right ear; if the first amplitude average value is smaller than a preset second amplitude average value, determining that the wearing position of the first earphone is a right ear and the wearing position of the second earphone is a left ear; or if the first amplitude mean value is larger than the second amplitude mean value, determining that the wearing position of the first earphone is the right ear and the wearing position of the second earphone is the left ear; and if the first amplitude average value is smaller than the preset second amplitude average value, determining that the wearing position of the first earphone is the left ear and the wearing position of the second earphone is the right ear.
In one possible implementation, the first transmission signal and the second transmission signal are the same; the first transmission signal and the second transmission signal are pulse signals, maximum length sequences or swept frequency sequences.
Fig. 17 is a schematic structural diagram of an embodiment of a position recognition apparatus according to the present application, where the apparatus can be applied to a headset device, where the headset device includes a first headset, and a first sound generating unit, a second sound generating unit, and a first microphone are disposed on the first headset; as shown in fig. 17, the apparatus 1700 may include:
a sending unit 1710, configured to send a first instruction and a second instruction, where the first instruction is configured to enable the first sound generating unit to send a first sending signal, and the second instruction is configured to enable the second sound generating unit to send a second sending signal;
an acquisition unit 1720 configured to acquire a first reception signal and a second reception signal, the first reception signal being a signal received by the first microphone with respect to the first transmission signal, the second reception signal being a signal received by the first microphone with respect to the second transmission signal;
a determining unit 1730 configured to determine first amplitude information corresponding to the specified frequency information of the first received signal and second amplitude information corresponding to the specified frequency information of the second received signal; and determining the wearing positions of the first earphone and the second earphone according to the size relation between the first amplitude information and the second amplitude information.
In one possible implementation, the specifying frequency information includes: assigning a frequency point; the amplitude information includes: designating an amplitude value of a frequency point; the determining unit 1730 may specifically be configured to: if the difference value of the first amplitude information and the second amplitude information is larger than a fifth threshold value, determining that the wearing position of the first earphone is the left ear; if the difference value between the first amplitude information and the second amplitude information is smaller than a sixth threshold value, determining that the wearing position of the first earphone is the right ear; the fifth threshold value is greater than or equal to 0, and the sixth threshold value is less than or equal to 0; or if the difference value between the first amplitude information and the second amplitude information is larger than a seventh threshold value, determining that the wearing position of the first earphone is the right ear; if the difference value between the first amplitude information and the second amplitude information is smaller than an eighth threshold value, determining that the wearing position of the first earphone is the left ear; the seventh threshold value is equal to or greater than 0, and the eighth threshold value is equal to or less than 0.
In one possible implementation, the specifying frequency information includes: assigning a frequency band; the amplitude information includes: specifying an amplitude mean value of a frequency band; the determining unit 1730 may specifically be configured to: acquiring amplitude values of N designated frequency points of a first receiving signal in a designated frequency band; n is a natural number greater than 1; calculating the average value of the obtained N amplitude values to obtain a first amplitude average value of the specified frequency band; acquiring amplitude values of N designated frequency points of a second receiving signal in a designated frequency band; n is a natural number greater than 1; and calculating the average value of the acquired N amplitude values to obtain a second amplitude average value of the specified frequency band.
In a possible implementation manner, the determining unit 1730 may specifically be configured to: if the difference value of the first amplitude mean value and the second amplitude mean value is larger than a ninth threshold value, determining that the wearing position of the first earphone is the left ear; if the difference value of the first amplitude mean value and the second amplitude mean value is smaller than a tenth threshold value, determining that the wearing position of the first earphone is the right ear; the ninth threshold value is greater than or equal to 0, and the tenth threshold value is less than or equal to 0; or if the difference value of the first amplitude mean value and the second amplitude mean value is larger than an eleventh threshold value, determining that the wearing position of the first earphone is the right ear; if the difference value of the first amplitude mean value and the second amplitude mean value is smaller than a twelfth threshold value, determining that the wearing position of the first earphone is the left ear; the eleventh threshold value is 0 or more and the twelfth threshold value is 0 or less.
In one possible implementation, the first transmission signal and the second transmission signal are the same; the first transmission signal and the second transmission signal are pulse signals, maximum length sequences or swept frequency sequences.
The embodiments shown in fig. 15 to 17 provide apparatuses for implementing the technical solutions of the method embodiments shown in fig. 7 to 14 of the present application, and the implementation principles and technical effects thereof can be further referred to the related descriptions in the method embodiments.
It should be understood that the division of the units of the devices shown in fig. 15 to 17 is only a logical division, and the actual implementation may be wholly or partially integrated into one physical entity or may be physically separated. And these units can all be realized in the form of software invoked by a processing element; or may be implemented entirely in hardware; part of the units can also be realized in the form of software called by a processing element, and part of the units can be realized in the form of hardware. For example, the obtaining unit may be a processing element separately set up, or may be implemented by being integrated in a certain chip of the electronic device. The other units are implemented similarly. In addition, all or part of the units can be integrated together or can be independently realized. In implementation, the steps of the method or the units above may be implemented by hardware integrated logic circuits in a processor element or instructions in software.
An embodiment of the present application further provides an earphone device, including: the earphone comprises a first earphone, a second earphone and a third earphone, wherein the first earphone is provided with a first sound-emitting unit and a first microphone; one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions which, when executed by the apparatus, cause the apparatus to perform the methods provided by the embodiments of fig. 7-8 of the present application.
An embodiment of the present application further provides an earphone device, including: the earphone comprises a first earphone and a second earphone, wherein the first earphone is provided with a first sound generating unit and a first microphone, and the second earphone is provided with a second sound generating unit and a second microphone; one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions which, when executed by the apparatus, cause the apparatus to perform the methods provided by the embodiments of fig. 9-10 of the present application.
An embodiment of the present application further provides an earphone device, including: the earphone comprises a first earphone, a second earphone and a third earphone, wherein the first earphone is provided with a first sound generating unit, a second sound generating unit and a first microphone; one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions which, when executed by the apparatus, cause the apparatus to perform the methods provided by the embodiments of fig. 13-14 of the present application.
Embodiments of the present application further provide a computer-readable storage medium, in which a computer program is stored, and when the computer program runs on a computer, the computer is enabled to execute the method provided by the embodiments shown in fig. 7 to 14 of the present application.
Embodiments of the present application further provide a computer program product, which includes a computer program, when the computer program runs on a computer, causing the computer to execute the method provided by the embodiments shown in fig. 7 to 14 of the present application.
In the embodiments of the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, and means that there may be three relationships, for example, a and/or B, and may mean that a exists alone, a and B exist simultaneously, and B exists alone. Wherein A and B can be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" and similar expressions refer to any combination of these items, including any combination of singular or plural items. For example, at least one of a, b, and c may represent: a, b, c, a and b, a and c, b and c or a and b and c, wherein a, b and c can be single or multiple.
Those of ordinary skill in the art will appreciate that the various elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of electronic hardware and computer software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, any function, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present application, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present disclosure, and all the changes or substitutions should be covered by the protection scope of the present application. The protection scope of the present application shall be subject to the protection scope of the claims.

Claims (19)

1. A position identification method is applied to earphone equipment, wherein the earphone equipment comprises a first earphone, and a first sound emitting unit and a first microphone are arranged on the first earphone; characterized in that the method comprises:
transmitting a first instruction for causing the first sound emitting unit to transmit a first transmission signal;
acquiring a first reception signal, the first reception information being a signal received by the first microphone for the first transmission signal;
determining amplitude information corresponding to the designated frequency information of the first received signal;
and determining the wearing position of the first earphone according to the size relation between the amplitude information and a preset threshold value.
2. The method of claim 1, wherein the specifying frequency information comprises: assigning a frequency point; the amplitude information includes: the amplitude value of the designated frequency point; determining the wearing position of the first earphone according to the magnitude relation between the amplitude information and a preset threshold value, including:
if the amplitude value is larger than a preset first threshold value, determining that the wearing position of the first earphone is a left ear; if the amplitude value is smaller than a preset first threshold value, determining that the wearing position of the first earphone is the right ear; alternatively, the first and second electrodes may be,
if the amplitude value is larger than a preset second threshold value, determining that the wearing position of the first earphone is the right ear; and if the amplitude value is smaller than a preset second threshold value, determining that the wearing position of the first earphone is the left ear.
3. The method of claim 1, wherein the specifying frequency information comprises: assigning a frequency band; the amplitude information includes: the amplitude mean value of the specified frequency band; the determining the amplitude information comprises:
obtaining amplitude values of N designated frequency points of the first receiving signal in the designated frequency band; n is a natural number greater than 1;
and calculating the average value of the obtained N amplitude values to obtain the amplitude average value of the specified frequency band.
4. The method according to claim 3, wherein the determining the wearing position of the first earphone according to the magnitude relation between the amplitude information and a preset threshold comprises:
if the amplitude mean value is larger than a preset third threshold value, determining that the wearing position of the first earphone is a left ear; if the amplitude average value is smaller than a preset third threshold value, determining that the wearing position of the first earphone is the right ear; alternatively, the first and second electrodes may be,
if the amplitude mean value is larger than a preset fourth threshold value, determining that the wearing position of the first earphone is the right ear; and if the amplitude average value is smaller than a preset fourth threshold value, determining that the wearing position of the first earphone is the left ear.
5. The method according to any one of claims 1 to 4, characterized in that the first transmission signal is a pulse signal, a maximum length sequence or a swept frequency sequence.
6. A position identification method is applied to earphone equipment, the earphone equipment comprises a first earphone and a second earphone, a first sound production unit and a first microphone are arranged on the first earphone, and a second sound production unit and a second microphone are arranged on the second earphone; characterized in that the method comprises:
sending a first instruction and a second instruction, wherein the first instruction is used for enabling the first sound-emitting unit to send a first sending signal, and the second instruction is used for enabling the second sound-emitting unit to send a second sending signal;
acquiring a first receiving signal and a second receiving signal, wherein the first receiving signal is a signal received by the first microphone for the first sending signal, and the second receiving signal is a signal received by the second microphone for the second sending signal;
determining first amplitude information and second amplitude information, wherein the first amplitude information corresponds to the designated frequency information of the first receiving signal, and the second amplitude information corresponds to the designated frequency information of the second receiving signal;
and determining the wearing positions of the first earphone and the second earphone according to the magnitude relation between the first amplitude information and the second amplitude information.
7. The method of claim 6, wherein the specifying frequency information comprises: assigning a frequency point; the amplitude information includes: the amplitude value of the designated frequency point; determining the wearing positions of the first earphone and the second earphone according to the magnitude relation between the first amplitude information and the second amplitude information, including:
if the first amplitude information is larger than the second amplitude information, determining that the wearing position of the first earphone is a left ear and the wearing position of the second earphone is a right ear; if the first amplitude information is smaller than preset second amplitude information, determining that the wearing position of the first earphone is a right ear and the wearing position of the second earphone is a left ear; alternatively, the first and second electrodes may be,
if the first amplitude information is larger than the second amplitude information, determining that the wearing position of the first earphone is a right ear and the wearing position of the second earphone is a left ear; and if the first amplitude information is smaller than preset second amplitude information, determining that the wearing position of the first earphone is a left ear and the wearing position of the second earphone is a right ear.
8. The method of claim 6, wherein the specifying frequency information comprises: assigning a frequency band; the amplitude information includes: the amplitude mean value of the specified frequency band; the determining the first amplitude information and the second amplitude information includes:
obtaining amplitude values of N designated frequency points of the first receiving signal in the designated frequency band; n is a natural number greater than 1; calculating the average value of the obtained N amplitude values to obtain a first amplitude average value of the specified frequency band;
obtaining amplitude values of N designated frequency points of the second receiving signal in the designated frequency band; n is a natural number greater than 1; and calculating the average value of the acquired N amplitude values to obtain a second amplitude average value of the specified frequency band.
9. The method of claim 8, wherein determining the wearing positions of the first earphone and the second earphone according to the magnitude relationship between the first amplitude information and the second amplitude information comprises:
if the first amplitude mean value is larger than the second amplitude mean value, determining that the wearing position of the first earphone is a left ear and the wearing position of the second earphone is a right ear; if the first amplitude average value is smaller than a preset second amplitude average value, determining that the wearing position of the first earphone is a right ear and the wearing position of the second earphone is a left ear; alternatively, the first and second electrodes may be,
if the first amplitude mean value is larger than the second amplitude mean value, determining that the wearing position of the first earphone is a right ear and the wearing position of the second earphone is a left ear; and if the first amplitude average value is smaller than a preset second amplitude average value, determining that the wearing position of the first earphone is a left ear and the wearing position of the second earphone is a right ear.
10. The method according to any one of claims 6 to 9, wherein the first transmission signal and the second transmission signal are the same; the first transmission signal and the second transmission signal are pulse signals, maximum length sequences or swept frequency sequences.
11. A position identification method is applied to earphone equipment, the earphone equipment comprises a first earphone, and a first sound generating unit, a second sound generating unit and a first microphone are arranged on the first earphone; characterized in that the method comprises:
sending a first instruction and a second instruction, wherein the first instruction is used for enabling the first sound-emitting unit to send a first sending signal, and the second instruction is used for enabling the second sound-emitting unit to send a second sending signal;
acquiring a first receiving signal and a second receiving signal, wherein the first receiving signal is a signal received by the first microphone for the first sending signal, and the second receiving signal is a signal received by the first microphone for the second sending signal;
determining first amplitude information corresponding to the designated frequency information of the first received signal and second amplitude information corresponding to the designated frequency information of the second received signal;
and determining the wearing positions of the first earphone and the second earphone according to the magnitude relation between the first amplitude information and the second amplitude information.
12. The method of claim 11, wherein the specifying frequency information comprises: assigning a frequency point; the amplitude information includes: the amplitude value of the designated frequency point; determining the wearing positions of the first earphone and the second earphone according to the magnitude relation between the first amplitude information and the second amplitude information, including:
determining that the wearing position of the first earphone is a left ear if the difference value of the first amplitude information and the second amplitude information is larger than a fifth threshold value; if the difference value of the first amplitude information and the second amplitude information is smaller than a sixth threshold value, determining that the wearing position of the first earphone is the right ear; the fifth threshold is greater than or equal to 0, and the sixth threshold is less than or equal to 0; alternatively, the first and second electrodes may be,
determining that the wearing position of the first earphone is the right ear if the difference value of the first amplitude information and the second amplitude information is larger than a seventh threshold value; determining that the wearing position of the first earphone is a left ear if the difference value between the first amplitude information and the second amplitude information is smaller than an eighth threshold; the seventh threshold value is equal to or greater than 0, and the eighth threshold value is equal to or less than 0.
13. The method of claim 11, wherein the specifying frequency information comprises: assigning a frequency band; the amplitude information includes: the amplitude mean value of the specified frequency band; the determining the first amplitude information and the second amplitude information includes:
obtaining amplitude values of N designated frequency points of the first receiving signal in the designated frequency band; n is a natural number greater than 1; calculating the average value of the obtained N amplitude values to obtain a first amplitude average value of the specified frequency band;
obtaining amplitude values of N designated frequency points of the second receiving signal in the designated frequency band; n is a natural number greater than 1; and calculating the average value of the acquired N amplitude values to obtain a second amplitude average value of the specified frequency band.
14. The method of claim 13, wherein determining the wearing positions of the first earphone and the second earphone according to the magnitude relationship between the first amplitude information and the second amplitude information comprises:
determining that the wearing position of the first earphone is the left ear if the difference value of the first amplitude mean value and the second amplitude mean value is larger than a ninth threshold value; determining that the wearing position of the first earphone is the right ear if the difference value of the first amplitude mean value and the second amplitude mean value is smaller than a tenth threshold value; the ninth threshold is greater than or equal to 0, and the tenth threshold is less than or equal to 0; alternatively, the first and second electrodes may be,
determining that the wearing position of the first earphone is the right ear if the difference value of the first amplitude mean value and the second amplitude mean value is larger than an eleventh threshold value; determining that the wearing position of the first earphone is the left ear if the difference value of the first amplitude mean value and the second amplitude mean value is less than a twelfth threshold value; the eleventh threshold value is equal to or greater than 0, and the twelfth threshold value is equal to or less than 0.
15. The method according to any one of claims 11 to 14, wherein the first transmission signal and the second transmission signal are the same; the first transmit signal and the second transmit signal are pulse signals, maximum length sequences, or swept frequency sequences.
16. An earphone device, comprising:
the earphone comprises a first earphone, a second earphone and a third earphone, wherein the first earphone is provided with a first sound-emitting unit and a first microphone; one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions which, when executed by the apparatus, cause the apparatus to perform the method of any of claims 1 to 5.
17. An earphone device, comprising:
the earphone comprises a first earphone and a second earphone, wherein the first earphone is provided with a first sound generating unit and a first microphone, and the second earphone is provided with a second sound generating unit and a second microphone; one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions which, when executed by the apparatus, cause the apparatus to perform the method of any of claims 6 to 10.
18. An earphone device, comprising:
the earphone comprises a first earphone, a second earphone and a third earphone, wherein the first earphone is provided with a first sound generating unit, a second sound generating unit and a first microphone; one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions which, when executed by the apparatus, cause the apparatus to perform the method of any of claims 11 to 15.
19. A computer-readable storage medium, in which a computer program is stored which, when run on a computer, causes the computer to carry out the method of any one of claims 1 to 15.
CN202011606044.0A 2020-12-30 2020-12-30 Position identification method and earphone device Active CN114697790B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202011606044.0A CN114697790B (en) 2020-12-30 2020-12-30 Position identification method and earphone device
PCT/CN2021/139766 WO2022143268A1 (en) 2020-12-30 2021-12-20 Position recognition method and earphone device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011606044.0A CN114697790B (en) 2020-12-30 2020-12-30 Position identification method and earphone device

Publications (2)

Publication Number Publication Date
CN114697790A true CN114697790A (en) 2022-07-01
CN114697790B CN114697790B (en) 2023-07-28

Family

ID=82132413

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011606044.0A Active CN114697790B (en) 2020-12-30 2020-12-30 Position identification method and earphone device

Country Status (2)

Country Link
CN (1) CN114697790B (en)
WO (1) WO2022143268A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117041886B (en) * 2023-08-31 2024-02-09 青岛柯锐思德电子科技有限公司 Label positioning and tracking method based on integrated UWB wireless earphone

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108093327A (en) * 2017-09-15 2018-05-29 歌尔科技有限公司 A kind of method, apparatus and electronic equipment that earphone is examined to wear uniformity
CN111988692A (en) * 2020-08-07 2020-11-24 歌尔科技有限公司 Earphone wearing state detection method and device, earphone and storage medium
CN111988690A (en) * 2019-05-23 2020-11-24 北京小鸟听听科技有限公司 Earphone wearing state detection method and device and earphone

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108391205B (en) * 2018-03-30 2021-01-22 Oppo广东移动通信有限公司 Left and right channel switching method and device, readable storage medium and terminal
CN108551631A (en) * 2018-04-28 2018-09-18 维沃移动通信有限公司 A kind of sound quality compensation method and mobile terminal
CN110505547B (en) * 2018-05-17 2021-03-19 深圳瑞利声学技术股份有限公司 Earphone wearing state detection method and earphone
CN110740396A (en) * 2018-07-18 2020-01-31 安克创新科技股份有限公司 noise reduction earphones
CN110896509A (en) * 2018-09-13 2020-03-20 北京三星通信技术研究有限公司 Earphone wearing state determining method, electronic equipment control method and electronic equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108093327A (en) * 2017-09-15 2018-05-29 歌尔科技有限公司 A kind of method, apparatus and electronic equipment that earphone is examined to wear uniformity
CN111988690A (en) * 2019-05-23 2020-11-24 北京小鸟听听科技有限公司 Earphone wearing state detection method and device and earphone
CN111988692A (en) * 2020-08-07 2020-11-24 歌尔科技有限公司 Earphone wearing state detection method and device, earphone and storage medium

Also Published As

Publication number Publication date
WO2022143268A1 (en) 2022-07-07
CN114697790B (en) 2023-07-28

Similar Documents

Publication Publication Date Title
US11470416B2 (en) Method and device for detecting earphone wearing status, and earphone
CN105530580B (en) Hearing system
CN109379653B (en) Audio transmission method and device, electronic equipment and storage medium
JP5894634B2 (en) Determination of HRTF for each individual
JP6279570B2 (en) Directional sound masking
JP2020500492A (en) Spatial Ambient Aware Personal Audio Delivery Device
US11223915B2 (en) Detecting user's eye movement using sensors in hearing instruments
CN110612727B (en) Off-head positioning filter determination system, off-head positioning filter determination device, off-head positioning determination method, and recording medium
CN104429096A (en) An audio signal output device and method of processing an audio signal
TWI703877B (en) Audio processing device, audio processing method, and computer program product
EP3935631B1 (en) Voice signal enhancement for head-worn audio devices
CN107948792B (en) Left and right sound channel determination method and earphone equipment
CN107609371B (en) Message prompting method and audio playing device
CN114697790B (en) Position identification method and earphone device
US20190141429A1 (en) Acoustic Device
US11805364B2 (en) Hearing device providing virtual sound
US11057729B2 (en) Communication device with position-dependent spatial source generation, communication system, and related method
KR20150142925A (en) Stereo audio input apparatus
EP4322550A1 (en) Selective modification of stereo or spatial audio
CN109963230A (en) A kind of sound collection method and device
US20230051367A1 (en) Coordinated dichotic sound compression
JP2018125784A (en) Sound output device
CN117768826A (en) Hearing aid and sound signal processing method
NZ758810A (en) Communication device with position-dependent spatial source generation, communication system, and related method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant