CN111698607A - TWS earphone audio output control method, apparatus, device and medium - Google Patents

TWS earphone audio output control method, apparatus, device and medium Download PDF

Info

Publication number
CN111698607A
CN111698607A CN202010631058.1A CN202010631058A CN111698607A CN 111698607 A CN111698607 A CN 111698607A CN 202010631058 A CN202010631058 A CN 202010631058A CN 111698607 A CN111698607 A CN 111698607A
Authority
CN
China
Prior art keywords
earphone
acceleration
wearing mode
tws
audio output
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
CN202010631058.1A
Other languages
Chinese (zh)
Other versions
CN111698607B (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.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology 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 Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN202010631058.1A priority Critical patent/CN111698607B/en
Publication of CN111698607A publication Critical patent/CN111698607A/en
Application granted granted Critical
Publication of CN111698607B publication Critical patent/CN111698607B/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
    • H04R1/1016Earpieces of the intra-aural type
    • 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
    • H04R3/12Circuits for transducers, loudspeakers or microphones for distributing signals to two or more loudspeakers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2201/00Details of transducers, loudspeakers or microphones covered by H04R1/00 but not provided for in any of its subgroups
    • H04R2201/10Details of earpieces, attachments therefor, earphones or monophonic headphones covered by H04R1/10 but not provided for in any of its subgroups
    • H04R2201/109Arrangements to adapt hands free headphones for use on both ears
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2420/00Details of connection covered by H04R, not provided for in its groups
    • H04R2420/01Input selection or mixing for amplifiers or loudspeakers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2420/00Details of connection covered by H04R, not provided for in its groups
    • H04R2420/05Detection of connection of loudspeakers or headphones to amplifiers

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The application discloses a TWS earphone audio output control method, a TWS earphone audio output control device, TWS earphone audio output control equipment and a TWS earphone audio output control medium, wherein the method comprises the following steps: when a first earphone and a second earphone are both in an upper ear state, respectively acquiring a first acceleration of the first earphone and a second acceleration of the second earphone, wherein the first earphone and the second earphone belong to the same pair of earphones; determining a wearing mode of the first earphone and the second earphone according to the first acceleration and the second acceleration; and if the wearing mode is a double wearing mode, controlling the first earphone and the second earphone to output mixed sound, wherein the mixed sound is obtained by mixing a first stereo audio and a second stereo audio. Therefore, the wearing mode of the earphones can be determined, audio output is carried out according to the wearing mode of the earphones, when the same pair of earphones are worn by two persons, mixed sound can be output by each earphone, and user experience can be improved.

Description

TWS earphone audio output control method, apparatus, device and medium
Technical Field
The present application relates to the technical field of TWS headphones, and in particular, to a method, an apparatus, a device, and a medium for controlling audio output of a TWS headphone.
Background
At present, the way of realizing stereo playing by the bluetooth headset is mainly bluetooth two-way transmission. The intelligent equipment directly splits the audio information into a left sound channel and a right sound channel, the left sound channel is sent to the left earphone, and the right sound channel is sent to the right earphone, so that stereo playing is realized. In this mode, when both left and right TWS (True Wireless Stereo) headphones are worn by the same person, the ears of the person can hear both the left and right channels, so that the stereophonic effect is good in terms of hearing. When one TWS earphone is worn and the other TWS earphone is placed in an earphone box, the two channels are mixed and then output, and normal single-channel sound is heard by human ears. However, if only one TWS headset is worn and the other TWS headset is outside the headset case, but the one headset is not worn or worn by another person, each headset only outputs one channel of stereo sound in the bluetooth two-channel transmission mode, that is, the one headset only outputs sound of one channel of the left or right, and the audio of the other channel is lost, which results in poor user experience.
Disclosure of Invention
In view of this, an object of the present application is to provide a TWS headset audio output control method, apparatus, device, and medium, which can determine a wearing mode of a headset, and output audio according to the wearing mode of the headset, and when the same pair of headsets are worn by two users, each headset can output mixed sound, so as to improve user experience. The specific scheme is as follows:
in a first aspect, the present application discloses a TWS headset audio output control method, including:
when a first earphone and a second earphone are both in an upper ear state, respectively acquiring a first acceleration of the first earphone and a second acceleration of the second earphone, wherein the first earphone and the second earphone belong to the same pair of earphones;
determining a wearing mode of the first earphone and the second earphone according to the first acceleration and the second acceleration;
and if the wearing mode is a double wearing mode, controlling the first earphone and the second earphone to output mixed sound, wherein the mixed sound is obtained by mixing a first stereo audio and a second stereo audio.
Optionally, before the obtaining the first acceleration of the first headset and the second acceleration of the second headset respectively, the method further includes:
determining whether the first earpiece and the second earpiece are both in an upper ear state.
Optionally, the determining whether the first earphone and the second earphone are both in an upper ear state comprises:
when the first earphone and the second earphone are connected with intelligent equipment, judging whether the first earphone and the second earphone are both outside the corresponding TWS earphone box;
and if the first earphone and the second earphone are both outside the corresponding TWS earphone boxes, respectively utilizing the proximity sensors on the first earphone and the second earphone to carry out earphone wearing detection so as to determine whether the first earphone and the second earphone are both in an upper ear state.
Optionally, after determining the wearing mode of the first earphone and the second earphone according to the first acceleration and the second acceleration, the method further includes:
and if the wearing mode is a single wearing mode, controlling the first earphone to output the first stereo audio and the second earphone to output the second stereo audio.
Optionally, the respectively acquiring a first acceleration of the first headset and a second acceleration of the second headset includes:
acquiring the first acceleration through an acceleration sensor on the first earphone;
and acquiring the second acceleration through an acceleration sensor on the second earphone.
Optionally, the determining the wearing mode of the first earphone and the second earphone according to the first acceleration and the second acceleration comprises:
determining a first acceleration direction and a second acceleration direction according to the first acceleration and the second acceleration respectively;
determining a wearing mode of the first earphone and the second earphone according to the first acceleration direction and the second acceleration direction.
Optionally, the determining the wearing mode of the first earphone and the second earphone according to the first acceleration direction and the second acceleration direction includes:
judging whether the relation between the first acceleration direction and the second acceleration direction meets a preset relation, wherein the preset relation is that the first acceleration direction and the second acceleration direction are the same or opposite;
determining a single wearing mode as a wearing mode of the first earphone and the second earphone if the first acceleration direction and the second acceleration direction satisfy the preset relationship;
and if the first acceleration direction and the second acceleration direction do not meet the preset relation, determining a double wearing mode as the wearing mode of the first earphone and the second earphone.
In a second aspect, the present application discloses a TWS headphone audio output control apparatus, comprising:
the device comprises an acceleration acquisition module, a first acceleration acquisition module and a second acceleration acquisition module, wherein the acceleration acquisition module is used for respectively acquiring a first acceleration of a first earphone and a second acceleration of a second earphone when the first earphone and the second earphone are both in an upper ear state, and the first earphone and the second earphone belong to the same pair of earphones;
a wearing mode determining module for determining a wearing mode of the first earphone and the second earphone according to the first acceleration and the second acceleration;
and the audio output module is used for controlling the first earphone and the second earphone to output mixed sound when the wearing mode is a double wearing mode, wherein the mixed sound is obtained by mixing a first stereo audio and a second stereo audio.
In a third aspect, the present application discloses a TWS headphone audio output control apparatus, comprising:
a memory and a processor;
wherein the memory is used for storing a computer program;
the processor is configured to execute the computer program to implement the TWS headset audio output control method disclosed in the foregoing.
In a fourth aspect, the present application discloses a computer readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the TWS headset audio output control method disclosed above.
It can be seen that, according to the present application, when a first earphone and a second earphone are both in an upper ear state, a first acceleration of the first earphone and a second acceleration of the second earphone are respectively obtained, wherein the first earphone and the second earphone belong to the same pair of earphones, then a wearing mode of the first earphone and the second earphone is determined according to the first acceleration and the second acceleration, if the wearing mode is a double wearing mode, the first earphone and the second earphone are controlled to both output mixed sound, wherein the mixed sound is obtained by mixing a first stereo audio and a second stereo audio. Therefore, according to the method and the device, when the first earphone and the second earphone are both in the upper ear state, the first acceleration of the first earphone and the second acceleration of the second earphone need to be acquired respectively, the wearing mode of the first earphone and the wearing mode of the second earphone need to be determined according to the first acceleration and the second acceleration, when the wearing mode is a double-person wearing mode, the first earphone and the second earphone are controlled to output mixed sound obtained by mixing the first stereo audio and the second stereo audio, the wearing mode of the earphones can be determined, audio output can be performed according to the wearing mode of the earphones, when the same pair of earphones is worn by two persons, each earphone can output the mixed sound, and user experience can be improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flow chart of a TWS headset audio output control method disclosed herein;
FIG. 2 is a flowchart of a specific TWS headset audio output control method disclosed herein;
fig. 3 is a schematic diagram of a headset according to the present disclosure;
fig. 4 is a flowchart of a wearing mode determination disclosed in the present application;
FIG. 5 is a flow chart of an audio output control disclosed herein;
FIG. 6 is a schematic structural diagram of an audio output control device of a TWS headset disclosed in the present application;
fig. 7 is a structural diagram of a TWS headset audio output control device disclosed in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
At present, under the mode of realizing stereo playing through bluetooth two-way transmission, when a left TWS earphone and a right TWS earphone are worn by the same person, the ears of the person can hear both the left channel and the right channel, so that the person has a good stereo effect in hearing. When one TWS earphone is worn and the other TWS earphone is placed in an earphone box, the two channels are mixed and then output, and normal single-channel sound is heard by human ears. However, if only one TWS headset is worn and the other TWS headset is outside the headset case, but the one headset is not worn or worn by another person, each headset only outputs one channel of stereo sound in the bluetooth two-channel transmission mode, that is, the one headset only outputs sound of one channel of the left or right, and the audio of the other channel is lost, which results in poor user experience. In view of this, the application provides a TWS headset audio output control method, which can determine a wearing mode of a headset, and output audio according to the wearing mode of the headset, and when the same pair of headsets are worn by two persons, each headset can output mixed sound, so that user experience can be improved.
Referring to fig. 1, an embodiment of the present application discloses a TWS headset audio output control method, including:
step S11: when the first earphone and the second earphone are both in an upper ear state, a first acceleration of the first earphone and a second acceleration of the second earphone are respectively obtained, wherein the first earphone and the second earphone belong to the same pair of earphones.
In a specific implementation process, when the TWS headset realizes a stereo effect by using bluetooth two-way transmission, if a first headset and a second headset of the same pair of headsets are both in an ear-up state, a first acceleration of the first headset and a second acceleration of the second headset need to be acquired respectively. Specifically, when a first earphone and a second earphone of the same pair of earphones are both in an upper-ear state, the first acceleration is acquired through an acceleration sensor on the first earphone, and the second acceleration is acquired through an acceleration sensor on the second earphone. That is, acceleration sensors need to be provided on the first headphone and the second headphone, respectively, so as to acquire the first acceleration and the second acceleration, respectively.
In practical applications, the first acceleration and the second acceleration may be obtained after the first earphone and the second earphone reach a stable state, that is, when the hand of the person does not rotate the first earphone and the second earphone, the acceleration sensor starts to obtain the first acceleration and the second acceleration. The acceleration thus obtained may better represent the state of the first earpiece and the second earpiece.
Step S12: determining a wearing mode of the first earphone and the second earphone according to the first acceleration and the second acceleration.
After the first acceleration and the second acceleration are obtained, the wearing modes of the second earphone and the second earphone also need to be determined according to the first acceleration and the second acceleration. Specifically, a first acceleration direction and a second acceleration direction are determined according to the first acceleration and the second acceleration respectively; determining a wearing mode of the first earphone and the second earphone according to the first acceleration direction and the second acceleration direction. Wherein the wearing mode includes a single wearing mode and a double wearing mode, the single wearing mode means that one person wears the first earphone and the second earphone, and the double wearing mode means that the first earphone and the second earphone are worn by two different persons.
Wherein the determining a wearing mode of the first headset and the second headset according to the first acceleration direction and the second acceleration direction comprises: judging whether the relation between the first acceleration direction and the second acceleration direction meets a preset relation, wherein the preset relation is that the first acceleration direction and the second acceleration direction are the same or opposite; determining a single wearing mode as a wearing mode of the first earphone and the second earphone if the first acceleration direction and the second acceleration direction satisfy the preset relationship; and if the first acceleration direction and the second acceleration direction do not meet the preset relation, determining a double wearing mode as the wearing mode of the first earphone and the second earphone. Specifically, if the first acceleration direction and the second acceleration direction are the same or opposite, the wearing mode of the first earphone and the second earphone is a single wearing mode, and if the first acceleration direction and the second acceleration direction are neither the same nor opposite, the wearing mode of the first earphone and the second earphone is a double wearing mode.
Step S13: and if the wearing mode is a double wearing mode, controlling the first earphone and the second earphone to output mixed sound, wherein the mixed sound is obtained by mixing a first stereo audio and a second stereo audio.
After the wearing mode of the first earphone and the wearing mode of the second earphone are determined, if the wearing mode is a double-person wearing mode, the first earphone and the second earphone are controlled to output mixed sound, wherein the mixed sound is obtained by mixing first stereo audio and second stereo audio in Bluetooth double-path transmission. Compared with the prior art that only one audio in the first stereo audio or the second stereo audio is output, better user experience can be brought.
It can be seen that, according to the present application, when a first earphone and a second earphone are both in an upper ear state, a first acceleration of the first earphone and a second acceleration of the second earphone are respectively obtained, wherein the first earphone and the second earphone belong to the same pair of earphones, then a wearing mode of the first earphone and the second earphone is determined according to the first acceleration and the second acceleration, if the wearing mode is a double wearing mode, the first earphone and the second earphone are controlled to both output mixed sound, wherein the mixed sound is obtained by mixing a first stereo audio and a second stereo audio. Therefore, according to the method and the device, when the first earphone and the second earphone are both in the upper ear state, the first acceleration of the first earphone and the second acceleration of the second earphone need to be acquired respectively, the wearing mode of the first earphone and the wearing mode of the second earphone need to be determined according to the first acceleration and the second acceleration, when the wearing mode is a double wearing mode, the first earphone and the second earphone are controlled to output the first stereo audio and the second stereo audio to be mixed to obtain mixed sound, the wearing mode of the earphones can be determined, the audio output can be performed according to the wearing mode of the earphones, when the same pair of earphones are worn by two persons, each earphone can output the mixed sound, and the user experience can be improved.
Referring to fig. 2, an embodiment of the present application discloses a specific TWS headset audio output control method, including:
step S21: determining whether a first earpiece and a second earpiece are both in an upper ear state, wherein the first earpiece and the second earpiece belong to a same pair of earpieces.
In a specific implementation process, it is first determined whether the first earphone and the second earphone are both in the upper ear state. Wherein the first earphone and the second earphone belong to the same pair of earphones. Specifically, when the first earphone and the second earphone are connected with the smart device, whether the first earphone and the second earphone are both outside the corresponding TWS earphone box is judged; and if the first earphone and the second earphone are both outside the corresponding TWS earphone boxes, respectively utilizing the proximity sensors on the first earphone and the second earphone to carry out earphone wearing detection so as to determine whether the first earphone and the second earphone are both in an upper ear state. Wherein the smart device includes, but is not limited to, a smart phone, a tablet computer, a notebook computer, etc.
When the first earphone and the second earphone are connected with intelligent equipment, whether the first earphone and the second earphone are taken out of corresponding TWS earphone boxes is judged firstly, and if only one of the first earphone or the second earphone is taken out of the TWS earphone boxes and the taken-out earphone is put on the ear, the earphone of the upper ear is controlled to output mixed sound. And if the first earphone and the second earphone are both outside the corresponding TWS earphone boxes, respectively utilizing the proximity sensors on the first earphone and the second earphone to carry out earphone wearing detection so as to determine whether the first earphone and the second earphone are both in an upper ear state. If one of the first earphone or the second earphone is in the upper ear, the earphone of the upper ear is controlled to output mixed sound. If the other ear is also inserted after a period of time, the corresponding acceleration is obtained and the wearing mode is determined.
Step S22: when the first earphone and the second earphone are both in the upper ear state, a first acceleration of the first earphone and a second acceleration of the second earphone are respectively obtained.
After determining that the first earphone and the second earphone are both in the upper ear state, respectively acquiring a first acceleration of the first earphone and a second acceleration of the second earphone.
Step S23: and determining a first acceleration direction and a second acceleration direction according to the first acceleration and the second acceleration respectively.
After the first acceleration and the second acceleration are obtained, a first acceleration direction and a second acceleration direction can be determined according to the first acceleration and the second acceleration. Specifically, the first acceleration and the second acceleration may both include a magnitude of the acceleration and a direction of the acceleration, so after the first acceleration and the second acceleration are obtained, the first acceleration direction and the second acceleration direction may be determined.
Step S24: determining a wearing mode of the first earphone and the second earphone according to the first acceleration direction and the second acceleration direction.
After the first acceleration direction and the second acceleration direction are determined, the wearing mode of the first earphone and the second earphone can be determined according to the first acceleration direction and the second acceleration direction. Specifically, it is determined whether a relationship between the first acceleration direction and the second acceleration direction satisfies a preset relationship, where the preset relationship is that the first acceleration direction and the second acceleration direction are the same or opposite; determining a single wearing mode as a wearing mode of the first earphone and the second earphone if the first acceleration direction and the second acceleration direction satisfy the preset relationship; and if the first acceleration direction and the second acceleration direction do not meet the preset relation, determining a double wearing mode as the wearing mode of the first earphone and the second earphone. That is, if the first acceleration direction and the second acceleration direction are opposite or the same for a period of time or a plurality of cycles, the wearing mode of the first earphone and the second earphone is a single-person wearing mode, otherwise, the wearing mode of the first earphone and the second earphone is a double-person wearing mode.
Fig. 3 is a schematic view showing how the headset is worn. When the left ear and the right ear of the TWS earphone are worn by the same person, the earphones are in a symmetrical state by taking the head as the center, when the head of the person moves, the acceleration sensors of the two earphones are associated, and the vector directions are the same or opposite; when two different people wear the earphones, the head movement tracks are not completely the same, so that data collected by the binaural acceleration sensor have no correlation, and accordingly, whether the earphones are worn by the same person or different persons can be judged.
Fig. 4 is a flowchart of the wearing mode determination. The method comprises the steps that after two earphones of a pair of earphones are inserted into ears, an accelerometer collects the acceleration of the two earphones, namely, the acceleration of the two earphones is collected through acceleration sensing, whether the acceleration vector directions of the left ear and the right ear are the same or opposite is judged, if yes, the wearing mode of the pair of earphones is a single-person wearing mode, and if not, the wearing mode of the pair of earphones is a double-person wearing mode.
Step S25: and if the wearing mode is a double wearing mode, controlling the first earphone and the second earphone to output mixed sound, wherein the mixed sound is obtained by mixing a first stereo audio and a second stereo audio.
Step S26: and if the wearing mode is a single wearing mode, controlling the first earphone to output the first stereo audio and the second earphone to output the second stereo audio.
After determining the wearing mode, if the wearing mode is a single wearing mode, controlling the first earphone to output the first stereo audio and the second earphone to output the second stereo audio.
After the wearing mode is determined, if the proximity sensor does not detect that the earphone is taken off, the acceleration is not compared, and if the proximity sensor detects that the earphone is taken off, taken on and the like, the wearing mode of the first earphone and the second earphone needs to be judged again.
Referring to fig. 5, an audio output control flow chart is shown. And after the TWS earphone box is opened, connecting the TWS earphones with the mobile phone, if one earphone is taken out, outputting mixed dual channels, if both the TWS earphones are taken out, carrying out wearing detection by using a proximity sensor, if only one earphone is in the ear, outputting mixed dual channels, if both the TWS earphones are in the ear, carrying out wearing mode detection by using an accelerometer, if the TWS earphone box is worn by a single person, normally outputting the left dual channel and the right dual channel, and if the TWS earphone box is worn by two persons, outputting mixed dual channels.
Referring to fig. 6, an embodiment of the present application discloses a TWS headphone audio output control apparatus, including:
the device comprises an acceleration acquisition module 11, a first acceleration acquisition module and a second acceleration acquisition module, wherein the acceleration acquisition module is used for respectively acquiring a first acceleration of a first earphone and a second acceleration of a second earphone when the first earphone and the second earphone are both in an upper ear state, and the first earphone and the second earphone belong to the same pair of earphones;
a wearing mode determining module 12, configured to determine a wearing mode of the first earphone and the second earphone according to the first acceleration and the second acceleration;
and an audio output module 13, configured to control the first earphone and the second earphone to output mixed sound when the wearing mode is a double wearing mode, where the mixed sound is obtained by mixing a first stereo audio and a second stereo audio.
It can be seen that, according to the present application, when a first earphone and a second earphone are both in an upper ear state, a first acceleration of the first earphone and a second acceleration of the second earphone are respectively obtained, wherein the first earphone and the second earphone belong to the same pair of earphones, then a wearing mode of the first earphone and the second earphone is determined according to the first acceleration and the second acceleration, if the wearing mode is a double wearing mode, the first earphone and the second earphone are controlled to both output mixed sound, wherein the mixed sound is obtained by mixing a first stereo audio and a second stereo audio. Therefore, according to the method and the device, when the first earphone and the second earphone are both in the upper ear state, the first acceleration of the first earphone and the second acceleration of the second earphone need to be acquired respectively, the wearing mode of the first earphone and the wearing mode of the second earphone need to be determined according to the first acceleration and the second acceleration, when the wearing mode is a double wearing mode, the first earphone and the second earphone are controlled to output the first stereo audio and the second stereo audio to be mixed to obtain mixed sound, the wearing mode of the earphones can be determined, the audio output can be performed according to the wearing mode of the earphones, when the same pair of earphones are worn by two persons, each earphone can output the mixed sound, and the user experience can be improved.
Further, the TWS headphone audio output control apparatus further includes:
an upper ear state determining module for determining whether the first earphone and the second earphone are both in an upper ear state.
Specifically, the upper ear state determining module includes:
the first judgment unit is used for judging whether the first earphone and the second earphone are both outside the corresponding TWS earphone box when the first earphone and the second earphone are connected with the intelligent equipment;
and the wearing detection unit is used for respectively utilizing the proximity sensors on the first earphone and the second earphone to carry out earphone wearing detection when the first earphone and the second earphone are both outside the corresponding TWS earphone boxes so as to determine whether the first earphone and the second earphone are both in an upper ear state.
In practical applications, the audio output module 13 is further configured to: and when the wearing mode is a single wearing mode, controlling the first earphone to output the first stereo audio and the second earphone to output the second stereo audio.
Specifically, the acceleration obtaining module 11 includes:
the first acceleration acquisition unit is used for acquiring the first acceleration through an acceleration sensor on the first earphone;
and the second acceleration acquisition unit is used for acquiring the second acceleration through an acceleration sensor on the second earphone.
Specifically, the wearing mode determining module 12 includes:
the direction determining submodule is used for determining a first acceleration direction and a second acceleration direction according to the first acceleration and the second acceleration respectively;
and the mode determining submodule is used for determining the wearing modes of the first earphone and the second earphone according to the first acceleration direction and the second acceleration direction.
In practical applications, the mode determination submodule includes:
a second determining unit, configured to determine whether a relationship between the first acceleration direction and the second acceleration direction satisfies a preset relationship, where the preset relationship is that the first acceleration direction and the second acceleration direction are the same or opposite;
a first mode determining unit, configured to determine a single wearing mode as a wearing mode of the first earphone and the second earphone when the first acceleration direction and the second acceleration direction satisfy the preset relationship;
a second mode determining unit, configured to determine a double wearing mode as a wearing mode of the first earphone and the second earphone when the first acceleration direction and the second acceleration direction do not satisfy the preset relationship.
Further, referring to fig. 7, an embodiment of the present application further discloses a TWS headset audio output control device, including: a processor 21 and a memory 22.
Wherein the memory 22 is used for storing a computer program; the processor 21 is configured to execute the computer program to implement the TWS headset audio output control method disclosed in the foregoing embodiment.
For the specific process of the TWS earphone audio output control method, reference may be made to the corresponding contents disclosed in the foregoing embodiments, and details are not repeated here.
Further, an embodiment of the present application also discloses a computer readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the TWS headset audio output control method disclosed in any of the foregoing embodiments.
For the specific process of the TWS earphone audio output control method, reference may be made to the corresponding contents disclosed in the foregoing embodiments, and details are not repeated here.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of other elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The TWS headset audio output control method, apparatus, device and medium provided by the present application are introduced in detail above, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiment is only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A TWS headphone audio output control method, comprising:
when a first earphone and a second earphone are both in an upper ear state, respectively acquiring a first acceleration of the first earphone and a second acceleration of the second earphone, wherein the first earphone and the second earphone belong to the same pair of earphones;
determining a wearing mode of the first earphone and the second earphone according to the first acceleration and the second acceleration;
and if the wearing mode is a double wearing mode, controlling the first earphone and the second earphone to output mixed sound, wherein the mixed sound is obtained by mixing a first stereo audio and a second stereo audio.
2. The TWS headset audio output control method of claim 1, wherein before the separately obtaining the first acceleration of the first headset and the second acceleration of the second headset, further comprising:
determining whether the first earpiece and the second earpiece are both in an upper ear state.
3. The TWS headset audio output control method of claim 2 wherein the determining whether the first headset and the second headset are both in an upper ear state comprises:
when the first earphone and the second earphone are connected with intelligent equipment, judging whether the first earphone and the second earphone are both outside the corresponding TWS earphone box;
and if the first earphone and the second earphone are both outside the corresponding TWS earphone boxes, respectively utilizing the proximity sensors on the first earphone and the second earphone to carry out earphone wearing detection so as to determine whether the first earphone and the second earphone are both in an upper ear state.
4. The TWS headset audio output control method of claim 1, further comprising, after determining the wearing pattern of the first and second headsets from the first and second accelerations:
and if the wearing mode is a single wearing mode, controlling the first earphone to output the first stereo audio and the second earphone to output the second stereo audio.
5. The TWS headset audio output control method of claim 1 wherein the separately obtaining a first acceleration of the first headset and a second acceleration of the second headset comprises:
acquiring the first acceleration through an acceleration sensor on the first earphone;
and acquiring the second acceleration through an acceleration sensor on the second earphone.
6. A TWS headphone audio output control method according to any one of claims 1 to 5, wherein the determining the wearing pattern of the first headphone and the second headphone according to the first acceleration and the second acceleration comprises:
determining a first acceleration direction and a second acceleration direction according to the first acceleration and the second acceleration respectively;
determining a wearing mode of the first earphone and the second earphone according to the first acceleration direction and the second acceleration direction.
7. The TWS headset audio output control method of claim 6 wherein the determining the wearing pattern of the first and second headsets from the first and second acceleration directions comprises:
judging whether the relation between the first acceleration direction and the second acceleration direction meets a preset relation, wherein the preset relation is that the first acceleration direction and the second acceleration direction are the same or opposite;
determining a single wearing mode as a wearing mode of the first earphone and the second earphone if the first acceleration direction and the second acceleration direction satisfy the preset relationship;
and if the first acceleration direction and the second acceleration direction do not meet the preset relation, determining a double wearing mode as the wearing mode of the first earphone and the second earphone.
8. A TWS headphone audio output control apparatus, comprising:
the device comprises an acceleration acquisition module, a first acceleration acquisition module and a second acceleration acquisition module, wherein the acceleration acquisition module is used for respectively acquiring a first acceleration of a first earphone and a second acceleration of a second earphone when the first earphone and the second earphone are both in an upper ear state, and the first earphone and the second earphone belong to the same pair of earphones;
a wearing mode determining module for determining a wearing mode of the first earphone and the second earphone according to the first acceleration and the second acceleration;
and the audio output module is used for controlling the first earphone and the second earphone to output mixed sound when the wearing mode is a double wearing mode, wherein the mixed sound is obtained by mixing a first stereo audio and a second stereo audio.
9. A TWS headset audio output control device, comprising:
a memory and a processor;
wherein the memory is used for storing a computer program;
the processor for executing the computer program to implement the TWS headset audio output control method of any of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the TWS headset audio output control method of any of claims 1 to 7.
CN202010631058.1A 2020-07-03 2020-07-03 TWS earphone audio output control method, apparatus, device and medium Active CN111698607B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010631058.1A CN111698607B (en) 2020-07-03 2020-07-03 TWS earphone audio output control method, apparatus, device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010631058.1A CN111698607B (en) 2020-07-03 2020-07-03 TWS earphone audio output control method, apparatus, device and medium

Publications (2)

Publication Number Publication Date
CN111698607A true CN111698607A (en) 2020-09-22
CN111698607B CN111698607B (en) 2022-05-06

Family

ID=72484884

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010631058.1A Active CN111698607B (en) 2020-07-03 2020-07-03 TWS earphone audio output control method, apparatus, device and medium

Country Status (1)

Country Link
CN (1) CN111698607B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112312260A (en) * 2020-10-30 2021-02-02 维沃移动通信有限公司 Wireless earphone and wearing detection method thereof
CN113079434A (en) * 2021-04-07 2021-07-06 南京紫牛软件科技有限公司 Control method, device, storage medium and system of audio playing equipment
CN113596802A (en) * 2021-08-31 2021-11-02 歌尔科技有限公司 Earphone connection equipment switching method, system and related components
WO2024040527A1 (en) * 2022-08-25 2024-02-29 Qualcomm Incorporated Spatial audio using a single audio device

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060029234A1 (en) * 2004-08-06 2006-02-09 Stewart Sargaison System and method for controlling states of a device
CN102316394A (en) * 2010-06-30 2012-01-11 索尼爱立信移动通讯有限公司 Bluetooth equipment and the audio frequency playing method that utilizes this bluetooth equipment
US20120114132A1 (en) * 2010-11-05 2012-05-10 Sony Ericsson Mobile Communications Ab Headset with accelerometers to determine direction and movements of user head and method
CN105228041A (en) * 2015-09-24 2016-01-06 联想(北京)有限公司 A kind of information processing method and audio output device
CN105491469A (en) * 2014-09-15 2016-04-13 Tcl集团股份有限公司 Method and system for controlling audio output mode based on wearing earphone state
CN105917670A (en) * 2013-12-10 2016-08-31 索诺瓦公司 Wireless stereo hearing assistance system
CN107493531A (en) * 2017-08-04 2017-12-19 歌尔科技有限公司 A kind of head pose detection method, device and earphone
CN108712697A (en) * 2018-05-29 2018-10-26 歌尔科技有限公司 Wireless headset and its operating mode determine method, apparatus, equipment, storage medium
CN109361985A (en) * 2018-12-07 2019-02-19 潍坊歌尔电子有限公司 TWS earphone wears detection method, system and electronic equipment and storage medium
CN109379653A (en) * 2018-09-30 2019-02-22 Oppo广东移动通信有限公司 Audio frequency transmission method, device, electronic equipment and storage medium
CN109511034A (en) * 2018-12-13 2019-03-22 歌尔股份有限公司 A kind of wearing detection method, device and the earphone of earphone
CN110087161A (en) * 2019-04-23 2019-08-02 青岛恒茂电子有限公司 A kind of wearing state switching method, earphone and the storage medium of bluetooth headset
CN110099322A (en) * 2019-05-23 2019-08-06 歌尔科技有限公司 A kind of detection method and device of earphone wearing state
US20190306609A1 (en) * 2018-03-27 2019-10-03 Cheng Uei Precision Industry Co., Ltd. Earphone assembly and sound channel control method applied therein

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060029234A1 (en) * 2004-08-06 2006-02-09 Stewart Sargaison System and method for controlling states of a device
CN102316394A (en) * 2010-06-30 2012-01-11 索尼爱立信移动通讯有限公司 Bluetooth equipment and the audio frequency playing method that utilizes this bluetooth equipment
US20120114132A1 (en) * 2010-11-05 2012-05-10 Sony Ericsson Mobile Communications Ab Headset with accelerometers to determine direction and movements of user head and method
CN105917670A (en) * 2013-12-10 2016-08-31 索诺瓦公司 Wireless stereo hearing assistance system
CN105491469A (en) * 2014-09-15 2016-04-13 Tcl集团股份有限公司 Method and system for controlling audio output mode based on wearing earphone state
CN105228041A (en) * 2015-09-24 2016-01-06 联想(北京)有限公司 A kind of information processing method and audio output device
CN107493531A (en) * 2017-08-04 2017-12-19 歌尔科技有限公司 A kind of head pose detection method, device and earphone
US20190306609A1 (en) * 2018-03-27 2019-10-03 Cheng Uei Precision Industry Co., Ltd. Earphone assembly and sound channel control method applied therein
CN108712697A (en) * 2018-05-29 2018-10-26 歌尔科技有限公司 Wireless headset and its operating mode determine method, apparatus, equipment, storage medium
CN109379653A (en) * 2018-09-30 2019-02-22 Oppo广东移动通信有限公司 Audio frequency transmission method, device, electronic equipment and storage medium
CN109361985A (en) * 2018-12-07 2019-02-19 潍坊歌尔电子有限公司 TWS earphone wears detection method, system and electronic equipment and storage medium
CN109511034A (en) * 2018-12-13 2019-03-22 歌尔股份有限公司 A kind of wearing detection method, device and the earphone of earphone
CN110087161A (en) * 2019-04-23 2019-08-02 青岛恒茂电子有限公司 A kind of wearing state switching method, earphone and the storage medium of bluetooth headset
CN110099322A (en) * 2019-05-23 2019-08-06 歌尔科技有限公司 A kind of detection method and device of earphone wearing state

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112312260A (en) * 2020-10-30 2021-02-02 维沃移动通信有限公司 Wireless earphone and wearing detection method thereof
CN113079434A (en) * 2021-04-07 2021-07-06 南京紫牛软件科技有限公司 Control method, device, storage medium and system of audio playing equipment
CN113596802A (en) * 2021-08-31 2021-11-02 歌尔科技有限公司 Earphone connection equipment switching method, system and related components
WO2023029143A1 (en) * 2021-08-31 2023-03-09 歌尔股份有限公司 Headphone connection device switching method and system, and related components
WO2024040527A1 (en) * 2022-08-25 2024-02-29 Qualcomm Incorporated Spatial audio using a single audio device

Also Published As

Publication number Publication date
CN111698607B (en) 2022-05-06

Similar Documents

Publication Publication Date Title
CN111698607B (en) TWS earphone audio output control method, apparatus, device and medium
US10659908B2 (en) System and method to capture image of pinna and characterize human auditory anatomy using image of pinna
US9374647B2 (en) Method and apparatus using head movement for user interface
CN113475094A (en) Different head detection in headphones
TW201820315A (en) Improved audio headset device
CN109348334B (en) Wireless earphone and environment monitoring method and device thereof
WO2016167007A1 (en) Head-related transfer function selection device, head-related transfer function selection method, head-related transfer function selection program, and sound reproduction device
CN114727212B (en) Audio processing method and electronic equipment
CN111768600A (en) Head-lowering detection method and device and wireless earphone
CN111541966B (en) Uplink noise reduction method and device of wireless earphone and wireless earphone
CN113207056A (en) Wireless earphone and transparent transmission method, device and system thereof
CN106302974B (en) information processing method and electronic equipment
CN107609371B (en) Message prompting method and audio playing device
CN109361987B (en) Sports earphone and control method, device and equipment thereof
CN104956690B (en) A kind of is in the system for being adapted to voice signal with ear
CN111372166B (en) Intelligent left and right ear identification method and related equipment
CN114666445A (en) Communication method and communication device
WO2006107074A1 (en) Portable terminal
CN113329301A (en) Left and right ear wearing detection method and device of headset and headset
CN112925503A (en) Audio output method, audio output device, computer equipment and storage medium
KR102613035B1 (en) Earphone with sound correction function and recording method using it
US20240298120A1 (en) User interface control using vibration suppression
CN114710726A (en) Center positioning method and device of intelligent wearable device and storage medium
JP2020178272A (en) Signal processing system and signal processing method
CN118075647A (en) Multi-device audio playing method, device and storage medium thereof

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