CN105898666A - Channel data matching method and channel data matching device - Google Patents

Channel data matching method and channel data matching device Download PDF

Info

Publication number
CN105898666A
CN105898666A CN201610464113.6A CN201610464113A CN105898666A CN 105898666 A CN105898666 A CN 105898666A CN 201610464113 A CN201610464113 A CN 201610464113A CN 105898666 A CN105898666 A CN 105898666A
Authority
CN
China
Prior art keywords
speaker
data
channel
present frame
pcm
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610464113.6A
Other languages
Chinese (zh)
Inventor
赵胜涛
刘子超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Leshi Zhixin Electronic Technology Tianjin Co Ltd
LeTV Holding Beijing Co Ltd
Original Assignee
Leshi Zhixin Electronic Technology Tianjin Co Ltd
LeTV Holding Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Leshi Zhixin Electronic Technology Tianjin Co Ltd, LeTV Holding Beijing Co Ltd filed Critical Leshi Zhixin Electronic Technology Tianjin Co Ltd
Priority to CN201610464113.6A priority Critical patent/CN105898666A/en
Publication of CN105898666A publication Critical patent/CN105898666A/en
Priority to PCT/CN2016/101136 priority patent/WO2017219538A1/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04SSTEREOPHONIC SYSTEMS 
    • H04S1/00Two-channel systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04SSTEREOPHONIC SYSTEMS 
    • H04S1/00Two-channel systems
    • H04S1/007Two-channel systems in which the audio signals are in digital form

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Stereophonic System (AREA)

Abstract

The embodiment of the invention discloses a channel data matching method, which is applied to intelligent terminals and belongs to the technical field of terminal communication. The method comprises the following steps of: according to posture of the terminal, determining a current matching relationship of a first loudspeaker and a second loudspeaker with a left channel and a right channel of the terminal; according to the current matching relationship, adjusting positions of left channel data and right channel data in a current frame of pulse code modulation PCM; sending the current frame to a loudspeaker hardware layer, thereby enabling the loudspeaker hardware layer to read audio data in the current frame, and outputting the audio data to the first loudspeaker and the second loudspeaker to play. The channel data matching method provided by the embodiment of the invention realizes improvement of playing effect of a stereo music, and is compatible to a third party algorithm.

Description

