CN109445740A - Audio frequency playing method, device, electronic equipment and storage medium - Google Patents
Audio frequency playing method, device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN109445740A CN109445740A CN201811163030.9A CN201811163030A CN109445740A CN 109445740 A CN109445740 A CN 109445740A CN 201811163030 A CN201811163030 A CN 201811163030A CN 109445740 A CN109445740 A CN 109445740A
- Authority
- CN
- China
- Prior art keywords
- application program
- bluetooth headset
- audio data
- application
- electronic equipment
- 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/16—Sound input; Sound output
- G06F3/165—Management of the audio stream, e.g. setting of volume, audio stream path
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/16—Sound input; Sound output
- G06F3/162—Interface to dedicated audio devices, e.g. audio drivers, interface to CODECs
-
- 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
- H04R1/1041—Mechanical or electronic switches, or control elements
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Abstract
This application discloses a kind of audio frequency playing method, device, electronic equipment and storage mediums, and this method is applied to electronic equipment, this method comprises: detecting the connection status between the electronic equipment and other equipment;When the electronic equipment is connect with the first bluetooth headset and the second bluetooth headset, the application program that audio data is currently exported in the electronic equipment is detected;When detecting there is currently two and more than two application programs export audio data, the audio data of the first application program output in described two and more than two application programs is transmitted to first bluetooth headset to play out, the audio data of the second application program output in described two and more than two application programs is transmitted to second bluetooth headset and is played out.This method may be implemented different audio datas and play out respectively in different earphones, promote user experience.
Description
Technical field
This application involves technical field of electronic equipment, set more particularly, to a kind of audio frequency playing method, device, electronics
Standby and storage medium.
Background technique
Electronic equipment, such as computer, mobile phone etc. have become most common consumer electronic product in people's daily life
One of.With the development of audio-frequence player device, it can be listened to music frequently by the audio-frequence player device being connect with electronic equipment, see view
Frequency or object for appreciation game etc..But when playing the audio data of two and more than two application program in electronic equipment at the same time, usually
It is only capable of playing the audio data of an application program, causes user experience bad.
Summary of the invention
In view of the above problems, present applicant proposes a kind of audio frequency playing method, device, electronic equipments and computer-readable
Storage medium can be realized different audio datas and play out respectively in different earphones, promote user experience.
In a first aspect, the embodiment of the present application provides a kind of audio frequency playing method, it is applied to electronic equipment, the method packet
It includes: detecting the connection status between the electronic equipment and other equipment;When the electronic equipment and the first bluetooth headset and
When second bluetooth headset connects, the application program that audio data is currently exported in the electronic equipment is detected;It is current when detecting
There are two and when more than two application program output audio datas, by first in described two and more than two application programs
The audio data of application program output is transmitted to first bluetooth headset and plays out, by described two and more than two applications
The audio data of the second application program output in program is transmitted to second bluetooth headset and plays out.
Second aspect, the embodiment of the present application provide a kind of audio playing apparatus, are applied to electronic equipment, described device packet
It includes: connecting detection module, using detection module and playing control module, wherein the connecting detection module is for detecting institute
State the connection status between electronic equipment and other equipment;The application detection module is used for when the electronic equipment and the first indigo plant
When tooth earphone and the second bluetooth headset connect, the application program that audio data is currently exported in the electronic equipment is detected;Institute
Playing control module is stated to be used for when detecting there is currently two and more than two application programs export audio data, it will be described
The audio data of two and the first application program output in more than two application program be transmitted to first bluetooth headset into
Row plays, and the audio data of the second application program output in described two and more than two application programs is transmitted to described the
Two bluetooth headsets play out.
The third aspect, the embodiment of the present application provide a kind of electronic equipment, comprising: one or more processors;Memory;
One or more application program, wherein one or more of application programs be stored in the memory and be configured as by
One or more of processors execute, and one or more of programs are configured to carry out the audio that above-mentioned first aspect provides
Playback 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 the audio for executing above-mentioned first aspect and providing by processor
Playback method.
Compared with the existing technology, scheme provided by the present application passes through the connection between detection electronic equipment and other equipment
State detects in electronic equipment when electronic equipment is connect with the first bluetooth headset and the second bluetooth headset and currently exports sound
The application program of frequency evidence, when detecting there is currently two and more than two application programs export audio data, by two
And the audio data of the first application program output in more than two application programs is transmitted to the first bluetooth headset and plays out, it will
The audio data of two and the second application program output in more than two application program is transmitted to the second bluetooth headset and is broadcast
It puts, to realize that the audio data of two application programs output is played out respectively at different earphones, reaches two using journey
The effect played while the audio data of sequence output, promotes user 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 the audio frequency playing method flow chart according to the application one embodiment.
Fig. 2 shows the audio frequency playing method flow charts according to the application another embodiment.
Fig. 3 shows the audio frequency playing method flow chart according to another embodiment of the application.
Fig. 4 shows a kind of block diagram of the audio playing apparatus according to the application one embodiment.
Fig. 5 shows the block diagram of playing control module in the audio playing apparatus according to the application one embodiment.
Fig. 6 shows another block diagram of the audio playing apparatus according to the application one embodiment.
Fig. 7 is the embodiment of the present application for executing the electronic equipment of the audio frequency playing method according to the embodiment of the present application
Block diagram.
Fig. 8 is the embodiment of the present application for saving or carrying the power of hearing frequency broadcasting 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.
Currently, most electronic equipment, such as computer, mobile phone, music player devices etc. are, it can be achieved that broadcast audio data
It puts.With the further development and the increase in demand of user of science and technology, electronic equipment can be with external audio frequency playback equipment
Connection, to realize that electronic equipment passes through external audio-frequence player device playing audio-fequency data.Wherein, audio-frequence player device can be with
Including earphone, speaker and mobile unit etc..Above-mentioned audio-frequence player device can receive the audio data of electronic equipment, and
Audio data is played out.Wherein, electronic equipment can be connected by wired mode or wireless mode and audio-frequence player device
It connects.
In the practical audio data for utilizing audio-frequence player device to play electronic equipment of user, nothing is commonly used in user
The earphone of line communication mode realizes audio-frequence player device playing audio-fequency data, for example, utilizing Wireless Fidelity (Wireless
Fidelity, WiFi) communication earphone, or carry out audio data using the earphone of bluetooth (Bluetooth, BT) communication and broadcast
It puts.
In most cases, electronic equipment can be connect by bluetooth with audio-frequence player device, and pass through bluetooth for sound
Frequency evidence is transmitted to audio-frequence player device and plays out.
Further, current electronic equipment generally has bluetooth (Bluetooth, BT) module, wherein bluetooth module can
To refer to the chip basic circuit set of integrated Bluetooth function, it to be used for wireless network communication.Further, electronic equipment can lead to
It crosses bluetooth module and bluetooth playback equipment (such as bluetooth headset, Baffle Box of Bluetooth, blue tooth vehicular equipment) carries out bluetooth connection.As
A kind of mode, electronic equipment can be based on Bluetooth communication protocol with bluetooth headset respectively and establish communication link, and electronic equipment can be with
The audio data played will be needed to be transmitted to bluetooth headset to play out.
But there are two when application program output audio data in electronic equipment, electronic equipment usually only applies two
The audio data of the higher application program of priority is sent to bluetooth headset and plays out in program, and user is made to be only capable of hearing one
The audio content of application program output.Certainly, the audio data that also will appear two and more than two application programs can be broadcast
When putting, but the audio data that two application programs export all being played out, electronic equipment can be by the sound of two application programs
It is sent to bluetooth headset after frequency data mixing to play out, the sound result of broadcast for causing user to hear is poor, and user experience is low.
In view of the above-mentioned problems, inventor plays by studying and proposing audio provided by the embodiments of the present application for a long time
Method, apparatus, electronic equipment and computer-readable storage medium pass through the company between detection electronic equipment and other equipment
State is connect, when electronic equipment is connect with the first bluetooth headset and the second bluetooth headset, detects and is currently exported in electronic equipment
The application program of audio data, when detecting there is currently two and more than two application programs export audio data, by it
In the audio data of application program output be transmitted to the first bluetooth headset and play out, one of application program output
Audio data is transmitted to the second bluetooth headset and plays out, to realize the audio data of two application programs output respectively at not
Same earphone plays out, and achievees the effect that play while the audio data of two application programs output, promotes user experience.
It describes in detail below to the audio frequency playing method of the embodiment of the present application.
Referring to Fig. 1, the embodiment of the present application provides a kind of audio frequency playing method, electronic equipment can be applied to, the audio
Playback method may include:
Step S110: the connection status between the electronic equipment and other equipment is detected.
Most users are attached using electronic equipment and bluetooth headset, to realize the broadcasting of audio data.For needing
Higher user is asked, by two earphones of electronic equipment and true wireless stereo headset by bluetooth connection, electronic equipment will
Two earphones that audio data is transmitted to true wireless stereo headset play out.
Real bluetooth L channel may be implemented in above-mentioned true wireless stereo headset, right channel wirelessly separates use, i.e.,
Two earphones of true wireless stereo headset all do not need wired connection.Audio is being carried out using true wireless stereo headset
When the broadcasting of data, electronic equipment can connect two earphones of wireless stereo headset, and electronic equipment is based respectively on indigo plant
Tooth communication protocol establishes the voice-grade channel for being used for transmission the audio data of left and right acoustic channels with two earphones, i.e., each earphone corresponding one
The voice-grade channel of the audio data of a sound channel.To realize the played in stereo of left and right acoustic channels separation, make to listen song, call, wearing
All it is improved.
Currently, when two application programs of electronic equipment carry out the output of audio data, usually by one of application
The audio data of program output is transmitted to bluetooth headset broadcasting, and user is caused to be only capable of hearing that an application program of broadcasting is corresponding
Sound or electronic equipment are transmitted to bluetooth headset after mixing the audio data that two application programs export and play, but can lead
The sound effect that family is heard of applying is poor.And since two earphones of true wireless stereo headset can be built with electronic equipment
Vertical communication link, the transmission of audio data may be implemented in the communication link of foundation, therefore can use true wireless stereo
Realize the broadcasting of the audio data exported for two application programs.
In the embodiment of the present application, the connection status between electronic equipment and other equipment can be detected, so as to
It is subsequent according to the connection status communicated to connect between electronic equipment and other equipment, to electronic equipment and true wireless stereo ear
When two earphones of machine pass through bluetooth connection, at the case where electronic equipment exports audio data there are two application programs
Reason.
Wherein, the connection status between electronic equipment and other equipment includes that there are other equipment and electronic equipment communication link
Connect communication connection mode between other equipment, communicated to connect not with other equipment communication connection, with other equipment with
And facility information for the equipment being connect with electronic equipment etc..When the electronic equipment is in connected status, which can
To be in mobile network's connection status, such as: when communicating to connect there are other equipment and electronic equipment, connection type be can be
WiFi (WIreless-Fidelity, Wireless Fidelity) connection, bluetooth connection, MiFi (Mobile Wifi, mobile router or shifting
Dynamic hot spot) connection etc..In the embodiment of the present application, the connection shape of the communication connection between specific electronic equipment and other equipment
State can be not as restriction.
Step S120: when the electronic equipment is connect with the first bluetooth headset and the second bluetooth headset, described in detection
The application program of audio data is currently exported in electronic equipment.
In the embodiment of the present application, electronic equipment can be with the first bluetooth headset of true wireless stereo headset and
Two bluetooth headsets are attached by bluetooth.Wherein, the first bluetooth headset can be the ear for playing left channel audio data
Machine, the second bluetooth headset can be the earphone for playing right audio channel data, it is of course also possible to be that the first bluetooth headset is
For playing the earphone of right audio channel data, the second bluetooth headset is the earphone for playing left channel audio data.
Therefore, after electronic equipment and above-mentioned first bluetooth headset and the second bluetooth headset pass through bluetooth connection, step
S110 can detecte the case where connecting there are electronic equipment with the first bluetooth headset and the second bluetooth headset.
As a kind of mode, the Bluetooth function of electronic equipment and other equipment, and the electronics are detected in step S110
When the other equipment successful matching of equipment and unlatching Bluetooth function, then it can determine that there are other equipment and electronic equipment to pass through
Bluetooth connection.
When detecting the presence of other equipment and electronic equipment passes through bluetooth connection, can also obtain and electronic equipment bluetooth
The facility information of the equipment of communication connection, to determine whether with the equipment of electronic equipment bluetooth connection be true wireless stereo
The first bluetooth headset and the second bluetooth headset of earphone.
Case-based Reasoning can be passed through in the electronic equipment based on android (Android) operating system as a kind of mode
Change the obtained return value of BluetoothClass.Device class to determine the currently device type by bluetooth connection.If returning
The value returned is AUDIO_VIDEO_CAMCORDER, then is characterized as image capture device;If the value returned is AUDIO_VIDEO_
CAR_AUDIO is then characterized as mobile unit;If the value returned is AUDIO_VIDEO_HIFI_AUDIO, it is characterized as audio and broadcasts
Equipment or video playback apparatus are put, for example, bluetooth headset;If the value returned is AUDIO_VIDEO_MICROPHONE, table
It is levied as microphone.
Further, when detecting that electronic equipment and bluetooth headset pass through bluetooth connection, available and electronic equipment
The device address of the bluetooth headset of connection or device id etc. are with the determining bluetooth headset for passing through bluetooth connection with electronic equipment
No is above-mentioned first bluetooth headset and the second bluetooth headset.
It is of course also possible to be sent by the broadcast in monitoring system according to connection bluetooth headset or when disconnecting bluetooth headset
Broadcast, determine whether electronic equipment connect with the first bluetooth headset and the second bluetooth headset.Specific detection electronic equipment
The mode connecting with the first bluetooth headset and the second bluetooth headset is not intended as limiting in the embodiment of the present application.
It is thus possible to detect that electronic equipment and above-mentioned first bluetooth headset and the second bluetooth headset pass through bluetooth connection
The case where.It, then can be in electronic equipment when electronic equipment is connect with above-mentioned first bluetooth headset and the second bluetooth headset
The application program of current output audio data is detected, to there are two application programs to export audio data in electronic equipment
The case where handled.
In the embodiment of the present application, as a kind of mode, it can detecte the current relevant interface for calling electronic apparatus system
And the application program of playing audio-fequency data, so as to obtain the application program that electronic equipment currently exports audio data.
Step S130:, will be described when detecting there is currently two and more than two application programs export audio data
The audio data of two and the first application program output in more than two application program be transmitted to first bluetooth headset into
Row plays, and the audio data of the second application program output in described two and more than two application programs is transmitted to described the
Two bluetooth headsets play out.
In the embodiment of the present application, when the knot for the application program for currently exporting audio data in the electronic equipment according to detection
In fruit, determine that electronic equipment there is currently two and when more than two application program output audio datas, then can use true
Real wireless stereo headset plays out the audio data of two application programs output in above-mentioned two and two or more.
Further, detecting electronic equipment there is currently two and more than two application program output audio data
When, it can be by two and the audio data of the first application program of more than two application program output is transmitted to the first bluetooth headset
It plays out, by two and the audio data of the second application program output of more than two application programs is transmitted to the second bluetooth ear
Machine plays out.
It is understood that the audio that available two application programs of the audio management module of electronic equipment export respectively
Data are established after being encoded the audio data that the first application program exports by electronic equipment and the first bluetooth headset
Communication link, be transmitted to the first bluetooth headset so that the first bluetooth headset receive coding after audio data after solved
It code and plays, realizes the broadcasting of audio data that the first bluetooth headset exports the first application program.And it can be by second
The communication link that the audio data of application program output is established after being encoded by electronic equipment and the second bluetooth headset, transmission
It is realized to the second bluetooth headset so that the second bluetooth headset is decoded and plays after receiving the audio data after encoding
The broadcasting for the audio data that second bluetooth headset exports the second application program.That is, will not be defeated to two application programs
Stereo data out is split as the corresponding audio data of L channel and the corresponding audio data of right channel, and two are applied
It is transferred to the first bluetooth headset after the corresponding audio data synthesis of the L channel of program, the right channel of two application programs is corresponding
Audio data synthesis after be transmitted to the second bluetooth headset.But the stereo audio data of the first application program output is transmitted
It is played to the first bluetooth headset, the stereo audio data that the second application program exports is transmitted to the second bluetooth headset and is broadcast
It puts.
It is played out it should be understood that the audio data of above-mentioned first application program is transmitted to the first bluetooth headset, the
The audio data of two application programs is transmitted to the second bluetooth headset and plays out, and is only to indicate two and more than two application programs
In the audio data of one of application program output be transmitted to one of earphone in true wireless stereo headset and broadcast
It puts, the audio data of two and one of application program output in more than two application program is transmitted to another earphone
It plays.It is thus possible to realize that two application programs of electronic equipment output audio data can be played, and two applications
The audio data of program output is played out by different bluetooth headsets respectively, is distinguished convenient for user.
Audio frequency playing method provided by the embodiments of the present application, when electronic equipment and the first bluetooth headset and the second bluetooth ear
When machine connects, the application program that audio data is currently exported in electronic equipment is detected, there is currently two when detecting electronic equipment
When a and more than two application program output audio datas, the first application program by two and in more than two application programs is defeated
Audio data out is transmitted to the first bluetooth headset and plays out, and second by two and in more than two application programs applies journey
The audio data of sequence output is transmitted to the second bluetooth headset and plays out, and realizes the same of the audio data of two application programs output
When play, and two application programs output audio data played out respectively by different bluetooth headsets, be convenient for user area
Point, promote the audio experience of user.
Referring to Fig. 2, the application can be applied to electronic equipment another embodiment provides for a kind of audio frequency playing method,
The audio frequency playing method may include:
Step S210: the connection status between the electronic equipment and other equipment is detected.
Step S220: when the electronic equipment is connect with the first bluetooth headset and the second bluetooth headset, described in detection
The application program of audio data is currently exported in electronic equipment.
In the embodiment of the present application, the content of step S210 and step S220 can refering to the content of above-described embodiment,
This is no longer going to repeat them.
Step S230: when detecting the presence of two and more than two application program output audio datas, described two are obtained
The application type of a and more than two application programs.
In the embodiment of the present application, when detecting electronic equipment there are two and more than two application program output audio number
According to when, the application type of available two and more than two application program, to determine whether two different application programs
The audio data of output is transmitted separately to the first bluetooth headset and the second bluetooth headset plays out.
It further, can be according to preparatory after detecting application program that electronic equipment currently exports audio data
The classification chart of the application program of storage obtains the classification of the application program of current output audio data.Wherein, which can be with
It is that electronic equipment in advance classifies to all application programs, and sorted each application program is corresponded in different types
Under stored, application program and each application program of storage are carried out one by one in the application type for determining application program
Match, to obtain the type of the application program.
Step S240: judge in described two and more than two application programs with the presence or absence of the application journey of two setting types
Sequence.
In the embodiment of the present application, type can be set by two when being setting type there are two application programs
The audio data of application program output is transmitted separately to the first bluetooth headset and the second bluetooth headset plays out, therefore can be with
Whether the application type for judging two application programs of above-mentioned output audio data is setting type.
Further, above-mentioned setting type may include: video playing type, music type, broadcast type, voice
Chat-type, Video chat type or social application type.Certainly, specifically setting type can be in the embodiment of the present application
In not as restriction, the specific type that sets can be set according to the demand of user.
It is understood that when the application type of two application programs of above-mentioned current output audio data is above-mentioned video
Type, music type, broadcast type, voice-enabled chat type, Video chat type or social application type are played, then
The audio data that user exports application program is required to listen to, and needs to set two the application program of type
The audio data of output is distinguished, and to there is preferable appreciation effect, and clearly can obtain letter from the audio data of broadcasting
Breath.
Step S250: when there are the application program that two set type, by the application program of described two setting types
In the audio data of the first application program output be transmitted to first bluetooth headset and play out, by described two setting classes
The audio data of the second application program output in the application program of type is transmitted to second bluetooth headset and plays out.
In the embodiment of the present application, type is set when there are two in the application program of above-mentioned current output audio data
When application program, the audio management module of the electronic equipment audio data that then available two application programs export.By two
The audio data for setting the first application program output in the application program of type, passes through electronic equipment and the first bluetooth headset
Communication link is transmitted to first bluetooth headset, the audio data for exporting the first bluetooth headset to the first application program into
Row plays, and by the audio data of the second application program output in the application program of two setting types, is set by electronics
The standby communication link with the second bluetooth headset is transmitted to second bluetooth headset, makes the second bluetooth headset to second using journey
The audio data of sequence output plays out.
Step S260: when the audio data for detecting first application program, which exports, to interrupt, described second is applied
Audio data simultaneous transmission to first bluetooth headset and second bluetooth headset of program output plays out.
It in the embodiment of the present application, can also be by the audio data of above-mentioned first application program and the second application program
It is transmitted to the first bluetooth headset and during the second bluetooth headset plays out, real-time detection electronic equipment currently exports sound
The application program of frequency evidence.Specific real-time electronic equipment currently exports the realization of the application program of audio data, can be with detection
The mode that electronic equipment currently exports the application program of audio data is identical, and details are not described herein.
It, then can be by second when the first application program for detecting above-mentioned output audio data, which exports audio data, interrupts
Audio data simultaneous transmission to the first bluetooth headset and the second bluetooth headset of application program output plays out.It is understood that
, interrupted when the audio data of the first application program exports, and do not there are other applications to start to export sound in the above process
Frequency evidence, then currently the application program of output audio data only has the second application program output audio data, therefore can be by the
The stereo audio data of two application programs output splits into left channel audio signal and right channel audio signal, and to fractionation
Signal handled after left channel audio data are transmitted to the first bluetooth headset, to input the left ear of user, by right channel sound
Frequency is according to the second bluetooth headset is transmitted to, to input user's auris dextra, so as to promote audio result of broadcast and user experience.
Step S270: when the audio data for detecting second application program, which exports, to interrupt, described first is applied
Audio data simultaneous transmission to first bluetooth headset and second bluetooth headset of program output plays out.
In the embodiment of the present application, when the second application program for detecting above-mentioned output audio data exports in audio data
It, then can be by the audio data simultaneous transmission of the first application program output to the first bluetooth headset and the second bluetooth headset when disconnected
It plays out.It is understood that interrupting when the audio data of the second application program exports, and there are not other to answer in the above process
Started to export audio data with program, then currently the application program of output audio data only has the first application program output audio number
According to, therefore the stereo audio data that the first application program exports can be split into left channel audio signal and right audio channel
Signal, and left channel audio data are transmitted to the first bluetooth headset after handling the signal of fractionation, to input user
Right audio channel data are transmitted to the second bluetooth headset by left ear, to input user's auris dextra, play effect so as to promote audio
Fruit and user experience.
Audio frequency playing method provided by the embodiments of the present application, when electronic equipment and the first bluetooth headset and the second bluetooth ear
When machine connects, the application program that audio data is currently exported in electronic equipment is detected, there is currently two when detecting electronic equipment
When a and more than two application program output audio datas, the application type of two and more than two application programs are obtained, when two
There are in the application program for when application program that two set type, two being set type in a and more than two application programs
The audio data of the first application program output be transmitted to the first bluetooth headset and play out, two are set the application journey of type
The audio data of the second application program output in sequence is transmitted to the second bluetooth headset and plays out, and realizes that two application types are
It is played while the audio data of the application program output of setting type, and two application types are the application journey for setting type
The audio data of sequence output is played out by different bluetooth headsets respectively, is distinguished convenient for user, is promoted the audio experience of user.
Also, the audio data of another application program is passed simultaneously when an application program interrupt output audio data wherein
It transports to the first bluetooth headset and the second bluetooth headset plays out, audio result of broadcast and user experience can be promoted.
Referring to Fig. 3, another embodiment of the application provides a kind of audio frequency playing method, electronic equipment can be applied to,
The audio frequency playing method may include:
Step S310: the connection status between the electronic equipment and other equipment is detected.
Step S320: when the electronic equipment is connect with the first bluetooth headset and the second bluetooth headset, described in detection
The application program of audio data is currently exported in electronic equipment.
Step S330: when detecting the presence of two and more than two application program output audio datas, described two are obtained
The application type of a application program.
Step S340: judge in described two and more than two application programs with the presence or absence of the application journey of two setting types
Sequence.
In the embodiment of the present application, the content of step S310- step S340 can be refering to the content of above-described embodiment, herein
No longer repeat one by one.
Step S350: when there are the application program that two set type, the application journey based on described two setting types
The application type of the first application program in sequence and the application type of the second application program, determine first bluetooth headset
The setting difference of the broadcast sound volume of broadcast sound volume and second bluetooth headset.
In the embodiment of the present application, when electronic equipment currently exports the application program of two setting types of audio data
When, the audio data that the first application program exports is transmitted to the first bluetooth headset and is played out, the second application program is exported
Audio data be transmitted to before the second bluetooth headset plays out, can also broadcast sound volume and to the first bluetooth headset
The broadcast sound volume of two bluetooth headsets is adjusted, so that the broadcasting sound of the broadcast sound volume of the first bluetooth headset and the second bluetooth headset
The difference of amount is setting difference.
In the embodiment of the present application, the application of the application program of setting type there are two being stored in advance in electronic equipment
The corresponding relationship of the broadcast sound volume of type bluetooth headset corresponding with two application programs.Wherein, include in above-mentioned corresponding relationship
The application type of first application program, the application type of the second application program and corresponding first bluetooth of the first application program
Setting difference between the broadcast sound volume of earphone broadcast sound volume corresponding with the second application program.
It is broadcast it is understood that being transmitted to the first bluetooth headset in the audio data for exporting the first application program
It puts, when the audio data that the second bluetooth headset exports is transmitted to the second bluetooth headset and is played out, it is blue that user can pass through first
Tooth earphone and the second bluetooth headset hear the broadcasting sound of different audio datas.But the audio number of two application programs output
According to importance may be different, user may need more to listen to carefully the audio data of the higher application program output of importance
Sound is played, such as when the application program of the application program of type of play and broadcast playback type exports audio data simultaneously,
The broadcasting sound for the audio data that user may export with greater need for the application program for listening to type of play carefully.It therefore, can basis
The division of the importance of application program, the broadcast sound volume of corresponding first bluetooth headset of the first application program of setting and the second application
The difference of the broadcast sound volume of corresponding second bluetooth headset of program, so that the first application program of subsequent first bluetooth headset broadcasting is defeated
Audio data out, when the second bluetooth headset plays the audio data of the second application program output, one of application program pair
The broadcast sound volume of relatively another bluetooth headset of the broadcast sound volume for the bluetooth headset answered is high, enables users to distinguish the sound played clearly.
Step S360: the broadcast sound volume and/or described second of first bluetooth headset is adjusted according to the setting difference
The broadcast sound volume of bluetooth headset, the broadcast sound volume of the broadcast sound volume of the first bluetooth headset after adjusting and second bluetooth headset
Difference be equal to the setting difference.
The broadcast sound volume and the second bluetooth headset for obtaining above-mentioned first bluetooth headset broadcast sound volume setting difference it
Afterwards, then the broadcast sound volume of the first bluetooth headset and/or the second bluetooth headset can be adjusted according to the setting difference, so that first is blue
The difference of the broadcast sound volume of the broadcast sound volume of tooth earphone and the second bluetooth headset is equal to above-mentioned setting difference.
In the embodiment of the present application, the broadcast sound volume and/or second of the first bluetooth headset is adjusted according to above-mentioned setting difference
The broadcast sound volume of bluetooth headset may include:
The priority relationship of application type according to the pre-stored data obtains first application program and described second answers
With the application program of highest priority in program;When the application program of the highest priority is the first application program, according to
The broadcast sound volume of the setting difference and first bluetooth headset controls second bluetooth headset and adjusts broadcast sound volume,
The difference of broadcast sound volume after the adjusting of the broadcast sound volume of first bluetooth headset and second bluetooth headset is equal to described
Set difference;When the application program of the highest priority is the second application program, according to the setting difference and described
The broadcast sound volume of second bluetooth headset controls first bluetooth headset and adjusts broadcast sound volume, the tune of first bluetooth headset
The difference of the broadcast sound volume of broadcast sound volume and second bluetooth headset after section is equal to the setting difference.
It is understood that in the broadcasting for adjusting the first bluetooth headset and the second bluetooth headset according to above-mentioned setting difference
When volume, the broadcast sound volume of the corresponding bluetooth headset of the low application program of adjustable priority makes the application journey that priority is high
The broadcast sound volume of the corresponding bluetooth headset of sequence keeps inconvenient, allows a user to hear the application program that the priority of original sound volume is high
The sound of the audio data of output promotes user experience.
In the embodiment of the present application, the priority relationship of the application type of application program is stored in electronic equipment.It can be with
According to the application type of the first application program of above-mentioned acquisition and the application type of the second application program, determine priority compared with
High application program.When the application program of highest priority be the first application program when, then can according only to setting difference and
The broadcast sound volume of the broadcast sound volume of first bluetooth headset, the second bluetooth headset corresponding to the second application program is adjusted, with
The difference of the broadcast sound volume of the first bluetooth headset and the broadcast sound volume of the second bluetooth headset is set to be equal to above-mentioned difference.When priority most
High application program be the second application program when, then can according only to setting difference and the second bluetooth headset broadcast sound volume,
The broadcast sound volume of the first bluetooth headset corresponding to the first application program is adjusted, so that the broadcast sound volume of the first bluetooth headset
It is equal to above-mentioned difference with the difference of the broadcast sound volume of the second bluetooth headset.The corresponding bluetooth of application program to keep priority high
The broadcast sound volume that the broadcast sound volume of earphone keeps original is constant, and adjusts the corresponding bluetooth headset of the low application program of priority
Broadcast sound volume allows the broadcasting sound of two earphones to be easy to distinguish, and promotes audio result of broadcast and user experience.
Step S370: the audio data of the first application program output in the application program of described two setting types is passed
It transports to first bluetooth headset to play out, the second application program in the application program of described two setting types is exported
Audio data be transmitted to second bluetooth headset and play out.
It, then can be by the after the adjusting control for playing out volume to the first bluetooth headset and the second bluetooth headset
The audio data of one application program output is transmitted to the first bluetooth headset and plays out, the audio number that the second application program is exported
It is played out according to the second bluetooth headset is transmitted to.
In the embodiment of the present application, after currently exporting the application program of audio data in above-mentioned detection electronic equipment,
The audio frequency playing method can also include:
When detecting there is currently when an application program output audio data, the application of the output audio data is judged
Whether the application type of program is voice communication type;If it is voice communication type, presently described output audio number is judged
According to application program operation when whether there is two voice objects;When there are two voice objects, by described two voices pair
The corresponding audio data of the first voice object is transmitted to first bluetooth headset and plays out as in, by described two voices pair
The corresponding audio data of the second voice object is transmitted to second bluetooth headset and plays out as in.
In the embodiment of the present application, after currently exporting the application program of audio data in above-mentioned detection electronic equipment, such as
Fruit detects there is currently when an application program output audio data, then may determine that whether the application program is voice communication
Type.The voice communication type is the application type that can carry out voice communication or chat, for example, Video chat type, view
Frequency conference type or call type etc..That is, the application program of voice communication type is can be with two voices pair
Application program as carrying out voice.When the application program for judging voice communication type carries out voice with two voice objects,
The audio data of the first voice object in two voice objects can then be played out in the first bluetooth headset, by two voices
The audio data of the second voice object is played out in the second bluetooth headset in object.
As a kind of mode, when the application program of above-mentioned voice communication type carries out voice with two voice objects, receive
To audio data in can carry the mark of each voice object, the audio management module of electronic equipment can be according to voice
The audio data received is split as the audio data of the first voice object and the sound of the second voice object by the mark of object
Frequency evidence, then the audio data of the first voice object is played out in the first bluetooth headset, by the audio of the second voice object
Data are played out in the second bluetooth headset.Certainly, the audio data and the second voice pair of above-mentioned the first voice of acquisition object
The mode of the audio data of elephant in the embodiment of the present application can be not as restriction, for example, it is also possible to be torn open by sensual pleasure, tone etc.
Separate the audio data of the first voice object and the audio data of the second voice object.
In the embodiment of the present application, after currently exporting the application program of audio data in above-mentioned detection electronic equipment,
The audio frequency playing method also can also include:
When detecting there is currently when an application program output audio data, the application of the output audio data is judged
Whether the application type of program is target application type, and the target application type includes at least: video playing type;If it is
Target application type then judges to whether there is two video pictures when the application program operation of presently described output audio data;
When there are two video pictures, the corresponding audio data of the first video pictures in described two video pictures is transmitted to described
First bluetooth headset plays out, and the corresponding audio data of the second video pictures in described two video pictures is transmitted to described
Second bluetooth headset plays out.
It is understood that after currently exporting the application program of audio data in above-mentioned detection electronic equipment, if inspection
It measures there is currently when an application program output audio data, then may determine that whether the application program is target application class
Type.The target application type can include at least: video playing type.The application program of some video playing types there may be
The case where playing two video pictures simultaneously can determine the video pictures of above-mentioned application program broadcasting by detecting display interface
It whether is two.It, then can be by two when judging the application program of target application type while playing two video pictures
The audio data of the first video pictures is played out in the first bluetooth headset in video pictures, by the second view in two video pictures
The audio data of frequency picture is played out in the second bluetooth headset.
As a kind of mode, the application program of above-mentioned target type plays two video pictures, the audio received simultaneously
The mark of the audio data of each video pictures can be carried in data, the audio management module of electronic equipment can be according to view
The audio data received is split as the audio data and second of the first video pictures by the mark of the audio data of frequency picture
The audio data of video pictures, then the audio data of the first video pictures is played out in the first bluetooth headset, by the second view
The audio data of frequency picture is played out in the second bluetooth headset.Alternatively, be also possible to destination application plays two at the same time
When a video pictures, the corresponding data transmission channel of each video pictures is different, and the audio management module of electronic equipment can root
According to different data transmission channels, the audio data of the first video pictures and the audio data of the second video pictures are obtained.When
So, the mode of the audio data of the audio data and the second video pictures of above-mentioned the first video pictures of acquisition is implemented in the application
It can be not as restriction in example.
Audio frequency playing method provided by the embodiments of the present application, electronic equipment and the first bluetooth headset and the second bluetooth headset
When connection, the application program that audio data is currently exported in electronic equipment is detected, there is currently two when detecting electronic equipment
And when two or more application programs output audio data, the application type of two and more than two application programs are obtained, when two
And there are in the application program for when application program that two set type, two being set type in more than two application programs
The audio data of first application program output is transmitted to the first bluetooth headset and plays out, and two is set the application program of type
In the audio data of the second application program output be transmitted to the second bluetooth headset and play out, realize that two application types are to set
Determine to play while the audio data of the application program output of type, and two application types are the application program for setting type
The audio data of output is played out by different bluetooth headsets respectively, is distinguished convenient for user, is promoted the audio experience of user.And
And also the broadcast sound volume of the first bluetooth headset and the second bluetooth headset is adjusted according to application type, make the first application
The result of broadcast for the audio data that the audio data of program output is exported with the second application program more easily discriminates.In addition, also right
The case where carrying out voice with two voice objects simultaneously, carries out the audio data of each voice object using above-mentioned processing mode
Play, also to simultaneously play two video pictures the case where, the audio number of each video pictures is carried out using above-mentioned processing mode
According to broadcasting, enhance audio result of broadcast, promoted user experience.
Referring to Fig. 4, it illustrates a kind of structural block diagram of audio playing apparatus 400 provided by the embodiments of the present application, it should
Audio playing apparatus 400 is applied to electronic equipment, and the audio playing apparatus 400 includes: connecting detection module 410, using inspection
Survey module 420 and playing control module 430.Wherein, the connecting detection module 410 is for detecting the electronic equipment and its
Connection status between his equipment;The application detection module 420 be used for when the electronic equipment and the first bluetooth headset and
When second bluetooth headset connects, the application program that audio data is currently exported in the electronic equipment is detected;The broadcasting control
Module 430 is used for when detecting there is currently two and when more than two application program output audio datas, by described two and
The audio data of the first application program output in more than two application programs is transmitted to first bluetooth headset and plays out,
The audio data of the second application program output in described two and more than two application programs is transmitted to second bluetooth
Earphone plays out.
In the embodiment of the present application, Fig. 5 is referred to, playing control module 430 may include: type acquiring unit 431, class
Type judging unit 432 and broadcasting execution unit 433.Type acquiring unit 431 be used for when detect the presence of two and two with
When upper application program output audio data, the application type of described two and more than two application programs is obtained;Type judgement is single
Member 432 is for judging in described two and more than two application programs with the presence or absence of the application program of two setting types;It plays
Execution unit 433 is used for when there are the application program of described two setting types, by the application journey of described two setting types
The audio data of the first application program output in sequence is transmitted to first bluetooth headset and plays out, by described two settings
The audio data of the second application program output in the application program of type is transmitted to second bluetooth headset and plays out.
Further, refer to Fig. 6, the audio playing apparatus 400 can also include: volume difference obtain module 440 with
And volume adjusting module 450.Volume difference obtain module 440 be used for it is described will it is described two setting types application programs in
The audio data of the first application program output be transmitted to first bluetooth headset and play out, by described two setting types
Application program in the audio data of the second application program output be transmitted to before second bluetooth headset plays out, base
The application type of the first application program in the application program of described two setting types and the application of the second application program
Type determines the setting difference of the broadcast sound volume of first bluetooth headset and the broadcast sound volume of second bluetooth headset;Sound
Amount adjustment module 450 is used to adjust the broadcast sound volume and/or described second of first bluetooth headset according to the setting difference
The broadcast sound volume of bluetooth headset, the broadcast sound volume of the broadcast sound volume of the first bluetooth headset after adjusting and second bluetooth headset
Difference be equal to the setting difference.
In the embodiment of the present application, volume adjusting module 450 can be specifically used for: application type according to the pre-stored data
Priority relationship obtains the application program of highest priority in first application program and second application program;When
When the application program of the highest priority is the first application program, according to the setting difference and first bluetooth headset
Broadcast sound volume, control second bluetooth headset and adjust broadcast sound volume, the broadcast sound volume of first bluetooth headset with it is described
The difference of broadcast sound volume after the adjusting of second bluetooth headset is equal to the setting difference;When the application journey of the highest priority
When sequence is the second application program, according to the setting difference and the broadcast sound volume of second bluetooth headset, described the is controlled
One bluetooth headset adjusts broadcast sound volume, the broadcast sound volume and second bluetooth headset after the adjusting of first bluetooth headset
The difference of broadcast sound volume is equal to the setting difference.
In the embodiment of the present application, Fig. 6 is referred to, which can also include: the first playing module
460.First playing module is used for: when detecting there is currently when an application program output audio data, judging the output
Whether the application type of the application program of audio data is voice communication type;If it is voice communication type, judgement is current
It whether there is two voice objects when the application program operation of the output audio data;It, will when there are two voice objects
The corresponding audio data of the first voice object is transmitted to first bluetooth headset and plays out in described two voice objects, will
The corresponding audio data of the second voice object is transmitted to second bluetooth headset and plays out in described two voice objects.
In the embodiment of the present application, Fig. 6 is referred to, which can also include: the second playing module
470.Second playing module 470 is used to judge described defeated when detecting there is currently when an application program output audio data
Whether the application type of the application program of audio data is target application type out, and the target application type includes at least: view
Frequency plays type;If it is target application type, when judging the application program operation of presently described output audio data whether
There are two video pictures;It is when there are two video pictures, the first video pictures in described two video pictures are corresponding
Audio data is transmitted to first bluetooth headset and plays out, and the second video pictures in described two video pictures are corresponding
Audio data is transmitted to second bluetooth headset and plays out.
In the embodiment of the present application, refer to Fig. 6, the audio playing apparatus can also include: third playing module 480 with
And the 4th playing module 490.Third playing module 480 is used in first application program by described two application programs
The audio data of output is transmitted to first bluetooth headset and plays out, and second in described two application programs is applied journey
The audio data of sequence output is transmitted to after second bluetooth headset plays out, when detecting first application program
When audio data output is interrupted, by the audio data simultaneous transmission of second application program output to first bluetooth headset
And second bluetooth headset plays out;4th playing module 490 is used for when the sound for detecting second application program
Frequency according to output interrupt when, by first application program output audio data simultaneous transmission to first bluetooth headset with
And second bluetooth headset plays out.
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.
In conclusion scheme provided by the present application, by detecting the connection status between electronic equipment and other equipment, when
When electronic equipment is connect with the first bluetooth headset and the second bluetooth headset, detects in electronic equipment and currently export audio data
Application program, when detecting there is currently two and when more than two application program output audio datas, by two and two with
The audio data of the first application program output in upper application program is transmitted to the first bluetooth headset and plays out, by two and two
The audio data of the second application program output in a use above program is transmitted to the second bluetooth headset and plays out, thus real
The audio data of existing two application programs output is played out respectively at different earphones, reaches the sound of two application programs output
Frequency according to while the effect that plays, promote user experience.
Referring to FIG. 7, it illustrates the structural block diagrams of a kind of electronic equipment provided by the embodiments of the present application.The electronic equipment
100, which can be smart phone, tablet computer, e-book etc., can run the electronic equipment of application program.Electronics in the application
Equipment 100 may include one or more such as lower component: processor 110, memory 120, bluetooth module 130 and one are more
A application program, wherein one or more application programs can be stored in memory 120 and be configured as by one or more
A processor 110 executes, and one or more programs are configured to carry out the method as described in preceding method embodiment.
Processor 110 may include one or more processing core.Processor 110 is whole using various interfaces and connection
Various pieces in a electronic equipment 100, by run or execute the instruction being stored in memory 120, program, code set or
Instruction set, and the data being stored in memory 120 are called, execute the various functions and processing data of electronic equipment 100.It can
Selection of land, processor 110 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 110 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 110, be realized separately through one piece of communication chip.
Memory 120 may include random access memory (Random Access Memory, RAM), also may include read-only
Memory (Read-Only Memory).Memory 120 can be used for store instruction, program, code, code set or instruction set.It deposits
Reservoir 120 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 at least one function instruction (such as touch function, sound-playing function, image player function etc.), be used for
Realize the instruction etc. of following each embodiments of the method.Storage data area can also store electronic equipment 100 and be created in use
Data (such as phone directory, audio, video data, chat record data) etc..
Bluetooth module 130 for realizing the bluetooth connection between electronic equipment and two bluetooth headsets, and with two indigo plants
Data interaction between tooth earphone, wherein the quantity of bluetooth module 130 can be one, or it is multiple to integrate,
It is not limited here.Specifically, can also pass through with bluetooth equipment by Bluetooth protocol 5.0/4.2/4.1/2.1/2.0
Bluetooth low energy consumption technologies (Bluetooh Low Energy, BLE), bluetooth enhancing rate technology (Enhanced Data Rate,
) or bluetooth basic rate (Base Rate, BR) etc. EDR.Its basic circuit composition is similar with WiFi module, can also be by function
The composition such as rate amplifier, wireless transceiver, transmit/receive switch, low-noise amplifier and antenna.The bluetooth module 130 can make
With the first communications band, wherein first communications band can be 2.4GHZ.
Referring to FIG. 8, it illustrates a kind of structural block diagrams of computer readable storage medium provided by the embodiments of the present application.
Program code is stored in the computer-readable medium 800, said program code can be called by processor and execute above method reality
Apply method described in example.
Computer readable storage medium 800 can be such as flash memory, EEPROM (electrically erasable programmable read-only memory),
The electronic memory of EPROM, hard disk or ROM etc.Optionally, computer readable storage medium 800 includes non-volatile meter
Calculation machine readable medium (non-transitory computer-readable storage medium).Computer-readable storage
Medium 800 has the memory space for the program code 810 for executing any method and step in the above method.These program codes can
With from reading or be written in one or more computer program product in this one or more computer program product.
Program code 810 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 playing method, which is characterized in that be applied to electronic equipment, which comprises
Detect the connection status between the electronic equipment and other equipment;
When the electronic equipment is connect with the first bluetooth headset and the second bluetooth headset, detect current in the electronic equipment
Export the application program of audio data;
It, will be described two and more than two when detecting there is currently two and more than two application programs export audio data
The audio data of the first application program output in application program is transmitted to first bluetooth headset and plays out, by described two
The audio data of the second application program output in a and more than two application programs is transmitted to second bluetooth headset and carries out
It plays.
2. the method according to claim 1, wherein described ought detect that there is currently two and two or more to answer
When exporting audio data with program, by the audio number of the first application program output in described two and more than two application programs
It is played out according to first bluetooth headset is transmitted to, by the second application program in described two and more than two application programs
The audio data of output is transmitted to second bluetooth headset and plays out, comprising:
When detecting the presence of two and more than two application program output audio data, obtains described two and more than two answer
With the application type of program;
Judge in described two and more than two application programs with the presence or absence of the application program of two setting types;
When there are the application program that two set type, first in the application program of described two setting types is applied into journey
The audio data of sequence output is transmitted to first bluetooth headset and plays out, will be in the application program of described two setting types
The audio data of the second application program output be transmitted to second bluetooth headset and play out.
3. according to the method described in claim 2, it is characterized in that, it is described will it is described two setting types application programs in
The audio data of the first application program output be transmitted to first bluetooth headset and play out, by described two setting types
Application program in the audio data of the second application program output be transmitted to before second bluetooth headset plays out, institute
State method further include:
The application type and the second application program of the first application program in application program based on described two setting types
Application type, determine that the setting of the broadcast sound volume and the broadcast sound volume of second bluetooth headset of first bluetooth headset is poor
Value;
The broadcasting sound of the broadcast sound volume or second bluetooth headset of first bluetooth headset is adjusted according to the setting difference
The difference of amount, the broadcast sound volume of the first bluetooth headset after adjusting and the broadcast sound volume of second bluetooth headset is equal to described set
Determine difference.
4. according to the method described in claim 3, it is characterized in that, described adjust first bluetooth according to the setting difference
The broadcast sound volume of the broadcast sound volume of earphone or second bluetooth headset, comprising:
The priority relationship of application type according to the pre-stored data obtains first application program and described second using journey
The application program of highest priority in sequence;
When the application program of the highest priority is the first application program, according to the setting difference and first indigo plant
The broadcast sound volume of tooth earphone controls second bluetooth headset and adjusts broadcast sound volume, the broadcast sound volume of first bluetooth headset
The difference of the broadcast sound volume after adjusting with second bluetooth headset is equal to the setting difference;
When the application program of the highest priority is the second application program, according to the setting difference and second indigo plant
The broadcast sound volume of tooth earphone controls first bluetooth headset and adjusts broadcast sound volume, after the adjusting of first bluetooth headset
The difference of the broadcast sound volume of broadcast sound volume and second bluetooth headset is equal to the setting difference.
5. method according to claim 1-4, which is characterized in that current in the detection electronic equipment
After the application program for exporting audio data, the method also includes:
When detecting there is currently when an application program output audio data, the application program of the output audio data is judged
Application type whether be voice communication type;
If it is voice communication type, judge to whether there is two when the application program operation of presently described output audio data
Voice object;
When there are two voice objects, the corresponding audio data of the first voice object in described two voice objects is transmitted to
First bluetooth headset plays out, and the corresponding audio data of the second voice object in described two voice objects is transmitted to
Second bluetooth headset plays out.
6. method according to claim 1-4, which is characterized in that current in the detection electronic equipment
After the application program for exporting audio data, the method also includes:
When detecting there is currently when an application program output audio data, the application program of the output audio data is judged
Application type whether be target application type, the target application type includes at least: video playing type;
If it is target application type, judge to whether there is two when the application program operation of presently described output audio data
Video pictures;
When there are two video pictures, the corresponding audio data of the first video pictures in described two video pictures is transmitted to
First bluetooth headset plays out, and the corresponding audio data of the second video pictures in described two video pictures is transmitted to
Second bluetooth headset plays out.
7. method according to claim 1-4, which is characterized in that it is described will be described two and more than two answer
First bluetooth headset is transmitted to the audio data that the first application program in program exports to play out, it will be described two
And the audio data of the second application program output in more than two application programs is transmitted to second bluetooth headset and is broadcast
After putting, the method also includes:
When the audio data for detecting first application program, which exports, to interrupt, by the audio of second application program output
Simultaneous Transmission of Data to first bluetooth headset and second bluetooth headset plays out;
When the audio data for detecting second application program, which exports, to interrupt, by the audio of first application program output
Simultaneous Transmission of Data to first bluetooth headset and second bluetooth headset plays out.
8. a kind of audio playing apparatus, which is characterized in that be applied to electronic equipment, described device includes: connecting detection module, answers
With detection module and playing control module, wherein
The connecting detection module is used to detect the connection status between the electronic equipment and other equipment;
The application detection module is used for when the electronic equipment is connect with the first bluetooth headset and the second bluetooth headset, inspection
It surveys in the electronic equipment and currently exports the application program of audio data;
The playing control module is used for when detecting there is currently two and more than two application programs export audio data,
The audio data of the first application program output in described two and more than two application programs is transmitted to first bluetooth
Earphone plays out, and the audio data of the second application program output in described two and more than two application programs is transmitted to
Second bluetooth headset plays out.
9. a kind of electronic equipment characterized by comprising
One or more processors;
Memory;
One or more application program, wherein one or more of application programs are stored in the memory and are configured
To be executed by one or more of processors, one or more of programs are configured to carry out as claim 1-7 is any
Method described in.
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 (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811163030.9A CN109445740B (en) | 2018-09-30 | 2018-09-30 | Audio playing method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811163030.9A CN109445740B (en) | 2018-09-30 | 2018-09-30 | Audio playing method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109445740A true CN109445740A (en) | 2019-03-08 |
CN109445740B CN109445740B (en) | 2022-05-20 |
Family
ID=65546013
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811163030.9A Active CN109445740B (en) | 2018-09-30 | 2018-09-30 | Audio playing method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109445740B (en) |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110058836A (en) * | 2019-03-18 | 2019-07-26 | 维沃移动通信有限公司 | A kind of output method and terminal device of audio signal |
CN111132377A (en) * | 2019-12-27 | 2020-05-08 | 昱兆微电子科技(上海)有限公司 | Data transmission method and system for terminal and earphone |
CN111405337A (en) * | 2020-02-17 | 2020-07-10 | 福州瑞芯微电子股份有限公司 | Method, device, equipment and medium for realizing double-screen abnormal sound of android system |
CN111459456A (en) * | 2020-04-07 | 2020-07-28 | 维沃移动通信有限公司 | Audio control method and electronic equipment |
CN111818418A (en) * | 2020-07-12 | 2020-10-23 | 韶关市启之信息技术有限公司 | Earphone background display method and system |
CN111935801A (en) * | 2020-07-16 | 2020-11-13 | 中国联合网络通信集团有限公司 | Voice access method, system, terminal device and computer readable storage medium |
WO2021085902A1 (en) * | 2019-11-01 | 2021-05-06 | 삼성전자 주식회사 | Electronic device for outputting audio data of plurality of applications, and method for operating same |
CN112925503A (en) * | 2021-03-24 | 2021-06-08 | 深圳市欢太科技有限公司 | Audio output method, audio output device, computer equipment and storage medium |
CN112954528A (en) * | 2021-02-20 | 2021-06-11 | 英华达(上海)科技有限公司 | Method for transmitting audio data |
CN113076082A (en) * | 2021-06-03 | 2021-07-06 | 杭州星犀科技有限公司 | Method, system, electronic device and storage medium for audio source processing |
CN113271376A (en) * | 2021-05-08 | 2021-08-17 | 维沃移动通信有限公司 | Communication control method, electronic equipment and earphone |
CN113382337A (en) * | 2021-06-21 | 2021-09-10 | 紫优科技(深圳)有限公司 | Equipment management system and method of intelligent earphone |
CN113490187A (en) * | 2020-03-16 | 2021-10-08 | 维沃移动通信有限公司 | Audio transmission method and electronic equipment |
CN113660580A (en) * | 2021-10-20 | 2021-11-16 | 翱捷科技(深圳)有限公司 | Earphone communication method and system, earphone and electronic equipment |
CN113840032A (en) * | 2021-09-23 | 2021-12-24 | Oppo广东移动通信有限公司 | Audio control method, audio control device and electronic equipment |
WO2022222780A1 (en) * | 2021-04-21 | 2022-10-27 | 华为技术有限公司 | Audio output method, media file recording method, and electronic device |
CN116055615A (en) * | 2022-08-19 | 2023-05-02 | 荣耀终端有限公司 | Audio playing method, electronic equipment and medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101246417A (en) * | 2007-02-13 | 2008-08-20 | 艾威梯软件技术(北京)有限公司 | Method and system for non-intermittence software switch of audio data flow input/output |
US20140359436A1 (en) * | 2013-05-28 | 2014-12-04 | Samsung Electronics Co., Ltd. | Screen controlling method and electronic device thereof |
CN105827825A (en) * | 2016-02-29 | 2016-08-03 | 维沃移动通信有限公司 | Audio data processing method and mobile terminal |
CN106303816A (en) * | 2015-05-25 | 2017-01-04 | 联想(北京)有限公司 | A kind of information control method and electronic equipment |
CN107171816A (en) * | 2017-06-21 | 2017-09-15 | 歌尔科技有限公司 | Data processing method and device in videoconference |
CN107396151A (en) * | 2017-08-24 | 2017-11-24 | 维沃移动通信有限公司 | A kind of video playing control method and electronic equipment |
CN107562405A (en) * | 2017-08-18 | 2018-01-09 | 广东欧珀移动通信有限公司 | Audio play control method, device and storage medium and mobile terminal |
-
2018
- 2018-09-30 CN CN201811163030.9A patent/CN109445740B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101246417A (en) * | 2007-02-13 | 2008-08-20 | 艾威梯软件技术(北京)有限公司 | Method and system for non-intermittence software switch of audio data flow input/output |
US20140359436A1 (en) * | 2013-05-28 | 2014-12-04 | Samsung Electronics Co., Ltd. | Screen controlling method and electronic device thereof |
CN106303816A (en) * | 2015-05-25 | 2017-01-04 | 联想(北京)有限公司 | A kind of information control method and electronic equipment |
CN105827825A (en) * | 2016-02-29 | 2016-08-03 | 维沃移动通信有限公司 | Audio data processing method and mobile terminal |
CN107171816A (en) * | 2017-06-21 | 2017-09-15 | 歌尔科技有限公司 | Data processing method and device in videoconference |
CN107562405A (en) * | 2017-08-18 | 2018-01-09 | 广东欧珀移动通信有限公司 | Audio play control method, device and storage medium and mobile terminal |
CN107396151A (en) * | 2017-08-24 | 2017-11-24 | 维沃移动通信有限公司 | A kind of video playing control method and electronic equipment |
Cited By (26)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110058836A (en) * | 2019-03-18 | 2019-07-26 | 维沃移动通信有限公司 | A kind of output method and terminal device of audio signal |
WO2020186964A1 (en) * | 2019-03-18 | 2020-09-24 | 维沃移动通信有限公司 | Audio signal outputting method and terminal device |
WO2021085902A1 (en) * | 2019-11-01 | 2021-05-06 | 삼성전자 주식회사 | Electronic device for outputting audio data of plurality of applications, and method for operating same |
CN111132377A (en) * | 2019-12-27 | 2020-05-08 | 昱兆微电子科技(上海)有限公司 | Data transmission method and system for terminal and earphone |
CN111132377B (en) * | 2019-12-27 | 2022-03-22 | 昱兆微电子科技(上海)有限公司 | Data transmission method and system for terminal and earphone |
CN111405337A (en) * | 2020-02-17 | 2020-07-10 | 福州瑞芯微电子股份有限公司 | Method, device, equipment and medium for realizing double-screen abnormal sound of android system |
CN113490187A (en) * | 2020-03-16 | 2021-10-08 | 维沃移动通信有限公司 | Audio transmission method and electronic equipment |
CN111459456A (en) * | 2020-04-07 | 2020-07-28 | 维沃移动通信有限公司 | Audio control method and electronic equipment |
CN111459456B (en) * | 2020-04-07 | 2023-03-14 | 维沃移动通信有限公司 | Audio control method and electronic equipment |
CN111818418A (en) * | 2020-07-12 | 2020-10-23 | 韶关市启之信息技术有限公司 | Earphone background display method and system |
CN111935801A (en) * | 2020-07-16 | 2020-11-13 | 中国联合网络通信集团有限公司 | Voice access method, system, terminal device and computer readable storage medium |
CN112954528B (en) * | 2021-02-20 | 2023-01-24 | 英华达(上海)科技有限公司 | Method for transmitting audio data |
CN112954528A (en) * | 2021-02-20 | 2021-06-11 | 英华达(上海)科技有限公司 | Method for transmitting audio data |
WO2022199319A1 (en) * | 2021-03-24 | 2022-09-29 | 深圳市欢太科技有限公司 | Audio output method and apparatus, computer device, and storage medium |
CN112925503A (en) * | 2021-03-24 | 2021-06-08 | 深圳市欢太科技有限公司 | Audio output method, audio output device, computer equipment and storage medium |
WO2022222780A1 (en) * | 2021-04-21 | 2022-10-27 | 华为技术有限公司 | Audio output method, media file recording method, and electronic device |
CN113271376A (en) * | 2021-05-08 | 2021-08-17 | 维沃移动通信有限公司 | Communication control method, electronic equipment and earphone |
WO2022237609A1 (en) * | 2021-05-08 | 2022-11-17 | 维沃移动通信有限公司 | Communication control method, electronic device and earphones |
CN113271376B (en) * | 2021-05-08 | 2023-08-22 | 维沃移动通信有限公司 | Communication control method, electronic equipment and earphone |
CN113076082B (en) * | 2021-06-03 | 2021-09-03 | 杭州星犀科技有限公司 | Method, system, electronic device and storage medium for audio source processing |
CN113076082A (en) * | 2021-06-03 | 2021-07-06 | 杭州星犀科技有限公司 | Method, system, electronic device and storage medium for audio source processing |
CN113382337A (en) * | 2021-06-21 | 2021-09-10 | 紫优科技(深圳)有限公司 | Equipment management system and method of intelligent earphone |
CN113840032A (en) * | 2021-09-23 | 2021-12-24 | Oppo广东移动通信有限公司 | Audio control method, audio control device and electronic equipment |
CN113660580A (en) * | 2021-10-20 | 2021-11-16 | 翱捷科技(深圳)有限公司 | Earphone communication method and system, earphone and electronic equipment |
CN116055615A (en) * | 2022-08-19 | 2023-05-02 | 荣耀终端有限公司 | Audio playing method, electronic equipment and medium |
CN116055615B (en) * | 2022-08-19 | 2023-10-27 | 荣耀终端有限公司 | Audio playing method, electronic equipment and medium |
Also Published As
Publication number | Publication date |
---|---|
CN109445740B (en) | 2022-05-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109445740A (en) | Audio frequency playing method, device, electronic equipment and storage medium | |
CN109246672B (en) | Data transmission method, device and system and Bluetooth headset | |
CN109379653B (en) | Audio transmission method and device, electronic equipment and storage medium | |
US9762317B2 (en) | Playing synchronized mutichannel media on a combination of devices | |
CN109445741B (en) | Data transmission method and device, electronic equipment and storage medium | |
CN109257500A (en) | Audio frequency playing method, device, electronic equipment and storage medium | |
CN109246671A (en) | Data transmission method, apparatus and system | |
CN109165005B (en) | Sound effect enhancement method and device, electronic equipment and storage medium | |
CN108738006A (en) | Data transmission method based on bluetooth and device | |
CN105848225B (en) | Wireless connection switching method and device in audio frequency broadcast system | |
CN109151212B (en) | Equipment control method and device and electronic equipment | |
CN108063874A (en) | A kind of information processing method, device, terminal and computer readable storage medium | |
CN106161724A (en) | Audio output control method and device | |
CN108886653A (en) | A kind of earphone sound channel control method, relevant device and system | |
US10425758B2 (en) | Apparatus and method for reproducing multi-sound channel contents using DLNA in mobile terminal | |
CN111124351B (en) | Audio output method, audio output device, electronic equipment and storage medium | |
US20170195817A1 (en) | Simultaneous Binaural Presentation of Multiple Audio Streams | |
CN109379490A (en) | Audio frequency playing method, device, electronic equipment and computer-readable medium | |
CN109358832A (en) | Audio frequency transmission method, device, electronic equipment and storage medium | |
CN104217750A (en) | A holographic audio record and playback method | |
CN109298846B (en) | Audio transmission method and device, electronic equipment and storage medium | |
CN111107226A (en) | Volume control method applied to mobile terminal | |
CN106371800A (en) | Audio output method and device | |
US20220182761A1 (en) | Belt-Type Wearable Device, System, And Method for Multimedia Communications | |
CN108184193A (en) | Control method for playing back, bluetooth equipment and the computer storage media of bluetooth playback terminal |
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 |