Summary of the invention
In order to solve the problem of background technology, the embodiment of the invention provides a kind of method, equipment and system of realizing that multichannel plays sound.
On the one hand, provide a kind of method that realizes that multichannel plays sound, described method comprises:
Obtain voice data to be played, and described voice data to be played is separated into the sub-voice data of different sound channels;
Send isolated sub-voice data at least one subset of having set up communication connection, play described sub-voice data by the subset that receives described sub-voice data.
Further, described send isolated sub-voice data at least one subset of having set up communication connection before, also comprise:
Determined to set up the subset that communicates to connect and play sub-voice data, and be that the subset of determining distributes corresponding unique identify label ID number;
Describedly send isolated sub-voice data at least one subset of having set up communication connection, comprising:
For each unique ID number is distributed corresponding sub-voice data;
Be retrieved as the unique ID number that described definite subset distributes, and send isolated sub-voice data according to the unique ID number of described definite subset to described definite subset.
Alternatively, described send isolated sub-voice data at least one subset of having set up communication connection before, also comprise:
Determine to set up the subset that communicates to connect and play sub-voice data, and detected the position of the subset of determining;
Describedly send isolated sub-voice data at least one subset of having set up communication connection, comprising:
For distributing corresponding sub-voice data in each position;
Obtain the position of described definite subset, and send isolated sub-voice data according to the position of described definite subset to described definite subset.
Further, described send isolated sub-voice data at least one subset of having set up communication connection before, also comprise:
Arrive at least one subset by scanning search, and establish a communications link with described at least one subset;
Perhaps, receive the connection request that sends after at least one subset scanning, establish a communications link according to described connection request and described at least one subset.
On the other hand, also provide a kind of equipment of realizing that multichannel plays sound, described equipment comprises:
Acquisition module is used for obtaining voice data to be played;
Separation module is used for the voice data to be played that described acquisition module gets access to is separated into the sub-voice data of different sound channels;
Sending module is used for having set up the subset that communicates to connect at least one and sends the isolated sub-voice data of described separation module, plays described sub-voice data by the subset that receives described sub-voice data.
Further, described equipment also comprises:
Determination module has been used for determining to set up the subset that communicates to connect and play sub-voice data;
Distribution module, the subset that is used to described determination module to determine distributes corresponding unique identify label ID number;
Described sending module is used to each unique ID number to distribute corresponding sub-voice data; Obtain the unique ID number that described distribution module is distributed for the subset of determining, and send isolated sub-voice data according to the unique ID number of described definite subset to described definite subset.
Alternatively, described equipment also comprises:
Determination module has been used for determining to set up the subset that communicates to connect and play sub-voice data;
Detection module is for detection of the position of the definite subset of described determination module;
Described sending module is used to each position to distribute corresponding sub-voice data; Obtain the position of described definite subset that described detection module detects, and be that described definite subset sends isolated sub-voice data according to the position of described definite subset.
Further, described equipment also comprises:
Link block is used for arriving at least one subset by scanning search, and establishes a communications link with described at least one subset; Perhaps, receive the connection request that sends after at least one subset scanning, establish a communications link according to described connection request and described at least one subset.
On the one hand, also provide a kind of method that realizes that multichannel plays sound again, described method comprises:
The sub-voice data of the main equipment transmission of communication connection has been set up in reception, and described sub-voice data obtains voice data to be played by described main equipment, and described voice data to be played is separated acquisition;
The sub-voice data that broadcast receives;
Wherein, the sub-voice data that described broadcast receives comprises:
After reaching Preset Time, play the sub-voice data that receives;
Perhaps, receive the play command that described main equipment sends after, play the sub-voice data that receives.
Another aspect also provides a kind of equipment of realizing that multichannel plays sound, and described equipment comprises:
Receiver module is used for receiving the sub-voice data of having set up the main equipment transmission that communicates to connect, and described sub-voice data obtains voice data to be played by described main equipment, and described voice data to be played is separated acquisition;
Playing module is used for playing the sub-voice data that described receiver module receives;
Wherein, described playing module after being used for reaching Preset Time, is play the sub-voice data that receives; Perhaps, receive the play command that described main equipment sends after, play the sub-voice data that receives.
A kind of system that realizes that multichannel plays sound also is provided, and described system comprises: a main equipment and at least one subset;
Wherein, described main equipment such as above-mentioned the first equipment; Described subset such as above-mentioned the second equipment.
The beneficial effect that the technical scheme that the embodiment of the invention provides is brought is:
Be separated into the sub-voice data of different sound channels by the voice data to be played that will get access to, and send isolated sub-voice data at least one subset of having set up communication connection, play by the subset antithetical phrase voice data that receives sub-voice data, thereby the multichannel of having realized sound is play, expand the mode that multichannel plays sound, reduced simultaneously the limitation that multi-channel sound is play; In addition, by distributing corresponding unique ID number for the subset that establishes a communications link and play sub-voice data or detect the position of this subset, be its minute gamete voice data according to unique ID number or the position of subset, can further promote result of broadcast.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, embodiment of the present invention is described further in detail below in conjunction with accompanying drawing.
Embodiment one
Present embodiment provides a kind of method that realizes that multichannel plays sound, and referring to Fig. 1, the method flow that present embodiment provides is specific as follows:
101: obtain voice data to be played;
102: the sub-voice data that voice data to be played is separated into different sound channels;
103: send isolated sub-voice data at least one subset of having set up communication connection, play sub-voice data by the subset that receives sub-voice data.
The method that present embodiment also provides another kind of realization multichannel to play sound, referring to Fig. 2, the method flow that present embodiment provides is specific as follows:
201: receive the sub-voice data of the main equipment transmission of having set up communication connection, sub-voice data obtains voice data to be played by main equipment, and voice data to be played is separated acquisition;
202: play the sub-voice data that receives.
The method that present embodiment provides, be separated into the sub-voice data of different sound channels by the voice data to be played that will get access to, and send isolated sub-voice data at least one subset of having set up communication connection, play by the subset antithetical phrase voice data that receives sub-voice data, thereby the multichannel of having realized sound is play, expand the mode that multichannel plays sound, reduced simultaneously the limitation that multi-channel sound is play.
A kind of method that realizes that multichannel plays sound that provides in order more clearly to set forth above-described embodiment, content in conjunction with above-described embodiment, take following embodiment two as example, a kind of method that realizes that multichannel plays sound is elaborated, see following embodiment two for details.
Embodiment two
Present embodiment provides a kind of method that realizes that multichannel plays sound, for convenience of explanation, present embodiment is take the equipment realizing multichannel and play sound as 6 smart mobile phones, and the putting position of these 6 smart mobile phones as shown in Figure 3, selecting smart mobile phone A is main equipment, all the other smart mobile phones are that subset is example, and the method that present embodiment is provided at length illustrates.Referring to Fig. 4, the method flow that present embodiment provides is specific as follows:
401: main equipment obtains voice data to be played;
Wherein, the source of the sound to be played that present embodiment does not obtain main equipment specifically limits, and includes but not limited to use the voice data of main equipment self storage, perhaps the voice data downloaded from network of main equipment.The form that present embodiment is not treated the data that play sound equally specifically limits, include but not limited to MP3(Moving Picture Experts Group Audio Layer III, dynamic image expert compression standard audio frequency aspect 3), WMA(Windows Media Audio, windows media audio) etc.
402: main equipment and at least one subset establish a communications link;
For this step, the mode that establishes a communications link includes but not limited to following two kinds:
The first: main equipment arrives at least one subset by scanning search, and establishes a communications link with at least one subset;
The second: at least one subset arrives main equipment by scanning search, and sends connection request to main equipment, and main equipment receives the connection request that sends after at least one subset scanning, and establishes a communications link according to this connection request and this at least one subset.
Wherein, present embodiment does not specifically limit the network that establishes a communications link, and local area network (LAN), wide area network etc. all can.For example, smart mobile phone A(main equipment) in the local area network (LAN) interscan, find other 5 smart mobile phones in same local area network (LAN), this smart mobile phone A and other 5 smart mobile phones establish a communications link.
403: main equipment has been determined to set up communication connection and has been play the subset of sub-voice data;
For this step, main equipment is chosen suitable subset as the subset of playing sub-voice data from the subset of having set up communication connection.
Wherein present embodiment does not specifically limit the choice criteria of main equipment to the subset of playing sub-voice data, include but not limited to that all subsets that will set up communication connection all are defined as playing the subset of sub-voice data, perhaps from the subset of having set up communication connection, select to be identified for playing the subset of sub-voice data according to the sound play quality of subset, or in the subset of having set up communication connection, select to determine to play at random the subset of sub-voice data.
For example, the subset of having set up communication connection with smart mobile phone A as main equipment is smart mobile phone B, C, D, E, F, and smart mobile phone A can all be defined as 5 smart mobile phone B, C, D, E, F to play the subset of sub-voice data; Again for example, if the sound play quality of smart mobile phone B, C, D is better than the sound play quality of smart mobile phone E and F, therefore, smart mobile phone A also can select smart mobile phone B, C, D as the subset of playing sub-voice data from smart mobile phone B, C, D, E, F; Again for example, smart mobile phone A also can select smart mobile phone B, D, F as the subset of playing sub-voice data from smart mobile phone B, C, D, E, F at random.
404: main equipment is separated into voice data to be played the sub-voice data of different sound channels;
When main equipment was separated into the sub-voice data of different sound channels with voice data to be played, the quantity of sub-voice data was identical with the quantity of the subset of the sub-voice data of broadcast of determining.
Still take 6 smart mobile phones shown in Figure 3 as example, if smart mobile phone A determines that in above-mentioned steps 403 subset of the sub-voice data of broadcast is smart mobile phone B, C, D, E, F, then in this step 404, smart mobile phone A can be separated into voice data to be played 5 sub-voice datas of different sound channels, for example, voice data to be played can be separated into the sub-voice data of left, center, right, left back, right back 5 different sound channels; If smart mobile phone A determines that in above-mentioned steps 403 subset of the sub-voice data of broadcast is smart mobile phone B, C, D, then in this step 404, smart mobile phone A can be separated into voice data to be played 3 sub-voice datas of different sound channels, for example, voice data to be played can be separated into the sub-voice data of 3 the different sound channels in left, center, right; Certainly, except the quantity of the above-mentioned segregant voice data that exemplifies, can also be separated into other quantity, present embodiment does not limit quantity and the channel separation mode of isolated sub-voice data.
405: main equipment distributes corresponding unique ID(IDentity, identify label for the subset of determining) number;
For this step, present embodiment does not limit the distribution principle of unique ID number.Include but not limited to that the response time when basis establishes a communications link is definite unique ID number of playing the subset distribution correspondence of sub-voice data.For example, the response time is longer, and the unique ID number of distribution is larger, and perhaps, the response time is shorter, and the unique ID number of distribution is larger.
The subset of determining take smart mobile phone A is example as smart mobile phone B, C, D, E, F for its unique ID number of distributing to is as shown in table 1:
Table 1
406: main equipment distributes corresponding sub-voice data for each unique ID number;
For this step, present embodiment is to distributing the distribution principle of corresponding sub-voice data not limit for each unique ID number, includes but not limited to that the order that size and sub-voice data according to unique ID number are separated distributes the sub-voice data of correspondence for each unique ID number.For example, for the little unique ID number of unique ID number is distributed first isolated sub-voice data, perhaps, for the large unique ID number of unique ID number is distributed first isolated sub-voice data.
The subset of determining take smart mobile phone A is as smart mobile phone B, C, D, E, F, for the unique ID number of its distribution is followed successively by 1,2,3,4,5 according to ascending order, sub-voice data is followed successively by left, center, right, left back, right back for example by the separation sequence after arriving first, then can be as shown in table 2 for the sub-voice data of each unique ID number distribution:
Table 2
Certainly, except above-mentioned mode of dividing the gamete voice data for each unique ID number, can also specifically adopt which kind of method of salary distribution for the isolated sub-voice data of each unique ID number Random assignment, present embodiment is not done concrete restriction to this.
407: main equipment is retrieved as the unique ID number that definite subset distributes, and sends isolated sub-voice data according to the unique ID number of the subset of determining to the subset of determining;
Concrete, still take the unique ID number shown in the above-mentioned table 1 as example, then smart mobile phone A can be retrieved as the unique ID number that smart mobile phone B, C, D, E, F distribute and be respectively 1,2,3,4,5, sub-voice data according to the correspondence of distributing for each unique ID number in the table 2 is example, and then smart mobile phone A can be respectively sends the sub-voice data of left, center, right, left back, right back sound channel to B, C, D, E, F.
408: subset receives the sub-voice data that main equipment sends;
Wherein, sub-voice data is to separate the sub-voice data that obtains by the voice data to be played that main equipment will obtain.
In system configuration shown in Figure 3, the subset of determining is that smart mobile phone B, C, D, E, F receive respectively the sub-voice data as the smart mobile phone A transmission of main equipment.
409: the subset that receives sub-voice data is play the sub-voice data that receives.
Wherein, present embodiment is not play sub-voice data to receiving subset behind the sub-voice data mode limits, after can receiving sub-voice data and reach Preset Time, plays again the subset that receives sub-voice data the voice data that receives, as receive behind the sub-voice data 0 second and automatically play the sub-voice data that receives, perhaps receive behind the sub-voice data 5 seconds and automatically play the sub-voice data that receives; Begin again to play the sub-voice data that receives after can also receiving the play command that main equipment sends.
Concrete, take the subset that receives sub-voice data as smart mobile phone B, C, D, E, F as example, then these 5 smart mobile phones are play the sub-voice data that receives according to separately broadcast mode respectively, thereby realize that voice data to be played play by a plurality of sound channels.
Need to prove that present embodiment does not limit the selection principle of main equipment, include but not limited to select a highest equipment of hardware configuration as main equipment, for example choose smart mobile phone A as main equipment.In addition, present embodiment does not limit the concrete form of realizing the playback equipment that multichannel plays sound equally, includes but not limited to the smart machines such as smart mobile phone, PC.
The method that present embodiment provides, be separated into the sub-voice data of different sound channels by the voice data to be played that will get access to, and send isolated sub-voice data at least one subset of having set up communication connection, play by the subset antithetical phrase voice data that receives sub-voice data, thereby the multichannel of having realized sound is play, expand the mode that multichannel plays sound, reduced simultaneously the limitation that multi-channel sound is play; In addition, by distributing corresponding unique ID number for the subset that establishes a communications link and play sub-voice data, be its minute gamete voice data according to the unique ID number of subset, can further promote result of broadcast.
Embodiment three
Present embodiment provides a kind of method that realizes that multichannel plays sound, for convenience of explanation, present embodiment is still to realize that equipment that multichannel plays sound is as 6 smart mobile phones, and the putting position of these 6 smart mobile phones as shown in Figure 3, selecting smart mobile phone A is main equipment, all the other smart mobile phones are that subset is example, and the method that present embodiment is provided at length illustrates.Referring to Fig. 5, the method flow that present embodiment provides is specific as follows:
501: main equipment obtains voice data to be played;
The specific implementation of this step sees the description of step 401 in above-described embodiment two for details, repeats no more herein.
502: main equipment and at least one subset establish a communications link;
The specific implementation of this step sees the description of step 402 in above-described embodiment two for details, repeats no more herein.
503: main equipment has been determined to set up communication connection and has been play the subset of sub-voice data;
The specific implementation of this step sees the description of step 403 in above-described embodiment two for details, repeats no more herein.
504: main equipment is separated into voice data to be played the sub-voice data of different sound channels;
The specific implementation of this step sees the description of step 404 in above-described embodiment two for details, repeats no more herein.
505: main equipment obtains the position of definite subset;
For this step, present embodiment does not specifically limit the method that main equipment obtains the position of definite subset, include but not limited to send test massage to the subset of determining, calculate definite subset compression recovery response time, obtain the position of definite subset according to the response time, for example, the subset that the subset of response time length is far away apart from main equipment, the response time is short is nearer apart from main equipment.
The subset of determining take smart mobile phone A as smart mobile phone B, C, D, E, F as example, smart mobile phone A sends test massage to smart mobile phone B, C, D, E, F respectively, calculate the time of smart mobile phone B, C, D, E, F answer response, the position that obtains smart mobile phone B, C, D, E, F according to the response time.The positional distance smart mobile phone A of the smart mobile phone that for example, the positional distance smart mobile phone A of the smart mobile phone of response time length is far away, the response time is short is nearer.
506: main equipment distributes corresponding sub-voice data for each position;
For this step, present embodiment is to distributing the distribution principle of corresponding sub-voice data not limit for each position, includes but not limited to distribute the sub-voice data of correspondence for each position according to the far and near of position and order that sub-voice data is separated.For example, for distributing first isolated sub-voice data near position, position, perhaps, for distributing first isolated sub-voice data in position far away, position.
The subset of determining take smart mobile phone A is as smart mobile phone B, C, D, E, F, the subset position according to from the near to the remote order be followed successively by smart mobile phone B, C, E, D, the sub-voice data of F by the separation sequence after arriving first be followed successively by a left side, in, left backly, right, right back be example, then can be as shown in table 3 for the sub-voice data of each position distribution:
Table 3
507: main equipment sends isolated sub-voice data according to the position of the subset of determining to the subset of determining;
Still take the position shown in the above-mentioned table 3 and corresponding sub-voice data as example, then smart mobile phone A can be respectively sends the sub-voice data of left, center, right, left back, right back sound channel to B, C, D, E, F.
508: subset receives the sub-voice data that main equipment sends;
The implementation of this step sees the description of step 408 in above-described embodiment two for details, repeats no more herein.
509: the subset that receives sub-voice data is play the sub-voice data that receives.
The form of expression of this step sees the description of step 409 in above-described embodiment two for details, does not repeat them here.
Need to prove that present embodiment does not limit the selection principle of main equipment, include but not limited to select a highest equipment of hardware configuration as main equipment, for example choose smart mobile phone A as main equipment.In addition, present embodiment does not limit the concrete form of realizing the playback equipment that multichannel plays sound equally, includes but not limited to the smart machines such as smart mobile phone, PC.
The method that present embodiment provides, be separated into the sub-voice data of different sound channels by the voice data to be played that will get access to, and send isolated sub-voice data at least one subset of having set up communication connection, play by the subset antithetical phrase voice data that receives sub-voice data, thereby the multichannel of having realized sound is play, expand the mode that multichannel plays sound, reduced simultaneously the limitation that multi-channel sound is play; In addition, by detecting the position of this subset, be its minute gamete voice data according to the position of subset, can further promote result of broadcast.
Embodiment four
Present embodiment provides a kind of equipment of realizing that multichannel plays sound, the performed function of method main equipment that the realization multichannel that this equipment provides for execution above-described embodiment one to embodiment three plays sound.Referring to Fig. 6, this equipment comprises:
Acquisition module 601 is used for obtaining voice data to be played;
Separation module 602 is used for the voice data to be played that acquisition module 601 gets access to is separated into the sub-voice data of different sound channels;
Sending module 603 is used for having set up the subset that communicates to connect at least one and sends separation module 602 isolated sub-voice datas, plays sub-voice data by the subset that receives sub-voice data.
Referring to Fig. 7, this equipment also comprises:
Determination module 604 has been used for determining to set up the subset that communicates to connect and play sub-voice data;
Distribution module 605, the subset that is used to determination module 604 to determine distributes corresponding unique identity ID number;
Sending module 603 is used to each unique identify label ID number and distributes corresponding sub-voice data; Obtain the unique ID number that distribution module 605 is distributed for determination module 604 definite subsets, and send isolated sub-voice data according to the unique ID number of the subset of determining to described definite subset.
Alternatively, referring to Fig. 8, this equipment also comprises:
Determination module 604 has been used for determining to set up the subset that communicates to connect and play sub-voice data;
Detection module 606, the position of the subset of determining for detection of determination module 604;
Sending module 603 is used to each position to distribute corresponding sub-voice data; Obtain the position of the subset that determination module 604 that detection module 606 detects determines, and send isolated sub-voice data according to the position of the subset of determining for the subset of determining.
Further, referring to Fig. 9, this equipment also comprises:
Link block 607 is used for arriving at least one subset by scanning search, and establishes a communications link with at least one subset; Perhaps, be received in the connection request that sends after at least one subset scanning, establish a communications link according to connection request and at least one subset.
The equipment that present embodiment provides, be separated into the sub-voice data of different sound channels by the voice data to be played that will get access to, and send isolated sub-voice data at least one subset of having set up communication connection, play by the subset antithetical phrase voice data that receives sub-voice data, thereby the multichannel of having realized sound is play, expand the mode that multichannel plays sound, reduced simultaneously the limitation that multi-channel sound is play; In addition, by distributing corresponding unique identity ID number for the subset that establishes a communications link and play sub-voice data or detect the position of this subset, be its minute gamete voice data according to unique ID number or the position of subset, can further promote result of broadcast.
Embodiment five
Present embodiment provides a kind of equipment of realizing that multichannel plays sound, the performed function of method subset that the realization multichannel that this equipment provides for execution above-described embodiment one to embodiment three plays sound.Referring to Figure 10, this equipment comprises:
Receiver module 1001 is used for receiving the sub-voice data of having set up the main equipment transmission that communicates to connect, and sub-voice data is to obtain voice data to be played by main equipment, and voice data to be played is separated acquisition;
Playing module 1002 is used for playing the sub-voice data that receiver module 1001 receives;
Wherein, playing module 1002 after being used for reaching Preset Time, is play the sub-voice data that receives; Perhaps, receive the play command that the main equipment of having set up communication connection sends after, play the sub-voice data that receives.
The equipment that present embodiment provides, the voice data to be played that will get access to by the reception main equipment is separated into the isolated sub-voice data that sends behind the sub-voice data of different sound channels, and the sub-voice data that receives play, thereby the multichannel of having realized sound is play, expand the mode that multichannel plays sound, reduced simultaneously the limitation that multi-channel sound is play.
Embodiment six
Present embodiment provides a kind of system that realizes that multichannel plays sound, the method that the realization multichannel that this system provides for execution above-described embodiment one to embodiment three plays sound.Referring to Figure 11, this system comprises:
A main equipment 1101 and at least one subset 1102;
Wherein, the equipment that main equipment 1101 as above-mentioned embodiment four provide sees above-described embodiment four for details;
The equipment that subset 1102 as above-mentioned embodiment five provide sees above-described embodiment five for details.
The system that present embodiment provides, the voice data to be played that will get access to by main equipment is separated into the sub-voice data of different sound channels, and send isolated sub-voice data at least one subset of having set up communication connection, play by the subset antithetical phrase voice data that receives sub-voice data, thereby the multichannel of having realized sound is play, expand the mode that multichannel plays sound, reduced simultaneously the limitation that multi-channel sound is play; In addition, be to establish a communications link and the subset of playing sub-voice data distributes corresponding unique ID number or detects the position of this subset by main equipment, unique ID number or position according to subset are its minute gamete voice data, can further promote result of broadcast.
Need to prove: the equipment that the realization multichannel that above-described embodiment provides plays sound is when realizing that multichannel plays sound, only the division with above-mentioned each functional module is illustrated, in the practical application, can as required the above-mentioned functions distribution be finished by different functional modules, the internal structure of the equipment of being about to is divided into different functional modules, to finish all or part of function described above.In addition, the embodiment of the method that the equipment that the realization multichannel that above-described embodiment provides plays sound, system and realization multichannel play sound belongs to same design, and its specific implementation process sees embodiment of the method for details, repeats no more here.
The invention described above embodiment sequence number does not represent the quality of embodiment just to description.
The all or part of step that one of ordinary skill in the art will appreciate that realization above-described embodiment can be finished by hardware, also can come the relevant hardware of instruction to finish by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be read-only memory, disk or CD etc.
The above only is preferred embodiment of the present invention, and is in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.