CN109379653A - Audio frequency transmission method, device, electronic equipment and storage medium - Google Patents
Audio frequency transmission method, device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN109379653A CN109379653A CN201811161378.4A CN201811161378A CN109379653A CN 109379653 A CN109379653 A CN 109379653A CN 201811161378 A CN201811161378 A CN 201811161378A CN 109379653 A CN109379653 A CN 109379653A
- Authority
- CN
- China
- Prior art keywords
- bluetooth headset
- distance
- electronic equipment
- bluetooth
- data
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/10—Earpieces; Attachments therefor ; Earphones; Monophonic headphones
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- Acoustics & Sound (AREA)
- Computer Networks & Wireless Communication (AREA)
- Telephone Function (AREA)
- Headphones And Earphones (AREA)
Abstract
This application discloses a kind of audio frequency transmission method, device, electronic equipment and storage mediums, are related to technical field of electronic equipment.Wherein, this method comprises: receiving audio data;Judgement while being connected to the first bluetooth headset of the electronic equipment and whether the second bluetooth headset is worn by same user;If so, sending the corresponding left channel data of the audio data to the first bluetooth headset, the corresponding right data of the audio data is sent to the second bluetooth headset;If it is not, sending the corresponding stereo data of the audio data to the first bluetooth headset and the second bluetooth headset respectively.The scheme of the application can determine the transmission of audio data according to service condition of the user to earphone, and user experience is more preferable.
Description
Technical field
This application involves technical field of electronic equipment, set more particularly, to a kind of audio frequency transmission method, device, electronics
Standby and storage medium.
Background technique
With the development of electronic device technology and wireless connection technology, the technology development of bluetooth headset is more and more mature,
Using more and more extensive.Wherein, bluetooth headset can receive electronic equipment by bluetooth wireless connection to electronic equipment
Audio data carries out audio broadcasting, and the data transmission between earphone and electronic equipment is no longer dependent on wired connection, greatly mentions
The high convenience used.It, can not actual use according to user to earphone but in existing bluetooth headset use process
Situation adjusts the data of transmission, influences user experience.
Summary of the invention
In view of the above problems, present applicant proposes a kind of audio frequency transmission method, device, electronic equipment and storage medium, with
It solves the above problems.
In a first aspect, the embodiment of the present application, which provides a kind of audio frequency transmission method, is applied to electronic equipment, the method packet
It includes: receiving audio data;Judgement at the same be connected to the electronic equipment the first bluetooth headset and the second bluetooth headset whether
It is worn by same user;If so, the corresponding left channel data of the audio data is sent to the first bluetooth headset, to the second bluetooth
Earphone sends the corresponding right data of the audio data;If it is not, respectively to the first bluetooth headset and the second bluetooth headset
Send the corresponding stereo data of the audio data.
Second aspect, the embodiment of the present application provide a kind of audio transmission device, are applied to electronic equipment, described device packet
It includes: audio receiving module, for receiving audio data;Judgment module, for judging to be connected to the electronic equipment simultaneously
Whether one bluetooth headset and the second bluetooth headset are worn by same user;First sending module, if for being connected to institute simultaneously
The first bluetooth headset and the second bluetooth headset for stating electronic equipment are worn by same user, to described in the transmission of the first bluetooth headset
The corresponding left channel data of audio data sends the corresponding right data of the audio data to the second bluetooth headset;Second
Sending module, if the first bluetooth headset and the second bluetooth headset for being connected to the electronic equipment simultaneously are not same use
Family is worn, and sends the corresponding stereo data of the audio data to the first bluetooth headset and the second bluetooth headset respectively.
The third aspect, the embodiment of the present application provide a kind of electronic equipment, comprising: one or more processors;Memory;
One or more programs.Wherein one or more of programs are stored in the memory and are configured as by one
Or multiple processors execute, one or more of programs are configured to carry out above-mentioned method.
Fourth aspect, the embodiment of the present application provides a kind of computer-readable storage medium, described computer-readable
Program code is stored in storage medium, said program code can be called by processor and execute such as above-mentioned method.
Audio frequency transmission method, device, electronic equipment and storage medium provided by the embodiments of the present application, according to being connected to electronics
The whether same user of two bluetooth headset preset threshold ranges of equipment wears the transmission for determining audio data.If being connected to simultaneously
The first bluetooth headset and the second bluetooth headset of electronic equipment are worn by same user, then to described in the transmission of the first bluetooth headset
The corresponding left channel data of audio data sends the corresponding right data of the audio data to the second bluetooth headset.If same
When be connected to the first bluetooth headset of electronic equipment and the second bluetooth headset is not that same user wears, respectively to the first bluetooth
Earphone and the second bluetooth headset send the corresponding stereo data of the audio data.Scheme provided by the embodiments of the present application,
The transmission mode of audio data can be determined to the actual use situation of earphone according to user.When two bluetooth headsets are by different use
Family in use, two users respectively can hear it is stereo, and when two bluetooth headsets by the same user in use, user
Two ears can hear L channel with one, and one is heard right channel, generates preferably three-dimensional audio experience.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, the drawings in the following description are only some examples of the present application, for
For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached
Figure.
Fig. 1 shows a connection schematic diagram of electronic equipment and bluetooth headset provided by the embodiments of the present application;
Fig. 2 shows another connection schematic diagrams of electronic equipment provided by the embodiments of the present application and bluetooth headset;
Fig. 3 shows the flow chart of the audio frequency transmission method of one embodiment of the application offer.
Fig. 4 shows the flow chart for the audio frequency transmission method that another embodiment of the application provides.
Fig. 5 shows the schematic diagram of the positional relationship of electronic equipment and bluetooth headset provided by the embodiments of the present application.
Fig. 6 shows the flow chart of the part steps for the audio frequency transmission method that another embodiment of the application provides.
Fig. 7 shows the flow chart for the audio frequency transmission method that the another embodiment of the application provides.
Fig. 8 shows the functional block diagram of audio transmission device provided by the embodiments of the present application.
Fig. 9 shows the structural block diagram of electronic equipment provided by the embodiments of the present application.
Figure 10 is the embodiment of the present application for saving or carrying the audio transmission side realized according to the embodiment of the present application
The storage unit of the program code of method.
Specific embodiment
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application
Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described.
As the type of audio-frequence player device increases and the promotion of play sound effect, more users can select by mobile phone,
The audio output that the electronic equipments such as tablet computer are played is played out to audio-frequence player device.Wherein, common audio plays
Equipment includes vehicle-carrying music player, speaker and earphone etc..Wherein, earphone includes wired earphone or wireless headset.
By taking earphone as an example.If earphone is wired earphone, the connection of wired earphone and electronic equipment passes through physical circuit, electronics
Equipment passes through physical circuit for audio transmission to wired earphone, so that wired earphone carries out audio broadcasting.
In order to free the use of earphone in the case where wired, disobey the connection between earphone and electronic equipment
Rely the ease of use for increasing earphone in physical circuit, wireless headset comes into being.Wireless headset is set previously according to it with electronics
The standby wireless communication protocol supported jointly establishes communication link, and then electronic equipment passes through the communication link for audio transmission again
To wireless headset, so that wireless headset carries out audio broadcasting.Wherein, wireless communication protocol may include WLAN protocol, bluetooth association
View or Zigbee protocol etc., the application are illustrated by taking the wireless headset connected in wireless headset by Bluetooth protocol as an example.
In the embodiment of the present application, bluetooth connection can be established by Bluetooth protocol with other equipment such as electronic equipments, and carry out
The earphone of data transmission, is defined as bluetooth headset, such as TWS (True Wireless Stereo) earphone, TWS Plus earphone.
One electronic equipment can be attached with a bluetooth headset by Bluetooth protocol, can also pass through in parallel or string
The mode of connection is connected to two bluetooth headsets.Wherein, mode in parallel is, as shown in Figure 1, electronic equipment 500 is directly simultaneously
Bluetooth connection is carried out with two bluetooth headsets;Concatenated mode is, as shown in Fig. 2, electronic equipment 500 and one of bluetooth
Earphone bluetooth connection, with the bluetooth headset of electronic equipment bluetooth connection again bluetooth connection to another bluetooth headset.
When electronic equipment 500 connects a bluetooth headset, when carrying out audio broadcasting, the indigo plant is sent by audio data
Tooth earphone plays;When electronic equipment 500 connects two bluetooth headsets, audio number can be sent simultaneously to two bluetooth headsets
According to playing out two bluetooth headsets.Wherein, when electronic equipment 500 connects two bluetooth headsets, if side in parallel
Formula, then electronic equipment 500 directly can send two bluetooth headsets for audio data simultaneously;If concatenated mode, then may be used
To be that electronic equipment 500 will be sent to the audio datas of two bluetooth headsets and all pass through bluetooth and be sent to and its bluetooth connection
Earphone, the audio data that will be sent to another bluetooth headset again with the earphone of its bluetooth connection are transmitted to another bluetooth ear
Machine.
In the embodiment of the present application, mainly it is illustrated so that electronic equipment 500 connects two bluetooth headsets as an example.
Common, electronic equipment 500 is connected to two bluetooth headsets, if in the audio data played including left channel data
And right data, then a bluetooth headset sends left channel data thereto, and a bluetooth headset sends right sound thereto
Track data.Wherein, left channel data and right data can be the dephased identical audio data of tool, that is,
It says, the sound of the sound for the right channel that the sound wave and right data of the sound of the L channel generated according to left channel data generate
Wave, it is identical for period, frequency, amplitude, but have dephased sound wave.Make bluetooth headset when playing audio, an indigo plant
Tooth earphone plays the sound of L channel, and a bluetooth headset plays the sound of right channel, and the sound of two kinds of sound channels usually has
Certain phase difference travels to corresponding human ear, enables users to generate good three-dimensional audio experience.
Inventor has found that in the case where electronic equipment 500 can connect two bluetooth headsets, two bluetooths
The not necessarily same user of earphone is using.For example, after two bluetooth headsets are connected to electronic equipment 500, two users
It is listened to music jointly with a bluetooth headset respectively.At this point, one earphone sends right if an earphone sends left channel data
Channel data, then two users can only hear that the corresponding sound of a sound channel, sound do not have three-dimensional sense, influences user experience.
Therefore, inventors herein propose audio frequency transmission method, device provided by the embodiment of the present application, electronic equipment 500 and
Storage medium determines the audio for being sent to two earphones by the judgement whether worn by same user to two bluetooth headsets
Data should be the data or stereo data of monophonic.
It below will be by specific embodiment to audio frequency transmission method provided by the embodiments of the present application, device, electronic equipment 500
And storage medium is described in detail.
Referring to Fig. 3, the embodiment of the present application provides a kind of audio frequency transmission method, in this method, pass through two bluetooth ears
Whether machine, which has same user to wear, determines which kind of audio data the audio data for being sent to two bluetooth headsets is.Specifically, should
Method includes:
Step S110: audio data is received.
Receive the audio data for needing to play.The audio data can be the audio data of various application programs, such as music
Audio-frequency unit etc. in music that application program is played, video application;Be also possible to other audios, as alarm clock, jingle bell,
Call and other systems sound etc..Specifically receive which audio data is used as the audio by Bluetooth transmission to earphone in the application
Embodiment does not limit, and can be audio all in electronic equipment 500, is also possible to the certain sounds determined according to user setting
Frequently.
Step S120: judgement while the first bluetooth headset 710 and the second bluetooth ear for being connected to the electronic equipment 500
Whether machine 720 is worn by the same user.If so, executing step S130;If it is not, executing step S140.
Electronic equipment 500 can be connected to two bluetooth headsets simultaneously, which is respectively defined as the first indigo plant
Tooth earphone 710 and the second bluetooth headset 720.Whether electronic equipment 500 can be by judging two bluetooth headsets by same use
It wears to determine the mode for sending audio to two bluetooth headsets in family.
As an implementation, in the embodiment of the present application, electronic equipment 500 can receive audio data
In the case of, just judge and meanwhile be connected to the electronic equipment 500 the first bluetooth headset 710 and the second bluetooth headset 720 it
Between distance whether in preset threshold range.That is, the execution of step S120 can be after step S10.The judgement can
To be to carry out primary or real-time judge when receiving audio data, it is also possible to each preset period of time judgement.
As a kind of another embodiment, in the embodiment of the present application, electronic equipment 500 is connected to two bluetooth ears at the same time
In the case where machine, that is, judge the distance between two bluetooth headsets whether in preset threshold range.No matter that is, having not
Audio data is received, all whether the distance between two bluetooth headsets are judged within a preset range, when receiving
When audio data, then the sending method of audio data can be determined with judging result.In this embodiment, which can be
In real time, it is also possible to every preset period of time.
Step S130: the corresponding left channel data of the audio data is sent to the first bluetooth headset 710, to the second bluetooth
Earphone 720 sends the corresponding right data of the audio data.
If two bluetooth headsets are worn by same user, can be sent respectively to two bluetooth headsets left channel data with
And right data, hear the sound and right channel of L channel respectively using the left ear of the user of the bluetooth headset and auris dextra
Sound, to form stereosonic audio experience.
Optionally, the first bluetooth headset 710 can will be defined as by the bluetooth headset that left ear is worn in two bluetooth headsets,
The bluetooth headset worn by auris dextra is defined as the second bluetooth headset 720.Left channel data is sent to the first bluetooth headset 710,
Right data is sent to the second bluetooth headset 720.
Certainly, in the embodiment of the present application, two bluetooth headsets it is specific which be the first bluetooth headset 710, which
It for the second bluetooth headset 720, does not limit in the embodiment of the present application, therefore, left channel data may be sent to two bluetooths
Any one in earphone, right data is then sent to another in two bluetooth headsets.
Wherein, audio data is sent bluetooth headset by electronic equipment 500, needs audio data coding to be that can pass through
The file of Bluetooth transmission.For example, the audio data of transmission is the data of MP3 format, need by decoding twice and first encoding
Process realize bluetooth headset broadcasting.Specifically, the file of MP3 format is decompressed into the text of PCM format by electronic equipment 500
Part, then the file format that the document No. of the PCM format can be transmitted for bluetooth, such as the file of AAC, SBC, apt-X format,
Bluetooth headset is transferred to by the Bluetooth protocol between bluetooth headset.The file decoding received is again PCM by bluetooth headset
The file of format plays out.
Optionally, if audio data is stereo data, i.e., including left channel data and right data, still
Left channel data and right data mix.For example, audio data is the recording file of pcm file, it is assumed that audio
The sample rate of data is 16K, and recording type is AudioFormat.CHANNEL_IN_STEREO (stereophonic recording), data class
Type is AudioFormat.ENCODING_PCM_16BIT.The then data structure of the pcm file substantially 2 bytes (byte) left sound
The interleaved in road and 2 byte right channels, i.e. 2 byte L channels, 2 byte right channels, 2 byte L channels, 2 byte right channels
It is recycled with this.It is thus possible to therefrom be distinguished according to left channel data in stereo data and the storage characteristics of right data
Take out left channel data and right data.The first bluetooth headset 710 is sent by the left channel data of taking-up again, will be taken out
Right data be sent to the second bluetooth headset 720.
Can yes, if audio data includes the left channel data being separated from each other and right data, can directly by
Left channel data is sent to the first bluetooth headset 710, sends the second bluetooth headset 720 for the right data of taking-up.
Step S140: it is corresponding that the audio data is sent to the first bluetooth headset 710 and the second bluetooth headset 720 respectively
Stereo data.
When two bluetooth headsets are not that same user wears, it may be possible to two bluetooth headsets are worn by different user, or
Person is that one in two bluetooth headsets is worn by user, another is not worn.No matter which kind of situation, two bluetooth headsets are simultaneously
When non-same user wears, if two bluetooth headsets send different mono datas respectively, user can not hear completely
Stereo data.
Therefore, in the embodiment of the present application, if two bluetooth headsets are not that same user wears, vector bluetooth ear respectively
Machine sends the corresponding stereo data of audio data, make that two bluetooth headsets play respectively be all it is stereo, still have good
Good three-dimensional sense.
Wherein, if audio data sheet is as stereo data, by the audio data be sent to the first bluetooth headset 710 with
And second bluetooth headset 720.
If left channel data and right data separation in audio data, by left channel data and right data
Two bluetooth headsets are sent to after being fused to stereo data.By taking above-mentioned format is the recording file of pcm file as an example, left sound
Track data and right data are separated from each other, then can pass through 2 byte L channels, 2 byte right channels, 2 byte L channels, 2
Byte right channel etc. recycles fusion with this and obtains stereo data.
In the embodiment of the present application, the transmission of audio data is carried out to the actual use situation of earphone according to user.Specifically
, when two bluetooth headsets are worn by same user, left channel data and right channel are sent to two bluetooth headsets respectively
Data.When two bluetooth headsets are not that same user wears, then stereo data is sent to two bluetooth headsets respectively.From
And no matter user has worn a bluetooth headset or two bluetooth headsets, hear all to be stereo, there is good solid
Sense improves user experience.
Audio frequency transmission method provided by the embodiments of the present application, further include by the distance between two bluetooth headsets whether
Judgement within a preset range, judges whether two bluetooth headsets are worn by same user.Specifically, Fig. 4 is referred to, the audio
Transmission method includes:
Step S210: audio data is received.
Step S220: judgement while the first bluetooth headset 710 and the second bluetooth ear for being connected to the electronic equipment 500
Whether the distance between machine 720 is in preset threshold range.If so, executing step S230;If it is not, executing step S240.
When two bluetooth headsets are worn by the same user, the distance between two bluetooth headsets are substantially equal to wearer
The distance between two ears.And when two bluetooth headsets are worn by different users, the distance between two users are either large or small,
It is fewer that the distance between two bluetooth headsets are equal to the case where the distance between two ears of the same user.I.e. by different user
It wears two bluetooth headsets or a bluetooth headset is worn by the user, another bluetooth headset is not worn by the user, two indigo plants
The distance between tooth earphone is typically not equal to the distance between same two ear of wearer.It therefore, can be by judging while connecting
To the distance between the first bluetooth headset 710 of the electronic equipment 500 and the second bluetooth headset 720 whether in preset threshold
In range, to judge whether two earphones are worn by same user.If the first bluetooth headset 710 and the second bluetooth headset 720
The distance between in preset threshold range, it is possible to determine that worn by same user for two bluetooth headsets.If the first bluetooth ear
The distance between machine 710 and the second bluetooth headset 720 be not in preset threshold range, it is possible to determine that wears for not same user
It wears.
Wherein, preset threshold range is the distance between pre-stored two ears for indicating people range.With the preset threshold
Range characterization belongs to the distance between two ears of same user.
As an implementation, preset threshold range can be to count by big data and obtain and be stored in electronic equipment
500.Specifically, in this embodiment, the distance between two ear of a large number of users can be counted, determine distance according to statistical result
Range.Wherein it is possible to using the distance between maximum distance and minimum range range in all statistical results as preset threshold model
It encloses;Can also from statistical result probability of occurrence it is higher distance formed distance range, as preset threshold range.Either
Gained knowledge according to existing Human Physiology, determine between two ears of people may distance range as preset threshold range.
As an implementation, preset threshold range is also possible to the distance range of user's input, or according to user
The distance range that the distance value of input determines.Specifically, two ear distance input interface of user can be provided, which is used for user
Input the distance between itself two ear.If user has input a distance range, which is stored as preset threshold
Range.If user's input is a distance value, since measurement error oneself earphone wears the difference of posture etc., can this away from
Distance range is formed from pre-determined distance is added and subtracted on the basis of value, such as centimetre conduct that subtracts 3 on the basis of the distance value that user inputs
Minimum value in one distance range, add 3 centimetres as the maximum value in distance range.The distance range is stored as default threshold
It is worth range.
As an implementation, preset roe range can also by electronic equipment 500 acquire user facial image it
Afterwards, calculating acquisition is carried out by two ear images in facial image.Specifically, user can be prompted the ginseng of a known length
Image acquisition region, which is put into, according to object (such as one piece of unitary coin) carries out man face image acquiring.That is, the facial image obtained
In, including the object of reference and facial image.So as to according in the facial image between two ear distances and object of reference length
Ratio, object of reference physical length, calculate the distance between two ears.The distance between two ears is being obtained by facial image
Afterwards, the pre-determined distance for being likely to form error can be added and subtracted on the basis of the distance, forms distance range, with distance range work
For preset threshold range.
Judge two bluetooth headsets whether by same further according to the distance between preset threshold range and two bluetooth headsets
One user wears.Specifically, may determine that the distance between the first bluetooth headset 710 and the second bluetooth headset 720 whether
In preset threshold range.If the distance between the first bluetooth headset 710 and the second bluetooth headset 720 are in preset threshold range
It is interior, then it can be determined that be worn by same user;If the distance between the first bluetooth headset 710 and the second bluetooth headset 720
Not in preset threshold range, then it is determined as that not same user wears.
Wherein, in the embodiment of the present application, judging between the first bluetooth headset 710 and the second bluetooth headset 720
Before whether distance is in preset threshold range, can first it obtain between the first bluetooth headset 710 and the second bluetooth headset 720
Distance.
As an implementation, electronic equipment 500 can be obtained by location algorithm first bluetooth headset 710 with
The distance between described second bluetooth headset 720.
Specifically, first bluetooth headset 710 and second bluetooth headset 720 can be obtained by location algorithm
The positional relationship of the relatively described electronic equipment 500 respectively.Further according to the electronic equipment 500 and first bluetooth headset 710
Positional relationship and the electronic equipment 500 and second bluetooth headset 720 positional relationship, calculate first bluetooth
The distance between earphone 710 and second bluetooth headset 720.
Optionally, location algorithm can be the positioning based on time of arrival (toa) between bluetooth headset and electronic equipment 500
Algorithm, such as TOA (Time Of Arrival);It can be based on signal arrival time difference between bluetooth headset and electronic equipment 500
Location algorithm, such as TDOA (Time Difference Of Arrival);It can be the algorithm based on direction of arrival degree, such as
AOA (Angle of Arrival) etc., does not limit in the embodiment of the present application.
The positional relationship between electronic equipment 500 and bluetooth headset is obtained according to location algorithm, wherein the positional relationship can
To be indicated by positional parameter, such as coordinate parameters.The first bluetooth headset 710 and the second bluetooth headset are calculated by positional relationship again
The distance between 720.For example, the positional relationship between electronic equipment 500 and the first bluetooth headset 710, the second bluetooth headset 720
By coordinate representation, then the coordinate of the first bluetooth headset 710, the coordinate of the second bluetooth headset 720 can be obtained, so as to count
It calculates and obtains the distance between the first bluetooth headset 710 and the second bluetooth headset 720.
Optionally, it can also first pass through and calculate two bluetooth headsets respectively the distance between with electronic equipment 500.Further according to
Two bluetooth headsets angular relationship between electronic equipment 500 respectively, calculates the distance between two bluetooth headsets.Namely
It says, electronic equipment 500 is available the distance between with the first bluetooth headset 710, is defined as first distance;It obtains and the first indigo plant
Angular relationship between tooth earphone 710, is defined as first angle.Electronic equipment 500 can also obtain and the second bluetooth headset 720
The distance between, it is defined as second distance;The angular relationship between the second bluetooth headset 720 is obtained, as second angle.From
And it can be determined according to first distance, first angle, second distance and second angle by electronic equipment 500, the first bluetooth ear
The triangle of machine 710, the second bluetooth headset 720 composition, calculates the first bluetooth headset 710 and the second bluetooth ear in the triangle
The distance between machine 720.
Wherein, the distance that two bluetooth headsets arrive electronic equipment 500 respectively can also be obtained respectively by location algorithm.With
It is illustrated for RSSI (Received signal strength Indicator, received signal strength indicator) technology.It is blue
The corresponding RSSI value of Bluetooth signal (receives between signalling arrangement and transmitting signalling arrangement with d between tooth earphone and electronic equipment 500
Distance) proportional reduction.The letter that can be then received according to RSSI value with the relationship and electronic equipment 500 of distance change
Number RSSI value, calculate the distance between bluetooth headset and electronic equipment 500.The signal strength mainly received according to node
Value, by the experience or theoretical model formula of transmitting signal, is directly changed into its distance value.For example, passing through formula d=10^
((abs (RSSI)-A)/(10*n)) is calculated, wherein d is distance, and unit is m.RSSI is signal strength indication, is negative.A
The absolute value of RSSI value when being 1 meter of object detecting apparatus, range can be between 45-49.N is the environmental attenuation factor, is needed
Correction is tested, range can be between 3.25-4.5.
Furthermore it is possible to obtain the angle of two bluetooth headset difference opposing electronic devices 500 further according to the reception to signal.
For example, AOA (angle of arrival, the Angle of Arrival) technology of being based on, obtains the bluetooth headset hair that electronic equipment 500 receives
The arrival direction of signal is penetrated, relative bearing or angle between electronic equipment 500 and bluetooth headset are calculated.
As another embodiment, it obtains between first bluetooth headset 710 and second bluetooth headset 720
The mode of distance is also possible at least one the transmission range acquisition instruction of electronic equipment 500 into two bluetooth headsets, to refer to
Show that the bluetooth headset received apart from acquisition instruction obtains the distance between another bluetooth headset and feeds back to the electricity
Sub- equipment 500.It receives the bluetooth headset apart from acquisition instruction and then obtains the distance between another bluetooth headset, acquisition side
Formula is referred to above-mentioned apart from acquisition modes, and details are not described herein.According to the bluetooth ear for getting distance apart from acquisition instruction
The distance is again returned to electronic equipment 500 by machine, and electronic equipment 500 receives response the returned apart from acquisition instruction again
The distance between one bluetooth headset 710 and second bluetooth headset 720.
For example, 500 the first bluetooth headset of phase of electronic equipment, 710 transmission range acquisition instruction, the first bluetooth headset 710 is received
To this apart from acquisition instruction, the distance between itself and the second bluetooth headset 720 are obtained.First bluetooth headset 710 will acquire again
Distance return to electronic equipment 500, thus electronic equipment 500 obtain the first bluetooth headset 710 and the second bluetooth headset 720 it
Between distance.
Certainly, in the embodiment of the present application, obtaining range range mode between two bluetooth headsets can also include other, such as super
Acoustic location, infrared ray positioning, Wireless Fidelity positioning, ultra wide band positioning and ZigBee technology positioning etc..
Electronic equipment 500 can then be sentenced after obtaining the distance of the first bluetooth headset 710 and the second bluetooth headset 720
Whether disconnected the distance between first bluetooth headset 710 and second bluetooth headset 720 are in preset threshold range.Namely
It says, judges whether the distance between the first bluetooth headset 710 and second bluetooth headset 720 are less than or equal to preset threshold
Maximum value in range, and the minimum value being greater than or equal in preset threshold range.
In the embodiment of the present application, the positional relationship between two bluetooth headsets and electronic equipment 500 can be such as Fig. 5 institute
Show, A represents electronic equipment 500, and B represents a bluetooth headset, and C represents another bluetooth headset.AB indicate electronic equipment 500 with
The distance between bluetooth headset B, AC indicate that the distance between electronic equipment 500 and bluetooth headset C, BC indicate two bluetooth headsets
The distance between.Third side is then less than according to the difference on the both sides of triangle, AC-AB is less than BC, that is to say, that two bluetooth headsets
It is worth respectively with the difference of the distance between electronic equipment 500 less than the distance between two bluetooth headsets.Therefore, if two bluetooths
Earphone is greater than the maximum value in preset threshold range with the difference of the distance between electronic equipment 500 respectively, then two bluetooth ears
The distance between machine should be greater than the maximum value in preset threshold range, and the distance between two bluetooth headsets are not in preset threshold
In range.
Therefore, described first is judged in the embodiment of the present application to save calculating time and resource to a certain extent
The distance between bluetooth headset 710 and second bluetooth headset 720 can first judge two whether in preset threshold range
Whether a bluetooth headset is greater than the maximum value in preset threshold range with the range difference of the distance between electronic equipment 500 respectively.
Specifically, as shown in fig. 6, the deterministic process may include:
Step S221: the electronic equipment 500 obtains the first distance between the first bluetooth headset 710, the electronics
Equipment 500 obtains the second distance between the second bluetooth headset 720.
Electronic equipment 500 obtains the distance between first bluetooth headset 710 and between the second bluetooth headset 720
Distance.Specific acquisition modes do not limit, and are referred to foregoing description.For example, electronic equipment 500 can according to the first bluetooth
Signal strength between earphone 710 obtains the first distance between the first bluetooth headset 710;The electronic equipment 500 can be with
The second distance between the second bluetooth headset 720 is obtained according to the signal strength between the second bluetooth headset 720.
Step S222: judge whether the difference between first distance and second distance is greater than in the preset threshold range
Maximum value.If it is not, executing step S223;If so, executing step S226.
Electronic equipment 500 judges the maximum value whether difference is greater than in preset threshold again.If the difference is greater than default threshold
It is default then to can be determined that the distance between the first bluetooth headset 710 and the second bluetooth headset 720 are greater than for the maximum value being worth in range
Maximum value in threshold range.At this point, then between available first bluetooth headset 710 and second bluetooth headset 720
Distance whether the judging result in preset threshold range that is, such as step S226 determines the first bluetooth headset 710 and described
It is blue can not to carry out first further according to parameters such as angles not in preset threshold range for the distance between second bluetooth headset 720
The calculating of the distance between tooth earphone 710 and the second bluetooth headset 720.
If the difference no more than the maximum value in the preset threshold range, further calculate between two earphones away from
From judging the distance whether in preset threshold range.Specifically, as shown in step S223 to step S225.
Step S223: the first angle of 710 opposing electronic device 500 of the first bluetooth headset is obtained, and obtains institute
State the second angle of the relatively described electronic equipment 500 of the second bluetooth headset 720.
Step S224: the first bluetooth ear is calculated in conjunction with first distance, first angle, second distance and second angle
The distance between machine 710 and the second bluetooth headset 720.
It is calculated between two bluetooth headsets in conjunction with according to the angular relationship between electronic equipment 500 and two bluetooth headsets
Distance, be specifically referred to foregoing description, no longer repeated herein.
Step S225: judge the distance between first bluetooth headset 710 and the second bluetooth headset 720 whether pre-
If in threshold range.
Step S226: determine the distance between first bluetooth headset 710 and second bluetooth headset 720 not described
In preset threshold range.
Step S230: the corresponding left channel data of the audio data is sent to the first bluetooth headset 710, to the second bluetooth
Earphone 720 sends the corresponding right data of the audio data.
Step S240: it is corresponding that the audio data is sent to the first bluetooth headset 710 and the second bluetooth headset 720 respectively
Stereo data.
In the embodiment of the present application, due to when two bluetooth headsets are worn by two users respectively or an earphone
It is worn by a user, another earphone is placed, and the activity of user is it is also possible that the distance between two bluetooth headsets are being preset
In threshold range, so as to occur wearing bluetooth headset originally for two users, but it is judged as what same user wore
Erroneous judgement.
And the activity of user makes the distance between two bluetooth headsets that duration is not usually in preset threshold range
It is long.Therefore, optionally, in the embodiment of the present application, in the judgment process, determine that the first bluetooth headset 710 and second is blue for the first time
In the case that the distance between tooth earphone 720 is in preset threshold range, the mode of audio data is sent to two bluetooth headsets
It is constant.In predetermined time period, judging result still maintain for the first bluetooth headset 710 and the second bluetooth headset 720 it
Between distance in preset threshold range, just send the corresponding left channel data of the audio data to the first bluetooth headset 710,
The corresponding right data of the audio data is sent to the second bluetooth headset 720.
Wherein, this determines can be for the first time, and when preceding primary judgement, judging result is the first bluetooth headset 710 and second
For the distance between bluetooth headset 720 not in preset threshold range, this judging result is the first bluetooth headset 710 and second
The distance between bluetooth headset 720 is in preset threshold range, using this judging result as determining for the first time.That is, first
In the case that secondary judgement the distance between the first bluetooth headset 710 and the second bluetooth headset 720 are in preset threshold range, point
The corresponding stereo data of the audio data is not sent to the first bluetooth headset 710 and the second bluetooth headset 720.Default
In time span, the distance between the first bluetooth headset 710 and the second bluetooth headset 720 are maintained in preset threshold range,
Just the corresponding stereo data of the audio data is sent to the first bluetooth headset 710 and the second bluetooth headset 720 respectively.
In the embodiment of the present application, by judge and meanwhile be connected to the electronic equipment 500 the first bluetooth headset 710 and
Whether the distance between second bluetooth headset 720 is in preset threshold range, to realize to while be connected to the electronic equipment
The judgement whether 500 the first bluetooth headset 710 and the second bluetooth headset 720 are worn by same user.When the first bluetooth ear
The distance between machine 710 and the second bluetooth headset 720 determine the first bluetooth headset 710 and the in preset threshold range
Two bluetooth headsets 720 are worn by same user, and the first bluetooth headset 710 sends the corresponding left channel data of the audio data,
The corresponding right data of the audio data is sent to the second bluetooth headset 720.When the first bluetooth headset 710 and second is blue
The distance between tooth earphone 720 determines the first bluetooth headset 710 and the second bluetooth headset 720 not in preset threshold range
Not same user wears, and it is corresponding to send the audio data to the first bluetooth headset 710 and the second bluetooth headset 720 respectively
Stereo data.
In the embodiment of the present application, can also according to simultaneously be connected to the first bluetooth headset 710 of the electronic equipment 500 with
And second the distance between bluetooth headset 720 remain unchanged and judge whether two bluetooth headsets are worn by same user.Specifically,
Fig. 7 is referred to, this method comprises:
Step S310: audio data is received;
Step S320: judge whether the distance between the first bluetooth headset 710 and the second bluetooth headset 720 keep not
Become.If so, executing step S330;If it is not, executing step S340.
When two bluetooth headsets are not that same user wears, due to the activity of user, between two bluetooth headsets away from
From variation would generally be generated.And two bluetooth headsets, when being worn by same user, two bluetooth headsets are located at two ears of user, by
In two ear of user apart from constant, the distance between two bluetooth headsets are also usually constant.Therefore, in the embodiment of the present application, may be used
By judging whether the distance between two bluetooth headsets generate variation, judging while being connected to the electronic equipment 500
Whether the first bluetooth headset 710 and the second bluetooth headset 720 are worn by same user.If the distance between two bluetooth headsets
Variation is generated, is determined as that not same user wears.If the distance between two bluetooth headsets remain unchanged, it is determined as by same
User wears.
Specifically, the distance between the first bluetooth headset 710 and the second bluetooth headset 720 can be calculated.The calculating can be with
It is to calculate in real time, is also possible to each preset period of time and calculates.
As an implementation, calculate every time obtain between the first bluetooth headset 710 and the second bluetooth headset 720 away from
From rear, judge with it is last calculate obtain at a distance between it is whether identical.If they are the same, then it can be determined that the first bluetooth headset
710 and second the distance between bluetooth headset 720 remain unchanged;If it is different, then can be determined that the first bluetooth headset 710 and
The distance between second bluetooth headset 720 changes.
In order to reduce measurement error influence caused by judging result, in the embodiment of the present application, apart from it is identical can be simultaneously
It is not necessarily stringent identical, can permit has default error.The occurrence of the default error specifically allowed is in the application reality
It applies in example and does not limit, such as 0.5 centimetre.
Optionally, in the embodiment of the present application, it can store the first bluetooth headset for calculating and obtaining in the first preset time
710 and second the distance between the bluetooth headset 720.Be not that same user wears to reduce two earphones, but user by
It is gradually movable, cause the distance between two earphones to gradually change, two earphones are mistaken for same user and are worn.In the application
In embodiment, obtained when this calculates the distance between the first bluetooth headset 710 obtained and the second bluetooth headset 720 with the last time
The distance obtained has the error amount for being less than default error, then judges that this calculates its obtained in the distance of acquisition and preset time
Corresponding each error between his each distance is greater than default error more than or equal to the error of preset quantity if having,
Determine that the distance between the first bluetooth headset 710 and the second bluetooth headset 720 change.
As another embodiment, every the second preset time or preset times calculate the first bluetooth headset 710 with
The average value of the distance between second bluetooth headset 720.Judge this obtain average value and last time obtain average value whether
It is identical.If they are the same, then it can be determined that the distance between the first bluetooth headset 710 and the second bluetooth headset 720 remain unchanged;If
Difference then can be determined that the distance between the first bluetooth headset 710 and the second bluetooth headset 720 change.Certainly, the reality
It applies in mode, identical between the average value of distance is also not limited to stringent identical, allows for certain error.
Step S330: the corresponding left channel data of the audio data is sent to the first bluetooth headset 710, to the second bluetooth
Earphone 720 sends the corresponding right data of the audio data.
Step S340: it is corresponding that the audio data is sent to the first bluetooth headset 710 and the second bluetooth headset 720 respectively
Stereo data.
In the embodiment of the present application, whether is changed according to the distance between bluetooth headset and judge bluetooth headset whether by same
One user wears.So as to according to whether which kind of sound the judgement result determination that same user wears sends to two bluetooth headsets
Frequency evidence realizes the data for adjusting transmission to the actual use situation of earphone according to user, improves user experience.
In the embodiment of the present application, can be cross-referenced between the same or similar step of each embodiment, the application is implemented
It is no longer repeated in example.
The embodiment of the present application also provides a kind of audio transmission devices 400, are applied to electronic equipment 500.Fig. 8 is referred to,
The device 400 includes audio receiving module 410, for receiving audio data.Judgment module 420 is connected to simultaneously for judging
Whether the first bluetooth headset 710 of the electronic equipment 500 and the second bluetooth headset 720 are worn by same user.First hair
Module 430 is sent, if the first bluetooth headset 710 and the second bluetooth headset 720 for being connected to the electronic equipment 500 simultaneously
It is to be worn by same user, the corresponding left channel data of the audio data is sent to the first bluetooth headset 710, to the second bluetooth
Earphone 720 sends the corresponding right data of the audio data.Second sending module 440, if described for being connected to simultaneously
The first bluetooth headset 710 and the second bluetooth headset 720 of electronic equipment 500 are not worn by same user, respectively to first
Bluetooth headset 710 and the second bluetooth headset 720 send the corresponding stereo data of the audio data.
Optionally, determination module 420 can be used for the first bluetooth by judging while being connected to the electronic equipment 500
Whether the distance between earphone 710 and the second bluetooth headset 720 are in preset threshold range, to being connected to the electronics simultaneously
Whether the first bluetooth headset 710 of equipment 500 and the second bluetooth headset 720 are worn by same user and are judged.Wherein, institute
Stating preset threshold range is the distance between pre-stored two ears for indicating people range.If the first bluetooth headset 710 and
The distance between two bluetooth headsets 720 then can be determined that in preset threshold range to be worn by same user.If the first bluetooth
The distance between earphone 710 and the second bluetooth headset 720 then can be determined that not in preset threshold range to be not same use
It wears at family.
Optionally, which can also include, and distance obtains module, for obtain first bluetooth headset 710 with
The distance between described second bluetooth headset 720.
Optionally, it may include positional relationship acquiring unit that distance, which obtains module, described in being obtained by location algorithm
The positional relationship of first bluetooth headset 710 and second the bluetooth headset 720 relatively described electronic equipment 500 respectively.First
Computing unit, for being set according to the electronic equipment 500 and the positional relationship of first bluetooth headset 710 and the electronics
For 500 and the positional relationship of second bluetooth headset 720, first bluetooth headset 710 and the second bluetooth ear are calculated
The distance between machine 720.
Optionally, in the embodiment of the present application, distance obtain module can also include distance acquiring unit, for according to
Signal strength between first bluetooth headset 710 obtains the first distance between the first bluetooth headset 710, the electronic equipment
500 according to the second distance obtained between the second bluetooth headset 720 with the signal strength between the second bluetooth headset 720.
Judgment module can also include dif ference judgment unit, for judging the difference between first distance and second distance
The maximum value whether being greater than in the preset threshold range.If dif ference judgment unit judging result is yes, judgement first indigo plant
The distance between tooth earphone 710 and the second bluetooth headset 720 be not in the preset threshold range.
It can also include angle acquiring unit and the second computing unit that distance, which obtains module, if dif ference judgment unit judges
As a result be it is no, which is used to obtain the first angle of 710 opposing electronic device 500 of the first bluetooth headset,
And obtain the second angle of the relatively described electronic equipment 500 of the second bluetooth headset 720.Second computing unit is for combining
First distance, first angle, second distance and second angle calculate first bluetooth headset 710 and the second bluetooth headset
The distance between 720.
Judgment module can also include Distance Judgment unit, for judging that first bluetooth headset 710 and second is blue
Whether the distance between tooth earphone 720 is in preset threshold range.
Optionally, in the embodiment of the present application, it can also include instruction sending unit and receiving unit that distance, which obtains module,.
Wherein, instruction sending unit is at least one transmission range acquisition instruction into two bluetooth headsets, to indicate the reception
The distance between another bluetooth headset is obtained to the bluetooth headset apart from acquisition instruction and feeds back to the electronic equipment
500.Receiving unit is for receiving response first bluetooth headset 710 returned apart from acquisition instruction and second indigo plant
The distance between tooth earphone 720.
Optionally, in the embodiment of the present application, judgment module 420 can also by judge the first bluetooth headset 710 and
Whether the distance between second bluetooth headset 720 remains unchanged, judgement while the first bluetooth for being connected to the electronic equipment 500
Whether earphone 710 and the second bluetooth headset 720 are worn by same user.If the determination result is YES, it is determined as by same user
It wears;If judging result be it is no, be determined as that not same user wears.
It is apparent to those skilled in the art that for convenience and simplicity of description, foregoing description device and
The specific work process of module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, the mutual coupling of module can be electrical property, mechanical or other
The coupling of form.
It, can also be in addition, can integrate in a processing module in each functional module in each embodiment of the application
It is that modules physically exist alone, can also be integrated in two or more modules in a module.Above-mentioned integrated mould
Block both can take the form of hardware realization, can also be realized in the form of software function module.
Another embodiment of the application additionally provides a kind of electronic equipment 500, the electronic equipment 500 can be smart phone,
Tablet computer, music player devices etc. can run the electronic equipment of application program.Fig. 9 is referred to, which includes
One or more processors 510 (only show one) in figure, memory 520, and one or more programs.Wherein, described one
A or multiple programs are stored in the memory 520 and are configured as being executed by one or more of processors 510, institute
It states one or more programs and is configured to carry out method described in said one or multiple embodiments.
Processor 510 may include one or more processing core.Processor 510 is whole using various interfaces and connection
Various pieces in a electronic equipment 500, by run or execute the instruction being stored in memory 520, program, code set or
Instruction set, and the data being stored in memory 520 are called, execute the various functions and processing data of electronic equipment 500.It can
Selection of land, processor 510 can use Digital Signal Processing (Digital Signal Processing, DSP), field-programmable
Gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic
Array, PLA) at least one of example, in hardware realize.Processor 510 can integrating central processor (Central
Processing Unit, CPU), in image processor (Graphics Processing Unit, GPU) and modem etc.
One or more of combinations.Wherein, the main processing operation system of CPU, user interface and application program etc.;GPU is for being responsible for
Show the rendering and drafting of content;Modem is for handling wireless communication.It is understood that above-mentioned modem
It can not be integrated into processor 510, be realized separately through one piece of communication chip.
Memory 520 may include random access memory (Random Access Memory, RAM), also may include read-only
Memory (Read-Only Memory).Memory 520 can be used for store instruction, program, code, code set or instruction set.It deposits
Reservoir 520 may include storing program area and storage data area, wherein the finger that storing program area can store for realizing operating system
Enable, for realizing the instruction of at least one function, for realizing instruction of above-mentioned each embodiment of the method etc..Storage data area is also
It can be with data (such as phone directory, audio, video data, chat record data) etc. that electronic equipment 500 is created in use.
Referring to FIG. 10, it illustrates a kind of structural frames of computer readable storage medium provided by the embodiments of the present application
Figure.Program code is stored in the computer-readable storage medium 600, said program code can be called by processor and be executed
State method described in embodiment of the method.
Computer-readable storage medium 600 can be (the read-only storage of electrically erasable of such as flash memory, EEPROM
Device), the electronic memory of EPROM, hard disk or ROM etc.Optionally, computer-readable storage medium 600 includes non-easy
The property lost computer-readable medium (non-transitory computer-readable storage medium).Computer can
Read the memory space that storage medium 600 has the program code 610 for executing any method and step in the above method.These journeys
Sequence code can read or be written to this one or more computer journey from one or more computer program product
In sequence product.Program code 610 can for example be compressed in a suitable form.
Finally, it should be noted that above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although
The application is described in detail with reference to the foregoing embodiments, those skilled in the art are when understanding: it still can be with
It modifies the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features;And
These are modified or replaceed, do not drive corresponding technical solution essence be detached from each embodiment technical solution of the application spirit and
Range.
Claims (10)
1. a kind of audio frequency transmission method, which is characterized in that be applied to electronic equipment, which comprises
Receive audio data;
Judgement while being connected to the first bluetooth headset of the electronic equipment and whether the second bluetooth headset is worn by same user
It wears;
If so, sending the corresponding left channel data of the audio data to the first bluetooth headset, institute is sent to the second bluetooth headset
State the corresponding right data of audio data;
If it is not, sending the corresponding stereo data of the audio data to the first bluetooth headset and the second bluetooth headset respectively.
2. the method according to claim 1, wherein described judge while being connected to the first of the electronic equipment
Whether bluetooth headset and the second bluetooth headset are worn by same user, comprising:
The distance between judgement while the first bluetooth headset and the second bluetooth headset that are connected to the electronic equipment whether
In preset threshold range, the preset threshold range is the distance between pre-stored two ears for indicating people range;
If so, being judged to being worn by same user;
If it is not, being determined as that not same user wears.
3. according to the method described in claim 2, it is characterized in that, the judgement first bluetooth headset and described second
Before whether the distance between bluetooth headset is in preset threshold range, further includes:
Obtain the distance between first bluetooth headset and second bluetooth headset.
4. according to the method described in claim 3, it is characterized in that, described obtain first bluetooth headset and second indigo plant
The distance between tooth earphone, comprising:
First bluetooth headset and second the bluetooth headset relatively described electronic equipment respectively are obtained by location algorithm
Positional relationship;
According to the positional relationship and the electronic equipment of the electronic equipment and first bluetooth headset and second indigo plant
The positional relationship of tooth earphone calculates the distance between first bluetooth headset and second bluetooth headset.
5. according to the method described in claim 4, it is characterized in that, described obtain first bluetooth headset and second indigo plant
Whether the distance between tooth earphone judges the distance between first bluetooth headset and second bluetooth headset default
In threshold range, comprising:
The electronic equipment obtains first between the first bluetooth headset according to the signal strength between the first bluetooth headset
Distance, the electronic equipment obtain second between the second bluetooth headset according to the signal strength between the second bluetooth headset
Distance;
Judge the maximum value whether difference between first distance and second distance is greater than in the preset threshold range;
If so, determining the distance between first bluetooth headset and second bluetooth headset not in the preset threshold range
It is interior;
If it is not, obtaining the first angle of the first bluetooth headset opposing electronic device, and obtain second bluetooth headset
The second angle of the relatively described electronic equipment;
First bluetooth headset and the second indigo plant are calculated in conjunction with first distance, first angle, second distance and second angle
The distance between tooth earphone;
Judge the distance between first bluetooth headset and second bluetooth headset whether in preset threshold range.
6. according to the method described in claim 3, it is characterized in that, described obtain first bluetooth headset and second indigo plant
The distance between tooth earphone, comprising:
At least one transmission range acquisition instruction into two bluetooth headsets, to indicate that this receives the indigo plant apart from acquisition instruction
Tooth earphone obtains the distance between another bluetooth headset and feeds back to the electronic equipment;
Receive respond between first bluetooth headset returned apart from acquisition instruction and second bluetooth headset away from
From.
7. the method according to claim 1, wherein described judge while being connected to the first of the electronic equipment
Whether bluetooth headset and the second bluetooth headset are worn by same user, comprising:
Judge whether the distance between the first bluetooth headset and the second bluetooth headset remain unchanged;
If so, being judged to being worn by same user;
If it is not, being determined as that not same user wears.
8. a kind of audio transmission device, which is characterized in that be applied to electronic equipment, described device includes:
Audio receiving module, for receiving audio data;
Judgment module, whether the first bluetooth headset and the second bluetooth headset for judging to be connected to the electronic equipment simultaneously
It is worn by same user;
First sending module, if the first bluetooth headset and the second bluetooth headset for being connected to the electronic equipment simultaneously are
It is worn by same user, the corresponding left channel data of the audio data is sent to the first bluetooth headset, to the second bluetooth headset
Send the corresponding right data of the audio data;
Second sending module, if the first bluetooth headset and the second bluetooth headset for being connected to the electronic equipment simultaneously are simultaneously
It is non-to be worn by same user, the corresponding solid of the audio data is sent to the first bluetooth headset and the second bluetooth headset respectively
Sound data.
9. a kind of electronic equipment characterized by comprising
One or more processors;
Memory;
One or more programs, wherein one or more of programs are stored in the memory and are configured as by described
One or more processors execute, and one or more of programs are configured to carry out as claim 1-7 is described in any item
Method.
10. a kind of computer-readable storage medium, which is characterized in that be stored with journey in the computer-readable storage medium
Sequence code, said program code can be called by processor and execute the method according to claim 1 to 7.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811161378.4A CN109379653B (en) | 2018-09-30 | 2018-09-30 | Audio transmission method and device, electronic equipment and storage medium |
PCT/CN2019/094931 WO2020063017A1 (en) | 2018-09-30 | 2019-07-05 | Audio transmission method and device, electronic apparatus, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811161378.4A CN109379653B (en) | 2018-09-30 | 2018-09-30 | Audio transmission method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109379653A true CN109379653A (en) | 2019-02-22 |
CN109379653B CN109379653B (en) | 2020-12-04 |
Family
ID=65402859
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811161378.4A Active CN109379653B (en) | 2018-09-30 | 2018-09-30 | Audio transmission method and device, electronic equipment and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN109379653B (en) |
WO (1) | WO2020063017A1 (en) |
Cited By (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110830970A (en) * | 2019-11-19 | 2020-02-21 | Oppo广东移动通信有限公司 | Audio transmission method, device, equipment and storage medium between Bluetooth equipment |
WO2020063017A1 (en) * | 2018-09-30 | 2020-04-02 | Oppo广东移动通信有限公司 | Audio transmission method and device, electronic apparatus, and storage medium |
CN111372166A (en) * | 2020-02-21 | 2020-07-03 | 华为技术有限公司 | Intelligent left and right ear identification method and earphone device |
CN111615036A (en) * | 2020-04-17 | 2020-09-01 | 歌尔科技有限公司 | Data processing method and device and electronic equipment |
CN111681404A (en) * | 2020-08-11 | 2020-09-18 | 江西斐耳科技有限公司 | Communication equipment, earphone and communication equipment main part based on BLE wireless data transmission |
CN111698607A (en) * | 2020-07-03 | 2020-09-22 | 歌尔科技有限公司 | TWS earphone audio output control method, apparatus, device and medium |
CN111752372A (en) * | 2019-03-28 | 2020-10-09 | 深圳市冠旭电子股份有限公司 | Action recognition method and device and computer readable storage medium |
CN111770403A (en) * | 2019-04-01 | 2020-10-13 | 炬芯科技股份有限公司 | Wireless earphone control method, wireless earphone and control system thereof |
CN111770412A (en) * | 2019-04-01 | 2020-10-13 | 炬芯科技股份有限公司 | Wireless earphone control method, wireless earphone and control system thereof |
CN112040361A (en) * | 2020-09-03 | 2020-12-04 | Oppo广东移动通信有限公司 | Earphone control method, earphone control device and storage medium |
CN112312260A (en) * | 2020-10-30 | 2021-02-02 | 维沃移动通信有限公司 | Wireless earphone and wearing detection method thereof |
CN112752198A (en) * | 2019-10-31 | 2021-05-04 | 深圳市冠旭电子股份有限公司 | Method, device, terminal and storage medium for controlling earphone to play stereo |
CN113207052A (en) * | 2021-01-28 | 2021-08-03 | 珠海市杰理科技股份有限公司 | Communication connection method and device, Bluetooth headset, communication system and storage medium |
WO2021174843A1 (en) * | 2020-03-05 | 2021-09-10 | 珠海市杰理科技股份有限公司 | Wireless control method, device, ble apparatus, chip, and storage medium |
CN113475094A (en) * | 2020-01-29 | 2021-10-01 | 谷歌有限责任公司 | Different head detection in headphones |
WO2022000317A1 (en) * | 2020-06-30 | 2022-01-06 | 深圳传音控股股份有限公司 | Control method, device and readable storage medium |
CN114745637A (en) * | 2022-04-14 | 2022-07-12 | 刘道正 | Sound effect realization method of wireless audio equipment |
WO2022258016A1 (en) * | 2021-06-10 | 2022-12-15 | 华为技术有限公司 | Data stream transmission method and device, communication apparatus, and storage medium |
WO2023029143A1 (en) * | 2021-08-31 | 2023-03-09 | 歌尔股份有限公司 | Headphone connection device switching method and system, and related components |
CN116033304A (en) * | 2022-08-31 | 2023-04-28 | 荣耀终端有限公司 | Audio output method, electronic equipment and readable storage medium |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102927964A (en) * | 2012-10-24 | 2013-02-13 | 安科智慧城市技术(中国)有限公司 | Distance measuring device and method and vehicle |
CN104125522A (en) * | 2014-07-18 | 2014-10-29 | 北京智谷睿拓技术服务有限公司 | Sound track configuration method and device and user device |
CN105101016A (en) * | 2015-08-07 | 2015-11-25 | 深圳市金立通信设备有限公司 | Earphone sound channel switching method and terminal |
CN105451111A (en) * | 2015-12-10 | 2016-03-30 | 小米科技有限责任公司 | Earphone play control method and apparatus and terminal |
CN105829950A (en) * | 2015-08-19 | 2016-08-03 | 深圳市柔宇科技有限公司 | Wearable display device |
CN105827280A (en) * | 2016-04-19 | 2016-08-03 | 唐山新质点科技有限公司 | Distance measuring method and device |
CN106597424A (en) * | 2016-12-22 | 2017-04-26 | 惠州Tcl移动通信有限公司 | Distance measuring method and distance measuring system based on dual cameras, and mobile terminal |
CN106775571A (en) * | 2017-03-21 | 2017-05-31 | 北京小米移动软件有限公司 | Audio frequency playing method and device |
CN106878915A (en) * | 2017-02-17 | 2017-06-20 | 广东欧珀移动通信有限公司 | The control method of playback equipment, device and playback equipment and mobile terminal |
US20180014102A1 (en) * | 2016-07-06 | 2018-01-11 | Bragi GmbH | Variable Positioning of Distributed Body Sensors with Single or Dual Wireless Earpiece System and Method |
CN107613387A (en) * | 2017-10-12 | 2018-01-19 | 广东小天才科技有限公司 | Method and device for controlling data playing, playing equipment and storage medium |
CN107707282A (en) * | 2017-09-08 | 2018-02-16 | 深圳市盛路物联通讯技术有限公司 | A kind of wave beam adjustment method and wearable device based on wearable device |
US20180192220A1 (en) * | 2016-12-29 | 2018-07-05 | Realtek Semiconductor Corp. | Headphone amplifier circuit for headphone driver, operation method thereof, and usb interfaced headphone device using the same |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7418103B2 (en) * | 2004-08-06 | 2008-08-26 | Sony Computer Entertainment Inc. | System and method for controlling states of a device |
CN105491469A (en) * | 2014-09-15 | 2016-04-13 | Tcl集团股份有限公司 | Method and system for controlling audio output mode based on wearing earphone state |
CN109379653B (en) * | 2018-09-30 | 2020-12-04 | Oppo广东移动通信有限公司 | Audio transmission method and device, electronic equipment and storage medium |
-
2018
- 2018-09-30 CN CN201811161378.4A patent/CN109379653B/en active Active
-
2019
- 2019-07-05 WO PCT/CN2019/094931 patent/WO2020063017A1/en active Application Filing
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102927964A (en) * | 2012-10-24 | 2013-02-13 | 安科智慧城市技术(中国)有限公司 | Distance measuring device and method and vehicle |
CN104125522A (en) * | 2014-07-18 | 2014-10-29 | 北京智谷睿拓技术服务有限公司 | Sound track configuration method and device and user device |
CN105101016A (en) * | 2015-08-07 | 2015-11-25 | 深圳市金立通信设备有限公司 | Earphone sound channel switching method and terminal |
CN105829950A (en) * | 2015-08-19 | 2016-08-03 | 深圳市柔宇科技有限公司 | Wearable display device |
CN105451111A (en) * | 2015-12-10 | 2016-03-30 | 小米科技有限责任公司 | Earphone play control method and apparatus and terminal |
CN105827280A (en) * | 2016-04-19 | 2016-08-03 | 唐山新质点科技有限公司 | Distance measuring method and device |
US20180014102A1 (en) * | 2016-07-06 | 2018-01-11 | Bragi GmbH | Variable Positioning of Distributed Body Sensors with Single or Dual Wireless Earpiece System and Method |
CN106597424A (en) * | 2016-12-22 | 2017-04-26 | 惠州Tcl移动通信有限公司 | Distance measuring method and distance measuring system based on dual cameras, and mobile terminal |
US20180192220A1 (en) * | 2016-12-29 | 2018-07-05 | Realtek Semiconductor Corp. | Headphone amplifier circuit for headphone driver, operation method thereof, and usb interfaced headphone device using the same |
CN106878915A (en) * | 2017-02-17 | 2017-06-20 | 广东欧珀移动通信有限公司 | The control method of playback equipment, device and playback equipment and mobile terminal |
CN106775571A (en) * | 2017-03-21 | 2017-05-31 | 北京小米移动软件有限公司 | Audio frequency playing method and device |
CN107707282A (en) * | 2017-09-08 | 2018-02-16 | 深圳市盛路物联通讯技术有限公司 | A kind of wave beam adjustment method and wearable device based on wearable device |
CN107613387A (en) * | 2017-10-12 | 2018-01-19 | 广东小天才科技有限公司 | Method and device for controlling data playing, playing equipment and storage medium |
Non-Patent Citations (1)
Title |
---|
杨宇: "面向可穿戴计算机音频的环境感知系统的研究", 《中国优秀硕士学位论文全文数据库》 * |
Cited By (27)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020063017A1 (en) * | 2018-09-30 | 2020-04-02 | Oppo广东移动通信有限公司 | Audio transmission method and device, electronic apparatus, and storage medium |
CN111752372A (en) * | 2019-03-28 | 2020-10-09 | 深圳市冠旭电子股份有限公司 | Action recognition method and device and computer readable storage medium |
CN111770412B (en) * | 2019-04-01 | 2022-04-12 | 炬芯科技股份有限公司 | Wireless earphone control method, wireless earphone and control system thereof |
CN111770412A (en) * | 2019-04-01 | 2020-10-13 | 炬芯科技股份有限公司 | Wireless earphone control method, wireless earphone and control system thereof |
CN111770403A (en) * | 2019-04-01 | 2020-10-13 | 炬芯科技股份有限公司 | Wireless earphone control method, wireless earphone and control system thereof |
CN112752198A (en) * | 2019-10-31 | 2021-05-04 | 深圳市冠旭电子股份有限公司 | Method, device, terminal and storage medium for controlling earphone to play stereo |
CN110830970A (en) * | 2019-11-19 | 2020-02-21 | Oppo广东移动通信有限公司 | Audio transmission method, device, equipment and storage medium between Bluetooth equipment |
CN110830970B (en) * | 2019-11-19 | 2023-05-30 | Oppo广东移动通信有限公司 | Audio transmission method, device, equipment and storage medium between Bluetooth equipment |
CN113475094A (en) * | 2020-01-29 | 2021-10-01 | 谷歌有限责任公司 | Different head detection in headphones |
CN113475094B (en) * | 2020-01-29 | 2024-04-19 | 谷歌有限责任公司 | Different head detection in headphones |
CN111372166A (en) * | 2020-02-21 | 2020-07-03 | 华为技术有限公司 | Intelligent left and right ear identification method and earphone device |
CN111372166B (en) * | 2020-02-21 | 2021-10-01 | 华为技术有限公司 | Intelligent left and right ear identification method and related equipment |
WO2021174843A1 (en) * | 2020-03-05 | 2021-09-10 | 珠海市杰理科技股份有限公司 | Wireless control method, device, ble apparatus, chip, and storage medium |
CN111615036B (en) * | 2020-04-17 | 2021-07-23 | 歌尔科技有限公司 | Data processing method and device and electronic equipment |
CN111615036A (en) * | 2020-04-17 | 2020-09-01 | 歌尔科技有限公司 | Data processing method and device and electronic equipment |
WO2022000317A1 (en) * | 2020-06-30 | 2022-01-06 | 深圳传音控股股份有限公司 | Control method, device and readable storage medium |
CN111698607A (en) * | 2020-07-03 | 2020-09-22 | 歌尔科技有限公司 | TWS earphone audio output control method, apparatus, device and medium |
CN111681404B (en) * | 2020-08-11 | 2021-01-22 | 江西斐耳科技有限公司 | Communication equipment, earphone and communication equipment main part based on BLE wireless data transmission |
CN111681404A (en) * | 2020-08-11 | 2020-09-18 | 江西斐耳科技有限公司 | Communication equipment, earphone and communication equipment main part based on BLE wireless data transmission |
CN112040361A (en) * | 2020-09-03 | 2020-12-04 | Oppo广东移动通信有限公司 | Earphone control method, earphone control device and storage medium |
CN112312260A (en) * | 2020-10-30 | 2021-02-02 | 维沃移动通信有限公司 | Wireless earphone and wearing detection method thereof |
CN113207052A (en) * | 2021-01-28 | 2021-08-03 | 珠海市杰理科技股份有限公司 | Communication connection method and device, Bluetooth headset, communication system and storage medium |
WO2022258016A1 (en) * | 2021-06-10 | 2022-12-15 | 华为技术有限公司 | Data stream transmission method and device, communication apparatus, and storage medium |
WO2023029143A1 (en) * | 2021-08-31 | 2023-03-09 | 歌尔股份有限公司 | Headphone connection device switching method and system, and related components |
CN114745637A (en) * | 2022-04-14 | 2022-07-12 | 刘道正 | Sound effect realization method of wireless audio equipment |
CN116033304A (en) * | 2022-08-31 | 2023-04-28 | 荣耀终端有限公司 | Audio output method, electronic equipment and readable storage medium |
CN116033304B (en) * | 2022-08-31 | 2023-09-29 | 荣耀终端有限公司 | Audio output method, electronic equipment and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
WO2020063017A1 (en) | 2020-04-02 |
CN109379653B (en) | 2020-12-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109379653A (en) | Audio frequency transmission method, device, electronic equipment and storage medium | |
CN109246672B (en) | Data transmission method, device and system and Bluetooth headset | |
CN102318373B (en) | Decoding device, coding and decoding device, and decoding method | |
CN109445740A (en) | Audio frequency playing method, device, electronic equipment and storage medium | |
CN109104684B (en) | Microphone hole blockage detection method and related product | |
CN109151211A (en) | Method of speech processing, device and electronic equipment | |
CN109462787A (en) | A kind of true wireless stereo Bluetooth earphone and its anti-lost method | |
CN109257642A (en) | Video resource playback method, device, electronic equipment and storage medium | |
CN109413555A (en) | Audio-frequency inputting method, device, earphone and electronic equipment | |
CN109413526A (en) | Headset control method, device, electronic equipment and storage medium | |
CN111526440B (en) | Method, device and medium for switching master ear and slave ear of TWS earphone in call scene | |
CN109151861A (en) | Encoding rate method of adjustment, device and electronic equipment | |
CN109358832A (en) | Audio frequency transmission method, device, electronic equipment and storage medium | |
CN110147557A (en) | The charging box and storage medium of a kind of interpretation method, system and wireless headset | |
CN109379490A (en) | Audio frequency playing method, device, electronic equipment and computer-readable medium | |
CN111640431A (en) | Equipment response processing method and device | |
CN107734428A (en) | A kind of 3D audio-frequence player devices | |
CN110267144A (en) | Information processing method and device and storage medium | |
CN109271131A (en) | Headset control method, device, electronic equipment and storage medium | |
US20240214765A1 (en) | Signal processing method and apparatus for audio rendering, and electronic device | |
CN109121042B (en) | Voice data processing method and related product | |
CN109413556A (en) | Equipment localization method, device, Headphone device and electronic equipment | |
CN109298846A (en) | Audio frequency transmission method, device, electronic equipment and storage medium | |
CN113038317A (en) | Earphone control method and device, Bluetooth earphone and storage medium | |
CN114667744B (en) | Real-time communication method, device and system |
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 |