[summary of the invention]
In view of this, player method and the device of a kind of audio signal are embodiments provided, it is possible to
The display information realizing making terminal or client and terminal when client terminal playing audio signal is abundanter,
Thus improve the multiformity of display information.
The one side of the embodiment of the present invention, it is provided that the player method of a kind of audio signal, including:
Obtain the characteristic parameter of audio signal;
Characteristic parameter according to described audio signal, it is thus achieved that control parameter;
During playing described audio signal, according to described control parameter, to playing described audio signal
Client place terminal is controlled;Or, according to described control parameter, to the visitor playing described audio signal
Family end carries out showing control, and is controlled the client place terminal playing described audio signal.
Aspect as above and arbitrary possible implementation, it is further provided a kind of implementation,
The characteristic parameter of described acquisition audio signal, including:
Simulated described audio signal is carried out analog-to-digital conversion process, to obtain digitized audio signal;
The characteristic parameter of described audio signal is obtained from described digitized audio signal;
Wherein, during the characteristic parameter of described audio signal includes following parameter at least one: zero-crossing rate, Mel frequency
Rate cepstrum coefficient MFCC, energy information, spectrum distribution, rhythm and tone Key.
Aspect as above and arbitrary possible implementation, it is further provided a kind of implementation, described
Characteristic parameter according to described audio signal, it is thus achieved that control parameter, including:
Obtain characteristic parameter and the corresponding relation controlling parameter;
According to described characteristic parameter and the corresponding relation controlling parameter, it is thus achieved that the characteristic parameter institute of described audio signal
Corresponding control parameter.
Aspect as above and arbitrary possible implementation, it is further provided a kind of implementation, described
According to described control parameter, carry out showing control to the client playing described audio signal, including:
According to described control parameter, the display content of the client playing described audio signal is controlled;
Wherein, described display content includes the pictorial information indicated by described control parameter and/or described control parameter
Indicated video information.
Aspect as above and arbitrary possible implementation, it is further provided a kind of implementation, described
According to described control parameter, the client place terminal playing described audio signal is controlled, including:
According to described control parameter, to play described audio signal client hardware cell in the terminal enter
Row controls;Wherein, during described hardware cell includes flash lamp, screen, vibrating device and external equipment at least one
Individual.
The one side of the embodiment of the present invention, it is provided that the playing device of a kind of audio signal, including:
Feature acquiring unit, for obtaining the characteristic parameter of audio signal;
Control processing unit, for the characteristic parameter according to described audio signal, it is thus achieved that control parameter;
Control performance element, for during playing described audio signal, according to described control parameter, right
The client place terminal playing described audio signal is controlled;Or, according to described control parameter, to broadcasting
The client putting described audio signal carries out showing control and to the client place playing described audio signal
Terminal is controlled.
Aspect as above and arbitrary possible implementation, it is further provided a kind of implementation, described
Feature acquiring unit, specifically for:
Simulated described audio signal is carried out analog-to-digital conversion process, to obtain digitized audio signal;
The characteristic parameter of described audio signal is obtained from described digitized audio signal;
Wherein, during the characteristic parameter of described audio signal includes following parameter at least one: zero-crossing rate, Mel frequency
Rate cepstrum coefficient MFCC, energy information, spectrum distribution, rhythm and tone Key.
Aspect as above and arbitrary possible implementation, it is further provided a kind of implementation, described
Control processing unit, specifically for:
Obtain characteristic parameter and the corresponding relation controlling parameter;
According to described characteristic parameter and the corresponding relation controlling parameter, it is thus achieved that the characteristic parameter institute of described audio signal
Corresponding control parameter.
Aspect as above and arbitrary possible implementation, it is further provided a kind of implementation, controlled
Performance element processed, specifically for:
According to described control parameter, the display content of the client playing described audio signal is controlled;
Wherein, described display content includes the pictorial information indicated by described control parameter and/or described control parameter
Indicated video information.
Aspect as above and arbitrary possible implementation, it is further provided a kind of implementation, controlled
Performance element processed, specifically for:
According to described control parameter, to play described audio signal client hardware cell in the terminal enter
Row controls;Wherein, during described hardware cell includes flash lamp, screen, vibrating device and external equipment at least one
Individual.
As can be seen from the above technical solutions, the embodiment of the present invention has the advantages that
The technical scheme that the embodiment of the present invention provides and prior art are merely able to show the lyrics, the envelope of disc
Face picture is compared with the technical scheme of figure, it is possible to realize when client terminal playing audio signal, according to sound
Frequently the characteristic parameter of signal, is controlled terminal or is all controlled client and terminal so that
The display information of client and terminal is abundanter, improves client and the multiformity of terminal demonstration information
And interest.
[detailed description of the invention]
In order to be better understood from technical scheme, below in conjunction with the accompanying drawings the embodiment of the present invention is carried out
Describe in detail.
It will be appreciated that described embodiment a part of embodiment that is only the present invention rather than whole
Embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creative labor
The all other embodiments obtained under dynamic premise, broadly fall into the scope of protection of the invention.
The term used in embodiments of the present invention be only merely for describe specific embodiment purpose, rather than
It is intended to limit the present invention.Singulative used in the embodiment of the present invention and appended claims
" a kind of ", " described " and " being somebody's turn to do " is also intended to include most form, unless context clearly shows that
Other implications.
Should be appreciated that term "and/or" used herein is only a kind of association describing affiliated partner
Relation, can there are three kinds of relations, such as, A and/or B, can represent in expression: individualism A,
There is A and B, individualism B these three situation simultaneously.It addition, character "/", general table herein
Show the forward-backward correlation relation to liking a kind of "or".
Depend on linguistic context, word as used in this " if " can be construed to " ... time "
Or " when ... " or " in response to determining " or " in response to detection ".Similarly, depend on linguistic context,
Phrase " if it is determined that " or " if detection (condition of statement or event) " can be construed to " when
When determining " or " in response to determining " or " when detecting (condition of statement or event) " or " response
In detection (condition of statement or event) ".
The embodiment of the present invention provides the player method of a kind of audio signal, refer to Fig. 1, and it is that the present invention is real
Execute the schematic flow sheet of the player method of the audio signal that example is provided, as it can be seen, the method include with
Lower step:
S101, it is thus achieved that the characteristic parameter of audio signal.
Concrete, for the audio signal play in audio signal to be played in client or client,
Client can obtain the characteristic parameter of this audio signal.
In the embodiment of the present invention, the method for the characteristic parameter that client obtains audio signal can include but not limited to:
First, client carries out analog-to-digital conversion process to simulated described audio signal, digitized to obtain
Audio signal.
Wherein, described simulated audio signal can include but not limited to Advanced Audio Coding (Advanced
Audio Coding, AAC) audio signal of form or the audio signal of MP3 format.
Such as, client can be, but not limited to utilize pulse code modulation (Pulse Code Modulation,
PCM) technology, carries out analog-to-digital conversion process to simulated audio signal, to obtain digitized audio signal.
Then, client obtains the characteristic parameter of described audio signal from described digitized audio signal.
It should be noted that digitized audio signal can be carried out at framing by client according to default frame length
Reason, obtains the characteristic parameter of audio signal in each frame length the most successively.Due to audio signal in terms of entirety,
Its characteristic parameter changes over and changes, therefore can not use reason stationary signal characteristic parameter obtain skill
Audio signal is processed by art.It addition, although audio signal has time-varying characteristics, but default at one
Frame length, in 10ms~30ms, its characteristic parameter is held essentially constant, and is metastable, the most permissible
Regard the audio signal in a frame length as a quasi-steady state process, so client is permissible in the embodiment of the present invention
To audio signal, according to the principle of one frame length of a frame length, it is thus achieved that the feature ginseng of the audio signal of each frame length
Number.
In the embodiment of the present invention, the characteristic parameter of described audio signal can include but not limited in following parameter extremely
Few one: zero-crossing rate, mel-frequency cepstrum coefficient (Mel-Frequency Cepstral Coefficients,
MFCC), energy information, spectrum distribution, rhythm and tone Key.
Wherein, zero-crossing rate refers to the short-time zero-crossing rate of audio signal, and the audio signal of i.e. one frame passes zero level
Number of times.
Wherein, mel-frequency puts forward based on human hearing characteristic, becomes non-linear corresponding pass with Hz frequency
System.MFCC is then to utilize this nonlinear correspondence relation, calculated Hz spectrum signature.
Wherein, energy information refers to the signal intensity of audio signal.
Wherein, spectrum distribution refers to the distribution curve of frequency of audio signal.
Wherein, rhythm refers to be carried forward relevant factor, such as stress, beat and speed etc. with audio signal.
Wherein, tone Key refers to the position of the tune of audio signal, i.e. pitch.
Such as, the tone Key of audio signal can be c major.
It should be noted that rhythm and tone Key in characteristic parameter can fall according to zero-crossing rate, mel-frequency
Spectral coefficient, energy information and spectrum distribution obtain.
It should be understood that client advances with said method obtains the characteristic parameter of audio signal, and in this locality
Memory element in terminal stores, when needing the characteristic parameter using audio signal, directly from local terminal
Memory element in read.
Or, client can also utilize said method immediately when needing the characteristic parameter using audio signal
Obtain the characteristic parameter of audio signal.
S102, according to the characteristic parameter of described audio signal, it is thus achieved that control parameter.
Concrete, client, after the characteristic parameter obtaining audio signal, needs according further to this audio signal
Characteristic parameter, it is thus achieved that control parameter.
Illustrating, client is according to the characteristic parameter of audio signal, it is thus achieved that the method controlling parameter can include
But it is not limited to:
First, the client memory element in local terminal reads the characteristic parameter and control parameter pre-deposited
Corresponding relation, so, client is obtained with characteristic parameter and controls the corresponding relation of parameter.
Then, client according to the characteristic parameter of the audio signal obtained in S101, and characteristic parameter with
Control the corresponding relation of parameter, mate in the corresponding relation controlling parameter in this feature parameter, with
Obtain the control parameter corresponding to characteristic parameter of audio signal.
It should be understood that a characteristic parameter can obtain corresponding at least one and control parameter.
Such as, characteristic parameter and the corresponding relation controlling parameter can include but not limited to the energy of audio signal
The corresponding relation of the parameter of amount information and flash lamp, the parameter of flash lamp can include but not limited to flash lamp
Light intensity.
The most such as, characteristic parameter and the corresponding relation controlling parameter can include but not limited to audio signal
The corresponding relation of the parameter of rhythm and flash lamp, the parameter of flash lamp can include but not limited to flash lamp
Switching frequency.
The most such as, characteristic parameter and the corresponding relation controlling parameter can include but not limited to audio signal
The corresponding relation of the display parameters of tone Key and screen, the color parameter of screen can include but not limited to
The Show Color of pixel or the display brightness etc. of pixel in screen in screen.
The most such as, characteristic parameter and the corresponding relation controlling parameter can include but not limited to audio signal
The corresponding relation of the vibration parameters of rhythm and vibrating device, vibration parameters can include but not limited to vibration dress
The switching frequency put and/or the frequency of vibration of vibrating device.
The most such as, characteristic parameter and the corresponding relation controlling parameter can include but not limited to audio signal
The corresponding relation of the parameter of rhythm and external equipment, the parameter of external equipment can include but not limited to external
The switching frequency of equipment.
The most such as, characteristic parameter and the corresponding relation controlling parameter can include but not limited to audio signal
Tone Key and the corresponding relation showing content identification.Wherein, display content identification can include but not limit
In display content title, display content local terminal storage position and display content numbering in extremely
Few one.Wherein, display content can include but not limited to pictorial information and/or video information.
S103, during playing described audio signal, according to described control parameter, described to playing
The client place terminal of audio signal is controlled;Or, according to described control parameter, to playing institute
The client stating audio signal carries out showing control, and to playing the client place of described audio signal
Terminal is controlled.
Concrete, after obtaining control parameter, it is possible to according to described control parameter, to playing described audio frequency letter
Number client place terminal be controlled;Or, according to described control parameter, to playing described audio signal
Client carry out show control, and to play described audio signal client place terminal be controlled.
In the embodiment of the present invention, according to described control parameter, the client playing described audio signal is shown
Show that the method for control can include but not limited to:
According to described control parameter, the display content of the client playing described audio signal is controlled;
Wherein, described display content includes the pictorial information indicated by described control parameter and/or described control parameter
Indicated video information.
Wherein, it is controlled including but not limited to the display content of the client playing described audio signal:
The client of playing audio signal shows the pictorial information controlled indicated by parameter, and/or, playing audio frequency
The video information controlled indicated by parameter is play in the client of signal.
For example, it is possible to the video that broadcasting machine people dances in the client of playing audio signal or animated video.
Again for example, it is possible to show the picture of animal in the client of playing audio signal.
In the embodiment of the present invention, according to described control parameter, to playing the client place of described audio signal eventually
The method that end is controlled can include but not limited to:
According to described control parameter, to play described audio signal client hardware list in the terminal
Unit is controlled;Wherein, described hardware cell can include but not limited to flash lamp, screen, vibration dress
Put with external equipment at least one.
For example, it is possible to during playing audio signal, according to controlling parameter, to playing this audio frequency letter
Number the switching frequency of flash lamp of client place terminal be controlled.
Wherein it is possible to the processOffFlash that the operating system calling this client place terminal provides
Function controls the unlatching of the flash lamp of this terminal, or, the operation of this client place terminal can be called
The processOnFlash function that system provides controls the closedown of the flash lamp of this terminal.
Again for example, it is possible to during playing audio signal, foundation controls parameter, to playing this audio frequency
The light intensity of the flash lamp of the client place terminal of signal is controlled.
Again for example, it is possible to during playing audio signal, foundation controls parameter, to playing this audio frequency
The Show Color of pixel or the display brightness of pixel in screen in the screen of the client place terminal of signal
It is controlled.
Wherein it is possible to the screenChange letter that the operating system calling this client place terminal provides
The Show Color of pixel or display brightness in the screen of this terminal of numerical control system.
Again for example, it is possible to during playing audio signal, foundation controls parameter, to playing this audio frequency
The client of signal the switching frequency of vibrating device in the terminal and/or frequency of vibration be controlled.
Wherein it is possible to the starVibrator function control that the operating system calling this client place terminal provides
Making the unlatching of vibrating device in this terminal, the operating system that can call this client place terminal provides
StopVibrator function control the closedown of the vibrating device in this terminal.
Such as, described vibrating device can include but not limited to vibrator or vibrating motor etc..
Again for example, it is possible to during playing audio signal, foundation controls parameter, to playing this audio frequency
The switching frequency of the external equipment of the client place terminal of signal is controlled.
Such as, external equipment can include but not limited to light emitting diode (Light Emitting Diode,
LED) lamp.
It should be noted that terminal involved in the embodiment of the present invention can include but not limited to individual calculus
Machine (Personal Computer, PC), personal digital assistant (Personal Digital Assistant,
PDA), radio hand-held equipment, panel computer (Tablet Computer), mobile phone, MP3 player,
MP4 player etc..
It should be noted that the executive agent of S101~S103 can be the playing device of audio signal, this dress
Put the application that may be located at local terminal, or can also be the plug-in unit or soft being located locally in the application of terminal
The functional units such as part development kit (Software Development Kit, SDK), the present invention implements
This is not particularly limited by example.
It is understood that the application program (nativeApp) that described application can be mounted in terminal,
Or can also is that a web page program (webApp) of browser in terminal, the embodiment of the present invention is to this
It is not defined.
The embodiment of the present invention is given further and realizes the device of each step and method in said method embodiment in fact
Execute example.
Refer to Fig. 2, the function block of the playing device of its audio signal provided by the embodiment of the present invention
Figure.As it can be seen, this device includes:
Feature acquiring unit 21, for obtaining the characteristic parameter of audio signal;
Control processing unit 22, for the characteristic parameter according to described audio signal, it is thus achieved that control parameter;
Control performance element 23, for during playing described audio signal, according to described control parameter,
The client place terminal playing described audio signal is controlled;Or, according to described control parameter, right
The client playing described audio signal carries out showing control and to the client institute playing described audio signal
It is controlled in terminal.
Preferably, described feature acquiring unit 21, specifically for:
Simulated described audio signal is carried out analog-to-digital conversion process, to obtain digitized audio signal;
The characteristic parameter of described audio signal is obtained from described digitized audio signal;
Wherein, during the characteristic parameter of described audio signal includes following parameter at least one: zero-crossing rate, Mel frequency
Rate cepstrum coefficient MFCC, energy information, spectrum distribution, rhythm and tone Key.
Preferably, described control processing unit 22, specifically for:
Obtain characteristic parameter and the corresponding relation controlling parameter;
According to described characteristic parameter and the corresponding relation controlling parameter, it is thus achieved that the characteristic parameter institute of described audio signal
Corresponding control parameter.
Preferably, controlled performance element 23, specifically for:
According to described control parameter, the display content of the client playing described audio signal is controlled;
Wherein, described display content includes the pictorial information indicated by described control parameter and/or described control parameter
Indicated video information.
Preferably, controlled performance element 23, specifically for:
According to described control parameter, to play described audio signal client hardware list in the terminal
Unit is controlled;Wherein, described hardware cell includes flash lamp, screen, vibrating device and external equipment
In at least one.
Owing to each unit in the present embodiment is able to carry out the method shown in Fig. 1, the present embodiment is retouched the most in detail
The part stated, refers to the related description to Fig. 1.
The technical scheme of the embodiment of the present invention has the advantages that
The embodiment of the present invention is by obtaining the characteristic parameter of audio signal, and then according to described audio signal
Characteristic parameter, it is thus achieved that control parameter, such that it is able to during playing described audio signal, according to institute
State control parameter, the client place terminal playing described audio signal is controlled, or, to broadcasting
The client putting described audio signal carries out showing control, and to playing the client of described audio signal
Place terminal is controlled.Therefore, the technical scheme that the embodiment of the present invention provides, and in prior art,
It is merely able to be shown by client, and client is only able to display the lyrics, the front cover picture of disc and dynamically
The technical scheme of figure is compared, the technical scheme of the embodiment of the present invention, both can be at client terminal playing audio frequency
During signal, according to the characteristic parameter of audio signal, dynamically terminal is controlled, it is also possible to client
End and terminal are all controlled so that the display information of client and terminal is abundanter, improves client
Hold the multiformity with terminal demonstration information and interest, it is also possible to meet the demand of user.
Those skilled in the art is it can be understood that arrive, and for convenience and simplicity of description, above-mentioned retouches
The specific works process of the system stated, device and unit, is referred to the correspondence in preceding method embodiment
Process, does not repeats them here.
In several embodiments provided by the present invention, it should be understood that disclosed system, device and
Method, can realize by another way.Such as, device embodiment described above is only shown
Meaning property, such as, the division of described unit, be only a kind of logic function and divide, actual can when realizing
There to be other dividing mode, such as, multiple unit or assembly can in conjunction with or be desirably integrated into another
Individual system, or some features can ignore, or do not perform.Another point, shown or discussed mutual it
Between coupling direct-coupling or communication connection can be the indirect coupling by some interfaces, device or unit
Close or communication connection, can be electrical, machinery or other form.
The described unit illustrated as separating component can be or may not be physically separate, makees
The parts shown for unit can be or may not be physical location, i.e. may be located at a place,
Or can also be distributed on multiple NE.Can select according to the actual needs part therein or
The whole unit of person realizes the purpose of the present embodiment scheme.
It addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit,
Can also be that unit is individually physically present, it is also possible to two or more unit are integrated in a list
In unit.Above-mentioned integrated unit both can realize to use the form of hardware, it would however also be possible to employ hardware adds software
The form of functional unit realizes.
The above-mentioned integrated unit realized with the form of SFU software functional unit, can be stored in a computer
In read/write memory medium.Above-mentioned SFU software functional unit is stored in a storage medium, including some fingers
Make with so that a computer installation (can be personal computer, server, or network equipment etc.)
Or processor (Processor) performs the part steps of method described in each embodiment of the present invention.And it is aforementioned
Storage medium include: USB flash disk, portable hard drive, read only memory (Read-Only Memory, ROM),
Random access memory (Random Access Memory, RAM), magnetic disc or CD etc. are various
The medium of program code can be stored.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all at this
Within the spirit of invention and principle, any modification, equivalent substitution and improvement etc. done, should be included in
Within the scope of protection of the invention.