Summary of the invention
Fundamental purpose of the present invention is to provide a kind of audio adaptive approach and device, needs the problem of manual adjustments audio pattern while being intended to solve displaying audio file, realizes the automatic adjusting of audio pattern, improves auditory effect.
To achieve these objectives, the present invention proposes a kind of audio adaptive approach, comprises step:
Obtain the attribute of audio file to be played or that playing;
According to the attribute of described audio file from the attribute that prestores with audio mapping table, match corresponding audio pattern;
According to audio file described in the audio mode playback matching.
Preferably, described audio pattern is the one in music pattern, film mode and recording mode.
Preferably, described in the audio mode playback that described basis matches, audio file comprises:
If the audio pattern matching is music pattern, revises sound effect parameters and be: open expand balanced device, small-signal amplifies or/and volume strengthens, and plays described audio file according to amended sound effect parameters.
Preferably, described in the audio mode playback that described basis matches, audio file comprises:
If the audio pattern matching is film mode, revises sound effect parameters and be: full balanced device, people's Audio Frequency Domain are amplified or/and virtual ring, around sound, and is play described audio file according to amended sound effect parameters.
Preferably, described in the audio mode playback that described basis matches, audio file comprises:
If the audio pattern matching is recording mode, revises sound effect parameters and be: straight-through balanced device, people's Audio Frequency Domain are amplified or/and eliminate the end and make an uproar, and play described audio file according to amended sound effect parameters.
The present invention proposes a kind of audio self-reacting device simultaneously, comprises acquisition module, audio matching module and audio output module, wherein:
Acquisition module, for obtaining the attribute of audio file to be played or that playing;
Audio matching module, for matching corresponding audio pattern from the attribute prestoring with audio mapping table according to the attribute of described audio file;
Audio output module, for audio file described in the basis audio mode playback matching.
Preferably, described audio pattern is a kind of in music pattern, film mode and recording mode.
Preferably, described audio output module is used for: if the audio pattern matching is music pattern, revises sound effect parameters and be: open expand balanced device, small-signal amplifies or/and volume strengthens, and plays described audio file according to amended sound effect parameters.
Preferably, described audio output module is used for: if the audio pattern matching is recording mode, revises sound effect parameters and be: full balanced device, people's Audio Frequency Domain are amplified or/and virtual ring, around sound, and is play described audio file according to amended sound effect parameters.
Preferably, described audio output module is used for: if the audio pattern matching is film mode, revises sound effect parameters and be: straight-through balanced device, people's Audio Frequency Domain are amplified or/and eliminate the end and make an uproar, and play described audio file according to amended sound effect parameters.
A kind of audio adaptive approach provided by the present invention, by obtaining the attribute of audio file, Auto-matching goes out corresponding with it audio pattern, according to the audio mode playback audio file matching, output and the audio effect that this audio file adapts, realized the automatic adjusting of audio pattern, without user's manual adjustments audio pattern, improve auditory effect, promoted user's experience.
Embodiment
Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Referring to Fig. 1, audio adaptive approach one embodiment of the present invention is proposed, described audio adaptive approach comprises the following steps:
Step S101: the attribute that obtains audio file
Audio file can be to be about to the audio file of playing or the audio file of playing, i.e. the present invention can carry out audio self-adaptation before audio plays, also can in audio frequency playing process, carry out audio self-adaptation.Preferably, receiving (before being audio plays) after audio playing request, obtain immediately the attribute that is about to the audio file of playing.Wherein, audio file include but not limited to pure audio file, have audio-frequency unit video file, there is voice-enabled chat of audio stream etc.
The attribute of audio file comprises title, form or type, the source etc. of audio file, can only obtain wherein a kind of attribute, also can obtain wherein the combination of two or more attributes arbitrarily.Wherein source shows that this audio file carrys out automatic network, applies or be local file, obtains its network address if carry out automatic network, obtains this Apply Names, if obtain the title of file from local folders if carry out self-application.
Step S102: according to the attribute of audio file from the attribute that prestores with audio mapping table, match corresponding audio pattern
The attribute of audio file and audio mapping table are pre-stored within device, it can be the corresponding a kind of audio pattern of a kind of attribute, also can be the corresponding a kind of audio pattern of combination of two or more attributes, this mapping table can also upgrade automatically by network.Audio pattern comprises music pattern, film mode, recording mode etc., at least comprises any two kinds of audio patterns wherein, preferably three kinds and more than.Each pattern is segmentation further, as music pattern can also be further subdivided into classical music pattern, pop music pattern, jazz pattern, rock music pattern etc.
For example, attribute and audio mapping table have comprised the corresponding relation of audio file title and audio pattern, in table, prestored numerous music and movie name, and undertaken more by the new music of Network Capture and movie name at any time.In the time that the title of audio file is identical with a certain music in table or movie name, matching corresponding audio pattern is music pattern or film mode.The keyword that also can capture audio file title mates, and if any the printed words such as " theme song ", " sheet caudal flexure ", matching audio pattern is music pattern, and if any printed words such as " recording ", matching audio pattern is recording mode.
In attribute and audio mapping table, also can comprise the form of audio file and the corresponding relation of audio pattern, in table, prestored type or the form of numerous videos, music and recording, and upgrade by type or the form of the new video of Network Capture, music and recording at any time.As, in the time that the form of audio file is MP3 format, matching corresponding audio pattern is music pattern; In the time that the form of audio file is AVI form, matching corresponding audio pattern is film mode; In the time that the form of audio file is AMR form, matching corresponding audio pattern is recording mode.
In attribute and audio mapping table, can also comprise audio file the audio pattern that derives from corresponding relation.As audio file derives from local folders, and the name of local folders is called music, film (video) or recording, and the corresponding audio pattern that matches is music pattern, film mode or recording mode; As sound (depending on) frequency file derives from web film or music site, the corresponding audio pattern that matches is film mode or music pattern; As sound (depending on) frequency file is played in music application or video playback application, the corresponding audio pattern that matches is music pattern or film mode; As audio stream is played in social software, as QQ, micro-letter etc., just carrying out voice-enabled chat or Video chat, the corresponding audio pattern that matches is recording mode.
Also comprehensively aforementioned any two kinds, three kinds attributes or other multiple attribute mate so that matching accuracy is higher.
Step S103: according to the audio mode playback audio file matching
Match after audio pattern, according to audio pattern, at least one sound effect parameters carried out to correspondence amendment, then according to amended sound effect parameters displaying audio file, the audio that output and this audio file adapt, improve sense of hearing experience, manually change audio pattern or sound effect parameters without user, promoted user's experience.
For example, if the audio pattern matching is music pattern, revises sound effect parameters and be: open expand balanced device, small-signal amplifies or/and volume strengthens, and plays this audio file according to amended sound effect parameters, the audio effect that output and this audio file adapt.
If the audio pattern matching is film mode, revises sound effect parameters and be: full balanced device, people's Audio Frequency Domain are amplified or/and virtual ring, around sound, and is play this audio file according to amended sound effect parameters, the audio effect that output and this audio file adapt.
If the audio pattern matching is recording mode, revises sound effect parameters and be: straight-through balanced device, people's Audio Frequency Domain are amplified or/and eliminate the end and make an uproar, and play this audio file according to amended sound effect parameters, the audio effect that output and this audio file adapt.
Accordingly, audio adaptive approach of the present invention, by obtaining the attribute of audio file, Auto-matching goes out corresponding with it audio pattern, according to the audio mode playback audio file matching, output and the audio effect that this audio file adapts, promoted sense of hearing experience, owing to manually changing audio pattern without user, promote user's experience.
Referring to Fig. 2, audio self-reacting device of the present invention is proposed, audio self-reacting device can be the playing devices such as mobile phone, PC, panel computer, MP3, MP4, it comprises acquisition module, audio matching module and audio output module.
Acquisition module: for obtaining the attribute of audio file to be played or that playing, and the attribute obtaining is sent to audio matching module.
Acquisition module can, receiving (before being audio plays) after audio playing request, obtain the attribute that is about to the audio file of playing immediately.Also can, after audio file is play, obtain the attribute of the audio file of playing.
The attribute of audio file comprises title, form or type, the source etc. of audio file, can only obtain wherein a kind of attribute, also can obtain wherein the combination of two or more attributes arbitrarily.Wherein source shows that this audio file carrys out automatic network, applies or be local file, obtains its network address if carry out automatic network, obtains this Apply Names, if obtain the title of file from local folders if carry out self-application.
Audio matching module: for matching corresponding audio pattern from the attribute prestoring with audio mapping table according to the attribute of audio file, and the audio pattern matching is sent to audio output module.
The attribute of audio file and audio mapping table are pre-stored within device, it can be the corresponding a kind of audio pattern of a kind of attribute, also can be the corresponding a kind of audio pattern of combination of two or more attributes, this mapping table can also upgrade automatically by network.Audio pattern comprises music pattern, film mode, recording mode etc., at least comprises any two kinds of audio patterns wherein, preferably three kinds and more than.Each pattern is segmentation further, as music pattern can also be further subdivided into classical music pattern, pop music pattern, jazz pattern, rock music pattern etc.
For example, attribute and audio mapping table have comprised the corresponding relation of audio file title and audio pattern, in table, prestored numerous music and movie name, and undertaken more by the new music of Network Capture and movie name at any time.In the time that the title of audio file is identical with a certain music in table or movie name, it is music pattern or film mode that audio matching module matches corresponding audio pattern.The keyword that audio matching module also can capture audio file title mates, if any the printed words such as " theme song ", " sheet caudal flexure ", matching audio pattern is music pattern, and if any printed words such as " recording ", matching audio pattern is recording mode.
In attribute and audio mapping table, also can comprise the form of audio file and the corresponding relation of audio pattern, in table, prestored type or the form of numerous videos, music and recording, and upgrade by type or the form of the new video of Network Capture, music and recording at any time.As, in the time that the form of audio file is MP3 format, it is music pattern that audio matching module matches corresponding audio pattern; In the time that the form of audio file is AVI form, it is film mode that audio matching module matches corresponding audio pattern; In the time that the form of audio file is AMR form, it is recording mode that audio matching module matches corresponding audio pattern.
In attribute and audio mapping table, can also comprise audio file the audio pattern that derives from corresponding relation.As audio file derives from local folders, and the name of local folders is called music, film (video) or recording, and the audio matching module corresponding audio pattern that matches is music pattern, film mode or recording mode; As audio file derives from web film or music site, the audio matching module audio pattern that matches of correspondence is film mode or music pattern; As audio file derives from music application or video playback application, the audio matching module audio pattern that matches of correspondence is music pattern or film mode; As audio file derives from social software, as QQ, micro-letter etc., just carrying out voice-enabled chat or, the audio matching module corresponding audio pattern that matches is recording mode.
Audio matching module also comprehensively aforementioned any two kinds, three kinds attributes or other multiple attribute mate so that matching accuracy is higher.
Audio output module: the audio mode playback audio file matching for basis.
Audio output module carries out correspondence amendment according to audio pattern at least one sound effect parameters, then according to amended sound effect parameters displaying audio file, and the audio that output and this audio file adapt.
For example, if the audio pattern matching is music pattern, audio output module is revised sound effect parameters: open and expand that balanced device, small-signal amplify or/and volume strengthens, and play this audio file according to amended sound effect parameters, to export the audio effect adapting with this audio file.
If the audio pattern matching is film mode, audio output module is revised sound effect parameters: full balanced device, people's Audio Frequency Domain amplify or/and virtual ring around sound, and play this audio file according to amended sound effect parameters, the audio effect that output and this audio file adapt.
If the audio pattern matching is recording mode, audio output module is revised sound effect parameters: straight-through balanced device, people's Audio Frequency Domain are amplified or/and make an uproar in the elimination end, and play this audio file according to amended sound effect parameters, the audio effect that output and this audio file adapt.
Audio self-reacting device of the present invention, by obtaining the attribute of audio file, Auto-matching goes out corresponding with it audio pattern, according to the audio mode playback audio file matching, the audio effect that output and this audio file adapt, promote sense of hearing experience, due to without user's manual adjustments audio pattern, thereby promoted user's experience.
One of ordinary skill in the art will appreciate that, realizing all or part of step in above-described embodiment method can control relevant hardware by program and complete, program can be stored in a computer read/write memory medium, and storage medium can be ROM/RAM, disk, CD etc.
Should be understood that; these are only the preferred embodiments of the present invention; can not therefore limit the scope of the claims of the present invention; every equivalent structure or conversion of equivalent flow process that utilizes instructions of the present invention and accompanying drawing content to do; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.