Channel data matching process and device
Technical field
The present embodiments relate to terminal communication technical field, particularly relate to a kind of channel data matching process and Device.
Background technology
Nowadays, music has become as the important amusement function of indispensable being integrated in terminal One of.In order to reach more preferable result of broadcast, it is stronger to produce that music all uses multichannel to record when making On the spot in person stereo.At present during mobile phone to play music, decoded PCM (pulse-code Modulation, pulse code modulation) stereo sound data are made up of L channel and R channel sound source data, When playing music, L channel sound source data is sent by the left-hand loudspeaker on mobile phone, R channel sound source data Sent by the right-hand loudspeaker on mobile phone.
During realizing the present invention, inventor finds prior art, and at least there are the following problems: city at present On field, the mobile phone of twin loudspeaker configuration is when playing stereo music, and left and right acoustic channels is all fixing, such as, set Putting the speaker at mobile phone head is the first speaker, is used for playing L channel sound source data, is arranged on mobile phone The speaker of afterbody is the second speaker, is used for playing R channel sound source data.When hand machine head is positioned at user During the left side, what the first speaker was play is L channel sound source data;Hand machine head is made when user changes mobile phone posture Towards time right, the first speaker remains the L channel sound source data of broadcasting, and now the auris dextra limit of user is play Being left channel data, what a left side was play in one's ear is but right data, is not inconsistent with practical situation, this situation pair It is difficult to accept for audiophile.Existing a kind of solution is to sound at speaker hardware layer Source digital signal carries out the exchange of left and right acoustic channels, but this implementation cannot be calculated with other necessary audio Method coexists, and can destroy the treatment effect of third party's sound effect algorithms.
Summary of the invention
The embodiment of the present invention provides a kind of channel data matching process and device, to improve broadcasting of stereo music Put effect, and achieve compatible third party's audio algorithm.
First aspect, embodiments provides a kind of channel data matching process, is applied to intelligent terminal, Described method includes:
According to the attitude of described terminal, determine its first speaker and the second speaker and L channel and R channel Current matching relation;
According to described current matching relation, adjust the left channel data in the present frame of pulse code modulation PCM Position with right data;
Present frame is sent to speaker hardware layer, reads the audio frequency number in present frame for speaker hardware layer According to, and export to described first speaker and the second speaker and play out.
Further, described according to terminal attitude, determine the first speaker and the second speaker and L channel and The current matching relation of R channel, including:
Obtain the acceleration transducer data in terminal or turn-sensitive device data;
Determine that the first speaker and second is raised according to described acceleration transducer data or turn-sensitive device data Sound device and the relative position relation of user;
Relative position relation according to described first speaker and the second speaker and user determines the first speaker With the second speaker and L channel and the current matching relation of R channel.
Further, determine according to the relative position relation of described first speaker and the second speaker with user First speaker and the second speaker and L channel and the current matching relation of R channel, including:
Distance between described first speaker and the left ear of user is relative and between the auris dextra piece of user Time close together, determining that described first speaker mates with L channel, the second speaker mates with R channel;
Or,
Distance between described first speaker and the auris dextra piece of user is relative and between the left ear of user Time close together, determining that described first speaker mates with R channel, the second speaker mates with L channel.
Further, according to described current matching relation, adjust the left channel data in the present frame of PCM and The position of right data, including:
If in the present frame of described PCM the position of left channel data and right data with described current When joining relation difference, extract left channel data and right data in described present frame and cache, and exchange Described left channel data and right data position in the current frame, forms new Frame, and replaces institute State present frame.
Further, according to described current matching relation, adjust the left channel data in the present frame of PCM and Before the position of right data, also include:
Compression voice data stream is processed based at least one algorithm following, to obtain described PCM data: Doby decoding algorithm or audio frequency fidelity Dirac decoding algorithm.
Further, according to described current matching relation, adjust the left channel data in the present frame of PCM and After the position of right data, also include:
Described PCM data is processed based at least one algorithm following: Doby sound effect algorithms or audio frequency Fidelity Dirac algorithm.
Second aspect, the embodiment of the present invention additionally provides a kind of channel data coalignment, and described device includes:
Determine module, for according to the attitude of described terminal, determine its first speaker and the second speaker with The current matching relation of L channel and R channel;
Adjusting module, for according to described current matching relation, adjusting the present frame of pulse code modulation PCM In left channel data and the position of right data;
Playing module, for being sent by present frame to speaker hardware layer, reads for speaker hardware layer and works as Voice data in front frame, and export to described first speaker and the second speaker and play out.
Further, described determine that module includes:
Acquiring unit, for obtaining the acceleration transducer data in terminal or turn-sensitive device data;
First determines unit, for determining according to described acceleration transducer data or turn-sensitive device data The relative position relation of the first speaker and the second speaker and user;
Second determines unit, for the relative position according to described first speaker and the second speaker with user Relation determines the first speaker and the second speaker and L channel and the current matching relation of R channel.
Further, described second determine unit specifically for: when the left ear of described first speaker Yu user During close together relatively and between the auris dextra piece of user of the distance between piece, determine described first speaker with L channel mates, and the second speaker mates with R channel;
Or,
Distance between described first speaker and the auris dextra piece of user is relative and between the left ear of user Time close together, determining that described first speaker mates with R channel, the second speaker mates with L channel.
Further, described adjusting module specifically for:
If in the present frame of described PCM the position of left channel data and right data with described current When joining relation difference, extract left channel data and right data in described present frame and cache, and exchange Described left channel data and right data position in the current frame, forms new Frame, and replaces institute State present frame.
Further, described device also includes:
Also include the first processing module, for according to described current matching relation, adjusting the present frame of PCM In left channel data and right data position before, to compression voice data stream based on following at least one Item algorithm is decoded processing, to obtain described PCM data: Doby decoding algorithm or audio frequency fidelity Dirac Decoding algorithm.
Further, described device also includes:
Second processing module, for according to described current matching relation, adjusting the left side in the present frame of PCM After the position of channel data and right data, described PCM data is entered based at least one algorithm following Row processes: Doby sound effect algorithms or audio frequency fidelity Dirac algorithm.
A kind of channel data matching process that the embodiment of the present invention provides, by according to terminal attitude, determines the One speaker and the second speaker and L channel and the current matching relation of R channel, and according to described current Join relation, adjust the left channel data in the present frame of pulse code modulation PCM and the position of right data, Then the present frame after adjusting sends to speaker hardware layer, reads in present frame for speaker hardware layer Voice data, and export the technological means played out to described first speaker and the second speaker, real Show the result of broadcast improving stereo music, and achieve compatible third party's audio algorithm.
Accompanying drawing explanation
Fig. 1 is the flow chart of a kind of channel data matching process in the embodiment of the present invention one;
Fig. 2 is the flow chart of a kind of channel data matching process in the embodiment of the present invention two;
Fig. 3 is the structure chart of a kind of channel data coalignment in the embodiment of the present invention three.
Detailed description of the invention
The present invention is described in further detail with embodiment below in conjunction with the accompanying drawings.It is understood that this Specific embodiment described by place is used only for explaining the present invention, rather than limitation of the invention.The most also need It is noted that for the ease of describing, accompanying drawing illustrate only part related to the present invention and not all knot Structure.
It also should be noted that, for the ease of describing, accompanying drawing illustrate only portion related to the present invention Divide rather than full content.It should be mentioned that, some show before being discussed in greater detail exemplary embodiment Example embodiment is described as process or the method described as flow chart.Although flow chart by operations (or Step) it is described as process sequentially, but many of which operation can be by concurrently, concomitantly or together Time implement.Additionally, the order of operations can be rearranged.The most described process can To be terminated, it is also possible to have the additional step being not included in accompanying drawing.Described process can correspond to Method, function, code, subroutine, subprogram etc..
Embodiment one
The flow chart of a kind of channel data matching process that Fig. 1 provides for the embodiment of the present invention one, the present embodiment Being applicable to user by being configured with the situation of the terminal plays stereo music of two speakers, the method can Performing with the channel data coalignment provided by the embodiment of the present invention, typically, this device can be integrated in In terminal, such as mobile phone.As it is shown in figure 1, described method specifically includes:
Step 110, according to terminal attitude, determine the first speaker and the second speaker and L channel and R channel Current matching relation.
Terminal that is concrete, that sell in the market, great majority are equipped with two speakers, with user just When often using terminal to make a phone call or send short messages premised on the attitude of terminal, the most described first speaker is arranged At the upper edge of terminal, described second speaker is arranged on the lower edge of terminal;Or described first Speaker and described second speaker are disposed in parallel in upper edge or the lower edge of terminal, more specifically, Described first speaker can be arranged on the left side of described second speaker.Such as first speaker is used for playing Left channel data, the second speaker is used for playing right data, thus realizes the broadcasting of stereo music. But when be used for playing the first speaker of left channel data from user the more left ear of auris dextra piece closer to time, the One speaker the most also plays left channel data, from the left ear of user compared with auris dextra piece closer to the second speaker depend on So also play right data, therefore can cause the stereo music poor effect play, allow some music like Good person cannot accept.
So in order to realize more preferable stereo music result of broadcast, optionally, can current according to terminal Attitude, determines the first speaker and the second speaker and L channel and the current matching relation of R channel.Described I.e. where terminal attitude specifically may refer to two speakers of configuration in terminal and the relative position relation of user, Individual speaker is close to the left ear of user, and which speaker is close to the auris dextra piece of user.
Step 120, according to described current matching relation, adjust in the present frame of pulse code modulation PCM Left channel data and the position of right data.
Wherein, described PCM data frame is to exist with certain data form, and described data form can identify Store in which data bit in PCM data is left channel data, and in which data bit, storage is R channel Data.When the first speaker and the second speaker and L channel and the current matching relation of R channel and initialization Time acquiescence matching relationship difference time, then by hardware abstraction layer adjust PCM present frame in L channel number According to the position with right data.Such as, during initialization, the matching relationship of acquiescence is that left channel data is by first Speaker is play, and right data is play by the second speaker, when the first speaker and the second speaker are with left The current matching relation of sound channel and R channel is that the first loudspeaker distance R channel is relatively near, the second loudspeaker distance When L channel is nearer, then adjusted the left channel data in the present frame of PCM and R channel by hardware abstraction layer The position of data.
Optionally, above-mentioned steps can be specifically if left channel data and right sound in the present frame of described PCM When the position of track data is different from described current matching relation, extracted in described present frame by hardware abstraction layer Left channel data and right data cache, and exchange described left channel data and right data work as Position in front frame, forms new Frame, and replaces described present frame.
It should be noted that because a lot of third party's algorithms are all at audio frequency ccf layer load operating, such as Described third party's algorithm can be control particular speaker play the control algolithm of channel data that matches with And particular channel data are carried out the backoff algorithm of special audio compensation, the voice data after algorithm process Just can be read by speaker hardware layer and be played out by corresponding speaker.But passing through third party Before voice data is processed by algorithm, system is not aware that the current matching relation of each speaker and each sound channel, Therefore, if carry out the exchange of left and right acoustic channels data at speaker hardware layer, can have a strong impact on and raise one's voice with left and right The third party's algorithm of the device cavity strong correlation compensation effect to voice data, such as certain speaker chamber Modeling optimization compensates sound effect algorithms.Therefore, it can before loading third algorithm, according to described current matching Relation, adjusts the left channel data in the present frame of pulse code modulation PCM and right sound by hardware abstraction layer The position of track data.
Further, according to described current matching relation, adjust the left channel data in the present frame of PCM and Before the position of right data, described method can also include:
Voice data is processed based at least one algorithm, to obtain described PCM data;
Alternatively, described algorithm can be Doby sound effect algorithms or audio frequency fidelity Dirac algorithm.
When using Doby sound effect algorithms, it is possible to use Doby decoder obtains PCM data;When using Dirac During algorithm, it is possible to use obtain PCM data after Nuplayer or AwesomePlayer decoding.
Further, on the basis of technique scheme, according to described current matching relation, adjust PCM Present frame in left channel data and right data position after, described method can also include:
Described PCM data is processed based at least one algorithm following: Doby sound effect algorithms, audio frequency are protected True Dirac algorithm.To improve the result of broadcast of stereo music or to realize playing except musical sound simultaneously Other sound in addition.
Step 130, present frame is sent to speaker hardware layer, read present frame for speaker hardware layer In voice data, and export to described first speaker and the second speaker and play out.
Wherein, present frame is made up of left channel data and right data, can pass through loading third-party algorithm Controlling left channel data to be play by the first speaker, right data is play by the second speaker, or left sound Track data is play by the second speaker, and right data is play by the first speaker.
A kind of channel data matching process that the present embodiment provides, by according to terminal attitude, determines that first raises Sound device and the second speaker and L channel and the current matching relation of R channel, and close according to described current matching System, adjusts the left channel data in the present frame of pulse code modulation PCM and the position of right data, so After present frame is sent to speaker hardware layer, read the voice data in present frame for speaker hardware layer, And export the technological means played out to described first speaker and the second speaker, it is achieved that improve solid The result of broadcast that sound is happy.
Embodiment two
The flow chart of a kind of channel data matching process that Fig. 2 provides for the embodiment of the present invention two, the present embodiment On the basis of above-described embodiment, carry out further optimization, " according to terminal attitude, will determine that first raises The current matching relation of sound device and the second speaker and L channel and R channel " operation be specifically optimized for " obtaining Take the acceleration transducer data in terminal or turn-sensitive device data;According to described acceleration transducer number According to or turn-sensitive device data determine the relative position relation of the first speaker and the second speaker and user; Relative position relation according to described first speaker and the second speaker with user determines the first speaker and the Two speakers and L channel and the current matching relation of R channel ";The benefit so optimized is can be exactly Determine the first speaker and the second speaker and L channel and the current matching relation of R channel.As in figure 2 it is shown, Described method specifically includes:
Step 210, the acceleration transducer data obtained in terminal or turn-sensitive device data.
Step 220, determine that first raises one's voice according to described acceleration transducer data or turn-sensitive device data The relative position relation of device and the second speaker and user.
Concrete, described sensing data can be the first speaker and the three dimensional space coordinate of the second speaker Value, can obtain the distance between each speaker and user further according to described three dimensional space coordinate value.
Step 230, relative position relation according to described first speaker and the second speaker with user determine First speaker and the second speaker and L channel and the current matching relation of R channel.
Exemplarily, above-mentioned steps is specifically as follows: between described first speaker and the left ear of user Close together relatively and between the auris dextra piece of user of distance time, determine described first speaker and L channel Coupling, the second speaker mates with R channel;
Or,
Distance between described first speaker and the auris dextra piece of user is relative and between the left ear of user Time close together, determining that described first speaker mates with R channel, the second speaker mates with L channel.
Step 240, according to described current matching relation, adjust in the present frame of pulse code modulation PCM Left channel data and the position of right data.
Step 250, present frame is sent to speaker hardware layer, read present frame for speaker hardware layer In voice data, and export to described first speaker and the second speaker and play out.
A kind of channel data matching process that the present embodiment provides, by obtaining the acceleration transducer in terminal Data or turn-sensitive device data, and according to described acceleration transducer data or turn-sensitive device data Determine the relative position relation of the first speaker and the second speaker and user, then raise one's voice according to described first The relative position relation of device and the second speaker and user determines the first speaker and the second speaker and L channel With the current matching relation of R channel, reach to accurately determine the first speaker and the second speaker and left sound The purpose of the current matching relation of road and R channel.
Embodiment three
Fig. 3 show the structural representation of a kind of channel data coalignment that the embodiment of the present invention three provides, This device can use the mode of software or hardware to realize, and this device can be integrated in terminal, typically, described Terminal can be mobile phone, as it is shown on figure 3, the concrete structure of this device comprises determining that module 410, adjusts Module 420 and playing module 430, wherein:
Determine module 410, for according to terminal attitude, determine the first speaker and the second speaker and left sound The current matching relation of road and R channel;
Adjusting module 420, for according to described current matching relation, adjusting working as of pulse code modulation PCM Left channel data in front frame and the position of right data;
Playing module 430, for sending present frame to speaker hardware layer, reads for speaker hardware layer Take the voice data in present frame, and output plays out to described first speaker and the second speaker.
Further, it is determined that module 410 may include that
Acquiring unit, for obtaining the acceleration transducer data in terminal or turn-sensitive device data;
First determines unit, for determining according to described acceleration transducer data or turn-sensitive device data The relative position relation of the first speaker and the second speaker and user;
Second determines unit, for the relative position according to described first speaker and the second speaker with user Relation determines the first speaker and the second speaker and L channel and the current matching relation of R channel.
Exemplarily, described second determines that unit specifically may be used for: when described first speaker is with user's During close together relatively and between the auris dextra piece of user of the distance between left ear, determine that described first raises one's voice Device mates with L channel, and the second speaker mates with R channel;
Or,
Distance between described first speaker and the auris dextra piece of user is relative and between the left ear of user Time close together, determining that described first speaker mates with R channel, the second speaker mates with L channel.
On the basis of technique scheme, exemplarily, described device can also include:
First processing module, for according to described current matching relation, adjusting the left side in the present frame of PCM Before the position of channel data and right data, to voice data based at least one algorithm following at Reason, to obtain described PCM data: Doby sound effect algorithms or audio frequency fidelity Dirac algorithm.
Exemplarily, adjusting module 420 specifically may be used for:
If in the present frame of described PCM the position of left channel data and right data with described current When joining relation difference, extract left channel data and right data in described present frame and cache, and exchange Described left channel data and right data position in the current frame, forms new Frame, and replaces institute State present frame.
Exemplarily, described device can also include:
Second processing module, for according to described current matching relation, adjusting the left side in the present frame of PCM After the position of channel data and right data, described PCM data is entered based at least one algorithm following Row processes: Doby sound effect algorithms, audio frequency fidelity Dirac algorithm or Mixed Audio Algorithm.
A kind of channel data coalignment that the present embodiment provides, by according to terminal attitude, determines that first raises Sound device and the second speaker and L channel and the current matching relation of R channel, and close according to described current matching System, adjusts the left channel data in the present frame of pulse code modulation PCM and the position of right data, so After present frame is sent to speaker hardware layer, read the voice data in present frame for speaker hardware layer, And export the technological means played out to described first speaker and the second speaker, it is achieved that improve solid The result of broadcast that sound is happy.
Channel data coalignment described in the present embodiment can be used for performing the channel number described in the various embodiments described above According to matching process, possesses corresponding functional module, it is achieved identical beneficial effect, its know-why and generation Technique effect be similar to, repeat no more here.The ins and outs of the most detailed description, can join See the method that any embodiment of the present invention is provided.
The embodiment of the present invention also provides for a kind of storage medium comprising computer executable instructions, described computer Executable instruction is used for when being performed by computer processor performing a kind of channel data matching process, the method Including:
According to terminal attitude, determine the first speaker and the second speaker and L channel and current of R channel Join relation;
According to described current matching relation, the left channel data in the present frame of whole pulse coded modulation PCM and The position of right data;
Present frame is sent to speaker hardware layer, reads the audio frequency number in present frame for speaker hardware layer According to, and export to described first speaker and the second speaker and play out.
Optionally, this computer executable instructions can be also used for performing basis when being performed by computer processor The technical scheme of the channel data matching process that invention any embodiment is provided.
By the description above with respect to embodiment, those skilled in the art it can be understood that arrive, The present invention can realize by software and required common hardware, naturally it is also possible to is realized by hardware, but very In the case of Duo, the former is more preferably embodiment.Based on such understanding, technical scheme is substantially The part contributed prior art in other words can embody with the form of software product, this computer Software product can store in a computer-readable storage medium, such as floppy disk, the read only memory of computer (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), Flash memory (FLASH), hard disk or CD etc., including some instructions with so that a computer equipment (can To be personal computer, server, or the network equipment etc.) perform the side described in each embodiment of the present invention Method.
It will be appreciated by those skilled in the art that all or part of step realizing in above-described embodiment method is permissible Instructing relevant hardware by program to complete, this program is stored in a storage medium, including some Instruct with so that an equipment (can be single-chip microcomputer, chip etc.) or processor (processor) perform All or part of step of method described in each embodiment of the application.And aforesaid storage medium includes: USB flash disk, Portable hard drive, read only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), the various media that can store program code such as magnetic disc or CD.
Note, above are only presently preferred embodiments of the present invention and institute's application technology principle.Those skilled in the art It will be appreciated that the invention is not restricted to specific embodiment described here, can enter for a person skilled in the art Row various obvious changes, readjust and substitute without departing from protection scope of the present invention.Therefore, though So by above example, the present invention is described in further detail, but the present invention be not limited only to Upper embodiment, without departing from the inventive concept, it is also possible to include other Equivalent embodiments more, And the scope of the present invention is determined by scope of the appended claims.

