CN109379490A - Audio frequency playing method, device, electronic equipment and computer-readable medium - Google Patents

Audio frequency playing method, device, electronic equipment and computer-readable medium Download PDF

Info

Publication number
CN109379490A
CN109379490A CN201811161376.5A CN201811161376A CN109379490A CN 109379490 A CN109379490 A CN 109379490A CN 201811161376 A CN201811161376 A CN 201811161376A CN 109379490 A CN109379490 A CN 109379490A
Authority
CN
China
Prior art keywords
audio
wireless
playback equipment
audio playback
wireless audio
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
CN201811161376.5A
Other languages
Chinese (zh)
Other versions
CN109379490B (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 CN201811161376.5A priority Critical patent/CN109379490B/en
Publication of CN109379490A publication Critical patent/CN109379490A/en
Priority to PCT/CN2019/097146 priority patent/WO2020063069A1/en
Application granted granted Critical
Publication of CN109379490B publication Critical patent/CN109379490B/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/72442User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for playing music files
    • 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
    • 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

Abstract

This application discloses a kind of audio frequency playing method, device, electronic equipment and computer-readable mediums, are related to field of communication technology.This method comprises: judging whether each wireless audio playback equipment is in preset state when two wireless audio playback equipments are playing different audio datas to realize that audio mixing plays;Using the wireless audio playback equipment in preset state as the first wireless audio playback equipment, then its audio data played is the first audio data;The wireless audio playback equipment of preset state will be not in as the second wireless audio playback equipment, then its audio data played is second audio data;It controls the second wireless audio playback equipment while playing the first audio data and second audio data, to realize that audio mixing plays.Therefore, even if user abandons listening to audio data using one of wireless audio playback equipment, then another wireless audio playback equipment can play two audio datas simultaneously also to realize the effect of audio mixing broadcasting.

Description

Audio frequency playing method, device, electronic equipment and computer-readable medium
Technical field
This application involves field of communication technology, more particularly, to a kind of audio frequency playing method, device, electronic equipment and Computer-readable medium.
Background technique
Currently, playing the audio data in electronic equipment using wireless audio playback equipment, wired earphone institute can be reduced Bring is inconvenient, moreover, electronic equipment can connect two wireless audio playback equipments, two wireless audio playback equipments simultaneously It can be realized the mixing result of broadcast of audio.But if user abandons listening to using one of wireless audio playback equipment When audio, user can not uppick audio mixing result of broadcast, cause user experience excessively poor.
Summary of the invention
Present applicant proposes a kind of audio frequency playing method, device, electronic equipment and computer-readable mediums, above-mentioned to improve Defect.
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 electronics is set It is standby to connect two wireless audio playback equipments simultaneously.This method comprises: working as two wireless audio playback equipments When playing different audio datas to realize that audio mixing plays, judge whether each wireless audio playback equipment is in default shape State;Using the wireless audio playback equipment in preset state as the first wireless audio playback equipment, then the described first wireless sound The audio data that frequency playback equipment plays in audio mixing playing process is the first audio data;The wireless of preset state will be not in Audio-frequence player device is as the second wireless audio playback equipment, then the second wireless audio playback equipment is in audio mixing playing process The audio data of middle broadcasting is second audio data;It controls the second wireless audio playback equipment while playing the first audio number According to and second audio data, with realize audio mixing play.
Second aspect, the embodiment of the present application also provides a kind of audio playing apparatus, are applied to electronic equipment, the electronics Equipment can connect two wireless audio playback equipments simultaneously.The audio playing apparatus includes: detection unit, the first determining list Member, the second determination unit and broadcast unit.Detection unit, for being playing difference when two wireless audio playback equipments Audio data with realize audio mixing play when, judge whether each wireless audio playback equipment is in preset state.First Determination unit, it is for the wireless audio playback equipment of preset state will to be in as the first wireless audio playback equipment, then described The audio data that first wireless audio playback equipment plays in audio mixing playing process is the first audio data.Second determines list Member, for the wireless audio playback equipment of preset state will to be not in as the second wireless audio playback equipment, then described second The audio data that wireless audio playback equipment plays in audio mixing playing process is second audio data.Broadcast unit, for controlling It makes the second wireless audio playback equipment while playing the first audio data and second audio data, to realize that audio mixing plays.
The third aspect, the embodiment of the present application also provides a kind of electronic equipment, comprising: one or more processors, it is described One or more processors can connect two wireless audio playback equipments simultaneously;Memory;One or more application program, Described in one or more application program be stored in the memory and be configured as by one or more of processors It executes, one or more of programs are configured to carry out the above method.
Fourth aspect, the embodiment of the present application also provides a kind of computers of program code that can be performed with processor can Medium is read, said program code makes the processor execute the above method.
Compared with the existing technology, scheme provided by the present application is different being played using two wireless audio playback equipments When audio data is to realize that audio mixing plays, the use state of two wireless audio playback equipments is detected, if one of nothing Line audio-frequence player device is in preset state, and another wireless audio playback equipment is not in preset state, then will be in pre- If the audio data that the wireless audio playback equipment of state is played transfers to the wireless audio playback equipment for being not in preset state The wireless audio playback equipment for playing, also, being not in preset state, which plays, to be kept being playing audio data, that is, is not in pre- If broadcasting different audio data of the wireless audio playback equipment of state is to realize that audio mixing plays.Therefore, even if user is put It abandons and listens to audio data using one of wireless audio playback equipment, then another wireless audio playback equipment also can be simultaneously Two audio datas are played to realize the effect of audio mixing broadcasting, can be improved Experience Degree when user plays audio.
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 module frame chart of the voice system of one embodiment of the application offer;
Fig. 2 shows the module frame charts for the voice system that another embodiment of the application provides;
Fig. 3 shows a kind of method flow diagram of audio frequency playing method of one embodiment of the application offer;
Fig. 4 shows the schematic diagram at equipment management interface provided by the embodiments of the present application;
Fig. 5 shows a kind of method flow diagram for audio frequency playing method that another embodiment of the application provides;
Fig. 6 shows a kind of method flow diagram for audio frequency playing method that the another embodiment of the application provides
Fig. 7 shows the schematic diagram for answering interface of one embodiment of the application offer;
Fig. 8 shows the schematic diagram for answering interface that another embodiment of the application provides;
Fig. 9 shows a kind of module frame chart of audio playing apparatus provided by the embodiments of the present application;
Figure 10 shows the module frame chart of electronic equipment provided by the embodiments of the present application;
Figure 11 shows provided by the embodiments of the present application for saving or carrying the sound realized according to the embodiment of the present application The storage unit of the program code of frequency playback method.
Specific embodiment
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described.
As the type of audio-frequence player device increases and the promotion of play sound effect, more users can select by mobile phone, The electronic equipments such as tablet computer audio output to be played is played out to audio-frequence player device.Wherein, common audio plays Equipment includes vehicle-carrying music player, speaker and earphone etc..
And audio-frequence player device can be divided into wireline audio playback equipment and wireless audio plays according to connection type difference Equipment, then electronic equipment can be interacted between wireless audio playback equipment by wireless network to transmit signal, wherein The wireless network can be bluetooth, wifi, LTE network or NFC etc..
Illustratively, as shown in Figure 1, showing the module map of voice system 1 provided by the embodiments of the present application.Specifically, The voice system 1 includes electronic equipment 100, the first wireless audio playback equipment 210 and the second wireless audio playback equipment 220, Electronic equipment 100 can be connect with the first wireless audio playback equipment 210 and the second wireless audio playback equipment 220 simultaneously.
In embodiments of the present invention, the application program that can play audio is installed in electronic equipment 100, it specifically, should Application program can be audio playing software, video jukebox software or call software etc..Electronic equipment 100 plays needs Audio is sent to the first wireless audio playback equipment 210 or the second wireless audio playback equipment 220, is played by the first wireless audio Equipment 210 or the second wireless audio playback equipment 220 play voice.
In the embodiment of the present invention, the first wireless audio playback equipment 210 and the second wireless audio playback equipment 220 can be with It is Bluetooth audio device or bluetooth headset, the first wireless audio playback equipment 210 and the second wireless audio playback equipment 220 can lead to The connection for opening Bluetooth function realization and electronic equipment 100 is crossed, and after a connection is established, electronic equipment 100 is needed to broadcast The voice put is sent to Bluetooth audio device, realizes that voice plays by Bluetooth audio device.
When the first wireless audio playback equipment 210 and the second wireless audio playback equipment 220 are bluetooth equipment, electronics Equipment 100 can by bluetooth module simultaneously with the first wireless audio playback equipment 210 and the second wireless audio playback equipment 220 Connection, as an implementation, can be the bluetooth module in electronic equipment can support Mulit-point Connection, so as to realize Electronic equipment shown in FIG. 1 is connect with the first wireless audio playback equipment 210 and the second wireless audio playback equipment 220 respectively, Then after a connection is established, electronic equipment 100 can get the first wireless audio playback equipment 210 and the second wireless audio is broadcast The mark of equipment 220 is put, which can be MAC Address.Specifically, when the Bluetooth function of electronic equipment is opened, electricity Sub- equipment can scan the bluetooth equipment within the scope of certain distance around, specifically, by the Bluetooth chip of electronic equipment or its It after his bottom-layer network module receives scan command, is scanned according to preset scan channel sequence, such as the common letter of first scanning 1,7,13 channel of road, then other non-common channels are scanned, thus to obtain the mark of all bluetooth equipments in present scope, and It is shown in the bluetooth list interface of electronic equipment.
It had been connected and the preferable bluetooth of signal strength is set if existed in the mark of the bluetooth equipment scanned Standby, electronic equipment can be connect with the bluetooth equipment automatically, then user can also select a bluetooth to set in bluetooth list interface It is standby to be attached.
When electronic equipment is connect with external bluetooth equipment, then the system of electronic equipment, which can be crossed, goes to a state value, The state value indicates that electronic equipment has currently connected bluetooth equipment.To, electronic equipment is able to detect that bluetooth equipment, To get the device identification of bluetooth equipment.
As another embodiment, electronic equipment 100 and the first wireless audio playback equipment 210 pass through bluetooth connection, Then, the first wireless audio playback equipment 210 is connected by bluetooth and the second wireless audio playback equipment 220 again, thus, electronics Equipment 100, the first wireless audio playback equipment 210 and the second wireless audio playback equipment 220 are realized together by way of networking When connect, i.e., the first wireless audio playback equipment 210 is as in electronic equipment 100 and the second wireless audio playback equipment 220 After device.
Therefore, electronic equipment 100 simultaneously with the first wireless audio playback equipment 210 and the second wireless audio playback equipment After 220 connections, different audio-frequence player devices may be implemented and play different audio datas, it is of course also possible to be different Audio-frequence player device plays identical audio data, stereo and other effects to realize.It is also possible to use one of them wireless sound Frequency playback equipment playing audio-fequency data, and another wireless audio playback equipment is in standby without playing audio.
But inventor has found under study for action, when user abandons listening to sound using one of wireless audio playback equipment Frequency according to when, by can not the audio data that is played of two wireless audio playback equipments of uppick simultaneously, then can not get The effect that audio mixing plays, causes user experience not high.
Therefore, in order to solve above-mentioned technological deficiency, the embodiment of the present application provides a kind of audio frequency playing method, is applied to upper Electronic equipment is stated, specifically, this method comprises: S301 to S304.
S301: when two wireless audio playback equipments are playing different audio datas to realize that audio mixing plays When, judge whether each wireless audio playback equipment is in preset state.
Wherein, two wireless audio playback equipments play different audio datas, and user listens to two wireless audio simultaneously The audio data that playback equipment is played, it will be able to acquire the visual effect of audio mixing broadcasting.For example, in order to play user When music, the special efficacy of the music composition for two or more of music is realized, the audio data phase that two wireless audio playback equipments can be made to be played Together, for example, two audio datas are same song, and the sample frequency of two audio datas, sampling resolution, position are fast and right The content answered all is identical.
For user when playing song, identical song is respectively in two wireless audio playback equipments with difference as a result, Frequency play, and the tone of frequency representative sound, for example, the tone of an imitation male voice, another imitates the tone of female voice, To realize the effect of men and women's duet.
For another example the audio data that two wireless audio playback equipments are played can be realized the effect of played in stereo, Specifically, in two wireless audio playback equipments, a wireless audio playback equipment is playing the left sound of audio data Track data, another wireless audio playback equipment are playing the right data of the audio data to realize the audio number According to played in stereo.Specifically, the audio data that two wireless audio playback equipments are played all is same song, is denoted as Target song, then target song can be divided into the data of left and right acoustic channels, i.e. left channel data and right data, and L channel number According to and right data all correspond to target song, then one of wireless audio playback equipment plays the L channel number of target song The right data of target song is played according to, another wireless audio playback equipment, then user's simultaneously uppick target song The audio data of left and right acoustic channels realizes stereophonic effect.
As an implementation, in order to preferably realize above-mentioned duet and stereophonic effect, then wireless audio is broadcast Putting equipment can be wireless headset, specifically, can be bluetooth headset.
As another embodiment, above-mentioned wireless audio playback equipment can also be wireless sound box, for example, it may be blue Tooth speaker.The effect of simultaneous interpretation can be then realized by the wireless sound box, specifically,
Electronic device generates second audio data after getting the first audio data, according to first audio data, Wherein, the corresponding language of the first audio data language corresponding from second audio data is different.Wherein, the first audio data and Two audio datas can correspond to different languages, can also correspond to identical languages and language is different.For example, the first audio data Corresponding language is Chinese, and the corresponding language of second audio data is English, then the first audio data and second audio data Corresponding different languages, for another example the corresponding language of the first audio data is Guangdong language, and the corresponding language of second audio data is Mandarin, then the first audio data and second audio data correspond to identical languages, but corresponding language is different
Specifically, translation software is installed in electronic device, after getting the first audio data, calls the translation First audio data is generated second audio data by software.It is then also possible to be the first audio data and second audio data It obtains in advance, for example, downloading the first audio data and second audio data on some websites.For example, the first audio number According to content be " I am Chinese, I likes my motherland ", then the content of second audio data be " I am Chinese, I Love my country. ", then can be when the first audio data be played to " I am Chinese ", and second audio data is opened Begin to play, then when the first audio data plays " I likes my motherland ", second audio data is also being played.
It should be noted that the acquisition of the first audio data is real-time in view of two users are when voice-enabled chat And persistently obtain, and second audio data is also what real-time continuous obtained, then the first play time starting point is broadcast with described second Putting the time difference between start time can be rule of thumb arranged, and as an implementation, user says a word or one The time of section words is preset time, which can count acquisition according to the habit of user, and the time difference is that this is pre- If N times of the time, wherein N be greater than 0 and less than 1 between numerical value.
And it determines two wireless audio playback equipments and is playing different audio datas to realize what audio mixing played Embodiment can be, and electronic equipment is connect with the first wireless audio playback equipment and the second wireless audio playback equipment simultaneously, Then user can choose the music to be played, such as Fig. 1 in the audio broadcast interface of electronic equipment when playing audio-fequency data With 2 shown in electronic equipment display interface, choose one or more audio data, click play button can Play chosen audio data.In addition, user can also choose the wireless sound for playing audio-fequency data by electronic equipment Frequency playback equipment.
For example, showing the equipment management interface of electronic equipment shown in Fig. 4, in the equipment management interface, electricity is shown The operation interface for two wireless audio playback equipments that sub- equipment is connected, specifically, including two wireless audio playback equipments Select button, the corresponding select button of each equipment in Fig. 4, for example, when round button is located at left side, electronic equipment choosing Middle wireless audio playback equipment playing audio-fequency data.Then after a connection is established, the audio data energy that electronic equipment is played It is enough that the audio data is played by connected wireless audio playback equipment.
In addition, each wireless audio playback equipment also corresponds to a drop-down menu, and user can be by this in the interface Drop-down menu is the application program that wireless audio playback equipment configures that user plays audio, for example, configuring the first audio for equipment 1 Data, for equipment 2 configure second audio data, if then electronic equipment can control respectively the first audio data play and It controls second audio data to play, it will be able to so that equipment 1 plays the first audio data, and equipment 2 be made to play the second audio number According to realize the effect of mixing broadcasting.
Therefore, by the button state in the interface can determine electronic equipment whether with the first wireless audio playback equipment Connection, furthermore it is also possible to which whether the equipment for passing through bluetooth connection to electronic equipment is that audio-frequence player device detects, wherein In the electronic equipment based on android operating system, Case-based Reasoning BluetoothClass.Device class institute can be passed through Obtained return value determines the currently device type by bluetooth connection.If the value returned is AUDIO_VIDEO_ CAMCORDER is then characterized as image capture device;If the value returned is AUDIO_VIDEO_CAR_AUDIO, it is characterized as vehicle-mounted Equipment;If the value returned is AUDIO_VIDEO_HIFI_AUDIO, it is characterized as audio-frequence player device or video playback apparatus, For example, bluetooth headset;If the value returned is AUDIO_VIDEO_MICROPHONE, it is characterized as microphone.
When determining that electronic equipment connects wireless audio playback equipment, that is to say, that wireless in electronic equipment connection After audio-frequence player device, whether detection electronic equipment receives playing request, which is for requesting to play audio The request of data then if connect in electronic equipment with the first wireless audio playback equipment, and chooses the first wireless audio to broadcast When putting equipment of the equipment as the audio data for playing electronic equipment, it is determined whether get user's operation electronic equipment and data The playing request of audio data determine that electronic equipment is broadcast by the first wireless audio if getting playing request Put device plays audio data.
Specifically, playing request can be prompting message, be also possible to voice playing request.Wherein, prompting message includes The letter that call-prompting information, short message prompting message and clock alarming information etc. are used to remind the certain events of user triggered Breath.For example, call-prompting information is for reminding user currently to have incoming call.
As another embodiment, sounding request can be during electronic equipment sounding, play voice every time Request.Then sounding request can be the request of audio sounding, be also possible to the request of video sounding or call sounding request.
Specifically, multiple audio playing softwares are installed, then the software can be music APP, view in electronic equipment Frequency plays APP or recording APP etc..For example, video playing interface is provided with video playing key, by pressing to the video playing The detection of the touch-control of key, can determine whether electronic equipment currently receives the playing request of audio data, for example, user chooses Video clicks the broadcast button of the broadcast interface into the broadcast interface of video, and application program passes through to user's touch control operation It monitors, be able to detect that user currently clicked is what kind of video, and specifically, broadcast button is provided with default category Property, detect the attribute of the acquired corresponding broadcast button of touch control operation, it will be able to determine the view to be played that user is chosen Frequently, and then playing request and the corresponding audio of the playing request are got.
Equipment configures the audio data to be played and acquired when being played by electronic equipment by two wireless audio The playing request to the audio data, it will be able to determine whether the wireless audio playback equipment described in the first two is playing not With audio data with realize audio mixing play effect.If it is, judging whether each wireless audio playback equipment is located In preset state.
Wherein, preset state indicates that the use state of wireless audio playback equipment specifically can be wearing state, work Make state, connection status or purposes, wherein purposes indicates the wireless audio playback equipment audio types to be played, for example, For playing the audio etc. in pure audio, call voice or video.Then if wireless audio playback equipment is in preset state, Then indicate that user abandons listening to audio data being played on using the wireless audio playback equipment, to abandon audio mixing broadcasting Auditory effect.
As an implementation, it can be the working condition for obtaining each wireless audio playback equipment, if described The working condition of wireless audio playback equipment is the state that goes offline, then determines that the wireless audio playback equipment is in preset state, no Then, determine that the wireless audio playback equipment is not in preset state.
Specifically, connection of the state that goes offline between electronic equipment and the wireless audio playback equipment disconnects, then can be Wireless audio playback equipment is closed, and the connection between electronic equipment and the wireless audio playback equipment is caused to disconnect, can also be with It is the communication link fails between wireless audio playback equipment and electronic equipment and electronic equipment and the wireless audio is caused to play Connection between equipment disconnects.
Specifically, electronic equipment sends a beacon to each wireless audio playback equipment, and judges within a preset time Whether receive the wireless audio playback equipment based on received beacon and returning the result for returning, if obtaining within a preset time It is returned the result to what wireless audio playback equipment was sent, then determines the connection between electronic equipment and the wireless audio playback equipment It does not disconnect, i.e., the working condition of wireless audio playback equipment is to have connected, otherwise, it is determined that the work shape of wireless audio playback equipment State is the state that goes offline.If the working condition of wireless audio playback equipment is the state that goes offline, determine that wireless audio broadcasting is set It is standby to be in preset state, if the working condition of wireless audio playback equipment is connected status, determine that the wireless audio is broadcast It puts equipment and is not in preset state.
Furthermore it is also possible to determine that the wireless audio plays according to the wearing state of wireless audio playback equipment and talking state Whether equipment is in preset state, specifically, please refers to subsequent embodiment.
S302: using the wireless audio playback equipment in preset state as the first wireless audio playback equipment, then described The audio data that first wireless audio playback equipment plays in audio mixing playing process is the first audio data.
S303: will be not in the wireless audio playback equipment of preset state as the second wireless audio playback equipment, then institute Stating the audio data that the second wireless audio playback equipment plays in audio mixing playing process is second audio data.
Whether it is in preset state is judged respectively to each wireless audio playback equipment, it will be wireless in preset state Audio-frequence player device will be not in the wireless audio playback equipment of preset state as the first wireless audio playback equipment Two wireless audio playback equipments, wherein the audio data for playing the first wireless audio playback equipment in audio mixing playing process As the first audio data, the audio data that the second wireless audio playback equipment is played in audio mixing playing process is as second Audio data, that is to say, that the first audio data plays in audio mixing playing process as the first wireless audio playback equipment The reference of audio data, and the sound that second audio data plays in audio mixing playing process as the second wireless audio playback equipment The reference of frequency evidence, rather than to the audio data that the first wireless audio playback equipment and the second wireless audio playback equipment are played Restriction.
It should be noted that if two wireless audio playback equipments are not in preset state, then it represents that user is still In the audio for listening to audio mixing broadcasting using two wireless audio playback equipments, then terminate this method or return to execute S301. In addition, if two wireless audio playback equipments are in preset state, then it represents that user abandons broadcasting using two wireless audio Equipment is put to listen to the audio, then terminates this method or return to execute S301.
S304: control the second wireless audio playback equipment plays the first audio data and second audio data simultaneously, To realize that audio mixing plays.
Specifically, the second wireless audio playback equipment of control continues to play second audio data, meanwhile, by the first wireless sound The first audio data that frequency playback equipment is played also transfers to the second wireless audio playback equipment to play, and enables a user to It continues through the second wireless audio playback equipment and plays different audio datas to realize audio mixing result of broadcast.
Specifically, the first wireless audio playback equipment of record plays the first playback progress of the first audio data, as one Kind embodiment determines in two wireless audio playback equipments when determining the first wireless audio playback equipment in default When the wireless audio playback equipment of state, the time point recorded at this time is first time point, determines that the first time point is corresponding The playback progress of first audio data controls the second wireless audio playback equipment and plays the simultaneously as the first playback progress The specific embodiment of one audio data and second audio data is to control the second wireless audio playback equipment to continue to play Second audio data, and continue to play the first audio data with the first playback progress.
In addition, in order to preferably realize effect that audio mixing plays, the first audio data and second audio data play when It waits, there is a corresponding relationship in time, for example, the two plays simultaneously or the two delay certain time plays, getting First playback progress lag, determines in audio mixing playing process, second corresponding to the first playback progress of second audio data Second playback progress of audio data then controls the second wireless audio playback equipment while playing the first audio data and the The specific embodiment of two audio datas is to control the second wireless audio playback equipment to play second with the second playback progress Audio data, while continuing to play the first audio data with the first playback progress.
For stereo, and wireless audio playback equipment is wireless headset, then user wears the first wireless headset and the Two wireless headsets, and the first wireless headset plays the left channel data of target audio, and the second wireless headset plays target audio Right data, and the first wireless headset and the second wireless headset play target audio simultaneously, then user is wireless by first Earphone and the second wireless headset are capable of the stereophonic effect of uppick target audio.When user takes or close the first wireless ear Machine or when received calls using the first wireless headset, user, which can pass through electronic equipment and control the second wireless headset, to continue The left channel data and right data of target audio are played, stereophonic effect is listened to by the second wireless headset to realize.
Wherein, as a kind of mode, what Android recording default recorded generation is pcm file, i.e. Android is stereo Pcm data structure, it is assumed that setting sample rate is 16K, and recording type is AudioFormat.CHANNEL_IN_STEREO (three-dimensional Sound recording), data type AudioFormat.ENCODING_PCM_16BIT, then the data structure of pcm file is substantially 2byte L channel, 2byte right channel, 2byte L channel, 2byte right channel ... therefore can be stereo by Android Pcm data structure splits into left channel audio signal and right channel audio signal, and obtains after the signal of fractionation is handled Left channel audio signal be transmitted to the first wireless headset input the left ear of user, the right side obtained after the signal of fractionation is handled Channel audio signal is transmitted to the second wireless headset input user's auris dextra, so as to promote audio result of broadcast and user experience
In addition, wireless audio playback equipment is wireless headset, user wears two wireless headset playing audio-fequency datas, if One of wireless headset is removed, then controls another wireless headset while playing different audio datas to realize audio mixing The effect of broadcasting.Specifically, referring to Fig. 5, showing a kind of audio frequency playing method that another embodiment of the application provides, application In above-mentioned electronic equipment, specifically, this method comprises: S501 to S505.
S501: when two wireless audio playback equipments are playing different audio datas to realize that audio mixing plays When, obtain the wearing state of each wireless audio playback equipment.
Specifically, by taking wireless audio playback equipment is bluetooth headset as an example, then the bluetooth headset includes shell, bluetooth module And playing module, wherein bluetooth module and playing module are respectively positioned in shell, and bluetooth module between electronic equipment for establishing Connection relationship and transmit data etc., and playing module is used to play acquired audio data, is provided with contact on the shell Sensor is able to detect that the exposure parameter inputted when user contacts the shell of bluetooth headset, wherein contact sensor can be Pressure sensor, close to optical sensor etc., then the exposure parameter can be pressure value or light signal strength value.
When two wireless audio playback equipments are playing different audio datas to realize that audio mixing plays, respectively The exposure parameter of two bluetooth headsets is obtained, the exposure parameter is based on, determines first bluetooth headset and second indigo plant The wearing state of tooth earphone.
It further, can be from two after obtaining two exposure parameters between bluetooth headset and user ear respectively The first bluetooth headset contacted with the left ear of user, and the second bluetooth headset contacted with user's auris dextra are determined in bluetooth headset. Wherein, it is illustrated by taking a bluetooth headset as an example, the contact sensor of the bluetooth headset is fixedly installed on the mesh of headset body In cursor position, when the bluetooth headset is placed in user Zuo Ershi, which be can detecte between the left ear of user Contact area and contact point, when the bluetooth headset is placed in user's auris dextra, which can detecte user's auris dextra Between contact point area and contact point, since the setting position of the contact sensor is constant, the bluetooth headset with Switch when placing between the left ear in family and user's auris dextra, contact area and contact point are all different, therefore, when detecting the bluetooth ear After the exposure parameter of machine, the exposure parameter and the bluetooth headset prestored can be placed in the exposure parameter and indigo plant of the left ear of user The exposure parameter that tooth earphone is placed in user's auris dextra is compared, and to determine the riding position of the bluetooth headset, that is, determines the indigo plant Tooth earphone is the first bluetooth headset or the second bluetooth headset.Likewise, another bluetooth headset can also through the above way really It is set to the first bluetooth headset or the second bluetooth headset, so as to be based on the exposure parameter, whether determines two bluetooth headsets It is worn on the ear of user, if being worn on the ear of user, determines that the wearing state of the bluetooth headset is wearing state, And if not being worn on the ear of user, determine that the wearing state of the bluetooth headset is non-wearing state.
Furthermore it is also possible to whether be worn on user's by motion profile the first bluetooth headset of detection and the second bluetooth headset On ear, specifically, the motion profile of first bluetooth headset and the motion profile of second bluetooth headset are monitored respectively.
As a kind of mode, bluetooth headset further include acceleration transducer and/gyroscope, the acceleration transducer and/ Or gyroscope is set in the headset body, the motion profile for detecting the motion profile of the bluetooth headset and will test It is sent to the electronic equipment being attached thereto, is detected with motion profile of the electronic device to bluetooth headset.It specifically, can be with The motion profile of the first bluetooth headset is detected by the first acceleration transducer being set in the first bluetooth headset and is sent to Electronic equipment, and the second acceleration transducer by being set in the second bluetooth headset detect the movement of the second bluetooth headset Track is simultaneously sent to electronic equipment, to realize the motion profile and the second bluetooth headset for monitoring first bluetooth headset respectively Motion profile.
Wherein, by taking gyroscope as an example, according to the gyroscopic inertia of the gyroscope and bluetooth headset relative to gyroscope shaft The known preset posture in direction generates pitching, yaw or cross when occurring difference between the posture and preset posture of bluetooth headset When the movement of a direction of rolling, because the shaft of the gyroscope keeps direction constant, bluetooth headset bar is detected relative to shaft Angular relationship and preset posture change relative to the angular relationship of shaft, then can determine bluetooth headset posture become Change, determines the motion profile of bluetooth headset.
The wearing state of two bluetooth headsets is determined based on the motion profile of two bluetooth headsets.
In the present embodiment, the acceleration transducer and/or top in the headset body by being set to the first bluetooth headset After spiral shell instrument detects the motion profile of first bluetooth headset, judge whether first bluetooth headset is detached from based on the motion profile The left ear of user, it is possible to understand that, when the motion profile of the first bluetooth headset characterization has the variation of apparent radian, it is believed that should First bluetooth headset is detached from the left ear of user, can when the motion profile of the first bluetooth headset characterizes the variation of no apparent radian To think that first bluetooth headset is not detached from the left ear of user
In the present embodiment, the acceleration transducer and/or top in the headset body by being set to the second bluetooth headset After spiral shell instrument detects the motion profile of second bluetooth headset, judge whether second bluetooth headset is detached from based on the motion profile User's auris dextra, it is possible to understand that, when the motion profile of the second bluetooth headset characterization has the variation of apparent radian, it is believed that should Second bluetooth headset is detached from user's auris dextra, can when the motion profile of the second bluetooth headset characterizes the variation of no apparent radian To think that second bluetooth headset is not detached from user's auris dextra.
S502: if the wearing state of the wireless audio playback equipment is non-wearing state, determine that the wireless audio is broadcast It puts equipment and is in preset state, otherwise, it is determined that the wireless audio playback equipment is not in preset state.
S503: using the wireless audio playback equipment in preset state as the first wireless audio playback equipment, then described The audio data that first wireless audio playback equipment plays in audio mixing playing process is the first audio data.
S504: will be not in the wireless audio playback equipment of preset state as the second wireless audio playback equipment, then institute Stating the audio data that the second wireless audio playback equipment plays in audio mixing playing process is second audio data.
S505: control the second wireless audio playback equipment plays the first audio data and second audio data simultaneously, To realize that audio mixing plays.
Therefore, for stereo, and wireless audio playback equipment is bluetooth headset, then user wears the first bluetooth headset With the second bluetooth headset, and the first bluetooth headset play target audio left channel data, and the second bluetooth headset play target The right data of audio, and the first bluetooth headset and the second bluetooth headset play target audio simultaneously, then user passes through first Bluetooth headset and the second bluetooth headset are capable of the stereophonic effect of uppick target audio.When user takes the first bluetooth headset When, user can control the second bluetooth headset by electronic equipment and continue to play the left channel data and right channel of target audio Data listen to stereophonic effect by the second bluetooth headset to realize.
It should be noted that the part being not described in detail in above-mentioned steps, can refer to previous embodiment, it is no longer superfluous herein It states.
In addition, user has the habit to receive calls using bluetooth headset, although then bluetooth headset is in wearing state at this time, then User is still possible to abandon listening to audio data using one of bluetooth headset, and is used to receive calls.Specifically, please join Fig. 6 is read, a kind of audio frequency playing method that the another embodiment of the application provides is shown, is applied to above-mentioned electronic equipment, specifically, This method comprises: S601 to S606.
S601: when two wireless audio playback equipments are playing different audio datas to realize that audio mixing plays When, it detects whether to get audio playing request, the audio playing request is used to play the audio of preset kind.
Specifically, the determination of audio playing request can refer to above-described embodiment.Then the audio playing request is for playing The audio of preset kind, the audio of the preset kind can be the audio etc. that voice is also possible in video, implement in the application In example, the audio of the preset kind is the audio of voice communication type.Specifically, based on application program operated by user and The audio playing request of input just can determine the type of the corresponding audio of audio playing request, for example, user clicks music The broadcast button of some audio or video of playout software and the audio playing request inputted, then the audio playing request is corresponding The type of audio is pure audio class or video class.
Specifically, when electronic equipment is sent a telegram here, i.e., when telephone bell or vibrating alert sound, electronic equipment is able to detect It arrives, and shows call interface on the screen.And user clicks Answer Key in call interface, to realize electronic equipment current Number Call connection is established with incoming number.Specifically, electronics can be monitored by the telephone supervisor in the system of electronic equipment The telephone state of equipment, thus, it is possible to monitor whether electronic equipment is in call mode.Then telephone supervisor is electronic equipment System in application program module, user obtain electronic equipment talking state, for example, when electronic equipment system be Android When system, which is TelephonyManager.
Specifically, it as shown in fig. 7, interface is answered in display in electronic equipment incoming call, is answering to answering interface display Button, user can click this and answer button to connect phone.Specifically, when clicking the push button, user is just got The audio playing request of input, then audio playing request user plays the call voice in electronic equipment communication process, i.e. language The audio of sound call type.
S602: if getting, the corresponding wireless audio playback equipment of the audio playing request is determined.
Then user can play the audio number in communication process when answering call by the wireless headset of default According to specifically, the wireless headset for receiving calls is arranged by electronic equipment by user, can be two wireless headsets, can also To be one of wireless headset, then user click it is shown in Fig. 7 answer button when, can input audio playing request, And the call can be answered by the wireless headset of default setting, i.e. the corresponding wireless audio playback equipment of the audio playing request For the wireless audio playback equipment of pre-set default, just can determine as a result, wireless corresponding to the audio playing request Audio-frequence player device.
As another embodiment, when answering call, user can choose to be set with which wireless audio broadcasting It is standby to answer the call.Specifically, as shown in figure 8, on the surface setting there are two answering button, respectively first answer by Button and second answers button, wherein and first, which answers button and second, answers button and corresponds to different wireless headsets, specifically, One answers the corresponding wireless headset for being worn on left ear of button, and second, which answers button, corresponds to the wireless headset for being worn on auris dextra, and The mode of the specific earphone for determining left and right ear can refer to aforementioned embodiments.User click one of them answer by Button, it will be able to which input audio playing request, electronic equipment answer button and second to first and answer button detection, it will be able to determine The corresponding wireless headset of audio playing request.
S603: the use state of the corresponding wireless audio playback equipment of the audio playing request is determined as in default State.
When user is intended to play the audio data in communication process using some wireless headset, then it represents that the wireless headset is not It can be used further to listen to audio mixing broadcasting, and need to play the audio data in communication process, then determine that the audio playing request is corresponding The use state of wireless audio playback equipment be determined as that in preset state, and another wireless headset is pre- as being not in Determine state.
In addition, the wearing state in above-mentioned determination wireless audio playback equipment is non-wearing state, then determine that this is wireless When audio-frequence player device is in preset state, if the wearing state of wireless audio playback equipment is wearing state, then really The audio of the fixed wireless audio playback equipment preset kind whether to be played.
Specifically, it by taking the first bluetooth headset and the second bluetooth headset as an example, if the first bluetooth headset is removed, that is, is in Non- wearing state, it is determined that the audio of the second bluetooth headset preset kind whether to be played, if it is, not executing subsequent S604 The step of to S606, because the broadcasting priority of the audio of preset kind is relatively high, for example, the audio of voice communication type Play rank highest, can preferential other kinds of audio data and first play.
Then as an implementation, when two wireless audio playback equipments be playing different audio datas with When realizing that audio mixing plays, the wearing state of each wireless audio playback equipment is obtained, if the wireless audio playback equipment Wearing state be non-wearing state, then determine that the wireless audio playback equipment is in preset state, otherwise, detect whether to obtain To audio playing request, the audio that the audio playing request is used to play preset kind determines that the audio is broadcast if getting The corresponding wireless audio playback equipment of request is put, if the use of the corresponding wireless audio playback equipment of the audio playing request State is wearing state, then terminates this method, otherwise, continue to execute S604.
As another embodiment, it can also be before detecting whether to get audio playing request, first determine two Whether a wireless headset is in wearing state, specifically, when two wireless audio playback equipments be playing it is different When audio data is to realize that audio mixing plays, the wearing state of each wireless audio playback equipment is obtained, if each nothing The wearing state of line audio-frequence player device is wearing state, then detects whether to get audio playing request, the audio Playing request is used to play the audio of preset kind;If getting, determine that the corresponding wireless audio of the audio playing request is broadcast Put equipment;The use state of the corresponding wireless audio playback equipment of the audio playing request is determined as in preset state.
S604: using the wireless audio playback equipment in preset state as the first wireless audio playback equipment, then described The audio data that first wireless audio playback equipment plays in audio mixing playing process is the first audio data.
S605: will be not in the wireless audio playback equipment of preset state as the second wireless audio playback equipment, then institute Stating the audio data that the second wireless audio playback equipment plays in audio mixing playing process is second audio data.
S606: control the second wireless audio playback equipment plays the first audio data and second audio data simultaneously, To realize that audio mixing plays.
Therefore, for stereo, and wireless audio playback equipment is bluetooth headset, then user wears the first bluetooth headset With the second bluetooth headset, and the first bluetooth headset play target audio left channel data, and the second bluetooth headset play target The right data of audio, and the first bluetooth headset and the second bluetooth headset play target audio simultaneously, then user passes through first Bluetooth headset and the second bluetooth headset are capable of the stereophonic effect of uppick target audio.It is asked when electronic equipment gets incoming call It asks, and when user answers the phone using the first bluetooth headset, user can pass through electronic equipment and control the second bluetooth ear Machine continues to play the left channel data and right data of target audio, listens to stereophone by the second bluetooth headset to realize Fruit, and the first bluetooth headset can play the audio in communication process, allow users to play when receiving calls stereo Audio.
Furthermore, it is contemplated that user is during receiving calls, it is undesirable to which the sound of surrounding is too noisy or too loudly, then Need the broadcast sound volume to the second wireless audio playback equipment to be adjusted, then specifically, the control second wireless sound Frequency playback equipment plays the first audio data and second audio data simultaneously, to realize that audio mixing plays, comprising: reduce described second The broadcast sound volume of wireless audio playback equipment controls the second wireless audio playback equipment with the broadcast sound volume after reducing simultaneously The first audio data and second audio data are played, to realize that audio mixing plays.
Specifically, the broadcast sound volume of the second wireless audio playback equipment is obtained, as an implementation, electronic equipment hair Send volume acquisition request to the second wireless audio playback equipment, the second wireless audio playback equipment is going to audio acquisition request excessively Later, the broadcast sound volume of the second wireless audio playback equipment is fed back according to the volume acquisition request.As another embodiment, Audio client end of playing back is provided in electronic equipment, which requests playing audio-fequency data, and user passes through Audio client end of playing back can adjust the broadcast sound volume of audio mixing playing audio-fequency data, that is to say, that the first wireless sound can be arranged Broadcast sound volume when frequency playback equipment or the second wireless audio playback equipment playing audio-fequency data.
Then, then obtain electronic equipment play preset kind audio when broadcast sound volume, that is, converse when In Call, The size relation of the two is determined, if the broadcast sound volume of the second wireless audio playback equipment is greater than the first wireless audio playback equipment The broadcast sound volume when audio of preset kind is played, then reduces the broadcast sound volume of the second wireless audio playback equipment.Example Property, the first wireless audio playback equipment and the second wireless audio playback equipment are with the first volume playing audio-fequency data to realize The effect that audio mixing plays, then user is received calls using the first wireless audio playback equipment, then In Call when receiving calls For the second volume, then the difference of the first volume and the second volume is obtained, the first volume and the second sound can determine according to the difference First volume is reduced, specifically, be can be the first sound if the first volume is greater than the second volume by the size relation of amount Amount falls below the second volume, more specifically, can be the half of the volume absolute value of the difference of acquisition zero and the second volume, note It is then the second volume by the first volume adjustment for third volume.
Thereby, it is possible to make user listen to the audio data of audio mixing broadcasting while receiving calls, also, audio mixing plays The volume of audio data be lower than the In Call that receives calls so that the sound for the audio data that user will not play because of audio mixing Measure excessive and when can not catch call voice.
It should be noted that the part being not described in detail in above-mentioned steps, can refer to previous embodiment, it is no longer superfluous herein It states.
Referring to Fig. 9, it illustrates a kind of structural block diagram of audio playing apparatus 900 provided by the embodiments of the present application, it should Device may include: detection unit 901, the first determination unit 902, the second determination unit 903 and broadcast unit 904.
Detection unit 901, for being playing different audio datas when two wireless audio playback equipments with reality When existing audio mixing plays, judge whether each wireless audio playback equipment is in preset state.
First determination unit 902, for the wireless audio playback equipment of preset state will to be in as the first wireless audio Playback equipment, the then audio data that the first wireless audio playback equipment plays in audio mixing playing process are the first audio number According to.
Second determination unit 903, for the wireless audio playback equipment of preset state will to be not in as the second wireless sound Frequency playback equipment, the then audio data that the second wireless audio playback equipment plays in audio mixing playing process are the second audio Data.
Broadcast unit 904, for controlling the second wireless audio playback equipment while playing the first audio data and the Two audio datas, to realize that audio mixing plays.
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.
Referring to FIG. 10, it illustrates the structural block diagrams of a kind of electronic equipment provided by the embodiments of the present application.The electronics is set Standby 100, which can be smart phone, tablet computer, e-book etc., can run the electronic equipment of application program.Electricity in the application Sub- equipment 100 may include one or more such as lower component: processor 110, memory 120, bluetooth module 140 and one or Multiple application programs, wherein one or more application programs can be stored in memory 120 and be configured as by one or Multiple processors 110 execute, 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 140 for realizing the bluetooth connection between electronic equipment and bluetooth equipment, and with bluetooth equipment it Between data interaction.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.Then bluetooth module 140 may include power amplifier, wireless receiving and dispatching Device, transmit/receive switch, low-noise amplifier and antenna etc..When sending signal, transceiver itself can directly export low power Faint radiofrequency signal is sent to power amplifier (Power Amplifier, PA) and carries out power amplification, is then cut by transmitting-receiving Parallel operation (Transmit/Receive Switch) is radiated to space via antenna (Antenna).When receiving signal, antenna can be felt It should be to the electromagnetic signal in space, by sending after switch to low-noise amplifier (Low Noise Amplifier, LNA) It amplifies, is handled, demodulated in this way, amplified signal can be directly fed to transceiver, the bluetooth module 140 2.4GHz frequency range can be used.
Figure 11 is please referred to, it illustrates a kind of structural frames of computer readable storage medium provided by the embodiments of the present application Figure.Program code is stored in the computer-readable medium 1100, said program code can be called by processor and execute above-mentioned side Method described in method embodiment.
Computer readable storage medium 1100 can be (the read-only storage of electrically erasable of such as flash memory, EEPROM Device), the electronic memory of EPROM, hard disk or ROM etc.Optionally, computer readable storage medium 1100 includes non-volatile Property computer-readable medium (non-transitory computer-readable storage medium).It is computer-readable Storage medium 1100 has the memory space for the program code 1110 for executing any method and step in the above method.These programs Code can read or be written to this one or more computer program from one or more computer program product In product.Program code 1110 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, the electronic equipment can connect two simultaneously Wireless audio playback equipment, which comprises
When two wireless audio playback equipments are playing different audio datas to realize that audio mixing plays, judgement is each Whether the wireless audio playback equipment is in preset state;
Using the wireless audio playback equipment in preset state as the first wireless audio playback equipment, then the described first wireless sound The audio data that frequency playback equipment plays in audio mixing playing process is the first audio data;
The wireless audio playback equipment of preset state will be not in as the second wireless audio playback equipment, then described second is wireless The audio data that audio-frequence player device plays in audio mixing playing process is second audio data;
It controls the second wireless audio playback equipment while playing the first audio data and second audio data, to realize audio mixing It plays.
2. the method according to claim 1, wherein the wireless audio playback equipment be wireless headset, it is described Judge whether each wireless audio playback equipment is in preset state, comprising:
Obtain the wearing state of each wireless audio playback equipment;
If the wearing state of the wireless audio playback equipment is non-wearing state, determine that the wireless audio playback equipment is in Preset state, otherwise, it is determined that the wireless audio playback equipment is not in preset state.
3. the method according to claim 1, wherein the wireless audio playback equipment be wireless headset, it is described Judge whether each wireless audio playback equipment is in preset state, comprising:
It detects whether to get audio playing request, the audio playing request is used to play the audio of preset kind;
If getting, the corresponding wireless audio playback equipment of the audio playing request is determined;
The use state of the corresponding wireless audio playback equipment of the audio playing request is determined as in preset state.
4. according to the method described in claim 3, it is characterized in that, the audio of the preset kind is the sound of voice communication type Frequently.
5. according to the method described in claim 4, it is characterized in that, described control the second wireless audio playback equipment simultaneously The first audio data and second audio data are played, to realize that audio mixing plays, comprising:
Reduce the broadcast sound volume of the second wireless audio playback equipment;
The second wireless audio playback equipment is controlled with the broadcast sound volume after reducing while playing the first audio data and second Audio data, to realize that audio mixing plays.
6. the method according to claim 1, wherein whether described judge each wireless audio playback equipment In preset state, comprising:
Obtain the working condition of each wireless audio playback equipment;
If the working condition of the wireless audio playback equipment is the state that goes offline, determine that the wireless audio playback equipment is in pre- If state, otherwise, it is determined that the wireless audio playback equipment is not in preset state.
7. -6 any method according to claim 1, which is characterized in that when two wireless audio playback equipments When playing different audio datas to realize that audio mixing plays, judge whether each wireless audio playback equipment is in default shape State, comprising:
In two wireless audio playback equipments, a wireless audio playback equipment is playing the L channel of audio data Data, another wireless audio playback equipment are playing the right data of the audio data to realize the audio data Played in stereo when, judge whether each wireless audio playback equipment is in preset state.
8. a kind of audio playing apparatus, which is characterized in that be applied to electronic equipment, the electronic equipment can connect two simultaneously Wireless audio playback equipment, the audio playing apparatus include:
Detection unit, for being playing different audio datas when two wireless audio playback equipments to realize that audio mixing is broadcast When putting, judge whether each wireless audio playback equipment is in preset state;
First determination unit, for setting the wireless audio playback equipment for being in preset state as the broadcasting of the first wireless audio Standby, then the audio data that the first wireless audio playback equipment plays in audio mixing playing process is the first audio data;
Second determination unit, for setting the wireless audio playback equipment for being not in preset state as the broadcasting of the second wireless audio Standby, then the audio data that the second wireless audio playback equipment plays in audio mixing playing process is second audio data;
Broadcast unit, for controlling the second wireless audio playback equipment while playing the first audio data and the second audio number According to realize that audio mixing plays.
9. a kind of electronic equipment characterized by comprising
One or more processors, one or more of processors can connect two wireless audio playback equipments simultaneously;
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 medium, which is characterized in that be stored with program generation in the computer-readable storage medium Code, said program code can be called by processor and execute any one of claim 1-7 the method.
CN201811161376.5A 2018-09-30 2018-09-30 Audio playing method and device, electronic equipment and computer readable medium Active CN109379490B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201811161376.5A CN109379490B (en) 2018-09-30 2018-09-30 Audio playing method and device, electronic equipment and computer readable medium
PCT/CN2019/097146 WO2020063069A1 (en) 2018-09-30 2019-07-22 Audio playing method and apparatus, electronic device and computer-readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811161376.5A CN109379490B (en) 2018-09-30 2018-09-30 Audio playing method and device, electronic equipment and computer readable medium

Publications (2)

Publication Number Publication Date
CN109379490A true CN109379490A (en) 2019-02-22
CN109379490B CN109379490B (en) 2021-02-05

Family

ID=65402891

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811161376.5A Active CN109379490B (en) 2018-09-30 2018-09-30 Audio playing method and device, electronic equipment and computer readable medium

Country Status (2)

Country Link
CN (1) CN109379490B (en)
WO (1) WO2020063069A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110505610A (en) * 2019-04-30 2019-11-26 努比亚技术有限公司 Communication management method, equipment, system and readable storage medium storing program for executing
WO2020063069A1 (en) * 2018-09-30 2020-04-02 Oppo广东移动通信有限公司 Audio playing method and apparatus, electronic device and computer-readable medium
CN109831833B (en) * 2019-03-18 2021-01-05 成都极客通科技有限公司 Emergency call-in system and method based on sound mixing control
WO2022087924A1 (en) * 2020-10-28 2022-05-05 Oppo广东移动通信有限公司 Audio control method and device
WO2024040527A1 (en) * 2022-08-25 2024-02-29 Qualcomm Incorporated Spatial audio using a single audio device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100020998A1 (en) * 2008-07-28 2010-01-28 Plantronics, Inc. Headset wearing mode based operation
CN107295434A (en) * 2017-05-26 2017-10-24 广东思派康电子科技有限公司 TWS earphones and realize the vocal music of TWS earphones with the computer-readable recording medium broadcast
CN108076306A (en) * 2017-12-29 2018-05-25 中兴通讯股份有限公司 Meeting implementation method, device, equipment and system, computer readable storage medium
CN108108146A (en) * 2018-01-19 2018-06-01 深圳市沃特沃德股份有限公司 The method and playback equipment that multiple playback equipments are played simultaneously

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104159173A (en) * 2014-08-27 2014-11-19 宇龙计算机通信科技(深圳)有限公司 Earphone, earphone application method, earphone control method and device as well as mobile terminal
CN105472496A (en) * 2015-11-21 2016-04-06 惠州Tcl移动通信有限公司 Bluetooth earphone and automatic on-off method thereof
CN106341757A (en) * 2016-09-30 2017-01-18 宇龙计算机通信科技(深圳)有限公司 Sound source simultaneous playing method, device and terminal
CN109379490B (en) * 2018-09-30 2021-02-05 Oppo广东移动通信有限公司 Audio playing method and device, electronic equipment and computer readable medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100020998A1 (en) * 2008-07-28 2010-01-28 Plantronics, Inc. Headset wearing mode based operation
CN107295434A (en) * 2017-05-26 2017-10-24 广东思派康电子科技有限公司 TWS earphones and realize the vocal music of TWS earphones with the computer-readable recording medium broadcast
CN108076306A (en) * 2017-12-29 2018-05-25 中兴通讯股份有限公司 Meeting implementation method, device, equipment and system, computer readable storage medium
CN108108146A (en) * 2018-01-19 2018-06-01 深圳市沃特沃德股份有限公司 The method and playback equipment that multiple playback equipments are played simultaneously

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020063069A1 (en) * 2018-09-30 2020-04-02 Oppo广东移动通信有限公司 Audio playing method and apparatus, electronic device and computer-readable medium
CN109831833B (en) * 2019-03-18 2021-01-05 成都极客通科技有限公司 Emergency call-in system and method based on sound mixing control
CN110505610A (en) * 2019-04-30 2019-11-26 努比亚技术有限公司 Communication management method, equipment, system and readable storage medium storing program for executing
WO2022087924A1 (en) * 2020-10-28 2022-05-05 Oppo广东移动通信有限公司 Audio control method and device
WO2024040527A1 (en) * 2022-08-25 2024-02-29 Qualcomm Incorporated Spatial audio using a single audio device

Also Published As

Publication number Publication date
WO2020063069A1 (en) 2020-04-02
CN109379490B (en) 2021-02-05

Similar Documents

Publication Publication Date Title
CN109379490A (en) Audio frequency playing method, device, electronic equipment and computer-readable medium
US11251763B2 (en) Audio signal adjustment method, storage medium, and terminal
CN109379653B (en) Audio transmission method and device, electronic equipment and storage medium
CN105872253B (en) Live broadcast sound processing method and mobile terminal
CN109445739A (en) Audio frequency playing method, device, electronic equipment and computer-readable medium
CN109379491A (en) Audio frequency playing method, device, electronic equipment and computer-readable medium
US9112991B2 (en) Playing synchronized multichannel media on a combination of devices
CN108886653B (en) Earphone sound channel control method, related equipment and system
CN109445740A (en) Audio frequency playing method, device, electronic equipment and storage medium
CN109151789B (en) Translation method, device and system and Bluetooth headset
WO2019033987A1 (en) Prompting method and apparatus, storage medium, and terminal
TW201820315A (en) Improved audio headset device
CN109151566B (en) Audio playing method and device, electronic equipment and computer readable medium
CN109104662A (en) Instruction executing method, operation response method, terminal and ear speaker device
CN109274405A (en) Data transmission method, device, electronic equipment and computer-readable medium
CN109067965B (en) Translation method, translation device, wearable device and storage medium
CN109413526A (en) Headset control method, device, electronic equipment and storage medium
WO2020063065A1 (en) Audio transmission method and apparatus, electronic device, and storage medium
US9967668B2 (en) Binaural recording system and earpiece set
CN109271131A (en) Headset control method, device, electronic equipment and storage medium
CN112788176A (en) Earphone volume adjusting method and device, storage medium and electronic equipment
CN109194998A (en) Data transmission method, device, electronic equipment and computer-readable medium
CN108683975A (en) A kind of audio frequency apparatus
WO2016028847A1 (en) Binaural recording system and earpiece set
CN116095595B (en) Audio processing method and device

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