Embodiment
The embodiment of the invention provides a kind of stereophonic sound play control method based on portable terminal, terminal and system.This method generates a plurality of audio streams with music file according to different sound channels, and a plurality of audio streams is distributed to different portable terminals play, the music of a sound channel of each mobile terminal playing, and realization multi-section mobile phone is play the stereophonic effect of multichannel simultaneously.In order to realize cooperating, this system comprises the played in stereo control terminal with controlled function and the played in stereo accessory terminal of a plurality of participation music, and the played in stereo control terminal is handled source of sound and the audio stream of each sound channel distributed to the played in stereo accessory terminal that a plurality of participations play play.In actual applications, the terminal that generally will store music file like this can be so that music distribution as the played in stereo control terminal.
Below in conjunction with accompanying drawing embodiment is elaborated.
Fig. 1 is the annexation figure of system of the embodiment of the invention.As shown in the figure, the embodiment of the invention comprises based on the played in stereo control system of portable terminal: played in stereo control terminal 10 and a plurality of played in stereo accessory terminal 20.As shown in Figure 1, the system of this embodiment is made up of 1 played in stereo control terminal 10 and 4 played in stereo accessory terminals 20, and these 4 played in stereo accessory terminals 20 lay respectively at left front, right front, left back and the right back of played in stereo control terminal 10.
The embodiment of the invention can be carried out music jointly by control terminal and accessory terminal also can only carry out music by accessory terminal.When control terminal 10 does not participate in music, control terminal 10 generates the audio stream of corresponding sound channel with music file according to these 4 sound channels of left front, right front, left back and right back and sends to accessory terminal 20 on the relevant position, and the audio stream that is come each sound channel of common play-out by 4 accessory terminals 20 is to realize the stereophonic effect of 4 sound channels.When control terminal 10 also participates in music, this control terminal 10 generates music file the audio stream of 5 sound channels according to left front, right front, left back, right back and middle these 5 sound channels, and the audio stream of left front, right front, left back, these 4 sound channels of right back sent to the accessory terminal 20 of relevant position phase, come audio stream on each sound channel of common play-out to realize the stereophonic effect of 5 sound channels by 1 control terminal 10 and 4 accessory terminals 20 like this.Is techniques well known with music file according to the audio stream that sound channel generates corresponding sound channel, no longer describes in detail herein.
Fig. 2 is system embodiment one structural representation of the embodiment of the invention.As shown in Figure 2, played in stereo control terminal 10 comprises: audio stream generation unit 101 is used for music file is generated a plurality of audio streams by sound channel; Playing control unit 102 is used for a plurality of audio streams of described generation are distributed to different mobile terminal playing.Played in stereo accessory terminal 20 comprises: broadcast unit 201 is used to receive audio stream and the broadcast that described played in stereo control terminal 10 sends.
Fig. 3 is system embodiment two structural representations of the embodiment of the invention.As shown in Figure 3, played in stereo control terminal 10 also comprises: terminal number determining unit 103 is used for definite number that participates in the portable terminal of music; Terminal location acquiring unit 104 is used to obtain the positional information of each portable terminal that participates in music.Described audio stream generation unit 101 is used for music file being generated the audio stream of a plurality of sound channels corresponding with described terminal number and position according to the number of the portable terminal that participates in music and the positional information of each portable terminal.Described playing control unit 102 is used for audio stream with a plurality of sound channels and sends to mobile terminal playing on the relevant position respectively.
For number and the positional information of obtaining played in stereo accessory terminal 20, the played in stereo control terminal 10 of Fig. 3 also comprises: terminal inquiry unit 105, be used to send the mobile terminal enquiry order, and the feedback message of mobile terminal receive; Described terminal number determining unit 103 is used for determining the terminal number according to the number of the described feedback message of receiving.In an optional execution mode, also comprise the positional information of described portable terminal in the described feedback message.Described terminal location acquiring unit 104 is used for from the positional information of each portable terminal of described feedback message extraction participation music.
In order to cooperate the query function of played in stereo control terminal 10, the played in stereo accessory terminal 20 of Fig. 3 also comprises: positional information is provided with unit 203, be used to receive user instruction described location information of terminals is provided with, position herein is the position of accessory terminal 20 with respect to control terminal 10.In the systematic schematic diagram as shown in Figure 1,4 accessory terminals can be set to the position of oneself respectively; Left front, right front, left back and right back.Played in stereo accessory terminal 20 also comprises inquiry feedback unit 202, is used to receive described querying command and sends described feedback message, has carried the positional information of described played in stereo accessory terminal 20 in the described feedback message.
Fig. 4 is system embodiment three structural representations of the embodiment of the invention.In order to make a plurality of terminals can play the audio stream of a plurality of sound channels simultaneously, the playing control unit of Fig. 4 also 102 can comprise: transmission delay provides unit 1021, and being used for provides the transmission delay that sends described audio stream to each portable terminal.The broadcast unit 201 of Fig. 4 also comprises: time-delay broadcast unit 2011, be used to receive described audio stream and described transmission delay, determine that according to the receive time delay of self described audio stream receives broadcast time delay afterwards, described audio stream is play in time-delay when arriving described broadcast.
Fig. 5 is system embodiment four structural representations of the embodiment of the invention.Can play the audio stream of a plurality of sound channels simultaneously in order to make a plurality of terminals, the playing control unit of Fig. 5 also 102 ' can also comprise: propagation delay time measuring unit 1022 is used to measure from sending described audio frequency and flows to the propagation delay time that described portable terminal receives described audio stream; Send trigger element 1023, be used for determining to send the transmitting time of described audio stream, when described transmitting time arrives, send described audio stream to each portable terminal according to the propagation delay time of each portable terminal.The broadcast unit 201 ' of Fig. 5 also comprises: broadcast unit 2012 immediately, are used for playing immediately after receiving described audio stream.
The embodiment of the invention also provides a kind of portable terminal, and Fig. 6 a is embodiment one structural representation of the portable terminal of the embodiment of the invention.Shown in Fig. 6 a.This portable terminal 30 comprises played in stereo control device 301, and described played in stereo control device 301 comprises: audio stream generation unit 601 is used for music file is generated a plurality of audio streams by sound channel; Playing control unit 602 is used for a plurality of audio streams of described generation are sent to different portable terminals respectively to form played in stereo by the wireless short-distance transmission means.
Fig. 6 b is embodiment two structural representations of the portable terminal of the embodiment of the invention.Shown in Fig. 6 b, described portable terminal 30 also comprises played in stereo servicing unit 302, and described played in stereo servicing unit 302 comprises: broadcast unit 603 is used to receive audio stream and the broadcast that described played in stereo control device sends.
Fig. 6 c is the detailed structure schematic diagram of played in stereo control device 301 of the portable terminal of the embodiment of the invention.Shown in Fig. 6 c, described played in stereo control device 301 also comprises: terminal number determining unit 604 is used for definite number that participates in the portable terminal of music; Terminal location acquiring unit 605 is used to obtain the positional information of each portable terminal that participates in music; Described audio stream generation unit 601 is used for music file being generated the audio stream of a plurality of sound channels corresponding with described terminal number and position according to the number of the portable terminal that participates in music and the positional information of each portable terminal; Described playing control unit 602 is used for audio stream with a plurality of sound channels and sends to mobile terminal playing on the relevant position respectively.
The played in stereo control device 301 of Fig. 6 c also comprises: terminal inquiry unit 606, be used for sending the mobile terminal enquiry order, and mobile terminal receive is by the feedback message of Bluetooth protocol transmission by Bluetooth protocol; Described terminal number determining unit 604 is used for determining the terminal number according to the number of the described feedback message of receiving.Alternatively, also comprise the positional information of described portable terminal in the described feedback message, described terminal location acquiring unit 605 is used for from the positional information of each portable terminal of described feedback message extraction participation music.
Fig. 6 d is the detailed structure schematic diagram of played in stereo servicing unit 302 of the portable terminal of the embodiment of the invention, shown in Fig. 6 d, described played in stereo servicing unit 302 also comprises: inquiry feedback unit 607 is used to receive described querying command and sends described feedback message by Bluetooth protocol.Described played in stereo servicing unit 302 also comprises: positional information is provided with unit 608, is used to receive user instruction described location information of terminals is provided with; Described inquiry feedback unit 607 also is used to receive described querying command and sends the described feedback message that comprises described positional information.
Fig. 6 e is a kind of structural representation of the playing control unit 602 of embodiment of the invention portable terminal 30, and Fig. 6 f is a kind of structural representation of the broadcast unit 603 of embodiment of the invention portable terminal 30.In order to make a plurality of portable terminals can play the audio stream of a plurality of sound channels simultaneously, described playing control unit 602 also comprises: transmission delay provides unit 701, and being used for provides the transmission delay that sends described audio stream to each portable terminal.Described broadcast unit 603 also comprises: time-delay broadcast unit 702, be used to receive described audio stream and described transmission delay, determine that according to the receive time delay of self described audio stream receives broadcast time delay afterwards, described audio stream is play in time-delay when arriving described broadcast.
Fig. 6 g is the another kind of structural representation of the playing control unit 602 of embodiment of the invention portable terminal 30, and Fig. 6 h is the another kind of structural representation of the broadcast unit 603 of embodiment of the invention portable terminal 30.Can play the audio stream of a plurality of sound channels simultaneously in order to make a plurality of portable terminals, described playing control unit 602 can also comprise: propagation delay time measuring unit 703 is used to measure from sending described audio frequency and flows to the Bluetooth transmission time delay that described portable terminal receives described audio stream; Send trigger element 704, be used for determining to send the transmitting time of described audio stream, when described transmitting time arrives, send described audio stream to each portable terminal according to the propagation delay time of each portable terminal.Described broadcast unit 603 also comprises: broadcast unit 705 immediately, are used for playing immediately after receiving described audio stream.
The portable terminal of the embodiment of the invention can be mobile communication terminal.Fig. 7 is the mobile communication terminal schematic diagram of the embodiment of the invention.As shown in Figure 6, conventional mobile communication terminal mainly comprises: CPU, radio frequency unit and baseband circuit, radio frequency unit, baseband circuit and central processing unit are coupled.In addition, conventional mobile communication terminal also comprises SIM card, storage device (as FALSH and RAM), SMS module, LCD display and the bluetooth equipment etc. that link to each other with CPU.The mobile communication terminal of present embodiment has increased played in stereo control device and the played in stereo servicing unit that is coupled with central processing unit newly on the basis of conventional mobile phone terminal.Wherein, the played in stereo control device can be with reference to the played in stereo control terminal 10 of the embodiment of the invention and is designed, and the played in stereo servicing unit can be with reference to the played in stereo accessory terminal 20 of the embodiment of the invention and designed.In actual applications, played in stereo control device and played in stereo servicing unit also can be positioned at CPU.
Fig. 8 is the overall flow figure of the embodiment of the invention based on the stereophonic sound play control method of portable terminal.As shown in Figure 8:
Step S801 generates a plurality of audio streams with music file by sound channel;
Step S802 sends to different portable terminals with a plurality of audio streams of described generation respectively by the wireless short-distance transmission means;
Step S803, described portable terminal receive described audio stream and form played in stereo.
Fig. 9 is the flow chart of the stereophonic sound play control method embodiment one of the embodiment of the invention.The embodiment of the invention adopts bluetooth to carry out wireless transmission between portable terminal.As shown in Figure 9:
Step S901, main control terminal need identify currently has cooperate broadcast for what accessory terminals, (for example 2 mobile phones can be realized simple played in stereo, and 4 mobile phones just can be realized the surrounding effect of part).This work can be set by hand by the user, also can carry out automatic querying method by main control terminal and obtain.Automatically query steps is as follows: 1, the user is provided with all accessory terminals and enters play mode (unlatching bluetooth); 2, main control terminal sends querying command by bluetooth to the mobile phone terminal around all; 3, the terminal that is made as play mode sends feedback message by bluetooth to main control terminal; 4, main control terminal is according to the feedback message quantity statistics mobile phone number of receiving.
Step S902, main control terminal need be obtained the positional information of each accessory terminal, promptly (for example distinguish the mobile phone on the left side and the mobile phone on the right with respect to the position of main control terminal, the mobile phone that also has the place ahead and rear), could correctly distribute sound source like this, to produce required sound field effect.This work can also can be inquired about acquisition by main control terminal automatically by user's manual setting on main control terminal.Automatically query steps is as follows: 1, the user is provided with the position (as: left side/right side, front/rear) of all accessory terminals; 2, in aforesaid feedback message, increase the positional information of accessory terminal; 3, main control terminal is determined the position of accessory terminal by the feedback message of receiving.
Because traditional audio amplifier is a wired connection, transmission delay all can be ignored (microsecond level) fully.And need be through the process of overcompression, transmission, decompression, broadcast during blue tooth transmission audio frequency, so generally there is bigger delay, so every mobile phone must be offset the processing of delay before broadcast.For example: Bluetooth transmission sound is generally to use SCO (synchronous connection oriented link) link, but SCO can only transferring voice, and quality is too poor for music.So general high quality sound can adopt ACL (towards connectionless async link) link, the ACL link is data transmission scheme, so data packet retransmission, recipient's buffering, and mistake, and compression (as the SBC coding) all can bring certain delay.
In following step, main control terminal and accessory terminal need cooperate plays the audio stream of a plurality of sound channels simultaneously.
Step S903, a kind of processing mode are that every mobile phone all stores processing delay parameter separately, by playout-delay T of main control terminal definition, and together are transferred to accessory terminal with the transmission lag t0 of main control terminal self.
Step S904, main control terminal generate a plurality of audio streams with music file according to sound channel and send to accessory terminal on the relevant position.Detailed process is as follows: main control terminal is decoded music file, and for example general mp3 file just can be divided into different sound channels, general stereoly can be divided into left and right sound channels, and complicated sound effect can be further divided into forward and backward sound channel.Main control terminal is by the audio stream of bluetooth to the corresponding sound channel of the auxiliary terminal transmission of difference then.
After step S905, accessory terminal are received audio stream, will play (tn is the receive time delay of accessory terminal self) behind the sound delay time T-t0-tn.Can guarantee all mobile phones like this in almost same time broadcast, the sound of avoiding transmission delay to bring is asynchronous.
Figure 10 is the flow chart of the stereophonic sound play control method embodiment two of the embodiment of the invention.As shown in figure 10:
Step S1001, main control terminal need identify currently has cooperate broadcast for what accessory terminals, and the method that this step can refer step S701 is carried out.
Step S1002, main control terminal need be obtained the positional information of each accessory terminal, promptly with respect to the position of main control terminal.This step can refer step S702 method carry out.
Step S1003, main control terminal generate a plurality of audio streams with music file according to sound channel and send to accessory terminal on the relevant position.
In following step, main control terminal and accessory terminal need cooperate plays the audio stream of a plurality of sound channels simultaneously.
Step S1004, measure the transmission delay of different accessory terminals by the master control mobile phone, main control terminal sends specific sound to each mobile phone respectively, begin monitor to detect this specific sound time of advent then, if the distance between the terminal is enough near, the time interval is exactly that Bluetooth transmission postpones D so.After measurement is accomplished to the transmission delay Dn of all mobile phones, the master control mobile phone just can before every mobile phone sends audio stream, postpone to handle (time of delay=T-Dn).
Step S1005, accessory terminal are play after receiving audio stream immediately, can guarantee all broadcasts at one time of all mobile phones like this.
The embodiment of the invention is utilized the standard configuration of existing portable terminal, cooperate music of broadcast by the multi-section portable terminal, the music of a sound channel of each terminal plays not only can increase volume like this, and the most important thing is to have realized better played in stereo effect.The control information contact between a plurality of portable terminals of the embodiment of the invention and the transmission of sound channel content can realize by Bluetooth technology, and bluetooth almost is the standard configuration of all mobile phones, therefore the embodiment of the invention is on the basis that does not increase the mobile phone hardware cost, solve the restriction of Speaker volume, position, cost in the mobile phone, can on mobile phone, realize the better sound playback.
Need to prove, though the embodiment of the invention adopts bluetooth to describe, but in the application of reality, can also adopt other short-distance transmission mode, as infrared, WIFI etc., under various transmission meanss, each portable terminal should be within certain distance (in 10M), so that each portable terminal can form the effect of played in stereo when playing the audio stream that receives.