Claims (12)

1. a channel data matching process, is applied to intelligent terminal, it is characterised in that including:
According to the attitude of described terminal, determine its first speaker and the second speaker and L channel and R channel Current matching relation;
According to described current matching relation, adjust the left channel data in the present frame of pulse code modulation PCM Position with right data;
Present frame is sent to speaker hardware layer, reads the audio frequency number in present frame for speaker hardware layer According to, and export to described first speaker and the second speaker and play out.
Method the most according to claim 1, it is characterised in that the described attitude according to described terminal, Determine its first speaker and the second speaker and L channel and the current matching relation of R channel, including:
Obtain the acceleration transducer data in terminal or turn-sensitive device data;
Determine that the first speaker and second is raised according to described acceleration transducer data or turn-sensitive device data Sound device and the relative position relation of user;
Relative position relation according to described first speaker and the second speaker and user determines the first speaker With the second speaker and L channel and the current matching relation of R channel.
Method the most according to claim 2, it is characterised in that according to described first speaker and second Speaker determines the first speaker and the second speaker and L channel and R channel with the relative position relation of user Current matching relation, including:
Distance between described first speaker and the left ear of user is relative and between the auris dextra piece of user Time close together, determining that described first speaker mates with L channel, the second speaker mates with R channel;
Or,
Distance between described first speaker and the auris dextra piece of user is relative and between the left ear of user Time close together, determining that described first speaker mates with R channel, the second speaker mates with L channel.
Method the most according to claim 1, it is characterised in that according to described current matching relation, adjusts Left channel data in the present frame of whole PCM and the position of right data, including:
If in the present frame of described PCM the position of left channel data and right data with described current When joining relation difference, extract left channel data and right data in described present frame and cache, and exchange Described left channel data and right data position in the current frame, forms new Frame, and replaces institute State present frame.
Method the most according to claim 1, it is characterised in that according to described current matching relation, adjusts Before left channel data in the present frame of whole PCM and the position of right data, also include:
It is decoded processing, to obtain described PCM based at least one algorithm following to compression voice data stream Data: Doby decoding algorithm or audio frequency fidelity Dirac decoding algorithm.
Method the most according to claim 1, it is characterised in that according to described current matching relation, adjusts After left channel data in the present frame of whole PCM and the position of right data, also include:
Described PCM data is processed based at least one algorithm following: Doby sound effect algorithms or audio frequency Fidelity Dirac algorithm.
7. a channel data coalignment, it is characterised in that including:
Determine module, for the attitude according to terminal, determine its first speaker and the second speaker and left sound The current matching relation of road and R channel;
Adjusting module, for according to described current matching relation, adjusting the present frame of pulse code modulation PCM In left channel data and the position of right data;
Playing module, for being sent by present frame to speaker hardware layer, reads for speaker hardware layer and works as Voice data in front frame, and export to described first speaker and the second speaker and play out.
Device the most according to claim 7, it is characterised in that described determine that module includes:
Acquiring unit, for obtaining the acceleration transducer data in terminal or turn-sensitive device data;
First determines unit, for determining according to described acceleration transducer data or turn-sensitive device data The relative position relation of the first speaker and the second speaker and user;
Second determines unit, for the relative position according to described first speaker and the second speaker with user Relation determines the first speaker and the second speaker and L channel and the current matching relation of R channel.
Device the most according to claim 8, it is characterised in that described second determine unit specifically for:
Distance between described first speaker and the left ear of user is relative and between the auris dextra piece of user Time close together, determining that described first speaker mates with L channel, the second speaker mates with R channel;
Or,
Distance between described first speaker and the auris dextra piece of user is relative and between the left ear of user Time close together, determining that described first speaker mates with R channel, the second speaker mates with L channel.
Device the most according to claim 7, it is characterised in that described adjusting module specifically for:
If in the present frame of described PCM the position of left channel data and right data with described current When joining relation difference, extract left channel data and right data in described present frame and cache, and exchange Described left channel data and right data position in the current frame, forms new Frame, and replaces institute State present frame.
11. devices according to claim 7, it is characterised in that also include the first processing module, use According to described current matching relation, adjust the left channel data in the present frame of PCM and right data Position before, compression voice data stream is processed based at least one algorithm following, described to obtain PCM data: Doby decoding algorithm or audio frequency fidelity Dirac decoding algorithm.
12. devices according to claim 7, it is characterised in that also include:
Second processing module, for according to described current matching relation, adjusting the left side in the present frame of PCM After the position of channel data and right data, described PCM data is entered based at least one algorithm following Row processes: Doby sound effect algorithms, audio frequency fidelity Dirac algorithm or Mixed Audio Algorithm.
CN201610464113.6A 2016-06-23 2016-06-23 Channel data matching method and channel data matching device Pending CN105898666A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610464113.6A CN105898666A (en) 2016-06-23 2016-06-23 Channel data matching method and channel data matching device
PCT/CN2016/101136 WO2017219538A1 (en) 2016-06-23 2016-09-30 Channel data matching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610464113.6A CN105898666A (en) 2016-06-23 2016-06-23 Channel data matching method and channel data matching device

