Summary of the invention
The main purpose of the present invention is to provide a kind of audio data play method, device and intelligent TV sets, it is intended to solveCertainly in the prior art, when smart machine receives the audio data of the external equipment of multiple and different transport-types, there is audio numberThe technical issues of leading to not normal play according to superposition entanglement.
To achieve the above object, the present invention provides a kind of audio data play method, this method comprises:
At least two groups audio data is received under different transmission modes, the audio data source is in Bluetooth slave devices and nothingGauze is from equipment;
Determine the broadcasting of the audio data respectively according to the size of the source type of the audio data and audio dataPriority;
Audio broadcasting is carried out according to the corresponding broadcasting priority of the audio data.
Preferably, the size of the audio data is big for the playing duration size of audio data or the capacity of audio dataIt is small.
Preferably, described that the audio is determined according to the source type of the audio data and the size of audio data respectivelyThe step of broadcasting priority of data includes:
It is that the audio data assigns a weighted value according to the source type of the audio data;
According to the size of the audio data and the corresponding weighted value of the audio data, the audio data is determined respectivelyBroadcasting priority.
Preferably, described is respectively that the audio data assigns a weighted value according to the source type of the audio dataStep includes:
The number for obtaining Bluetooth slave devices, as first number;And number of the wireless network from equipment is obtained, as secondNumber;
It is the audio data according to second number if the source type of the audio data is Bluetooth slave devicesAssign a weighted value;
If the source type of the audio data is wireless network from equipment, it is according to first number and second numberThe audio data assigns a weighted value.
Preferably, the source type is that the corresponding weighted value of audio data of Bluetooth slave devices is identical, the source classType is that the corresponding weighted value of audio data of wireless network from equipment is identical.
In addition, to achieve the above object, the present invention also provides a kind of audio data playing device, which includes:
Receiving module, under different transmission modes receive at least two groups audio data, the audio data source inBluetooth slave devices and wireless network are from equipment;
Determining module, for determining the sound respectively according to the source type of the audio data and the size of audio dataThe broadcasting priority of frequency evidence;
Playing module, for carrying out audio broadcasting according to the corresponding broadcasting priority of the audio data.
Preferably, the size of the audio data is big for the playing duration size of audio data or the capacity of audio dataIt is small.
Preferably, the determining module includes:
Assignment unit, for being that the audio data assigns a weighted value according to the source type of the audio data;
Determination unit, it is true respectively for the size and the corresponding weighted value of the audio data according to the audio dataThe broadcasting priority of the fixed audio data.
Preferably, the assignment unit includes:
Subelement is obtained, for when the audio data is not all from Bluetooth slave devices or wireless network from equipment,The number for obtaining Bluetooth slave devices, as first number;And number of the wireless network from equipment is obtained, as second number;
When first assignment subunit for the source type in the audio data is Bluetooth slave devices, according to described theTwo numbers are that the audio data assigns a weighted value;
Second assignment subunit, for the source type in the audio data be wireless network from equipment when, according to describedFirst number and second number are that the audio data assigns a weighted value.
Preferably, the source type is that the corresponding weighted value of audio data of Bluetooth slave devices is identical, the source classType is that the corresponding weighted value of audio data of wireless network from equipment is identical.
In addition, to achieve the above object, the present invention also provides a kind of intelligent TV set, which includes above-mentionedAudio data playing device described in one.
Audio data play method, device and intelligent TV set of the invention, by received under different transmission modes toFew two groups of audio datas, the audio data source is in Bluetooth slave devices and wireless network from equipment;According to the audio dataThe size of source type and audio data determines the broadcasting priority of the audio data respectively;It is corresponding according to the audio dataBroadcasting priority carry out audio broadcasting;The playing sequence that can explicitly determine each audio data received, to receivingAudio data according to play priority play out, can avoid the external equipment equipment for receiving multiple and different transport-typesWhen audio data, there is audio data overlapping entanglement and cause to play abnormal problem.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Referring to Fig.1, Fig. 1 is the flow diagram of an embodiment of audio data play method of the present invention, and this method can answerFor in intelligent TV set, this method comprises:
S10, receive at least two groups audio data under different transmission modes, the audio data source in Bluetooth slave devices andWireless network is from equipment.
The audio data can have from Bluetooth slave devices, also have from wireless network from equipment.The Bluetooth slave devicesFor blue Tooth remote controller, Bluetooth audio device etc., the wireless network from equipment be mobile phone, tablet computer etc..In one embodiment, the audio numberAccording to including audio data F1, audio data F2, audio data F3 and audio data F4, Bluetooth slave devices include the first bluetooth from settingStandby B1 and the second Bluetooth slave devices B2, wireless network from equipment include the first wireless network from equipment W1 and the second wireless network from equipmentW2, wherein audio data F1 derives from the first Bluetooth slave devices B2, sound from the first Bluetooth slave devices B1, audio data F2Frequency derives from the second wireless network from equipment W2 from equipment W1, audio data F4 from the first wireless network according to F3.
S20, the broadcasting for determining the audio data respectively according to the source type of the audio data and the size of audio dataPriority.
The audio data carries audio source identification, in this step, is marked according to the audio source that audio data carriesThe source type for determining the audio data is known, to determine that the audio data is to come from Bluetooth slave devices or wireless network from equipment.In one embodiment, 0x10 is set by the audio source identification of the audio data from Bluetooth slave devices, wireless network will be come from0x20 is set as from the audio source identification of the audio data of equipment.
In one embodiment, audio data includes audio data F1, audio data F2, audio data F3 and audio dataF4, wherein the audio source identification of audio data F1 is 0x10, the audio source identification 0x10 of audio data F2, audio dataThe audio source identification 0x20 of the audio source identification 0x20 of F3, audio data F4, i.e. audio data F1 and audio data F2 areBluetooth slave devices are derived from, audio data F3 and audio data F4 are derived from wireless network from equipment.
The size of the audio data is the playing duration size of audio data or the amount of capacity of audio data, such as in a realityIt applies in example, the size of audio data F1 are as follows: playing duration 2 minutes, the size of audio data F2 are as follows: playing duration 3 minutes, audioThe size of data F3 are as follows: playing duration 1 minute, the size of audio data F4 are as follows: playing duration 4 minutes;In one embodiment, soundFrequency according to F1 size are as follows: capacity 5M, the size of audio data F2 are as follows: capacity 6M, the size of audio data F3 are as follows: capacity 2M,The size of audio data F4 are as follows: capacity 4M.
In this step, the source type of each audio data and the size of audio data are obtained, and according to each audioThe source type of data and the size of audio data carry out ascending order arrangement, the audio data being arranged in front to each audio dataPriority it is high.
In one embodiment, it may be determined that first playing source type is audio data of the wireless network from equipment, is then played againPrior source type is the audio data of Bluetooth slave devices, belongs to the audio data of same type type, according still further to audio dataSize play out from small to large, i.e., first play lesser audio signal.Such as audio data includes that source type is bluetoothIt is audio data F2, the source type of Bluetooth slave devices from audio data F1, the source type of equipment is the sound of wireless slave unitFrequency is the audio data F4 of wireless slave unit according to F3 and source type, their size distinguishes 2 minutes, 3 minutes, 1 minute, 4Minute, the broadcasting priority of audio data sorts successively from high to low are as follows: audio data F3, audio data F4, audio data F1,The priority of audio data F2, the highest priority of audio data F3, audio data F2 are minimum.
S30, audio broadcasting is carried out according to the corresponding broadcasting priority of the audio data.
In this step, audio broadcasting is carried out according to the corresponding broadcasting priority of the audio data, preferentially plays priorityHigh audio data.
Using above-described embodiment, by receiving at least two groups audio data under different transmission modes, which comesDerived from Bluetooth slave devices and wireless network from equipment;Determine that the broadcasting of the audio data is preferential respectively according to the size of the audio dataGrade;Audio broadcasting is carried out according to the corresponding broadcasting priority of the audio data;It can explicitly determine each audio number receivedAccording to playing sequence, to the audio data received according to play priority play out, can avoid receiving multiple and different biographiesWhen the audio data of the external equipment of defeated type, there is audio data overlapping entanglement and cause to play abnormal problem.
Further, as shown in Fig. 2, being determined respectively according to the size of the source type of the audio data and audio dataThe step of broadcasting priority of the audio data includes:
S21, respectively according to the source type of the audio data be the audio data assign a weighted value, then execute stepS22。
It is that each audio data assigns a weighted value according to the source type of each audio data, preferably, different nextThe corresponding weighted value of the audio data of Source Type is different, can set the weighted value for the audio data that source type is Bluetooth slave devicesIt is set to bigger than the weighted value that source type is wireless network from the audio data of equipment.
Source type is that the corresponding weighted value of audio data of Bluetooth slave devices is identical, and source type is wireless network from equipmentThe corresponding weighted value of audio data it is identical.
S22, according to the size of the audio data and the corresponding weighted value of the audio data, determine the audio data respectivelyPlay priority.
In this step, each audio data can be obtained by the size of each audio data multiplied by its corresponding weighted valuePriority value, determine that the broadcasting priority of each audio data is e.g. pressed further according to the corresponding priority value of each audio dataAscending order arrangement is carried out to each audio data according to the size of the priority value of each audio data, the audio data being arranged in frontPriority is high.
In one embodiment, which includes audio data F1, audio data F2, audio data F3 and audio numberAccording to F4, (audio data F1 and audio data F2 are derived from Bluetooth slave devices, and audio data F3 and audio data F4 comeDerived from wireless network from equipment), their size distinguishes 2 minutes, 3 minutes, 1 minute, 4 minutes, their weighted value is respectively 3,3,1,1, their priority value is respectively 6,9,1,4, after arranging according to the size of priority value each audio data ascending order,It is followed successively by audio data F3, audio data F4, audio data F1, audio data F2, the priority for the audio data being arranged in frontIt is high.When the corresponding priority value of audio data is identical, the audio data for first playing that source type is Bluetooth slave devices can be defaulted.
Further, as shown in figure 3, being respectively that the audio data assigns a weight according to the source type of the audio dataThe step of value includes:
S211, the number for obtaining Bluetooth slave devices, as first number;And number of the wireless network from equipment is obtained, asSecond number.
The number of the Bluetooth slave devices, includes the number for sending the Bluetooth slave devices of audio data, also includes not sentThe number of the Bluetooth slave devices of audio data, e.g., the Bluetooth slave devices being connect with intelligent TV set a total of 5, and only 3Bluetooth slave devices, which have, sends audio data to television set, this first number is 5.
Similarly, which includes to send the wireless network of audio data from the number of equipment, also wraps from the number of equipmentThe wireless network of not sent audio data is included from the number of equipment, e.g., the wireless network being connect with television set a total of 10 from equipment,And only 5 wireless networks have transmission audio data to television set from equipment, this second number is 10.
Common, wireless network is greater than the number of Bluetooth slave devices from the number of equipment, i.e., second number is greater than first number.
It is the audio data according to this second number if the source type of S212, the audio data is Bluetooth slave devicesAssign a weighted value;
It is that the audio data assigns one according to this second number when the source type of the audio data is Bluetooth slave devicesWeighted value, preferably, set second number to the weighted value of the audio data, if this second number is 10, then source classType is that the corresponding weighted value of audio data of Bluetooth slave devices is 10.
If the source type of S213, the audio data is wireless network from equipment, according to this first number and second numberA weighted value is assigned for the audio data.
When the source type of the audio data be wireless network from equipment when, according to this first number and second number for the soundFrequency, preferably, second number is subtracted first number, obtains difference, using the difference as the sound according to a weighted value is assignedFrequency is 10 according to corresponding weighted value, such as this second number, and first number is 5, then source type is sound of the wireless network from equipmentFrequency is 5 according to corresponding weighted value.
It uses aforesaid way to assign corresponding weighted value for the audio data of separate sources type, may make that source type isIt is weighted value of the wireless network from the audio data of equipment that the weighted value of the audio data of Bluetooth slave devices, which is greater than source type, and nothingGauze is more from equipment, which is that the weighted value of the audio data of Bluetooth slave devices is bigger;In subsequent determining audio numberAccording to broadcasting priority when, when audio data that source type is Bluetooth slave devices and source type are sound of the wireless network from equipmentWhen the size of frequency evidence is identical, it may be determined that source type is that the broadcasting priority of the audio data of Bluetooth slave devices is high, Ji KexianPlay the audio data that source type is Bluetooth slave devices.
The present invention also provides a kind of audio data playing devices.
Referring to Fig. 4, Fig. 4 is the structural schematic diagram of an embodiment of audio data playing device of the present invention, which can answerFor in intelligent TV set, which includes:
Receiving module 10, under different transmission modes receive at least two groups audio data, the audio data source inBluetooth slave devices and wireless network are from equipment;
Determining module 20, for determining the audio respectively according to the source type of the audio data and the size of audio dataThe broadcasting priority of data;
Playing module 30, for carrying out audio broadcasting according to the corresponding broadcasting priority of the audio data.
The receiving module 10 receives the Bluetooth slave devices and wireless network with audio data playing device communication connection simultaneouslyThe audio data sent from equipment.The audio data can have from Bluetooth slave devices, also have from wireless network from equipment;The Bluetooth slave devices are blue Tooth remote controller, Bluetooth audio device etc., the wireless network from equipment be mobile phone, tablet computer etc.;Implement oneIn example, which includes audio data F1, audio data F2, audio data F3 and audio data F4, Bluetooth slave devices packetInclude the first Bluetooth slave devices B1 and the second Bluetooth slave devices B2, wireless network from equipment include the first wireless network from equipment W1 and theTwo wireless networks are from equipment W2, wherein audio data F1 derives from first from the first Bluetooth slave devices B1, audio data F2Bluetooth slave devices B2, audio data F3 from the first wireless network from equipment W1, audio data F4 from the first wireless network fromEquipment W2.
The audio data carries audio source identification, which marks according to the audio source that audio data carriesThe source type for determining the audio data is known, to determine that the audio data is to come from Bluetooth slave devices or wireless network from equipment.In one embodiment, 0x10 is set by the audio source identification of the audio data from Bluetooth slave devices, wireless network will be come from0x20 is set as from the audio source identification of the audio data of equipment.
In one embodiment, audio data includes audio data F1, audio data F2, audio data F3 and audio dataF4, wherein the audio source identification of audio data F1 is 0x10, the audio source identification 0x10 of audio data F2, audio dataThe audio source identification 0x20 of the audio source identification 0x20 of F3, audio data F4, i.e. audio data F1 and audio data F2 areBluetooth slave devices are derived from, audio data F3 and audio data F4 are derived from wireless network from equipment.
The size of the audio data is the playing duration size of audio data or the amount of capacity of audio data, such as in a realityIt applies in example, the size of audio data F1 are as follows: playing duration 2 minutes, the size of audio data F2 are as follows: playing duration 3 minutes, audioThe size of data F3 are as follows: playing duration 1 minute, the size of audio data F4 are as follows: playing duration 4 minutes;In one embodiment, soundFrequency according to F1 size are as follows: capacity 5M, the size of audio data F2 are as follows: capacity 6M, the size of audio data F3 are as follows: capacity 2M,The size of audio data F4 are as follows: capacity 4M.
The determining module 20 obtains the source type of each audio data and the size of audio data, and according to each audioThe source type of data and the size of audio data carry out ascending order arrangement, the audio data being arranged in front to each audio dataPriority it is high.
In one embodiment, which can determine that first playing source type is audio number of the wireless network from equipmentAccording to, the audio data that prior source type is Bluetooth slave devices is then played again, belongs to the audio data of same type type, thenIt is played out from small to large according to the size of audio data, i.e., first plays lesser audio signal.Such as audio data includes comingIt is audio data F2, the source type of Bluetooth slave devices is nothing that Source Type, which is audio data F1, the source type of Bluetooth slave devices,Line is the audio data F4 of wireless slave unit from the audio data F3 and source type of equipment, their size distinguishes 2 minutes, 3Minute, 1 minute, 4 minutes, the broadcasting priority of audio data sort successively from high to low are as follows: audio data F3, audio dataF4, audio data F1, audio data F2, the priority of the highest priority of audio data F3, audio data F2 are minimum.
The playing module 30 carries out audio broadcasting according to the corresponding broadcasting priority of the audio data, preferentially plays priorityHigh audio data.
Further, as shown in figure 5, the determining module 20 includes:
Assignment unit 21, for being that the audio data assigns a weighted value according to the source type of the audio data;
Determination unit 22, for being determined respectively according to the size of the audio data and the corresponding weighted value of the audio dataThe broadcasting priority of the audio data.
The assignment unit 21 is that each audio data assigns a weighted value according to the source type of each audio data, compared withGood, the corresponding weighted value of the audio data of separate sources type is different, can be the audio number of Bluetooth slave devices by source typeAccording to weighted value be set as than source type be wireless network it is big from the weighted value of the audio data of equipment.
Source type is that the corresponding weighted value of audio data of Bluetooth slave devices is identical, and source type is wireless network from equipmentThe corresponding weighted value of audio data it is identical.
The determination unit 22 can obtain each audio data by the size of each audio data multiplied by its corresponding weighted valuePriority value, determine that the broadcasting priority of each audio data is e.g. pressed further according to the corresponding priority value of each audio dataAscending order arrangement is carried out to each audio data according to the size of the priority value of each audio data, the audio data being arranged in frontPriority is high.
In one embodiment, which includes audio data F1, audio data F2, audio data F3 and audio numberAccording to F4, (audio data F1 and audio data F2 are derived from Bluetooth slave devices, and audio data F3 and audio data F3 comeDerived from wireless network from equipment), their size distinguishes 2 minutes, 3 minutes, 1 minute, 4 minutes, their weighted value is respectively 3,3,1,1, their priority value is respectively 6,9,1,4, after arranging according to the size of priority value each audio data ascending order,It is followed successively by audio data F3, audio data F4, audio data F1, audio data F2, the priority for the audio data being arranged in frontIt is high.When the corresponding priority value of audio data is identical, the audio data for first playing that source type is Bluetooth slave devices can be defaulted.
Further, as shown in fig. 6, the assignment unit 21 includes:
Subelement 211 is obtained, for when the audio data is not all from Bluetooth slave devices or wireless network from equipment,The number for obtaining Bluetooth slave devices, as first number;And number of the wireless network from equipment is obtained, as second number;
First assignment subunit 212, for the source type in the audio data be Bluetooth slave devices when, according to this secondNumber is that the audio data assigns a weighted value;
Second assignment subunit 213, for the source type in the audio data be wireless network from equipment when, according to thisOne number and second number are that the audio data assigns a weighted value.
The number of the Bluetooth slave devices, includes the number for sending the Bluetooth slave devices of audio data, also includes not sentThe number of the Bluetooth slave devices of audio data, e.g., the Bluetooth slave devices being connect with intelligent TV set a total of 5, and only 3Bluetooth slave devices, which have, sends audio data to television set, this first number is 5.
Similarly, which includes to send the wireless network of audio data from the number of equipment, also wraps from the number of equipmentThe wireless network of not sent audio data is included from the number of equipment, e.g., the wireless network being connect with television set a total of 10 from equipment,And only 5 wireless networks have transmission audio data to television set from equipment, this second number is 10.
Common, wireless network is greater than the number of Bluetooth slave devices from the number of equipment, i.e., second number is greater than first number.
When the source type of the audio data is Bluetooth slave devices, first assignment subunit 212 is according to this secondNumber is that the audio data assigns a weighted value, preferably, set second number to the weighted value of the audio data, as thisTwo numbers are 10, then it is 10 that source type, which is the corresponding weighted value of audio data of Bluetooth slave devices,.
When the source type of the audio data be wireless network from equipment when, second assignment subunit 213 according to this firstNumber and second number assign a weighted value for the audio data and obtain difference preferably, second number is subtracted first numberValue is 10 using the difference as the corresponding weighted value of the audio data, such as this second number, and first number is 5, then source typeIt is 5 for the corresponding weighted value of audio data of wireless network from equipment.
Corresponding weighted value is assigned by the audio data that the assignment unit 21 is separate sources type, may make source classType is that be greater than source type be wireless network from the weighted value of the audio data of equipment to the weighted value of the audio data of Bluetooth slave devices,And wireless network is more from equipment, which is that the weighted value of the audio data of Bluetooth slave devices is bigger;In subsequent determining soundWhen the broadcasting priority of frequency evidence, when audio data that source type is Bluetooth slave devices and source type are wireless network from equipmentAudio data size it is identical when, it may be determined that source type is that the broadcasting priority of the audio data of Bluetooth slave devices is high, i.e.,The audio data that source type is Bluetooth slave devices can first be played.
Further, the present invention is to additionally provide a kind of intelligent TV set, which includes any of the above-described implementationThe audio data playing device of example.
The intelligent TV set is connect with Bluetooth slave devices and wireless network from equipment, receives Bluetooth slave devices and wireless network from settingThe audio data that preparation is sent.The Bluetooth slave devices can have multiple, which can have multiple from equipment.The Bluetooth slave devicesCan be for blue Tooth remote controller, Bluetooth audio device etc., which can be mobile phone, tablet computer etc. from equipment, and the wireless network is from settingIt is standby to have the function of wifi and/or 3G function
The intelligent TV set receives at least two groups audio data under different transmission modes, and the audio data source is in bluetoothFrom equipment and wireless network from equipment;And the audio is determined according to the source type of the audio data and the size of audio data respectivelyThe broadcasting priority of data;Audio broadcasting is carried out further according to the corresponding broadcasting priority of the audio data.The intelligent TV set canThe specific playing sequence for determining each audio data received carries out the audio data received according to priority is playedIt plays, can avoid audio data overlapping entanglement and cause to play abnormal problem.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hairEquivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skillsArt field, is included within the scope of the present invention.