Background technology
At present, increasing people likes on the portable players such as mobile phone, MP3 and MP4 and on notebook music appreciating and watches film and television.User can insert earphone or be connected external voice box in using notebook and portable player music appreciating and watching film and television.From early stage stereo 5.1 sound channels till now, the development of sound equipment provides better auditory perception to people.
At present, the left and right acoustic channels of notebook and portable player can not placed the corresponding output of adjusting left and right acoustic channels according to the left and right of sound equipment, and this makes troubles to user.Such as; for stereophone; can mark left and right above; but user is in inserting ear by earphone; often can be regardless of left and right; directly take up and just fill in ear, like this, will in seeing a film, occur that automobile drives towards the right from the left side of screen and the sound heard is the situation of driving towards the left side from the right.
Also there will be same problem for external voice box: physically signal is to have separated left and right, but but might not put by left and right when user really puts audio amplifier.
The appearance possible cause of above-mentioned situation is that user does not know left and right to misplace or user not can carry out correct divide right and left placement, especially earphone to earphone or audio amplifier, and no one goes its left and right separately substantially.
The problem adapting in order to solve the left and right acoustic channels of left and right earphone and audio amplifier and portable player and notebook, existing solution comprises: how to know that earphone or audio amplifier are carried out to the correct user oneself who places that divides right and left distinguishes left and right, but this scheme impersonality, user seldom goes to a point left and right.In addition, can not carry out the correct user who divides right and left and place to earphone or audio amplifier to those, can also adopt the feature of adding obviously easily memory on the earphone of left and right inform user which be left earphone which be right earphone, but this scheme needs user oneself to distinguish left and right equally.
Therefore, need a kind of physical location information of recognition and sounding apparatus automatically, and the logical location information of the sound channel comprising in the sound channel signal sound channel consistent with the physical location information of sound-producing device switched to the solution to this sound-producing device, can solve the problem in above-mentioned correlation technique.
Summary of the invention
Technical matters to be solved by this invention is to provide a kind of sound channel adaptive approach and device for sound-producing device, can automatically the sound channel of playback equipment be switched to corresponding sound-producing device, so that user to be provided better auditory perception.
For solving the problems of the technologies described above, according to an aspect of the present invention, provide a kind of sound channel adaptive approach for sound-producing device, comprise the following steps: the physical location information that obtains sound-producing device; Relatively the physical location information of generating means with export the sound channel signal of this sound-producing device in the logical location information of the sound channel that comprises whether consistent; And when comparative result is while being inconsistent, sound channel signal being switched to another sound channel signal, the logical location information of sound channel and the physical location information of this sound-producing device that wherein another sound channel signal comprises are consistent.
Alternatively, in the step of physical location information of obtaining sound-producing device, obtain the physical location information of sound-producing device by microphone array.Preferably, receive by microphone array the physical location information that obtains sound-producing device from the ultrasonic signal of sound-producing device.
Alternatively, the sound-producing device that can utilize recognition device to obtain to set in advance can recognition feature, to determine the physical location information of sound-producing device.Preferably, described sound-producing device can recognition feature be shape or color characteristic.
Alternatively, can utilize the movable information of the sound-producing device that the acceleration transducer being arranged in sound-producing device obtains as the physical location information of this sound-producing device.The acceleration transducer that utilization is arranged in playback equipment obtains the physical location information of sound-producing device as the logical location information of this sound-producing device.Preferably, described acceleration transducer is 3-axis acceleration sensor.
Alternatively, sound-producing device comprises earphone and audio amplifier.
According to another aspect of the present invention, provide a kind of sound channel self-reacting device for sound-producing device, having comprised: position information acquisition module, obtain the physical location information of sound-producing device; Comparison module, whether the logical location information of the sound channel that relatively physical location information of generating means comprises with the sound channel signal that exports this sound-producing device to is consistent; And handover module, when comparative result is while being inconsistent, sound channel signal being switched to another sound channel signal, the logical location information of sound channel and the physical location information of this sound-producing device that wherein another sound channel signal comprises are consistent.
The present invention has following beneficial effect:
By obtaining the physical location information of sound-producing device, and the logical location information of the sound channel that itself and the sound channel signal that exports this sound-producing device to are comprised compares, the physical location information that can determine sound-producing device with export its sound channel signal in the logical location information of the sound channel that comprises whether consistent, at comparative result while being inconsistent, sound channel signal is switched to another sound channel signal, the logical location information of sound channel and the physical location information of sound-producing device that wherein another sound channel signal comprises are consistent, thereby realize the sound channel self-adaptation of sound-producing device, and improve the convenience of user's operation.
Other features and advantages of the present invention will be set forth in the following description, and, partly from instructions, become apparent, or understand by implementing the present invention.Object of the present invention and other advantages can be realized and be obtained by specifically noted structure in write instructions, claims and accompanying drawing.
Embodiment
Below with reference to accompanying drawing, describe the specific embodiment of the present invention in detail.
Fig. 1 is a kind of sound channel adaptive approach process flow diagram for sound-producing device according to the embodiment of the present invention.Fig. 3 shows the sound channel self-reacting device 300 for sound-producing device according to the present invention, for the method for the present invention shown in execution graph 1.In conjunction with referring to Fig. 1 and Fig. 3, method of the present invention is described as follows:
First,, by position information acquisition module 30, obtain the physical location information (S100) of sound-producing device.The mode of determining the physical location information of sound-producing device will specifically describe hereinafter.
Then, by comparison module 31, the logical location information whether consistent (S110) of the sound channel that relatively physical location information of generating means comprises with the signal that exports this sound-producing device to.For example, if position information acquisition module 30 determines that sound-producing device is positioned at left position, need whether the logical location information of the sound channel that the sound channel signal that relatively exports this sound-producing device to comprises is L channel.Also be like this to the analysis of other sound-producing devices.
According to comparative result, by handover module 32, optionally switch the output of sound channel.In the time that comparative result is inconsistent (S120), handover module 32 switches, otherwise does not switch.For example, if position information acquisition module 30 determines that sound-producing device is positioned at left position, and the logical location information of the sound channel that the sound channel signal that exports this sound-producing device to comprises is right-channel signals, the sound channel signal that exports this sound-producing device to is switched to the signal that logical location information is L channel, left channel signals is outputed to and be positioned at the sound-producing device of left, thereby realize the consistent of the physical location information of sound-producing device and the logical location information of the sound channel comprising in corresponding sound channel signal.Can know, when consistent (S130), just not need above-mentioned handoff procedure, not deal with.
Below in conjunction with exemplary embodiment, the present invention is specifically described.
Embodiment 1
Using notebook computer as playback equipment, on notebook computer, be integrated with camera, stereo set is earphone.By the lead-in wire of left and right earphone or left and right earphone being painted to different colors as can recognition feature, when notebook is play film or music, camera is taken a secondary user the head portrait photo with earphone, and the earphone that can identify which color from clapped head portrait photo is in which direction.
In the time that the logical location information of the physical location information of identified left and right earphone and the sound channel comprising by the sound channel signal of left and right earphone of painting different colours defined is inconsistent, the output of just switching the left and right acoustic channels of notebook.For example, if the earphone that red lead wire connects is left earphone, the earphone that blue lead-in wire connects is right earphone, and under normal circumstances, left channel signals outputs to the earphone place that red lead wire connects, and right-channel signals outputs to the earphone place that blue lead-in wire connects.If comparison module 31 judges that according to head portrait photo and earphone wire color earphone that red lead wire is connected is worn on user's auris dextra place, and the earphone that blue lead-in wire connects is worn on user's Zuo Erchu, think that the physical location information of left and right earphone is with inconsistent by the logical location information of painting the sound channel that sound channel signal that the left and right earphone of different colours defined receives comprises.
In inconsistent situation, by handover module 32, left and right sound track signals is switched, thus the consistance of realization.
Embodiment 2
Be with previous embodiment 1 difference, in the present embodiment, using notebook computer as playback equipment, be integrated with microphone array on notebook computer, audio amplifier is as stereo set.
Export a signal to audio amplifier by first controlling the left or right sound channel sounding of notebook; Audio amplifier receives described signal and by its broadcasting, microphone array obtains the signal that audio amplifier plays and which side audio amplifier sounding detects be, if when the logical location information of the sound channel that the audio amplifier positional information of the sounding that detects and the notebook sounding sound channel signal controlled comprise is inconsistent.
In inconsistent situation, switch the output of the left and right acoustic channels of notebook.
Embodiment 3
With the different place of previous embodiment 2 be, in the present embodiment, 5.1 track loudspeaker boxes are as stereo set, and it includes left front audio amplifier, left back audio amplifier, right front audio amplifier, left back audio amplifier, right back audio amplifier, just preposition audio amplifier and 6 audio amplifiers of Super Bass Loudspeaker Enclosure put put put put put.Support the computer (notebook or desktop computer) of 5.1 sound channel outputs or support the DVD of 5.1 sound channel outputs as playback equipment
Export a signal to audio amplifier by 6 sound channels (left front, left back, right front, right back, just front and supper bass) sounding of controlling successively playback equipment; Audio amplifier receives described signal and by its broadcasting, microphone array obtains the signal of audio amplifier broadcasting and detects the orientation (physical location information) of sounding audio amplifier, if when the sounding sound channel of the physical location information of accessed sounding audio amplifier and the playback equipment of controlling is inconsistent, carry out the switching of sound channel, by the sound channel of logical location information of decoding output and the pairing of the result of detection, logic sound channel is outputed on corresponding physics audio amplifier.
Embodiment 4
Be with previous embodiment 1 and 2 differences, using portable player as playback equipment, be integrated with microphone array on portable player, earphone is as stereo set.
Export a signal to earphone by first controlling the left or right sound channel sounding of portable player; Earphone receives described signal and by its broadcasting; Microphone array obtains the signal of earphone broadcasting and detects is for which side earphone sounding, if when the sound channel of the physical location information of the earphone of accessed sounding and the portable player of controlling is inconsistent, the output of just switching the left and right acoustic channels of portable player.Preferably, for avoiding occurring that the smaller microphone array of sound that earphone sends may catch less than the too situation of conference to user's ear generation injury of volume, can control earphone and send the unheard ultrasound wave of user, volume also has no relations a little louder, and microphone array just can capture the acoustic information of earphone like this.
Embodiment 5
Be with the different place of embodiment 4, using portable player 200 as playback equipment, earphone is as stereo set, 3-axis acceleration sensor SN1 is set on described portable player, and be not provided with 3-axis acceleration sensor SN2 and SN3 in two earphone portion of earphone, as shown in Figure 2.
Because two earphones are relative, must to have an axle be relative to the XYZ axle of the 3-axis acceleration sensor SN2 of left and right in two earphones and SN3.For example, when the XYZ of the 3-axis acceleration sensor in portable player axle is while being consistent with the 3-axis acceleration sensor XYZ axle in left earphone, be relative with the 3-axis acceleration sensor XYZ axle of right earphone.
Portable player 200 is made comparisons by receiving from the acceleration information of the 3-axis acceleration sensor SN2 in the earphone of left and right and SN3 output and the acceleration information of its inner 3-axis acceleration sensor SN1 output arranging, and can determine the physical location information of described two earphone portions.
If when the physical location information of detected earphone is inconsistent with the logical location information of left and right earphone by acceleration transducer defined is set, the output of just switching the left and right acoustic channels of portable player.
Embodiment 5 can be summarized as follows: determine from the data of the sensor of two earphones whether the left and right of earphone wears correctly by data and its reception of comparing the sensor in playback equipment.In order to make the present embodiment clearer, two earphones are numbered respectively No. 1 and No. 2.In design process, its sensing data earphone consistent with the sensing data of player is set to left earphone in advance, and contrary is right earphone.For example,, if No. 1 earphone inserts left ear; No. 2 earphone inserts right ear, wearing is now correct, at this moment to receive the sensing data of No. 1 earphone and the sensing data of playback equipment in left ear be consistent to playback equipment, and the sensing data of No. 2 earphones and the sensing data of playback equipment in right ear is contrary, do not need to switch.
If after two earphones are exchanged, wear incorrect, the earphone of No. 1 inserts right ear, No. 2 earphone inserts left ear, and now playback equipment receives the sensing data of No. 2 earphones and the sensing data of playback equipment is consistent, and the sensing data of No. 1 earphone and the sensing data of playback equipment are contrary, are consistent owing to determining No. 2 with player, so be for No. 2 left earphone, it is for No. 1 right earphone.Need switching signal.
Although in the application's instructions, with notebook computer, desktop computer, portable player, the present invention is described as an example, but, playback equipment is not limited to this, but can comprise the various equipment that can carry out multiple sound channel outputs such as DVD player, MP3/MP4, VCD player.
Technical scheme of the present invention is by obtaining the physical location information of sound-producing device, and itself and the logical location information that the sound channel signal that exports this sound-producing device to comprises are compared, whether the physical location information that can determine sound-producing device is consistent with the logical location information of sound channel that exports this sound-producing device to, at comparative result while being inconsistent, sound channel signal is switched to another sound channel signal, the logical location information that wherein another sound channel signal comprises is consistent with the physical location information of sound-producing device, thereby realize the sound channel self-adaptation of sound-producing device, and improve the convenience of user's operation.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.