Publications (1)

Publication Number Publication Date
CN105898666A true CN105898666A (en) 2016-08-24

Family

ID=56718987

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610464113.6A Pending CN105898666A (en) 2016-06-23 2016-06-23 Channel data matching method and channel data matching device

Country Status (2)

Country Link
CN (1) CN105898666A (en)
WO (1) WO2017219538A1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106657617A (en) * 2016-11-30 2017-05-10 努比亚技术有限公司 Method for controlling playing of loudspeakers and mobile terminal
CN106713645A (en) * 2016-12-28 2017-05-24 努比亚技术有限公司 Method of controlling loudspeaker playing and mobile terminal
WO2017219538A1 (en) * 2016-06-23 2017-12-28 乐视控股(北京)有限公司 Channel data matching method and device
CN107547987A (en) * 2017-08-09 2018-01-05 维沃移动通信有限公司 A kind of effect adjusting method and mobile terminal
CN109862475A (en) * 2019-01-28 2019-06-07 Oppo广东移动通信有限公司 Audio-frequence player device and method, storage medium, communication terminal
CN111530069A (en) * 2020-04-22 2020-08-14 歌尔科技有限公司 Game paddle control method and device and hand game system
CN113411702A (en) * 2020-03-16 2021-09-17 维沃移动通信有限公司 Sound channel configuration method and electronic equipment

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110827843B (en) * 2018-08-14 2023-06-20 Oppo广东移动通信有限公司 Audio processing method and device, storage medium and electronic equipment
CN110996217B (en) * 2019-11-28 2021-08-24 荣成歌尔科技有限公司 Sound channel selection method and device for sound box and sound box
CN112162460B (en) * 2020-09-27 2021-09-03 深圳市火乐科技发展有限公司 Audio playing method and related device

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101533293A (en) * 2008-03-13 2009-09-16 大众电脑股份有限公司 Audio and video outputting device and electronic device having same
CN102186049A (en) * 2011-04-22 2011-09-14 华为终端有限公司 Conference terminal audio signal processing method, conference terminal and video conference system
WO2012066734A1 (en) * 2010-11-15 2012-05-24 パナソニック株式会社 Voice communication device and voice communication method
CN102752687A (en) * 2012-06-28 2012-10-24 华为终端有限公司 Sound effect adjusting method for terminal device and terminal device
CN202711124U (en) * 2012-06-26 2013-01-30 亚忆电子(深圳)有限公司 Dual-track tablet PC with high acoustic quality
US20130038726A1 (en) * 2011-08-09 2013-02-14 Samsung Electronics Co., Ltd Electronic apparatus and method for providing stereo sound
CN103295610A (en) * 2013-05-22 2013-09-11 华为技术有限公司 Audio playing method and audio playing device
CN103533497A (en) * 2013-10-09 2014-01-22 上海斐讯数据通信技术有限公司 Sound channel switching device and sound channel switching method of stereo playing system
CN104104346A (en) * 2014-07-14 2014-10-15 深圳市中兴移动通信有限公司 Method and device for improving audio playing effect of mobile terminal
CN104967953A (en) * 2015-06-23 2015-10-07 Tcl集团股份有限公司 Multichannel playing method and system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102595304A (en) * 2012-03-15 2012-07-18 国光电器股份有限公司 Sound channel automatic switching device
CN103974167A (en) * 2013-02-06 2014-08-06 辉达公司 Flat-panel electronic device and audio player thereof
TW201603589A (en) * 2014-07-09 2016-01-16 宏碁股份有限公司 Earphone and sound channel controlling method thereof
CN105898666A (en) * 2016-06-23 2016-08-24 乐视控股(北京)有限公司 Channel data matching method and channel data matching device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101533293A (en) * 2008-03-13 2009-09-16 大众电脑股份有限公司 Audio and video outputting device and electronic device having same
WO2012066734A1 (en) * 2010-11-15 2012-05-24 パナソニック株式会社 Voice communication device and voice communication method
CN102186049A (en) * 2011-04-22 2011-09-14 华为终端有限公司 Conference terminal audio signal processing method, conference terminal and video conference system
US20130038726A1 (en) * 2011-08-09 2013-02-14 Samsung Electronics Co., Ltd Electronic apparatus and method for providing stereo sound
CN202711124U (en) * 2012-06-26 2013-01-30 亚忆电子(深圳)有限公司 Dual-track tablet PC with high acoustic quality
CN102752687A (en) * 2012-06-28 2012-10-24 华为终端有限公司 Sound effect adjusting method for terminal device and terminal device
CN103295610A (en) * 2013-05-22 2013-09-11 华为技术有限公司 Audio playing method and audio playing device
CN103533497A (en) * 2013-10-09 2014-01-22 上海斐讯数据通信技术有限公司 Sound channel switching device and sound channel switching method of stereo playing system
CN104104346A (en) * 2014-07-14 2014-10-15 深圳市中兴移动通信有限公司 Method and device for improving audio playing effect of mobile terminal
CN104967953A (en) * 2015-06-23 2015-10-07 Tcl集团股份有限公司 Multichannel playing method and system

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017219538A1 (en) * 2016-06-23 2017-12-28 乐视控股(北京)有限公司 Channel data matching method and device
CN106657617A (en) * 2016-11-30 2017-05-10 努比亚技术有限公司 Method for controlling playing of loudspeakers and mobile terminal
CN106657617B (en) * 2016-11-30 2020-06-16 重庆亿优科技有限公司 Method for controlling loudspeaker to play and mobile terminal
CN106713645A (en) * 2016-12-28 2017-05-24 努比亚技术有限公司 Method of controlling loudspeaker playing and mobile terminal
CN106713645B (en) * 2016-12-28 2019-11-15 努比亚技术有限公司 A kind of method and mobile terminal of the broadcasting of control loudspeaker
CN107547987A (en) * 2017-08-09 2018-01-05 维沃移动通信有限公司 A kind of effect adjusting method and mobile terminal
CN107547987B (en) * 2017-08-09 2019-07-26 维沃移动通信有限公司 A kind of effect adjusting method and mobile terminal
CN109862475A (en) * 2019-01-28 2019-06-07 Oppo广东移动通信有限公司 Audio-frequence player device and method, storage medium, communication terminal
CN113411702A (en) * 2020-03-16 2021-09-17 维沃移动通信有限公司 Sound channel configuration method and electronic equipment
CN113411702B (en) * 2020-03-16 2024-05-14 维沃移动通信有限公司 Sound channel configuration method and electronic equipment
CN111530069A (en) * 2020-04-22 2020-08-14 歌尔科技有限公司 Game paddle control method and device and hand game system

