CN106303896A - The method and apparatus playing audio frequency - Google Patents
The method and apparatus playing audio frequency Download PDFInfo
- Publication number
- CN106303896A CN106303896A CN201610875796.4A CN201610875796A CN106303896A CN 106303896 A CN106303896 A CN 106303896A CN 201610875796 A CN201610875796 A CN 201610875796A CN 106303896 A CN106303896 A CN 106303896A
- Authority
- CN
- China
- Prior art keywords
- channel signals
- left channel
- amplitude
- audio frequency
- phase
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04S—STEREOPHONIC SYSTEMS
- H04S1/00—Two-channel systems
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Acoustics & Sound (AREA)
- Signal Processing (AREA)
- Stereophonic System (AREA)
Abstract
The disclosure is directed to the method and apparatus playing audio frequency.Wherein, the method includes: obtain the phase relation between left channel signals and the right-channel signals of audio frequency;If described phase relation shows the phase place of left channel signals and the opposite in phase of right-channel signals, left channel signals or right-channel signals are processed so that the phase place of left channel signals is consistent with the phase place of right-channel signals;Left channel signals and right-channel signals are carried out audio mixing broadcasting.Disclosure embodiment, when the problem of the phase place of left channel signals and the opposite in phase of right-channel signals occurs in audio frequency, carries out process and makes audio frequency play out after becoming normal audio frequency, even if so that the audio frequency gone wrong also is able to normally listen to audio frequency.
Description
Technical field
It relates to field of terminal technology, particularly relate to the method and apparatus playing audio frequency.
Background technology
Along with the development of terminal technology, more and more users use terminal to be operated, entertain.Such as playing sound
During frequency file, run into sometimes owing to making or later stage compilation problem, left and right acoustic channels mismatch problem, such as left and right acoustic channels occur
The signal phase of identical time is reverse.And terminal is when playing music, due to general only one of which speaker, therefore can be by left and right
The signal of sound channel carries out simple audio mixing (mix: left and right sound track signals amplitude respectively subtracts half, is then added) and becomes a sound channel, so
After play out.Cause phase place reverse if audio file makes a mistake when making, then the signal amplitude base after audio mixing
This is order, almost can not play sound.
Summary of the invention
Disclosure embodiment provides a kind of method and apparatus playing audio frequency.Technical scheme is as follows:
First aspect according to disclosure embodiment, it is provided that a kind of method playing audio frequency, including:
Obtain the phase relation between left channel signals and the right-channel signals of audio frequency;
If described phase relation shows the phase place of left channel signals and the opposite in phase of right-channel signals, to left channel signals
Or right-channel signals processes so that the phase place of left channel signals is consistent with the phase place of right-channel signals;
Left channel signals and right-channel signals are carried out audio mixing broadcasting.
Optionally, the phase relation between left channel signals and the right-channel signals of described acquisition audio frequency, including:
The amplitude of the left channel signals of multiple Preset Time points of detection audio frequency and the amplitude of right-channel signals;
The amplitude of left channel signals and the width of right-channel signals when each Preset Time point in multiple Preset Time points
When the symbol of degree is contrary, the difference of absolute value is less than preset value, determine the phase place of left channel signals and the phase place phase of right-channel signals
Instead.
Optionally, the amplitude of the left channel signals of multiple Preset Time points of described detection audio frequency and the width of right-channel signals
Degree, including:
The amplitude of left channel signals of the multiple Preset Time points in the preset period of time of detection audio frequency and right-channel signals
Amplitude;
The amplitude of left channel signals and the right side when each Preset Time point in multiple Preset Time points of preset period of time
When the equal symbol of amplitude of sound channel signal is contrary, the difference of absolute value is less than preset value, determine phase place and the R channel of left channel signals
The opposite in phase of signal.
Optionally, described left channel signals or right-channel signals are processed, including:
Left channel signals or right-channel signals are inverted.
Optionally, described left channel signals or right-channel signals are inverted, including:
Amplitude intermediate value is determined according to sampling resolution;
According to described amplitude intermediate value, left channel signals or right-channel signals are carried out symmetrical reversion.
Second aspect according to disclosure embodiment, it is provided that a kind of device playing audio frequency, described device includes:
Acquisition module, is configured to the phase relation obtaining between left channel signals and the right-channel signals of audio frequency;
Processing module, if being configured to described phase relation to show the phase place of left channel signals and the phase place of right-channel signals
On the contrary, left channel signals or right-channel signals are processed so that the phase place of left channel signals and the phase place of right-channel signals
Unanimously;
Playing module, is configured to left channel signals and right-channel signals are carried out audio mixing broadcasting.
Optionally, described acquisition module, including:
Detection sub-module, is configured to detect amplitude and the R channel of the left channel signals of multiple Preset Time points of audio frequency
The amplitude of signal;
First determines submodule, the left channel signals of each Preset Time point being configured as in multiple Preset Time point
Amplitude and the symbol of amplitude of right-channel signals is contrary, the difference of absolute value less than preset value time, determine the phase of left channel signals
Position and the opposite in phase of right-channel signals.
Optionally, described detection sub-module, it is additionally configured to the multiple Preset Time points detecting in the preset period of time of audio frequency
The amplitude of left channel signals and the amplitude of right-channel signals;
Described first determines submodule, be additionally configured to when in multiple Preset Time points of preset period of time each preset
The amplitude of the left channel signals of time point and the equal symbol of the amplitude of right-channel signals are contrary, the difference of absolute value less than preset value time,
Determine the phase place of left channel signals and the opposite in phase of right-channel signals.
Optionally, described processing module, it is configured to invert left channel signals or right-channel signals.
Optionally, described processing module includes:
Second determines submodule, is configured to determine amplitude intermediate value according to sampling resolution;
Processing submodule, be configured to according to described amplitude intermediate value, it is right left channel signals or right-channel signals to be carried out
Claim reversion.
The third aspect according to disclosure embodiment, it is provided that a kind of device playing audio frequency, including:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
Obtain the phase relation between left channel signals and the right-channel signals of audio frequency;
If described phase relation shows the phase place of left channel signals and the opposite in phase of right-channel signals, to left channel signals
Or right-channel signals processes so that the phase place of left channel signals is consistent with the phase place of right-channel signals;
Left channel signals and right-channel signals are carried out audio mixing broadcasting.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect:
Technique scheme, by the phase relation between left channel signals and the right-channel signals of acquisition audio frequency, sentences
The phase place of disconnected left channel signals and the phase place of right-channel signals are the most contrary, if the phase place of left channel signals and right-channel signals
Opposite in phase, then process left channel signals or right-channel signals so that the phase place of left channel signals and right-channel signals
Phase place consistent after, left channel signals and right-channel signals are carried out audio mixing broadcasting.Disclosure embodiment can occur at audio frequency
During the problem of the phase place of left channel signals and the opposite in phase of right-channel signals, audio frequency is carried out process and makes audio frequency become normal
Play out after audio frequency, even if so that the audio frequency gone wrong also is able to normally listen to.
It should be appreciated that it is only exemplary and explanatory, not that above general description and details hereinafter describe
The disclosure can be limited.
Accompanying drawing explanation
Accompanying drawing herein is merged in description and constitutes the part of this specification, it is shown that meet the enforcement of the disclosure
Example, and for explaining the principle of the disclosure together with description.
Fig. 1 is the flow chart according to the method playing audio frequency shown in an exemplary embodiment.
Fig. 2 is the flow chart according to the method playing audio frequency shown in another exemplary embodiment.
Fig. 3 is the time domain beamformer according to the audio frequency shown in an exemplary embodiment.
Fig. 4 is the time domain beamformer according to the audio frequency shown in another exemplary embodiment.
Fig. 5 is the block diagram according to the device playing audio frequency shown in another exemplary embodiment.
Fig. 6 is the block diagram according to the device playing audio frequency shown in another exemplary embodiment.
Fig. 7 is the block diagram according to the device playing audio frequency shown in another exemplary embodiment.
Fig. 8 is the block diagram according to the device for playing audio frequency shown in another exemplary embodiment.
Detailed description of the invention
Here will illustrate exemplary embodiment in detail, its example represents in the accompanying drawings.Explained below relates to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous key element.Following exemplary embodiment
Described in embodiment do not represent all embodiments mutually identical with the disclosure.On the contrary, they are only with the most appended
The example of the apparatus and method that some aspects that described in detail in claims, the disclosure are identical.
The technical scheme that disclosure embodiment provides, relates to play the terminal unit of audio frequency, such as mobile phone, flat board electricity
Brain etc..
Fig. 1 is the flow chart according to a kind of method playing audio frequency shown in an exemplary embodiment.In this embodiment,
As it is shown in figure 1, this broadcasting audio frequency method be applied to terminal, including step S11 to step S13:
In step s 11, the phase relation between left channel signals and the right-channel signals of audio frequency is obtained.
In step s 12, if this phase relation shows the phase place of left channel signals and the opposite in phase of right-channel signals, right
Left channel signals or right-channel signals process so that the phase place of left channel signals is consistent with the phase place of right-channel signals.
In step s 13, left channel signals and right-channel signals are carried out audio mixing broadcasting.
The method playing audio frequency that disclosure embodiment provides, by obtaining left channel signals and the right-channel signals of audio frequency
Between phase relation, judge that the phase place of the phase place of left channel signals and right-channel signals is the most contrary, if left channel signals
Phase place and the opposite in phase of right-channel signals, then left channel signals or right-channel signals are processed so that L channel believe
Number phase place consistent with the phase place of right-channel signals after, left channel signals and right-channel signals are carried out audio mixing broadcasting.The disclosure
Audio frequency can be carried out by embodiment when the problem of the phase place of left channel signals and the opposite in phase of right-channel signals occurs in audio frequency
Process makes audio frequency play out after becoming normal audio frequency, even if so that the audio frequency gone wrong also is able to normally listen to.
Fig. 2 is the flow chart according to a kind of method playing audio frequency shown in an exemplary embodiment.In this embodiment,
As in figure 2 it is shown, the method for this broadcasting audio frequency is applied to terminal, including step S21 to step S24:
In the step s 21, the amplitude of left channel signals of multiple Preset Time points of detection audio frequency and right-channel signals
Amplitude.
In the disclosed embodiments, when detecting the amplitude of the amplitude of left channel signals and right-channel signals, can be at sound
Multiple Preset Time points of frequency detect respectively, so that testing result can characterize the feature that whole audio frequency exists.At sound
At each Preset Time point of multiple Preset Time points of frequency, detect the amplitude of left channel signals and the width of right-channel signals respectively
Degree.For example, it is possible to arrange time point at 100ms at audio frequency, detect the amplitude of the left channel signals of 100ms and right sound
The amplitude of road signal, detects the amplitude of the left channel signals of 200ms and the amplitude of right-channel signals, by that analogy, until whole
Individual audio frequency terminates.
In another embodiment of the disclosure, can carry out respectively at the multiple Preset Time points in the preset period of time of audio frequency
Detection.For example, it is possible to arrange time point at 100ms in the 1st minute of audio frequency, detect the left channel signals of 100ms
Amplitude and the amplitude of right-channel signals, detect the amplitude of the left channel signals of 200ms and the amplitude of right-channel signals, with this
Analogize, until detection of end when 1 minute.
In the disclosed embodiments, amplitude and the R channel of left channel signals can be detected by the way of any appropriate
The amplitude of signal, this is not especially limited by disclosure embodiment.For example, it is possible to examined by the time domain beamformer of audio signal
Survey amplitude and the amplitude of right-channel signals of left channel signals.It is illustrated in figure 3 the time domain ripple of an exemplary left channel signals
Shape figure and the time domain beamformer of right-channel signals, time domain beamformer is with the time as transverse axis, and signal to noise ratio (dB) is the longitudinal axis.In figure 3,
Upper and lower two waveforms represent left channel signals and right-channel signals respectively.As seen from Figure 3, the time of any one in audio frequency
On point, the size of the amplitude of left channel signals and the amplitude of right-channel signals is almost equal, symbol is contrary.Wherein, amplitude is big
The little difference can being simply interpreted as between waveform and-∞ datum line, at same time point, the amplitude of left channel signals and right sound
The amplitude of road signal has a little difference, a key element of the two-channel stereo sound third dimension just of the difference in amplitude performance.Width
Degree symbol can simply be interpreted as waveform above-∞ datum line or lower section.
In step S22, when the amplitude of left channel signals and the right side of each Preset Time point in multiple Preset Time points
When the symbol of the amplitude of sound channel signal is contrary, the difference of absolute value is less than preset value, determine phase place and the R channel of left channel signals
The opposite in phase of signal.
As it is shown on figure 3, the phase place of left channel signals and the opposite in phase of right-channel signals.When play audio frequency time, need by
L channel and R channel the two sound channel carry out audio mixing, the amplitude of left channel signals and right-channel signals will respectively subtract half then
Phase Calais calculates the monaural amplitude after audio mixing.If as it is shown on figure 3, the phase place of the left channel signals of audio frequency and R channel letter
Number opposite in phase, then the monaural amplitude calculated is equal to 0 substantially, use single speaker play such as Fig. 3 institute
The audio frequency shown, does not the most just have sound (actually due to variant on two sound channel amplitude absolute value, also after audio mixing
There is a point value, but the least).Therefore, it can such audio frequency is processed so that the audio frequency after process can normally be broadcast
Put.
In step S23, left channel signals or right-channel signals are inverted.
In the disclosed embodiments, left channel signals or right-channel signals are inverted, so that the phase of left channel signals
Position is consistent with the phase place of right-channel signals, can use the mode of any appropriate.The most exemplary only by left channel signals or
Right-channel signals carries out the mode inverted.
Left channel signals or right-channel signals carry out reversion may include that and determine amplitude intermediate value according to sampling resolution;
According to amplitude intermediate value, left channel signals or right-channel signals are carried out symmetrical reversion.
Generally, audio frequency is to quantify with binary system and represent in a digital signal.Such as the audio frequency letter of 16bit sampling
Number, it is 0~65536 that the amplitude of this audio signal represents that scope is converted into 10 systems, and the amplitude of each point is within the scope of this.
Signal reversion is referred to: by each point in signal with intermediate value with 32768 benchmark, make symmetry reversion.Such as by range value
32769 are inverted to 32767, and range value 0 is reversed to 65536.
Such as, after the right-channel signals shown in Fig. 3 is inverted, the oscillogram of left channel signals and right-channel signals
Oscillogram is as shown in Figure 4.In the diagram, left channel signals is consistent with the phase place of each time point of right-channel signals, i.e. left
Sound channel signal and right-channel signals are at the waveform of same time point all the same side of-∞ datum line, and waveform is over time
Trend also consistent (amplitude has a little difference, wants for one of the performance of the two-channel stereo sound third dimension just of the difference in amplitude
Element).
In step s 24, left channel signals and right-channel signals are carried out audio mixing broadcasting.
If process in step S23 is left channel signals, then the left channel signals after right-channel signals and process is carried out
Audio mixing is play;If process in step S23 is right-channel signals, then the right-channel signals after left channel signals and process is carried out
Audio mixing is play.By left channel signals and right-channel signals audio mixing, may refer to the amplitude by left channel signals and right-channel signals
Respectively subtract half to be then added.
In disclosure embodiment, at audio frequency, the phase place of left channel signals and the problem of the opposite in phase of right-channel signals occur
Time, it is to play out, even if so that the audio frequency gone wrong also is able to normally listen to after normal audio frequency by Audio Processing.
Following for disclosure device embodiment, may be used for performing method of disclosure embodiment.
Fig. 5 is the block diagram according to a kind of device playing audio frequency shown in an exemplary embodiment, and this device can pass through
Software, hardware or both be implemented in combination with become the some or all of of terminal unit.As it is shown in figure 5, this device includes obtaining
Delivery block 501, processing module 502 and playing module 503, wherein:
Acquisition module 501, is configured to the phase relation obtaining between left channel signals and the right-channel signals of audio frequency;
Processing module 502, if being configured to described phase relation to show the phase place of left channel signals and right-channel signals
Opposite in phase, processes left channel signals or right-channel signals so that the phase place of left channel signals and right-channel signals
Phase place is consistent;
Playing module 503, is configured to left channel signals and right-channel signals are carried out audio mixing broadcasting.
The device playing audio frequency that disclosure embodiment provides, obtains the left channel signals of audio frequency by acquisition module 501
And the phase relation between right-channel signals, if the phase place of left channel signals and the opposite in phase of right-channel signals, processing module
Left channel signals or right-channel signals are processed by 502 so that the phase place of left channel signals and the phase place of right-channel signals
After Yi Zhi, left channel signals and right-channel signals are carried out audio mixing broadcasting by playing module 503.Disclosure embodiment can be at audio frequency
When the problem of the phase place of left channel signals and the opposite in phase of right-channel signals occurs, audio frequency is carried out process and makes audio frequency just become
Play out after normal audio frequency, even if so that the audio frequency gone wrong also is able to normally listen to.
As shown in Figure 6, in another embodiment of the disclosure, acquisition module 501, including:
Detection sub-module 5011, is configured to detect amplitude and the right side of the left channel signals of multiple Preset Time points of audio frequency
The amplitude of sound channel signal;
First determines submodule 5012, the L channel of each Preset Time point being configured as in multiple Preset Time point
When the symbol of the amplitude of signal and the amplitude of right-channel signals is contrary, the difference of absolute value is less than preset value, determine left channel signals
Phase place and the opposite in phase of right-channel signals.
In another embodiment of the disclosure, described detection sub-module 5011, it is additionally configured to detect the preset period of time of audio frequency
The amplitude of the left channel signals of interior multiple Preset Time points and the amplitude of right-channel signals;
Described first determines submodule 5012, and be additionally configured to when in multiple Preset Time points of preset period of time is each
The amplitude of the left channel signals of Preset Time point and the equal symbol of amplitude of right-channel signals are contrary, the difference of absolute value is less than preset value
Time, determine the phase place of left channel signals and the opposite in phase of right-channel signals.
In another embodiment of the disclosure, described processing module 502, it is configured to left channel signals or right-channel signals
Invert.
As it is shown in fig. 7, in another embodiment of the disclosure, described processing module 502 includes:
Second determines submodule 5021, is configured to determine amplitude intermediate value according to sampling resolution;
Process submodule 5022, be configured to, according to described amplitude intermediate value, left channel signals or right-channel signals be entered
Row symmetry reversion.
The disclosure also provides for a kind of device playing audio frequency, including:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
Obtain the phase relation between left channel signals and the right-channel signals of audio frequency;
If described phase relation shows the phase place of left channel signals and the opposite in phase of right-channel signals, to left channel signals
Or right-channel signals processes so that the phase place of left channel signals is consistent with the phase place of right-channel signals;
Left channel signals and right-channel signals are carried out audio mixing broadcasting.
About the device in above-described embodiment, wherein modules performs the concrete mode of operation in relevant the method
Embodiment in be described in detail, explanation will be not set forth in detail herein.
Fig. 8 is the block diagram according to a kind of device 1000 for playing audio frequency shown in an exemplary embodiment.Such as, dress
Putting 1000 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, doctor
Treatment equipment, body-building equipment, personal digital assistant etc..
With reference to Fig. 8, device 1000 can include following one or more assembly: processes assembly 1002, memorizer 1004, electricity
Source component 1006, multimedia groupware 1008, audio-frequency assembly 1010, the interface 1012 of input/output (I/O), sensor cluster
1014, and communications component 1016.
Process assembly 1002 and generally control the integrated operation of device 1000, such as with display, call, data communication,
The operation that camera operation and record operation are associated.Process assembly 1002 and can include that one or more processor 1020 performs
Instruction, to complete all or part of step of above-mentioned method.Additionally, process assembly 1002 can include one or more mould
Block, it is simple to process between assembly 1002 and other assemblies is mutual.Such as, process assembly 1002 and can include multi-media module,
With facilitate multimedia groupware 1008 and process between assembly 1002 mutual.
Memorizer 1004 is configured to store various types of data to support the operation at device 1000.These data
Example include on device 1000 operation any application program or the instruction of method, contact data, telephone book data,
Message, picture, video etc..Memorizer 1004 can by any kind of volatibility or non-volatile memory device or they
Combination realizes, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), erasable can
Program read-only memory (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic memory, flash memory
Reservoir, disk or CD.
The various assemblies that power supply module 1006 is device 1000 provide electric power.Power supply module 1006 can include power management
System, one or more power supplys, and other generate, manage and distribute, with for device 1000, the assembly that electric power is associated.
The screen of one output interface of offer that multimedia groupware 1008 is included between device 1000 and user.At some
In embodiment, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen
May be implemented as touch screen, to receive the input signal from user.Touch panel includes one or more touch sensor
With the gesture on sensing touch, slip and touch panel.Touch sensor can not only sense touch or the border of sliding action,
But also detect the persistent period relevant to touch or slide and pressure.In certain embodiments, multimedia groupware 1008
Including a front-facing camera and/or post-positioned pick-up head.When device 1000 is in operator scheme, such as screening-mode or video mode
Time, front-facing camera and/or post-positioned pick-up head can receive the multi-medium data of outside.Each front-facing camera and rearmounted shooting
Head can be a fixing optical lens system or have focal length and optical zoom ability.
Audio-frequency assembly 1010 is configured to output and/or input audio signal.Such as, audio-frequency assembly 1010 includes a wheat
Gram wind (MIC), when device 1000 is in operator scheme, during such as call model, logging mode and speech recognition mode, mike quilt
It is configured to receive external audio signal.The audio signal received can be further stored at memorizer 1004 or via communication
Assembly 1016 sends.In certain embodiments, audio-frequency assembly 1010 also includes a speaker, is used for exporting audio signal.
I/O interface 1012 provides interface, above-mentioned peripheral interface module for processing between assembly 1002 and peripheral interface module
Can be keyboard, put striking wheel, button etc..These buttons may include but be not limited to: home button, volume button, start button and
Locking press button.
Sensor cluster 1014 includes one or more sensor, for providing the state of various aspects to comment for device 1000
Estimate.Such as, what sensor cluster 1014 can detect device 1000 opens/closed mode, the relative localization of assembly, such as group
Part is display and the keypad of device 1000, and sensor cluster 1014 can also detect device 1000 or 1,000 1 groups of device
The position change of part, the presence or absence that user contacts with device 1000, device 1000 orientation or acceleration/deceleration and device
The variations in temperature of 1000.Sensor cluster 1014 can include proximity transducer, is configured to do not having any physics to connect
The existence of object near detection when touching.Sensor cluster 1014 can also include optical sensor, as CMOS or ccd image sense
Device, for using in imaging applications.In certain embodiments, this sensor cluster 1014 can also include acceleration sensing
Device, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 1016 is configured to facilitate the communication of wired or wireless mode between device 1000 and other equipment.Dress
Put 1000 and can access wireless network based on communication standard, such as Wi-Fi, 2G or 3G, or combinations thereof.Exemplary at one
In embodiment, broadcast singal or broadcast that communications component 1016 receives from external broadcasting management system via broadcast channel are relevant
Information.In one exemplary embodiment, communications component 1016 also includes near-field communication (NFC) module, to promote junction service.
Such as, can be based on RF identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) skill
Art, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 1000 can be by one or more application specific integrated circuits (ASIC), numeral
Signal processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components realize, be used for performing said method.
In the exemplary embodiment, a kind of non-transitory computer-readable recording medium including instruction, example are additionally provided
As included the memorizer 1004 of instruction, above-mentioned instruction can have been performed said method by the processor 1020 of device 1000.Example
As, non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and
Optical data storage devices etc..
A kind of non-transitory computer-readable recording medium, when the instruction in storage medium is held by the processor of mobile terminal
During row so that mobile terminal is able to carry out a kind of method playing audio frequency, and method includes:
Obtain the phase relation between left channel signals and the right-channel signals of audio frequency;
If described phase relation shows the phase place of left channel signals and the opposite in phase of right-channel signals, to left channel signals
Or right-channel signals processes so that the phase place of left channel signals is consistent with the phase place of right-channel signals;
Left channel signals and right-channel signals are carried out audio mixing broadcasting.
Those skilled in the art, after considering description and putting into practice disclosure disclosed herein, will readily occur to its of the disclosure
Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modification, purposes or
Person's adaptations is followed the general principle of the disclosure and includes the undocumented common knowledge in the art of the disclosure
Or conventional techniques means.Description and embodiments is considered only as exemplary, and the true scope of the disclosure and spirit are by following
Claim is pointed out.
It should be appreciated that the disclosure is not limited to precision architecture described above and illustrated in the accompanying drawings, and
And various modifications and changes can carried out without departing from the scope.The scope of the present disclosure is only limited by appended claim.
Claims (11)
1. the method playing audio frequency, it is characterised in that described method includes:
Obtain the phase relation between left channel signals and the right-channel signals of audio frequency;
If described phase relation shows the phase place of left channel signals and the opposite in phase of right-channel signals, to left channel signals or the right side
Sound channel signal processes so that the phase place of left channel signals is consistent with the phase place of right-channel signals;
Left channel signals and right-channel signals are carried out audio mixing broadcasting.
Method the most according to claim 1, it is characterised in that the left channel signals of described acquisition audio frequency and right-channel signals
Between phase relation, including:
The amplitude of the left channel signals of multiple Preset Time points of detection audio frequency and the amplitude of right-channel signals;
Amplitude when the amplitude of left channel signals of each Preset Time point in multiple Preset Time points and right-channel signals
When symbol is contrary, the difference of absolute value is less than preset value, determine the phase place of left channel signals and the opposite in phase of right-channel signals.
Method the most according to claim 2, it is characterised in that the L channel of multiple Preset Time points of described detection audio frequency
The amplitude of signal and the amplitude of right-channel signals, including:
The amplitude of the left channel signals of the multiple Preset Time points in the preset period of time of detection audio frequency and the amplitude of right-channel signals;
The amplitude of left channel signals and R channel when each Preset Time point in multiple Preset Time points of preset period of time
When the equal symbol of amplitude of signal is contrary, the difference of absolute value is less than preset value, determine phase place and the right-channel signals of left channel signals
Opposite in phase.
Method the most according to claim 1, it is characterised in that described to left channel signals or right-channel signals at
Reason, including:
Left channel signals or right-channel signals are inverted.
Method the most according to claim 4, it is characterised in that described left channel signals or right-channel signals are carried out instead
Turn, including:
Amplitude intermediate value is determined according to sampling resolution;
According to described amplitude intermediate value, left channel signals or right-channel signals are carried out symmetrical reversion.
6. the device playing audio frequency, it is characterised in that described device includes:
Acquisition module, is configured to the phase relation obtaining between left channel signals and the right-channel signals of audio frequency;
Processing module, if being configured to described phase relation to show the phase place of left channel signals and the phase place phase of right-channel signals
Instead, left channel signals or right-channel signals are processed so that the phase place of left channel signals and the phase place one of right-channel signals
Cause;
Playing module, is configured to left channel signals and right-channel signals are carried out audio mixing broadcasting.
Device the most according to claim 6, it is characterised in that described acquisition module, including:
Detection sub-module, is configured to detect amplitude and the right-channel signals of the left channel signals of multiple Preset Time points of audio frequency
Amplitude;
First determines submodule, the width of the left channel signals of each Preset Time point being configured as in multiple Preset Time point
The symbol of the amplitude of degree and right-channel signals is contrary, the difference of absolute value less than preset value time, determine left channel signals phase place and
The opposite in phase of right-channel signals.
Device the most according to claim 7, it is characterised in that
Described detection sub-module, is additionally configured to detect the left channel signals of the multiple Preset Time points in the preset period of time of audio frequency
Amplitude and the amplitude of right-channel signals;
Described first determines submodule, is additionally configured to when each Preset Time in multiple Preset Time points of preset period of time
The amplitude of left channel signals of point and the equal symbol of amplitude of right-channel signals is contrary, the difference of absolute value less than preset value time, determine
The phase place of left channel signals and the opposite in phase of right-channel signals.
Device the most according to claim 6, it is characterised in that
Described processing module, is configured to invert left channel signals or right-channel signals.
Device the most according to claim 9, it is characterised in that described processing module includes:
Second determines submodule, is configured to determine amplitude intermediate value according to sampling resolution;
Process submodule, be configured to according to described amplitude intermediate value, left channel signals or right-channel signals are carried out symmetrical anti-
Turn.
11. 1 kinds of devices playing audio frequency, it is characterised in that including:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
Obtain the phase relation between left channel signals and the right-channel signals of audio frequency;
If described phase relation shows the phase place of left channel signals and the opposite in phase of right-channel signals, to left channel signals or the right side
Sound channel signal processes so that the phase place of left channel signals is consistent with the phase place of right-channel signals;
Left channel signals and right-channel signals are carried out audio mixing broadcasting.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610875796.4A CN106303896A (en) | 2016-09-30 | 2016-09-30 | The method and apparatus playing audio frequency |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610875796.4A CN106303896A (en) | 2016-09-30 | 2016-09-30 | The method and apparatus playing audio frequency |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106303896A true CN106303896A (en) | 2017-01-04 |
Family
ID=57718340
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610875796.4A Pending CN106303896A (en) | 2016-09-30 | 2016-09-30 | The method and apparatus playing audio frequency |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106303896A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107450883A (en) * | 2017-07-19 | 2017-12-08 | 维沃移动通信有限公司 | A kind of audio data processing method, device and mobile terminal |
CN108170399A (en) * | 2017-12-26 | 2018-06-15 | 上海展扬通信技术有限公司 | A kind of two-channel processing method and terminal |
CN108231091A (en) * | 2018-01-24 | 2018-06-29 | 广州酷狗计算机科技有限公司 | A kind of whether consistent method and apparatus of left and right acoustic channels for detecting audio |
CN111200777A (en) * | 2020-02-21 | 2020-05-26 | 北京达佳互联信息技术有限公司 | Signal processing method and device, electronic equipment and storage medium |
CN112162460A (en) * | 2020-09-27 | 2021-01-01 | 深圳市火乐科技发展有限公司 | Audio playing method and related device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH10191500A (en) * | 1996-12-25 | 1998-07-21 | Nec Corp | Stereophonic signal phase inversion detector |
CN101330776A (en) * | 2007-06-21 | 2008-12-24 | 上海风格信息技术有限公司 | Method for reverse phase detection of audio signal left and right acoustic channels |
CN101697603A (en) * | 2009-03-02 | 2010-04-21 | 北京牡丹视源电子有限责任公司 | Method and device for measuring phase difference between left channel and right channel |
CN102264026A (en) * | 2010-05-25 | 2011-11-30 | 晨星软件研发(深圳)有限公司 | audio processing device and audio processing method |
CN102348149A (en) * | 2010-07-23 | 2012-02-08 | 夏普株式会社 | System and method for robust audio spatialization using frequency separation |
CN102446507A (en) * | 2011-09-27 | 2012-05-09 | 华为技术有限公司 | Down-mixing signal generating and reducing method and device |
-
2016
- 2016-09-30 CN CN201610875796.4A patent/CN106303896A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH10191500A (en) * | 1996-12-25 | 1998-07-21 | Nec Corp | Stereophonic signal phase inversion detector |
CN101330776A (en) * | 2007-06-21 | 2008-12-24 | 上海风格信息技术有限公司 | Method for reverse phase detection of audio signal left and right acoustic channels |
CN101697603A (en) * | 2009-03-02 | 2010-04-21 | 北京牡丹视源电子有限责任公司 | Method and device for measuring phase difference between left channel and right channel |
CN102264026A (en) * | 2010-05-25 | 2011-11-30 | 晨星软件研发(深圳)有限公司 | audio processing device and audio processing method |
CN102348149A (en) * | 2010-07-23 | 2012-02-08 | 夏普株式会社 | System and method for robust audio spatialization using frequency separation |
CN102446507A (en) * | 2011-09-27 | 2012-05-09 | 华为技术有限公司 | Down-mixing signal generating and reducing method and device |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107450883A (en) * | 2017-07-19 | 2017-12-08 | 维沃移动通信有限公司 | A kind of audio data processing method, device and mobile terminal |
CN107450883B (en) * | 2017-07-19 | 2019-01-29 | 维沃移动通信有限公司 | A kind of audio data processing method, device and mobile terminal |
CN108170399A (en) * | 2017-12-26 | 2018-06-15 | 上海展扬通信技术有限公司 | A kind of two-channel processing method and terminal |
CN108170399B (en) * | 2017-12-26 | 2021-04-30 | 上海展扬通信技术有限公司 | Dual-channel processing method and terminal |
CN108231091A (en) * | 2018-01-24 | 2018-06-29 | 广州酷狗计算机科技有限公司 | A kind of whether consistent method and apparatus of left and right acoustic channels for detecting audio |
CN111200777A (en) * | 2020-02-21 | 2020-05-26 | 北京达佳互联信息技术有限公司 | Signal processing method and device, electronic equipment and storage medium |
CN112162460A (en) * | 2020-09-27 | 2021-01-01 | 深圳市火乐科技发展有限公司 | Audio playing method and related device |
CN112162460B (en) * | 2020-09-27 | 2021-09-03 | 深圳市火乐科技发展有限公司 | Audio playing method and related device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106303896A (en) | The method and apparatus playing audio frequency | |
CN105094957A (en) | Video conversation window control method and apparatus | |
CN105511631A (en) | Gesture recognition method and device | |
CN105117033A (en) | Connection method and device of external equipment | |
CN105828201A (en) | Video processing method and device | |
CN103986999A (en) | Method, device and terminal equipment for detecting earphone impedance | |
CN105406828A (en) | Sound equipment adjustment method and device | |
CN106454644A (en) | Audio playing method and device | |
CN105159496A (en) | Touch event response method and mobile terminal | |
CN104461568A (en) | Electronic accessory recognition device and method | |
CN106157952A (en) | Sound identification method and device | |
CN103942047A (en) | User instruction execution method and device | |
CN104394137A (en) | Voice call reminding method and device | |
CN104378715A (en) | Device and method for lowering earphone POP sound | |
CN104935729A (en) | Audio output method and device | |
CN106941635A (en) | Audio amplifier connection method and device | |
CN104182039A (en) | Equipment control method and device as well as electronic equipment | |
CN105975038A (en) | Prompt method and device of charging port detection result | |
CN105632542A (en) | Audio playing method and apparatus | |
CN105554631A (en) | Audio switching method and device, and electronic device | |
CN107562500A (en) | Debugging apparatus, method and apparatus | |
CN104503762A (en) | Device and method for identifying electronic accessory | |
CN107819740A (en) | Verification method, terminal device, audio amplifier and the server of terminal device | |
CN104281368A (en) | Interface display method and device and terminal device | |
CN104599691B (en) | Audio frequency playing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170104 |
|
RJ01 | Rejection of invention patent application after publication |