CN109257500A - Audio frequency playing method, device, electronic equipment and storage medium - Google Patents

Audio frequency playing method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN109257500A
CN109257500A CN201811161239.1A CN201811161239A CN109257500A CN 109257500 A CN109257500 A CN 109257500A CN 201811161239 A CN201811161239 A CN 201811161239A CN 109257500 A CN109257500 A CN 109257500A
Authority
CN
China
Prior art keywords
playback equipment
bluetooth
audio data
bluetooth playback
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
Application number
CN201811161239.1A
Other languages
Chinese (zh)
Other versions
CN109257500B (en
Inventor
龚金华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201811161239.1A priority Critical patent/CN109257500B/en
Publication of CN109257500A publication Critical patent/CN109257500A/en
Application granted granted Critical
Publication of CN109257500B publication Critical patent/CN109257500B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72412User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/60Substation equipment, e.g. for use by subscribers including speech amplifiers
    • H04M1/6033Substation equipment, e.g. for use by subscribers including speech amplifiers for providing handsfree use or a loudspeaker mode in telephone sets
    • H04M1/6041Portable telephones adapted for handsfree use
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/02Details of telephonic subscriber devices including a Bluetooth interface

Abstract

This application discloses a kind of audio frequency playing method, device, electronic equipment and storage mediums, this method is applied to electronic equipment, this method comprises: detecting the audio data whether electronic equipment currently plays target type when the electronic equipment is connect with the first bluetooth playback equipment and the second bluetooth playback equipment;In the audio data of the currently playing target type of the electronic equipment, the audio data of the target type is transmitted to the first bluetooth playback equipment and/or the second bluetooth playback equipment plays out;When detecting that the electronic equipment carries out voice communication, the corresponding audio data of the voice communication is transmitted to the first bluetooth playback equipment and is played out, the audio data of the target type is transmitted to the second bluetooth playback equipment and is played out.This method plays the audio data of call while may be implemented to play certain types of audio using electronic equipment.

Description

Audio frequency playing method, device, electronic equipment and storage medium
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 plays game etc., but when being conversed in the process, can interrupt the broadcasting of audio data before this, lead to user experience not It is good.
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 plays other audio datas while can be realized the audio data for playing call.
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: when the electronic equipment is connect with the first bluetooth playback equipment and the second bluetooth playback equipment, detecting the electronics and set The standby audio data for currently whether playing target type;In the audio data of the currently playing target type of the electronic equipment When, the audio data of the target type is transmitted to the first bluetooth playback equipment and/or second bluetooth broadcasting is set It is standby to play out;When detecting that the electronic equipment carries out voice communication, the corresponding audio data of the voice communication is passed It transports to the first bluetooth playback equipment to play out, the audio data of the target type is transmitted to second bluetooth and is broadcast Equipment is put to play 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: playing detection module, the first playing control module and the second playing control module, wherein the broadcasting detection module is used In when the electronic equipment is connect with the first bluetooth playback equipment and the second bluetooth playback equipment, the electronic equipment is detected Currently whether play the audio data of target type;First playing control module is used for currently playing in the electronic equipment When the audio data of the target type, the audio data of the target type is transmitted to the first bluetooth playback equipment And/or the second bluetooth playback equipment plays out;Second playing control module, which is used to work as, detects that the electronics is set When standby progress voice communication, the corresponding audio data of the voice communication is transmitted to the first bluetooth playback equipment and is broadcast It puts, the audio data of the target type is transmitted to the second bluetooth playback equipment and is played 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, when electronic equipment and the first bluetooth playback equipment and second When bluetooth playback equipment connects, whether detection electronic equipment currently plays the audio data of target type, when electronic equipment plays When the audio data of target type, the audio data of target type is transmitted to the first bluetooth playback equipment and/or the second bluetooth Playback equipment plays out, and when detecting that electronic equipment carries out voice communication, voice communication is corresponded to audio data and is transmitted to First bluetooth playback equipment plays out, and the audio data of target type is transmitted the second bluetooth playback equipment and is played out, from And may be implemented play target type audio data during carry out voice communication when, the target type can be played simultaneously Audio data and the corresponding audio data of voice communication promote 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 flow chart of step S210 in the audio frequency playing method according to the embodiment of the present application
Fig. 4 shows the audio frequency playing method flow chart according to another embodiment of the application.
Fig. 5 shows a kind of block diagram of 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 shows the block diagram that detection module is played in the audio playing apparatus according to the application one embodiment.
Fig. 8 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. 9 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 assisted with the first bluetooth playback equipment and the second bluetooth playback equipment based on Bluetooth communication respectively View establishes communication link, and electronic equipment can will need the audio data played to be transmitted to the first bluetooth playback equipment and/or the Two bluetooth playback equipments play out.
But electronic equipment is utilizing above-mentioned communication link audio data to the first bluetooth playback equipment and/or the When two bluetooth playback equipments play out, if having incoming call in playing process or make a phone call, above-mentioned audio number can be interrupted According to broadcasting, and audio data when conversing is transmitted to the first bluetooth playback equipment and/or the second bluetooth playback equipment and is carried out It plays, prevent user brings bad user experience to user from continuing to appreciate the audio data played before this.For example, In driving conditions, electronic equipment establishes communication link with bluetooth headset and on-vehicle Bluetooth playback equipment simultaneously, by the sound of music Frequency evidence is transmitted to bluetooth headset and on-vehicle Bluetooth playback equipment plays out, and still, user is set using electronics in playing process It is standby to receive calls or when user is made a phone call using electronic equipment, then interrupt the broadcasting of the audio data of current music, lead Family of applying cannot continue to appreciate music in communication process, and keep user experience bad.
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, when electronic equipment and the first bluetooth playback equipment and The connection of two bluetooth playback equipments, is transmitted to the first bluetooth playback equipment for the audio data of target type and/or the second bluetooth is broadcast It puts equipment to play out, when detecting that electronic equipment carries out voice communication, the corresponding audio data of voice communication is transmitted to the One bluetooth playback equipment plays out, and the audio data of target type is transmitted to the second bluetooth playback equipment and is played out, from And during realizing the audio data for playing target type, when detecting that electronic equipment carries out voice communication, realize above-mentioned target It is played while the audio data of type and the audio data of voice communication, 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: when the electronic equipment is connect with the first bluetooth playback equipment and the second bluetooth playback equipment, Detect the audio data whether electronic equipment currently plays target type.
When using electronic equipment playing audio-fequency data, many users are connected using electronic equipment and bluetooth playback equipment It connects, to realize the broadcasting of audio data.It can be simultaneously by electronic equipment and two or more especially for the higher user of demand Bluetooth playback equipment be attached, realize a bluetooth playback equipment in multiple bluetooth playback equipments to the sound of target type Frequency evidence plays out or multiple bluetooth playback equipments simultaneously play out the audio data of target type.
And during the audio data to above-mentioned target type plays out, incoming call can be frequently encountered or made a phone call The case where, so that electronic equipment is interrupted the broadcasting to the audio data of above-mentioned target type, therefore phase can be carried out to above situation Processing and control are closed, so that electronic equipment can continue the broadcasting of the audio data to above-mentioned target type when being conversed.
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 two or more bluetooths The audio data played when playback equipment is attached is detected.
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.
In the embodiment of the present application, electronic equipment can be logical with the first bluetooth playback equipment and the second bluetooth playback equipment Cross bluetooth connection.It is understood that when electronic equipment is connect with two bluetooth playback equipments, then two bluetooth playback equipments Respectively the first bluetooth playback equipment and the second bluetooth playback equipment, when electronic equipment and more than two bluetooth playback equipments When connection, then the first bluetooth playback equipment and the second bluetooth playback equipment be in more than two bluetooth playback equipments wherein Two bluetooth playback equipments.
It, can after electronic equipment and above-mentioned first bluetooth playback equipment and the second bluetooth playback equipment pass through bluetooth connection To detect the presence of the case where electronic equipment is connect with the first bluetooth playback equipment and the second bluetooth playback equipment.
Specifically, when the Bluetooth function for detecting electronic equipment and other equipment, and the electronic equipment and unlatching bluetooth When the other equipment successful matching of function, then it can determine that there are other equipment and electronic equipment to pass through bluetooth connection.It is examining It measures when passing through bluetooth connection there are other equipment and electronic equipment, can also obtain and be set with what electronic equipment Bluetooth communication was connect Standby facility information, to determine whether with the equipment of electronic equipment bluetooth connection be that the first bluetooth playback equipment and second are blue Tooth playback equipment.
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_CAR_AUDIO, then is characterized as vehicle mounted playing apparatus, in another example, if the value returned is AUDIO_ VIDEO_HIFI_AUDIO is then characterized as audio-frequence player device or video playback apparatus, for example, bluetooth headset, Bluetooth audio device Deng.When detecting that two or more bluetooth playback equipments connect with electronic equipment, it is determined that electronic equipment is broadcast with the first bluetooth Put equipment and the connection of the second bluetooth playback equipment.
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 playback equipment and the second bluetooth playback equipment.In the application reality Apply in example, it is specific detect mode that electronic equipment is connect with the first bluetooth playback equipment and the second bluetooth playback equipment can be with Not as restriction.
It is thus possible to detect that electronic equipment passes through with above-mentioned first bluetooth playback equipment and the second bluetooth playback equipment The case where bluetooth connection.It, can when electronic equipment is connect with above-mentioned first bluetooth playback equipment and the second bluetooth playback equipment To detect the audio data whether electronic equipment currently plays target type.
Wherein, the audio data of target type can be the audio data of music type, or the audio in video Data, the audio data of specific target type are not intended as limiting in the embodiment of the present application, the audio data of target type It can be set according to user demand, for example, it is also possible to be the audio data etc. of broadcast type.
In the embodiment of the present application, it can determine that electronic equipment is currently by the feature in the source of detection audio data The no audio data for playing target type.As a kind of mode, the application that electronic equipment currently exports audio data can detecte Whether the application type of program is application type for exporting the audio data of above-mentioned target type.
Step S120: in the audio data of the currently playing target type of the electronic equipment, by the target class The audio data of type is transmitted to the first bluetooth playback equipment and/or the second bluetooth playback equipment plays out.
In the embodiment of the present application, when determining the currently playing above-mentioned target type audio number of electronic equipment in above-mentioned steps According to when, can use above-mentioned first bluetooth playback equipment and the second bluetooth playback equipment to the audio data of above-mentioned target type It plays out.Specifically, the audio data of above-mentioned target type can be built by electronic equipment and the first bluetooth playback equipment Vertical communication link is transmitted to the first bluetooth playback equipment, so that audio of the first bluetooth playback equipment to above-mentioned target type Data play out, and/or, the audio data of above-mentioned target type is established by electronic equipment and the second bluetooth playback equipment Communication link, the second bluetooth playback equipment is transmitted to, so that audio number of the second bluetooth playback equipment to above-mentioned target type According to playing out.
It is set it is understood that the audio data of above-mentioned target type can be transmitted to the broadcasting of the first bluetooth by electronic equipment Standby and the second bluetooth playback equipment makes the first bluetooth playback equipment and the second bluetooth playback equipment while playing above-mentioned target The audio data of above-mentioned target type can also be transmitted to the first bluetooth playback equipment and the second bluetooth by the audio data of type Any one bluetooth playback equipment in playback equipment plays out.
Step S130: when detecting that the electronic equipment carries out voice communication, by the corresponding audio of the voice communication Data are transmitted to the first bluetooth playback equipment and play out, and the audio data of the target type is transmitted to described second Bluetooth playback equipment plays out.
In the embodiment of the present application, the audio data of above-mentioned target type the first bluetooth is transmitted in electronic equipment to play During equipment and/or the second bluetooth playback equipment play out, it can detecte whether electronic equipment carries out voice communication, with When to voice communication, at the broadcasting of the audio data of broadcasting and the voice communication of the audio data of above-mentioned target type Reason.
Specifically, can be detected to the operating status of the talk application of electronic equipment, when detecting that talk application transports When going and carrying out voice communication, it is determined that electronic equipment carries out voice communication.Wherein, talk application can be in electronic equipment The included talk application of system, is also possible to the third party's talk application installed in electronic equipment, for example, wechat, nail nail etc. the Three-Way Calling application.It is understood that when detecting that electronic equipment carries out voice-enabled chat or Video chat, it can be true Determine electronic equipment and currently carries out voice communication.
It further, then can be by the corresponding audio of the voice communication when detecting that electronic equipment carries out voice communication Data are transmitted to the first bluetooth playback equipment, so that the first bluetooth playback equipment plays out the audio data of voice communication, And the audio data of above-mentioned target type is transmitted to the second bluetooth playback equipment, so that the second bluetooth playback equipment is to target The audio data of type plays out.
It is understood that when detecting that electronic equipment carries out voice communication, then it can will be corresponding to voice communication Using the audio data of output, for example, the audio data for the talk application output that the system of electronic equipment carries or third party The audio data of talk application output, using electronic equipment and the communication link of the first bluetooth playback equipment foundation to first Bluetooth playback equipment, so that the first bluetooth playback equipment is after receiving the corresponding audio data of above-mentioned voice communication, to voice Corresponding audio data of conversing plays out.Also, the audio data for the target type for playing electronic equipment before this, i.e. electronics Equipment carries out the audio data of the target type just played out before voice communication, is set by electronic equipment and the broadcasting of the second bluetooth The standby communication link established, is transmitted to the second bluetooth playback equipment, so that the second bluetooth playback equipment is receiving above-mentioned target After the audio data of type, the audio data of the target type is played out.
To, when realizing electronic equipment and being connect with the first bluetooth playback equipment and the second bluetooth playback equipment, broadcasting During the audio data of target type, when electronic equipment carries out voice communication, target being played on can be played simultaneously The audio data when audio data of type and progress voice communication, guarantees the broadcasting of the audio data of target type before this It is not influenced by voice communication.
Audio frequency playing method provided by the embodiments of the present application, electronic equipment and the first bluetooth playback equipment and the second bluetooth Playback equipment connects, and during the audio data of the currently playing target type of electronic equipment, detects that electronic equipment carries out language When sound is conversed, the corresponding audio data of voice communication is transmitted to the first bluetooth playback equipment and is played out, and by above-mentioned mesh The audio data of mark type is transmitted to the second bluetooth playback equipment and plays out, realize audio data when electronic equipment call with And electronic equipment conversed before audio data being played on while broadcasting, without electronic equipment play target type Audio data during when being conversed, it is glad to guarantee that user can continue for the broadcasting of the audio data of interrupt targets type The audio data of the target type played out before this is appreciated, user experience is promoted.
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: when the electronic equipment is connect with the first bluetooth playback equipment and the second bluetooth playback equipment, Detect the audio data whether electronic equipment currently plays target type.
In the embodiment of the present application, Fig. 3 is referred to, when electronic equipment and the first bluetooth playback equipment and the second bluetooth are broadcast When putting equipment connection, whether detection electronic equipment currently plays the audio data of target type, may include:
Step S211: the application type that the electronic equipment currently exports the application program of audio data is obtained.
In the embodiment of the present application, available electronic equipment currently exports the application class of the application program of audio data Type, to determine whether electronic equipment currently plays the audio data of target type.As a kind of mode, current calling can detecte The relevant interface of electronic apparatus system and the application program of playing audio-fequency data, currently export sound so as to obtain electronic equipment The application program of frequency evidence.
It further, can be according to preparatory after getting electronic equipment and currently exporting the application program of 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 S212: judge whether the application type is setting type, and the setting type includes: music type Or video playing type.
It in the embodiment of the present application, whether can be setting by judging the application program of above-mentioned current output audio data Type, to determine whether electronic equipment currently exports the audio data of target type.Wherein, above-mentioned setting type may include: Music type or video playing type.When the application program for judging above-mentioned current output audio data is setting type When, then it can determine that electronic equipment currently exports the audio data of target type;If it is judged that above-mentioned current output audio number According to application program be not setting type when, then can determine that electronic equipment does not export the audio data of target type currently.
It is understood that the different types of application program that can export audio data, it can when exporting audio data To export different types of audio data.For example, then the application program exports music class when application type is music type The audio data of type, when application type is video playing type, then the application program exports the audio data of video type.Cause This, when the application type of the application program of above-mentioned current output audio data is music type or video playing type When, it can determine that electronic equipment currently exports the audio data of music type or video type.
Certainly, in the embodiment of the present application, the setting type and target of the application program of audio data are specifically exported The audio data of type can be not as restriction, for example, the audio data of target type also can also be the audio of broadcast type Data, at this point, output audio data can be with the setting type of application program broadcast playback type application program.
Step S220: in the audio data of the currently playing target type of the electronic equipment, by the target class The audio data of type is transmitted to the first bluetooth playback equipment and/or the second bluetooth playback equipment plays out.
In the embodiment of the present application, the content of step S220 may refer to above-described embodiment, and this is no longer going to repeat them.
Step S230: when detecting that the electronic equipment carries out voice communication, the second bluetooth playback equipment is controlled Broadcast sound volume be adjusted to the volume of the broadcast sound volume less than the first bluetooth playback equipment.
The audio data of above-mentioned target type is transmitted to the first bluetooth playback equipment and/or the second bluetooth in electronic equipment During playback equipment plays out, it can detecte whether electronic equipment carries out voice communication, it is above-mentioned when with to voice communication The broadcasting of the audio data of broadcasting and the voice communication of the audio data of target type is handled.When detecting electronic equipment When carrying out voice communication, the corresponding audio data of voice communication can be sent to the first bluetooth playback equipment and played out, it will The audio data of target type is sent to the second bluetooth playback equipment and plays out.
In the embodiment of the present application, it plays out the corresponding audio data of voice communication is sent to the first bluetooth equipment And the audio data of target type is sent to before the second bluetooth playback equipment plays out, the first bluetooth can be played Equipment and the volume of the second bluetooth playback equipment are adjusted, so that the volume of the second bluetooth playback equipment is less than the first bluetooth The volume of playback equipment.
It is understood that subsequent first bluetooth playback equipment and the second bluetooth playback equipment carry out broadcasting for audio data When putting, the first bluetooth playback equipment plays the corresponding audio data of voice communication, and the second bluetooth playback equipment plays above-mentioned target The audio data of type.If the second bluetooth playback equipment plays the volume when audio data of above-mentioned target type, it is greater than the The volume of audio data when the broadcasting voice communication of one bluetooth playback equipment, the then sound that the audio data of target type can be made to play The sound intensity that audio data when sonority is higher than voice communication plays, makes the corresponding broadcasting sound of the audio data of target type The sound effect that audio data when effect covered voice communication plays, sound when user being caused not hear voice communication.
Therefore, in the embodiment of the present application, the broadcast sound volume that can control the second bluetooth playback equipment is adjusted to less than The volume of the broadcast sound volume of one bluetooth playback equipment can specifically be generated according to the broadcast sound volume of the first bluetooth playback equipment and be controlled Instruction, is sent to the second bluetooth playback equipment for control instruction, to indicate that the second bluetooth playback equipment adjusts its broadcast sound volume To less than first bluetooth playback equipment broadcast sound volume volume.Broadcasting when the first bluetooth playback equipment being made to play voice communication Volume is greater than broadcast sound volume when the second bluetooth playback equipment plays the audio data of target type, guarantees the effect of voice communication While using the audio data of electronic equipment target type being played on before this can be appreciated.
Step S240: the corresponding audio data of the voice communication is transmitted to the first bluetooth playback equipment and is broadcast It puts, the audio data of the target type is transmitted to the second bluetooth playback equipment and is played out.
The broadcast sound volume less than the first bluetooth playback equipment is adjusted in the broadcast sound volume for controlling the second bluetooth playback equipment Volume after, then the corresponding audio data of voice communication can be transmitted to the first bluetooth playback equipment and played out, and The audio data of target type is transmitted to the second bluetooth playback equipment to play out, to realize electronic equipment and the first bluetooth When playback equipment and the second bluetooth playback equipment connect, during the audio data for playing target type, electronic equipment into Audio when row voice communication, when can play the audio data of target type being played on simultaneously and carry out voice communication Data guarantee the broadcasting process of the audio data of target type before this not by the influence of voice communication.
Audio frequency playing method provided by the embodiments of the present application, electronic equipment and the first bluetooth playback equipment and the second bluetooth Playback equipment connection, when the application program playing audio-fequency data of the setting type of electronic equipment, the second bluetooth playback equipment of control Broadcast sound volume be adjusted to the volume of the broadcast sound volume less than the first bluetooth playback equipment, by the corresponding audio data of voice communication It is transmitted to the first bluetooth playback equipment to play out, and the audio data of target type is transmitted to the second bluetooth playback equipment It plays out, is broadcast so that broadcast sound volume when the first bluetooth playback equipment being made to play voice communication is greater than the second bluetooth playback equipment The broadcast sound volume when audio data of target type is put, guarantees that use can appreciate electronics before this while the effect of voice communication The audio data of equipment target type being played on.
Referring to Fig. 4, 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: when the electronic equipment is connect with the first bluetooth playback equipment and the second bluetooth playback equipment, Detect the audio data whether electronic equipment currently plays target type.
Step S320: in the audio data of the currently playing target type of the electronic equipment, by the target class The audio data of type is transmitted to the first bluetooth playback equipment and/or the second bluetooth playback equipment plays out.
In the embodiment of the present application, the content of step S310 and step S320 can refering to the content of above-described embodiment, This is no longer going to repeat them.
Step S330: when detecting that the electronic equipment carries out voice communication, the first bluetooth playback equipment is obtained Currently playing volume.
In the embodiment of the present application, it plays out the corresponding audio data of voice communication is sent to the first bluetooth equipment And the audio data of target type is sent to before the second bluetooth playback equipment plays out, the first bluetooth can be played Equipment and the volume of the second bluetooth playback equipment are adjusted, so that the volume of the first bluetooth playback equipment is greater than the second bluetooth The volume of playback equipment.
Further, the broadcast sound volume for controlling the second bluetooth playback equipment is adjusted to broadcasting less than the first bluetooth playback equipment The volume of playback amount, can be according to the currently playing volume of the first bluetooth playback equipment to the broadcasting sound of the second bluetooth playback equipment Control is adjusted in amount.
In the embodiment of the present application, when detecting that electronic equipment carries out voice communication, available first bluetooth is played The currently playing volume of equipment.Specifically, obtaining the currently playing volume of the first bluetooth playback equipment, broadcast sound volume can be sent Inquiry instruction to the first bluetooth playback equipment, its broadcast sound volume is back to electricity according to inquiry instruction by the first bluetooth playback equipment Sub- equipment, so that electronic equipment gets the currently playing volume of the first bluetooth playback equipment.
Step S340: the broadcast sound volume based on the pre-stored first bluetooth playback equipment is broadcast with second bluetooth The corresponding relationship of the broadcast sound volume of equipment is put, the corresponding first object volume of the currently playing volume is obtained.
In the embodiment of the present application, can be previously stored in electronic equipment the broadcast sound volume of the first bluetooth playback equipment with The corresponding relationship of the broadcast sound volume of second bluetooth playback equipment.Wherein, the broadcast sound volume and second of the first bluetooth playback equipment The corresponding relationship of the broadcast sound volume of bluetooth playback equipment, can be by the audio data of voice communication and the audio data of target type When playing simultaneously, the difference for the broadcast sound volume that two kinds of audio datas need is determined.
As a kind of mode, the broadcast sound volume of the first bluetooth playback equipment can be divided into multiple volume ranges, Mei Geyin The difference for measuring the broadcast sound volume of the broadcast sound volume and the second bluetooth playback equipment of the first bluetooth playback equipment in range is a threshold value. For example, when the broadcast sound volume of the first bluetooth playback equipment is 20 decibels to 30 decibels, the broadcasting sound of the second bluetooth playback equipment Measure it is 10 decibels smaller than the broadcast sound volume of the first bluetooth playback equipment, the first bluetooth playback equipment broadcast sound volume be 30 decibels extremely At 40 decibels, the broadcast sound volume of the second bluetooth playback equipment is 8 decibels smaller than the broadcast sound volume of the first bluetooth playback equipment, first When the broadcast sound volume of bluetooth playback equipment is 40 decibels to 50 decibels, the broadcast sound volume of the second bluetooth playback equipment is than the first bluetooth The broadcast sound volume of playback equipment is 7 decibels small, in the size that the broadcast sound volume of the first bluetooth playback equipment is 50 decibels or more, the The broadcast sound volume of two bluetooth playback equipments is 5 decibels smaller than the broadcast sound volume of the first bluetooth playback equipment.Certainly, the above is only away from From not representing the broadcasting to the broadcast sound volume of the first bluetooth playback equipment and the second bluetooth playback equipment in the embodiment of the present application The specific restriction of the difference of volume.
So as to according to the broadcast sound volume of the broadcast sound volume of the first bluetooth playback equipment and the second bluetooth playback equipment Corresponding relationship obtains the corresponding first object volume of currently playing volume of the first bluetooth playback equipment.By by broadcast sound volume It is divided into multiple ranges, the threshold value of the different difference of setting, can make electronic equipment play target type at the same time in each range Audio data and voice communication audio data when, sound effect is good, promoted user experience.
Step S350: the broadcast sound volume of control the second bluetooth playback equipment is adjusted to the first object volume, In, the first object volume is less than the currently playing volume.
It, then can root after the corresponding first object volume of currently playing volume for getting the first bluetooth playback equipment Control instruction is generated according to first object volume and is sent to the second bluetooth playback equipment, to indicate that the second bluetooth playback equipment is broadcast Playback amount is adjusted to first object volume.It is greater than to reach broadcast sound volume when the first bluetooth playback equipment plays voice communication Second bluetooth playback equipment plays the broadcast sound volume when audio data of target type, guarantees to make while the effect of voice communication With the audio data that can appreciate electronic equipment target type being played on before this.
Step S360: the corresponding audio data of the voice communication is transmitted to the first bluetooth playback equipment and is broadcast It puts, the corresponding audio data of the target type is transmitted to the second bluetooth playback equipment and is played out.
The broadcast sound volume less than the first bluetooth playback equipment is adjusted in the broadcast sound volume for controlling the second bluetooth playback equipment First object volume after, then the corresponding audio data of voice communication can be transmitted to the first bluetooth playback equipment and broadcast Put, and the audio data of target type be transmitted to the second bluetooth playback equipment and is played out, thus realize electronic equipment with When first bluetooth playback equipment and the second bluetooth playback equipment connect, during the audio data for playing target type, electricity When sub- equipment carries out voice communication, the audio data of target type being played on can be played simultaneously and carries out voice communication When audio data, guarantee the broadcasting process of the audio data of target type before this not by the influence of voice communication.
Step S370: when detecting the voice data of the first bluetooth playback equipment transmission, it is blue to control described second The broadcast sound volume of tooth playback equipment is adjusted to the second target volume, wherein second target volume is less than the first object Volume.
It in the embodiment of the present application, can also be when user inputs voice, by the broadcast sound volume of the second bluetooth playback equipment It turns down, the sound issued to avoid the second bluetooth playback equipment inputs voice to user and impacts in voice call process.
Therefore, the case where when can input voice to user, is detected, specifically can be by detecting whether to receive the The voice data of one bluetooth playback equipment transmission, to determine whether user inputs voice.When detecting the first bluetooth playback equipment When the voice data of transmission, it is determined that user inputs voice, and the broadcast sound volume that can control the second bluetooth playback equipment is adjusted to Second target volume, the second target volume is less than first object volume, to reach the broadcasting for turning down the second bluetooth playback equipment The effect of volume, the sound for avoiding the second bluetooth playback equipment from issuing input voice to user and interfere.
Step S380: when the voice data of the first bluetooth playback equipment transmission is not detected, control described second The broadcast sound volume of bluetooth playback equipment is adjusted to the first object volume.
After the broadcast sound volume of above-mentioned the second bluetooth of control playback equipment is adjusted to the second target volume, when being not detected When the voice data of the first bluetooth playback equipment transmission, then it can determine that user does not input voice, it therefore, can be by the second bluetooth The broadcast sound volume of playback equipment is adjusted to first object volume before this, continues the second bluetooth playback equipment with first object sound Amount plays the audio data of above-mentioned target type.
In the embodiment of the present application, call sound broadcasting can also be reinforced according to the demand of user.Therefore, the sound Frequency playback method can also include:
When detecting the control instruction for being used to indicate sound broadcasting of reinforcing conversing, the first bluetooth playback equipment is controlled Increase the broadcast sound volume of first object size, and controls the volume that the second bluetooth playback equipment reduces by the second target sizes.
In the embodiment of the present application, when electronic equipment carries out voice communication, electronic equipment can be with display reminding user It is no carry out reinforce call sound play prompt, when detect user according to the prompt input be used to indicate reinforcement converse When the control instruction that sound plays, then call sound broadcasting can be reinforced.Reinforcement is used to indicate it is of course also possible to be arranged Conversing, perhaps control adds call sound broadcasting when detecting that key or control are triggered the key that sound plays By force.
Further, detect be used to indicate reinforce call sound play control instruction when, to call sound play into Row is reinforced can be, and the first bluetooth playback equipment of control increases the volume of first object size, and controls the broadcasting of the second bluetooth and set The standby volume for reducing by the second target sizes, wherein the volume of the volume of first object size and the second target sizes can root It is set according to the demand of user, specific size in the embodiment of the present application can be not as restriction.It is thus possible to reach voice The result of broadcast of audio data when call achievees the purpose that reinforcement, guarantees that user can not hear the audio data of voice communication Play sound.
In the embodiment of the present application, the first bluetooth playback equipment may include: bluetooth headset, and the second bluetooth playback equipment can To include: Bluetooth audio device, on-vehicle Bluetooth playback equipment or bluetooth headset.
It is understood that being connect in electronic equipment with the first bluetooth playback equipment and the second bluetooth playback equipment, broadcast During putting the audio data of target type, electronic equipment carry out voice communication when, in order to make user carry out voice communication have compared with Good effect, and avoid voice information from being eavesdropped, therefore the first bluetooth playback equipment can be bluetooth headset, and second is blue Tooth playback equipment then can be the bluetooths playback equipments such as Bluetooth audio device, on-vehicle Bluetooth playback equipment or bluetooth headset.
For example, the first bluetooth playback equipment is bluetooth headset in a kind of application scenarios, the second bluetooth playback equipment is vehicle Bluetooth playback equipment is carried, user when driving, can use electronic equipment and set with bluetooth headset and on-vehicle Bluetooth broadcasting Standby connection, is transmitted to on-vehicle Bluetooth playback equipment for music audio data and/or bluetooth headset plays out.When electronic equipment connects It receives incoming call or when user is made a phone call using electronic equipment, then music audio data can be transmitted to on-vehicle Bluetooth broadcasting Equipment plays out, and the audio data of voice communication is transmitted to bluetooth headset and is played, the user on vehicle is allow to continue to listen this The music of preceding broadcasting, and voice communication can be carried out, promote the user experience of user.Certainly, use above scene is only to lift Example, does not represent the restriction of the application scenarios to the audio frequency playing method of the embodiment of the present application.
Audio frequency playing method provided by the embodiments of the present application, electronic equipment and the first bluetooth playback equipment and the second bluetooth Playback equipment connection, electronic equipment detect that electronic equipment carries out voice during playing the audio data of target type When call, the currently playing volume of the first bluetooth playback equipment is obtained, determines that the second bluetooth is broadcast further according to the current broadcast sound volume The first object volume of equipment is put, the second bluetooth playback equipment of control adjusts broadcast sound volume to first object volume, finally by language The audio data of sound call is transmitted to the first bluetooth playback equipment and plays out, and the audio data of above-mentioned target type is transmitted to First bluetooth playback equipment plays out, and it is logical to carry out voice during the audio data for realizing electronic equipment broadcasting target type When words, audio data when audio data and the progress voice communication of target type being played on can be played simultaneously, is protected The broadcasting process of the audio data of the target type of card before this is not influenced by voice communication.In addition, also being broadcast to the first bluetooth Control is adjusted in the broadcast sound volume for putting equipment and the second bluetooth playback equipment, it is ensured that the audio data of voice communication Result of broadcast.
Referring to Fig. 5, 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: to play detection module 410, first broadcast Put control module 420 and the second playing control module 430.Wherein, the broadcasting detection module 410 is used to set when the electronics It is standby when being connect with the first bluetooth playback equipment and the second bluetooth playback equipment, detect whether the electronic equipment currently plays mesh Mark the audio data of type;First playing control module 420 is used in the currently playing target class of the electronic equipment When the audio data of type, the audio data of the target type is transmitted to the first bluetooth playback equipment and/or described Two bluetooth playback equipments play out;Second playing control module 430, which is used to work as, detects that the electronic equipment carries out language When sound is conversed, the corresponding audio data of the voice communication is transmitted to the first bluetooth playback equipment and is played out, by institute The audio data for stating target type is transmitted to the second bluetooth playback equipment and plays out.
In the embodiment of the present application, Fig. 6 is referred to, which can also include: the first volume adjustment mould Block 440.First volume adjusting module 440 can be used for being transmitted to the corresponding audio data of the voice communication described described First bluetooth playback equipment plays out, and the corresponding audio data of the target type is transmitted to the second bluetooth broadcasting and is set Before playing out, the broadcast sound volume for controlling the second bluetooth playback equipment is adjusted to be set less than first bluetooth broadcasting The volume of standby broadcast sound volume.
Further, the first volume adjusting module 440 can be specifically used for: obtain working as the first bluetooth playback equipment Preceding broadcast sound volume;Broadcast sound volume and the second bluetooth playback equipment based on the pre-stored first bluetooth playback equipment Broadcast sound volume corresponding relationship, obtain the corresponding first object volume of the currently playing volume;Control second bluetooth The broadcast sound volume of playback equipment is adjusted to the first object volume, wherein the first object volume is currently broadcast less than described Playback amount.
In the embodiment of the present application, Fig. 6 is referred to, which can also include: the second volume adjusting module 450 and third volume adjusting module 460.Wherein, the second volume adjusting module 450 is used for the voice communication pair described The audio data answered is transmitted to the first bluetooth playback equipment and plays out, and the corresponding audio data of the target type is passed It transports to after the second bluetooth playback equipment plays out, in the voice number for detecting the first bluetooth playback equipment transmission According to when, the broadcast sound volume for controlling the second bluetooth playback equipment is adjusted to the second target volume, wherein second target sound Amount is less than the first object volume;Third volume adjusting module 460 is for being not detected the first bluetooth playback equipment When the voice data of transmission, the broadcast sound volume for controlling the second bluetooth playback equipment is adjusted to the first object volume.
In the embodiment of the present application, Fig. 7 is referred to, playing detection module 410 may include: application type acquiring unit 411 and application type judging unit 422.Wherein, application type acquiring unit 411 is currently defeated for obtaining the electronic equipment The application type of the application program of audio data out;Application type judging unit 422 for judge the application type whether be Type is set, the setting type includes: music type or video playing type.
In the embodiment of the present application, Fig. 6 is referred to, which can also include: the 4th volume adjustment mould Block 470.4th volume adjusting module 470 is used for the control when detecting the control instruction for being used to indicate sound broadcasting of reinforcing conversing It makes the first bluetooth playback equipment and increases the broadcast sound volume of first object size, and control the second bluetooth playback equipment and subtract The volume of few second target sizes.
In the embodiment of the present application, the first bluetooth playback equipment includes: bluetooth headset, and the second bluetooth broadcasting is set Standby includes: Bluetooth audio device, on-vehicle Bluetooth playback equipment or bluetooth headset.
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, when electronic equipment and the first bluetooth playback equipment and the second bluetooth are broadcast When putting equipment connection, whether detection electronic equipment currently plays the audio data of target type, when electronic equipment plays target class When the audio data of type, the audio data of target type is transmitted to the first bluetooth playback equipment and/or the broadcasting of the second bluetooth is set It is standby to play out, when detecting that electronic equipment carries out voice communication, voice communication is corresponded into audio data and is transmitted to the first indigo plant Tooth playback equipment plays out, and the audio data of target type is transmitted the second bluetooth playback equipment and is played out, so as to When realizing that the audio data for playing target type carries out voice communication in the process, the audio number of the target type can be played simultaneously Accordingly and the corresponding audio data of voice communication, user experience is promoted.
Referring to FIG. 8, 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 the number that terminal 100 is created in use According to (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. 9, 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
When the electronic equipment is connect with the first bluetooth playback equipment and the second bluetooth playback equipment, detects the electronics and set The standby audio data for currently whether playing target type;
In the audio data of the currently playing target type of the electronic equipment, the audio data of the target type is passed It transports to the first bluetooth playback equipment and/or the second bluetooth playback equipment plays out;
When detecting that the electronic equipment carries out voice communication, the corresponding audio data of the voice communication is transmitted to described First bluetooth playback equipment plays out, by the audio data of the target type be transmitted to the second bluetooth playback equipment into Row plays.
2. the method according to claim 1, wherein the corresponding audio data of the voice communication is passed described It transports to the first bluetooth playback equipment to play out, it is blue that the corresponding audio data of the target type is transmitted to described second Before tooth playback equipment plays out, the method also includes:
The broadcast sound volume for controlling the second bluetooth playback equipment is adjusted to the broadcasting sound less than the first bluetooth playback equipment The volume of amount.
3. according to the method described in claim 2, it is characterized in that, the broadcast sound volume by the second bluetooth playback equipment It is adjusted to the volume of the broadcast sound volume less than the first bluetooth playback equipment, comprising:
Obtain the currently playing volume of the first bluetooth playback equipment;
The broadcasting of broadcast sound volume and the second bluetooth playback equipment based on the pre-stored first bluetooth playback equipment The corresponding relationship of volume obtains the corresponding first object volume of the currently playing volume;
The broadcast sound volume for controlling the second bluetooth playback equipment is adjusted to the first object volume, wherein first mesh Mark with phonetic symbols amount is less than the currently playing volume.
4. according to the method described in claim 3, it is characterized in that, the corresponding audio data of the voice communication is passed described It transports to the first bluetooth playback equipment to play out, it is blue that the corresponding audio data of the target type is transmitted to described second After tooth playback equipment plays out, the method also includes:
When detecting the voice data of the first bluetooth playback equipment transmission, broadcasting for the second bluetooth playback equipment is controlled Playback amount is adjusted to the second target volume, wherein second target volume is less than the first object volume;
When the voice data of the first bluetooth playback equipment transmission is not detected, the second bluetooth playback equipment is controlled Broadcast sound volume is adjusted to the first object volume.
5. method according to claim 1-4, which is characterized in that the detection electronic equipment currently whether Play the audio data of target type, comprising:
Obtain the application type that the electronic equipment currently exports the application program of audio data;
Judge whether the application type is setting type, and the setting type includes: music type or video playing Type.
6. method according to claim 1-4, which is characterized in that the method also includes:
Detecting that control the first bluetooth playback equipment increases when being used to indicate the control instruction for reinforcing call sound broadcasting The broadcast sound volume of first object size, and control the volume that the second bluetooth playback equipment reduces by the second target sizes.
7. method according to claim 1-4, which is characterized in that the first bluetooth playback equipment includes: indigo plant Tooth earphone, the second bluetooth playback equipment include: Bluetooth audio device, on-vehicle Bluetooth playback equipment or bluetooth headset.
8. a kind of audio playing apparatus, which is characterized in that be applied to electronic equipment, described device includes: to play detection module, the One playing control module and the second playing control module, wherein
The broadcasting detection module is used for when the electronic equipment and the first bluetooth playback equipment and the second bluetooth playback equipment When connection, the audio data whether electronic equipment currently plays target type is detected;
First playing control module is used in the audio data of the currently playing target type of the electronic equipment, will The audio data of the target type is transmitted to the first bluetooth playback equipment and/or the second bluetooth playback equipment carries out It plays;
Second playing control module is used for when detecting that the electronic equipment carries out voice communication, by the voice communication Corresponding audio data is transmitted to the first bluetooth playback equipment and plays out, and the audio data of the target type is transmitted It is played out to the second bluetooth playback equipment.
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.
CN201811161239.1A 2018-09-30 2018-09-30 Audio playing method and device, electronic equipment and storage medium Active CN109257500B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811161239.1A CN109257500B (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
CN201811161239.1A CN109257500B (en) 2018-09-30 2018-09-30 Audio playing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109257500A true CN109257500A (en) 2019-01-22
CN109257500B CN109257500B (en) 2021-06-15

Family

ID=65045170

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811161239.1A Active CN109257500B (en) 2018-09-30 2018-09-30 Audio playing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109257500B (en)

Cited By (14)

* Cited by examiner, † Cited by third party
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
CN110248347A (en) * 2019-06-28 2019-09-17 Oppo广东移动通信有限公司 Call method for detecting abnormality, device, equipment and storage medium
CN110381215A (en) * 2019-07-30 2019-10-25 深圳市沃特沃德股份有限公司 Audio shunt method, device, storage medium and computer equipment
CN111124351A (en) * 2019-12-24 2020-05-08 RealMe重庆移动通信有限公司 Audio output method, audio output device, electronic equipment and storage medium
CN112455365A (en) * 2019-09-06 2021-03-09 比亚迪股份有限公司 Monitoring method, system, equipment and storage medium for rear row seats in vehicle
CN112615959A (en) * 2020-12-10 2021-04-06 蒙际任 Request transmission system and method based on big data
CN113411707A (en) * 2021-06-17 2021-09-17 歌尔智能科技有限公司 Auxiliary listening earphone, control method, device and system thereof, and readable medium
WO2021208864A1 (en) * 2020-04-15 2021-10-21 荣耀终端有限公司 Sound channel management method, system, and mobile terminal
CN113873475A (en) * 2021-09-16 2021-12-31 阿波罗智联(北京)科技有限公司 Vehicle-mounted interconnected audio data processing method and device and electronic equipment
CN113992786A (en) * 2021-10-26 2022-01-28 维沃移动通信有限公司 Audio playing method and device
CN115038068A (en) * 2022-05-31 2022-09-09 中国第一汽车股份有限公司 Bluetooth audio playing method and device, vehicle and storage medium
CN116055615A (en) * 2022-08-19 2023-05-02 荣耀终端有限公司 Audio playing method, electronic equipment and medium
WO2023087793A1 (en) * 2021-11-19 2023-05-25 Oppo广东移动通信有限公司 Audio service processing method and apparatus, electronic device, and storage medium
WO2024045877A1 (en) * 2022-08-30 2024-03-07 Oppo广东移动通信有限公司 Device connection method and apparatus, and electronic device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9143552B2 (en) * 2006-06-16 2015-09-22 At&T Mobility Ii Llc Dynamic profile management based on transport detection
CN105516900A (en) * 2015-12-17 2016-04-20 深圳市屹石科技股份有限公司 Bluetooth connection method and Bluetooth device
CN105895128A (en) * 2016-03-30 2016-08-24 广东欧珀移动通信有限公司 Playing method and associated device
CN107124679A (en) * 2017-04-27 2017-09-01 北京小米移动软件有限公司 The method and apparatus that multimedia file is played
CN107888748A (en) * 2016-09-28 2018-04-06 联芯科技有限公司 The player method and equipment of concurrent audio

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9143552B2 (en) * 2006-06-16 2015-09-22 At&T Mobility Ii Llc Dynamic profile management based on transport detection
CN105516900A (en) * 2015-12-17 2016-04-20 深圳市屹石科技股份有限公司 Bluetooth connection method and Bluetooth device
CN105895128A (en) * 2016-03-30 2016-08-24 广东欧珀移动通信有限公司 Playing method and associated device
CN107888748A (en) * 2016-09-28 2018-04-06 联芯科技有限公司 The player method and equipment of concurrent audio
CN107124679A (en) * 2017-04-27 2017-09-01 北京小米移动软件有限公司 The method and apparatus that multimedia file is played

Cited By (20)

* Cited by examiner, † Cited by third party
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
CN110248347A (en) * 2019-06-28 2019-09-17 Oppo广东移动通信有限公司 Call method for detecting abnormality, device, equipment and storage medium
CN110248347B (en) * 2019-06-28 2022-03-15 Oppo广东移动通信有限公司 Call abnormity detection method, device, equipment and storage medium
CN110381215A (en) * 2019-07-30 2019-10-25 深圳市沃特沃德股份有限公司 Audio shunt method, device, storage medium and computer equipment
CN110381215B (en) * 2019-07-30 2020-12-22 深圳市沃特沃德股份有限公司 Audio distribution method and device, storage medium and computer equipment
CN112455365A (en) * 2019-09-06 2021-03-09 比亚迪股份有限公司 Monitoring method, system, equipment and storage medium for rear row seats in vehicle
CN111124351A (en) * 2019-12-24 2020-05-08 RealMe重庆移动通信有限公司 Audio output method, audio output device, electronic equipment and storage medium
CN111124351B (en) * 2019-12-24 2021-11-16 RealMe重庆移动通信有限公司 Audio output method, audio output device, electronic equipment and storage medium
CN113596232A (en) * 2020-04-15 2021-11-02 荣耀终端有限公司 Sound channel management method, system and mobile terminal
WO2021208864A1 (en) * 2020-04-15 2021-10-21 荣耀终端有限公司 Sound channel management method, system, and mobile terminal
CN112615959A (en) * 2020-12-10 2021-04-06 蒙际任 Request transmission system and method based on big data
CN113411707A (en) * 2021-06-17 2021-09-17 歌尔智能科技有限公司 Auxiliary listening earphone, control method, device and system thereof, and readable medium
CN113873475A (en) * 2021-09-16 2021-12-31 阿波罗智联(北京)科技有限公司 Vehicle-mounted interconnected audio data processing method and device and electronic equipment
CN113992786A (en) * 2021-10-26 2022-01-28 维沃移动通信有限公司 Audio playing method and device
WO2023087793A1 (en) * 2021-11-19 2023-05-25 Oppo广东移动通信有限公司 Audio service processing method and apparatus, electronic device, and storage medium
CN115038068A (en) * 2022-05-31 2022-09-09 中国第一汽车股份有限公司 Bluetooth audio playing method and device, vehicle and storage medium
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
WO2024045877A1 (en) * 2022-08-30 2024-03-07 Oppo广东移动通信有限公司 Device connection method and apparatus, and electronic device and storage medium

Also Published As

Publication number Publication date
CN109257500B (en) 2021-06-15

Similar Documents

Publication Publication Date Title
CN109257500A (en) Audio frequency playing method, device, electronic equipment and storage medium
CN109445740A (en) Audio frequency playing method, device, electronic equipment and storage medium
CN106155623B (en) A kind of audio collocation method, system and relevant device
CN108738006A (en) Data transmission method based on bluetooth and device
CN109246671A (en) Data transmission method, apparatus and system
CN109003618A (en) Coding control method, device, electronic equipment and storage medium
CN109151211B (en) Voice processing method and device and electronic equipment
CN106126172B (en) A kind of sound effect treatment method and mobile terminal
CN108076226A (en) A kind of method, mobile terminal and the storage medium of speech quality adjustment
CN109041024A (en) Optimization of rate method, apparatus, electronic equipment and storage medium
CN106126159A (en) A kind of audio stream processing method and mobile terminal
CN107172256A (en) Earphone call self-adapting regulation method, device, mobile terminal and storage medium
CN109379491A (en) Audio frequency playing method, device, electronic equipment and computer-readable medium
CN106488413A (en) Notification message based reminding method and mobile terminal
CN107707768A (en) The processing method and Related product of running game application
CN106126176A (en) A kind of audio collocation method and mobile terminal
CN109271131A (en) Headset control method, device, electronic equipment and storage medium
CN107872555A (en) Call recording method, device, terminal device and computer-readable recording medium
CN109274813A (en) Optimization of rate method, apparatus, electronic equipment and storage medium
CN107395883A (en) Voice signal adjusting method, communication terminal and computer-readable recording medium
CN107172313A (en) Improve method, device, mobile terminal and the storage medium of hand-free call quality
CN106851593B (en) A kind of broadcast transmission method, apparatus and terminal
CN107682553A (en) Speech signal sending method, device, mobile terminal and storage medium
CN107835299A (en) Call request processing method, device, storage medium and mobile terminal
CN106713171A (en) Server and delay-queue-based current-limiting protection system and method

Legal Events

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