Also Published As

Publication number Publication date
WO2017219538A1 (en) 2017-12-28

Similar Documents

Publication Publication Date Title
CN105898666A (en) Channel data matching method and channel data matching device
US11681490B2 (en) Binaural rendering for headphones using metadata processing
US9271102B2 (en) Multi-dimensional parametric audio system and method
CN106170037A (en) Audio play control method and device
JP6419222B2 (en) Method and headset for improving sound quality
CN100574516C (en) Method and apparatus to simulate 2-channel virtualized sound for multi-channel sound
US9794715B2 (en) System and methods for processing stereo audio content
US20140050325A1 (en) Multi-dimensional parametric audio system and method
TWI559786B (en) Enhancing the reproduction of multiple audio channels
CN106416301B (en) For rendering the method and apparatus of acoustic signal
KR20170136004A (en) Apparatus and method for sound stage enhancement
JP2010538572A (en) Audio signal decoding method and apparatus
CN106792365B (en) Audio playing method and device
CN107040862A (en) Audio-frequency processing method and processing system
CN104157292A (en) Anti-howling audio signal processing method and device thereof
US20170272889A1 (en) Sound reproduction system
CN105187993B (en) A kind of three-dimension stereo Headphone device and restoring method
CN109982209A (en) A kind of car audio system
KR20050064442A (en) Device and method for generating 3-dimensional sound in mobile communication system
CN102045619B (en) Recording apparatus, recording method, audio signal correction circuit, and program
KR20240013351A (en) Bluetooth Earphones with Sound Effect Application and Adaptive Noise Control
CN113115178B (en) Audio signal processing method and device
EP3718312A1 (en) Processing audio signals
CN112291673B (en) Sound phase positioning circuit and equipment
CN115167803A (en) Sound effect adjusting method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
AD01 Patent right deemed abandoned
AD01 Patent right deemed abandoned

Effective date of abandoning: 20180713