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 mobile 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 practical application, 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 terminals 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 is not participated in music; Control terminal 10 generates music file the audio stream of corresponding sound channel and sends to the accessory terminal 20 on the relevant position according to these 4 sound channels of left front, right front, left back and right back, 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 is also participated 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 details here.
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 that a plurality of audio streams of said generation are distributed to different mobile terminals and plays.Played in stereo accessory terminal 20 comprises: broadcast unit 201 is used to receive audio stream and the broadcast that said 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: the terminal number is confirmed unit 103, is used for definite number of participating in the portable terminal of music; Terminal location acquiring unit 104 is used to obtain the positional information of each portable terminal of participating in music.Said audio stream generation unit 101 is used for music file being generated the audio stream of a plurality of sound channels corresponding with said terminal number and position according to the number of the portable terminal of participating in music and the positional information of each portable terminal.Said playing control unit 102 is used for the audio stream of a plurality of sound channels is sent to the 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; Said terminal number is confirmed unit 103, is used for confirming the terminal number according to the number of the said feedback message of receiving.In an optional execution mode, also comprise the positional information of said portable terminal in the said feedback message.Said terminal location acquiring unit 104 is used for from the positional information of each portable terminal of said 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 said location information of terminals is provided with, the position here 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 said querying command and sends said feedback message, has carried the positional information of said played in stereo accessory terminal 20 in the said 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 said audio stream to each portable terminal.The broadcast unit 201 of Fig. 4 also comprises: time-delay broadcast unit 2011; Be used to receive said audio stream and said transmission delay; Confirm that according to the receive time delay of self said audio stream receives broadcast time delay afterwards, said audio stream is play in time-delay when arriving said 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 said audio frequency and flows to the propagation delay time that said portable terminal receives said audio stream; Send trigger element 1023, be used for when said transmitting time arrives, sending said audio stream according to the definite transmitting time of sending said audio stream of the propagation delay time of each portable terminal to each portable terminal.The broadcast unit 201 ' of Fig. 5 also comprises: broadcast unit 2012 immediately, are used for after receiving said audio stream, playing immediately.
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 said 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 said generation are sent to different mobile terminals respectively to form played in stereo through 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, said portable terminal 30 also comprises played in stereo servicing unit 302, and said played in stereo servicing unit 302 comprises: broadcast unit 603 is used to receive audio stream and the broadcast that said played in stereo control device sends.
Fig. 6 c is the detailed structure sketch map of played in stereo control device 301 of the portable terminal of the embodiment of the invention.Shown in Fig. 6 c, said played in stereo control device 301 also comprises: the terminal number is confirmed unit 604, is used for definite number of participating in the portable terminal of music; Terminal location acquiring unit 605 is used to obtain the positional information of each portable terminal of participating 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 said terminal number and position according to the number of the portable terminal of participating in music and the positional information of each portable terminal; Said playing control unit 602 is used for the audio stream of a plurality of sound channels is sent to the 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 through the feedback message of Bluetooth protocol transmission through Bluetooth protocol; Said terminal number is confirmed unit 604, is used for confirming the terminal number according to the number of the said feedback message of receiving.Alternatively, also comprise the positional information of said portable terminal in the said feedback message, said terminal location acquiring unit 605 is used for from the positional information of each portable terminal of said feedback message extraction participation music.
Fig. 6 d is the detailed structure sketch map of played in stereo servicing unit 302 of the portable terminal of the embodiment of the invention; Shown in Fig. 6 d; Said played in stereo servicing unit 302 also comprises: inquiry feedback unit 607 is used to receive said querying command and sends said feedback message through Bluetooth protocol.Said played in stereo servicing unit 302 also comprises: positional information is provided with unit 608, is used to receive user instruction said location information of terminals is provided with; Said inquiry feedback unit 607 also is used to receive said querying command and sends the said feedback message that comprises said 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, said playing control unit 602 also comprises: transmission delay provides unit 701, and being used for provides the transmission delay that sends said audio stream to each portable terminal.Said broadcast unit 603 also comprises: time-delay broadcast unit 702; Be used to receive said audio stream and said transmission delay; Confirm that according to the receive time delay of self said audio stream receives broadcast time delay afterwards, said audio stream is play in time-delay when arriving said 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; Said playing control unit 602 can also comprise: propagation delay time measuring unit 703 is used to measure from sending said audio frequency and flows to the Bluetooth transmission time delay that said portable terminal receives said audio stream; Send trigger element 704, be used for when said transmitting time arrives, sending said audio stream according to the definite transmitting time of sending said audio stream of the propagation delay time of each portable terminal to each portable terminal.Said broadcast unit 603 also comprises: broadcast unit 705 immediately, are used for after receiving said audio stream, playing immediately.
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, storage device (like 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 at 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 practical application, 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 mobile terminals with a plurality of audio streams of said generation respectively through the wireless short-distance transmission means;
Step S803, said portable terminal receive said 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 the surrounding effect that 4 mobile phones just can implementation part).This work can be set by the user by hand, also can carry out automatic querying method by main control terminal and obtain.Automatically query steps is following: 1, the user is provided with all accessory terminals and gets into play mode (unlatching bluetooth); 2, main control terminal is sent querying command through bluetooth to the mobile phone terminal around all; 3, the terminal that is made as play mode is sent feedback message through 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 following: 1, the user is provided with the position (as: left side/right side, preceding/back) of all accessory terminals; 2, in aforesaid feedback message, increase the positional information of accessory terminal; 3, main control terminal is confirmed the position of accessory terminal through 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 (like 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 the accessory terminal on the relevant position.Detailed process is following: 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 further be divided into forward and backward sound channel.Main control terminal is through 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, with playing (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.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 the 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 is sent 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 through 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, like 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.