CN106066782A - A kind of data processing method and electronic equipment - Google Patents

A kind of data processing method and electronic equipment Download PDF

Info

Publication number
CN106066782A
CN106066782A CN201610507769.1A CN201610507769A CN106066782A CN 106066782 A CN106066782 A CN 106066782A CN 201610507769 A CN201610507769 A CN 201610507769A CN 106066782 A CN106066782 A CN 106066782A
Authority
CN
China
Prior art keywords
audio
audio frequency
broadcasting
play
described pre
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.)
Granted
Application number
CN201610507769.1A
Other languages
Chinese (zh)
Other versions
CN106066782B (en
Inventor
林翔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201610507769.1A priority Critical patent/CN106066782B/en
Publication of CN106066782A publication Critical patent/CN106066782A/en
Application granted granted Critical
Publication of CN106066782B publication Critical patent/CN106066782B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a kind of data processing method and electronic equipment, by receiving audio frequency play instruction, audio frequency play instruction includes the audio frequency of pre-broadcasting, when the pre-audio frequency play meet first pre-conditioned time, the pre-audio frequency play is the first audio types, then played out the pre-audio frequency play by speech play pattern corresponding with the first audio types in electronic equipment.This programme is by when the pre-audio frequency play is the first audio types, directly invoke speech play pattern the pre-audio frequency play is played out, achieving the audio frequency to the first audio types uses single play mode to play, avoid the problem that the audio frequency to the first audio types uses the play mode being not suitable for the type, the audio frequency making pre-broadcasting plays out with the pattern meeting its type, improves result of broadcast.

Description

A kind of data processing method and electronic equipment
Technical field
The present invention relates to audio area, particularly relate to a kind of data processing method and electronic equipment.
Background technology
The requirement of the tonequality of the audio frequency that electronic equipment is play by increasing user is more and more higher, at present, at electronics On equipment, before audio frequency is played out, need first audio frequency add-on third party audio to be done tonequality optimization, such as: Doby, SRS, waves etc..Audio frequency in electronic equipment is done the optimization of tonequality by third party's audio, is generally divided into: music, film and game Three kinds of audio patterns, concrete, third party's audio is during being optimized the audio frequency in electronic equipment, it will usually to sound Frequency carries out dynamic range control DRC, by decibel certain for the middle small-signal integral raising in audio frequency, to reach preferably to play effect Really.
But, user is during the use to electronic equipment, it will usually use voice communication, when user is set by electronics For when carrying out recording communication, this recording communication optimization would generally be become music pattern to play out by third party's audio.
To recording communication in recording file obtain during, due to electronic equipment microphone signal to noise ratio restriction and The noise problem of surrounding, the noise in recording file can be bigger, this maximum being easy for causing dynamic range control DRC Value or minima cannot identifications so that recording file end in playing process makes an uproar relatively big, affects result of broadcast.
Summary of the invention
In view of this, the present invention provides a kind of data processing method and electronic equipment, to solve passing through in prior art When electronic equipment carries out recording communication, due to the process to the audio of recording file of third party's audio, recording file is caused to be play The end make an uproar relatively big, the problem affecting result of broadcast, its concrete scheme is as follows:
A kind of data processing method, is applied to electronic equipment, including:
Receiving audio frequency play instruction, described audio frequency play instruction includes the audio frequency of pre-broadcasting;
Judge whether the audio frequency of described pre-broadcasting meets first pre-conditioned;
The audio frequency of the most described pre-broadcasting is the first audio types, by described electronic equipment with described first sound The audio frequency of described pre-broadcasting is played out by the speech play pattern that type is corresponding frequently.
Further, it is first pre-conditioned whether the described audio frequency judging described pre-broadcasting meets, and the most described pre-broadcasts The audio frequency put is the first audio types, including:
Judge that whether the sample rate of audio frequency of described pre-broadcasting is less than the first predetermined threshold value;
The audio frequency of the most described pre-broadcasting is that audio file chatted in language.
Further, also include:
When the audio frequency of described pre-broadcasting do not meet first pre-conditioned time, whether the audio frequency detecting described pre-broadcasting has One presets mark, and described first presets labelling when being designated acquisition recorded audio file carried out described recorded audio file;
The audio frequency of the most described pre-broadcasting is recorded audio file, by the speech play mould in described electronic equipment The audio frequency of described pre-broadcasting is played out by formula.
Further, described by speech play pattern pair corresponding with described first audio types in described electronic equipment The audio frequency of described pre-broadcasting plays out, including:
By calling local audio effect processing chip, load the firmware program that speech play pattern is corresponding so that by with The audio frequency of described pre-broadcasting is played out by speech play pattern corresponding to described first audio types;
Or,
Call the portions thereof of the voice output module of locally-installed third party application, based on the described 3rd The portions thereof of the voice output module of side's application program exports the audio frequency of described broadcasting, so that by with described first The audio frequency of described pre-broadcasting is played out by speech play pattern corresponding to audio types.
Further, also include:
When the audio frequency of described pre-broadcasting does not have the first default mark, detect the type of the audio frequency of described pre-broadcasting;
The type of the audio frequency according to described pre-broadcasting is by audio types pair with described pre-broadcasting in described electronic equipment The audio frequency of described pre-broadcasting is played out by the play mode answered.
Further, the type of the described audio frequency according to described pre-broadcasting by described electronic equipment with described pre-broadcasting Play mode corresponding to audio types the audio frequency of described pre-broadcasting is played out, including:
The type of the audio frequency according to described pre-broadcasting carries out the dynamic range of audio frequency relative loudness and adjusts, after being adjusted Play audio frequency in advance;
Pre-broadcasting audio frequency after described adjustment is played out.
Further, it is first pre-conditioned whether the described audio frequency judging described pre-broadcasting meets, and the most described pre-broadcasts The audio frequency put is the first audio types, particularly as follows:
Judge whether the audio frequency of described pre-broadcasting has second and preset mark, and the described second default being designated obtains voice sound During frequency file, the labelling that described speech audio file is carried out;
The audio frequency of the most described pre-broadcasting is speech audio type file, and described speech audio type file includes: language Chat audio file and recorded audio file.
A kind of electronic equipment, including: audio player and processor, wherein:
Described audio player is for playing out audio frequency;
Described processor receives audio frequency play instruction, and described audio frequency play instruction includes the audio frequency of pre-broadcasting, it is judged that described It is first pre-conditioned whether the pre-audio frequency play meets, and the audio frequency of the most described pre-broadcasting is the first audio types, by institute State speech play pattern corresponding with described first audio types in audio player the audio frequency of described pre-broadcasting is played out.
Further, it is first pre-conditioned that described processor judges whether the audio frequency of described pre-broadcasting meets, the most then institute The audio frequency stating pre-broadcasting is the first audio types, including:
Described processor judges that whether the sample rate of the audio frequency of described pre-broadcasting is less than the first predetermined threshold value, the most then institute The audio frequency stating pre-broadcasting is that audio file chatted in language.
Further, described processor is additionally operable to:
When the audio frequency judging described pre-broadcasting do not meet first pre-conditioned time, whether the audio frequency detecting described pre-broadcasting has Having first to preset mark, described first presets mark when being designated acquisition recorded audio file carried out described recorded audio file Note, the audio frequency of the most described pre-broadcasting is recorded audio file, by the speech play pattern pair in described audio player The audio frequency of described pre-broadcasting plays out.
Further, described processor is broadcast by voice corresponding with described first audio types in described audio player The audio frequency of described pre-broadcasting is played out by mode playback, including:
Described processor, by calling local audio effect processing chip, loads the firmware program that speech play pattern is corresponding, with Make by speech play pattern corresponding with described first audio types in audio player, the audio frequency of described pre-broadcasting to be entered Row is play;
Or,
Described processor calls the portions thereof of the voice output module of locally-installed third party application, base Portions thereof in the voice output module of described third party application exports the audio frequency of described broadcasting, so that passing through The audio frequency of described pre-broadcasting is played out by speech play pattern corresponding with described first audio types in audio player.
Further, described processor is additionally operable to:
When the audio frequency judging described pre-broadcasting does not have the first default mark, detect the class of the audio frequency of described pre-broadcasting Type, according to the type of the audio frequency of described pre-broadcasting by corresponding with the audio types of described pre-broadcasting in described audio player The audio frequency of described pre-broadcasting is played out by play mode.
Further, described processor according to the type of the audio frequency of described pre-broadcasting by described audio player with institute The audio frequency of described pre-broadcasting is played out by the play mode stating the audio types of pre-broadcasting corresponding, including:
The dynamic range that described processor carries out audio frequency relative loudness according to the type of the audio frequency of described pre-broadcasting adjusts, Pre-broadcasting audio frequency after adjustment, is played out the pre-broadcasting audio frequency after described adjustment by described audio player.
Further, it is first pre-conditioned that described processor judges whether the audio frequency of described pre-broadcasting meets, the most then institute The audio frequency stating pre-broadcasting is the first audio types, particularly as follows:
Described processor judge the audio frequency of described pre-broadcasting whether have second preset mark, described second preset be designated When obtaining speech audio file, the labelling carrying out described speech audio file, the audio frequency of the most described pre-broadcasting is voice Audio types file, described speech audio type file includes: audio file and recorded audio file chatted in language.
From technique scheme it can be seen that data processing method disclosed in the present application and electronic equipment, by receiving sound Frequently play instruction, audio frequency play instruction includes the audio frequency of pre-broadcasting, when the pre-audio frequency play meet first pre-conditioned time, broadcast in advance The audio frequency put is the first audio types, then by speech play pattern corresponding with the first audio types in electronic equipment to broadcasting in advance The audio frequency put plays out.This programme is by when the pre-audio frequency play is the first audio types, directly invoking speech play mould The pre-audio frequency play is played out by formula, it is achieved that uses single play mode to play the audio frequency of the first audio types, keeps away Exempt from the problem that the audio frequency to the first audio types uses the play mode being not suitable for the type so that the pre-audio frequency play is with symbol The pattern closing its type plays out, and improves result of broadcast.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing In having technology to describe, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to Other accompanying drawing is obtained according to these accompanying drawings.
Fig. 1 is the flow chart of a kind of data processing method disclosed in the embodiment of the present invention;
Fig. 2 is the flow chart of a kind of data processing method disclosed in the embodiment of the present invention;
Fig. 3 is the flow chart of a kind of data processing method disclosed in the embodiment of the present invention;
Fig. 4 is the flow chart of a kind of data processing method disclosed in the embodiment of the present invention;
Fig. 5 is the flow chart of a kind of data processing method disclosed in the embodiment of the present invention;
Fig. 6 is the structural representation of a kind of electronic equipment disclosed in the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Describe, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments wholely.Based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under not making creative work premise Embodiment, broadly falls into the scope of protection of the invention.
The invention discloses a kind of data processing method, be applied to electronic equipment, its flow chart is as it is shown in figure 1, include:
Step S11, reception audio frequency play instruction, audio frequency play instruction includes the audio frequency of pre-broadcasting;
When playing when electronic equipment there being audio frequency need, receive audio frequency play instruction, wherein, in audio frequency play instruction at least Including: need the audio frequency played out, it is also possible to including: the time of broadcasting or duration, or the volume etc. that audio frequency is play, at this not It is specifically limited.
It is pre-conditioned whether the audio frequency that step S12, judgement are play in advance meets first;
Step S13, the most pre-audio frequency play are the first audio types, by electronic equipment with the first audio class The pre-audio frequency play is played out by the speech play pattern that type is corresponding.
Audio frequency can be divided into polytype, such as: speech audio, video display audio frequency, music VF, gaming audio etc., then, electricity Subset includes that the audio frequency of corresponding type is played out by multiple play mode respectively.
Such as: audio frequency is speech audio, the i.e. first audio types, then by speech play pattern, this speech audio is carried out Play;Audio frequency is video display audio frequency, then played out this video display audio frequency by video display play mode;Audio frequency is music VF, then By music playing mode, this music VF is played out;Audio frequency is gaming audio, then by game play mode to this trip Play audio frequency plays out.
Different play mode is that audio frequency is carried out different process, such as: speech play pattern can be directly to this Speech audio plays out, it is not necessary to carry out any process, or, this speech audio is carried out the tune of relative loudness more by a small margin Play out after whole;Video display audio frequency, music VF or gaming audio, under the play mode of its correspondence, need to carry out larger amplitude The dynamic range of the relative loudness of degree adjusts, and single different audio types is under different play mode, and it adjusts amplitude or tune Perfect square formula is also different.
Wherein, speech audio can be particularly as follows: what electronic equipment directly gathers, such as: recorded audio or third-party application journey Sequence, such as: audio frequency chatted in the language of wechat or QQ.
Data processing method disclosed in the present embodiment, by receiving audio frequency play instruction, audio frequency play instruction includes pre-broadcasting The audio frequency put, when the pre-audio frequency play meet first pre-conditioned time, the pre-audio frequency play is the first audio types, then by electricity The pre-audio frequency play is played out by speech play pattern corresponding with the first audio types in subset.This programme is by when pre- When the audio frequency play is the first audio types, directly invokes speech play pattern and the pre-audio frequency play played out, it is achieved that Single play mode is used to play the audio frequency of the first audio types, it is to avoid the audio frequency of the first audio types is used discomfort The problem closing the play mode of the type so that the pre-audio frequency play plays out with the pattern meeting its type, improves and broadcasts Put effect.
Present embodiment discloses a kind of data processing method, be applied to electronic equipment, its flow chart is as in figure 2 it is shown, include:
Step S21, reception audio frequency play instruction, audio frequency play instruction includes the audio frequency of pre-broadcasting;
Whether step S22, the sample rate of the pre-audio frequency play of judgement are less than the first predetermined threshold value;
Its sample rate of different types of audio frequency is different, such as: the sample rate of music VF and video/audio is typically larger than 44.1KHz, and the sample rate that audio frequency chatted in language is typically smaller than 16KHz, wherein, language merely audio frequency is the one of speech audio, voice sound Frequency can also include: recorded audio.
Therefore, if the first predetermined threshold value is 16KHz, when the sample rate of the pre-audio frequency play is less than 16KHz, pre-broadcasting Audio frequency is that audio frequency chatted in language.
Step S23, the most pre-audio frequency play are that audio file chatted in language, by described electronic equipment with the first sound The pre-audio frequency play is played out by the speech play pattern that type is corresponding frequently.
The audio frequency play the most in advance is that audio frequency or recorded audio chatted in the language in speech audio, is required for passing through speech play Pattern plays out.
I.e. when the pre-audio frequency play be language chat audio frequency time, by speech play pattern, this language merely audio frequency is played out;When When the pre-audio frequency play is recorded audio, again by speech play pattern, this recorded audio is played out.
Data processing method disclosed in the present embodiment, by receiving audio frequency play instruction, audio frequency play instruction includes pre-broadcasting The audio frequency put, when the pre-audio frequency play meet first pre-conditioned time, the pre-audio frequency play is the first audio types, then by electricity The pre-audio frequency play is played out by speech play pattern corresponding with the first audio types in subset.This programme is by when pre- When the audio frequency play is the first audio types, directly invokes speech play pattern and the pre-audio frequency play played out, it is achieved that Single play mode is used to play the audio frequency of the first audio types, it is to avoid the audio frequency of the first audio types is used discomfort The problem closing the play mode of the type so that the pre-audio frequency play plays out with the pattern meeting its type, improves and broadcasts Put effect.
Present embodiment discloses a kind of data processing method, be applied to electronic equipment, its flow chart is as it is shown on figure 3, include:
Step S31, reception audio frequency play instruction, audio frequency play instruction includes the audio frequency of pre-broadcasting;
Whether step S32, the sample rate of the pre-audio frequency play of judgement are less than the first predetermined threshold value;
Step S33, the most pre-audio frequency play are that audio file chatted in language, by electronic equipment with the first audio class The pre-audio frequency play is played out by the speech play pattern that type is corresponding;
Step S34 presets mark if it is not, whether the pre-audio frequency play of detection has first, and first presets and be designated acquisition Labelling during recorded audio file, recorded audio file carried out;
If the first predetermined threshold value is 16KHz, when the sample rate of the pre-audio frequency play is not less than the first predetermined threshold value, show The pre-audio types play is that audio frequency chatted in non-language.
Step S35, the most pre-audio frequency play are recorded audio file, by the speech play mould in electronic equipment The pre-audio frequency play is played out by formula.
Being in the case of audio frequency chatted in non-language at the pre-audio frequency play, if detecting, the audio frequency of pre-broadcasting has the first pre-bidding Note, then show that the audio frequency of this pre-broadcasting is recorded audio.
Owing to recording file is directly collected by electronic equipment, when electronic equipment gathers recording file, right Recording file is marked, with show this audio file type as recording file, therefore, when detecting that audio file has One presets mark, then this audio file is recorded audio file, and recorded audio file needs also exist for being entered by speech play pattern Row is play.
Data processing method disclosed in the present embodiment, by receiving audio frequency play instruction, audio frequency play instruction includes pre-broadcasting The audio frequency put, when the pre-audio frequency play meet first pre-conditioned time, the pre-audio frequency play is the first audio types, then by electricity The pre-audio frequency play is played out by speech play pattern corresponding with the first audio types in subset.This programme is by when pre- When the audio frequency play is the first audio types, directly invokes speech play pattern and the pre-audio frequency play played out, it is achieved that Single play mode is used to play the audio frequency of the first audio types, it is to avoid the audio frequency of the first audio types is used discomfort The problem closing the play mode of the type so that the pre-audio frequency play plays out with the pattern meeting its type, improves and broadcasts Put effect.
Present embodiment discloses a kind of data processing method, be applied to electronic equipment, its flow chart as shown in Figure 4, including:
Step S41, reception audio frequency play instruction, audio frequency play instruction includes the audio frequency of pre-broadcasting;
Whether step S42, the sample rate of the pre-audio frequency play of judgement are less than the first predetermined threshold value;
Step S43, the most pre-audio frequency play are that audio file chatted in language, by electronic equipment with the first audio class The pre-audio frequency play is played out by the speech play pattern that type is corresponding;
Step S44 presets mark if it is not, whether the pre-audio frequency play of detection has first, and first presets and be designated acquisition Labelling during recorded audio file, recorded audio file carried out;
Step S45, the most pre-audio frequency play are recorded audio file, by the speech play mould in electronic equipment The pre-audio frequency play is played out by formula;
If the audio frequency that step S46 is play in advance does not have first presets mark, the type of the pre-audio frequency play of detection;
When the sample rate of the pre-audio frequency play is less than the first predetermined threshold value, the pre-audio frequency play is that audio frequency chatted in language;When in advance The audio frequency play has first and presets mark, then the pre-audio frequency play is recorded audio;When the pre-audio frequency play sample rate not Less than the first predetermined threshold value, and do not have the first default mark, then the audio frequency of this pre-broadcasting may be music VF, video display sound Frequently, it is also possible to for gaming audio, now, then detect the audio types of this pre-broadcasting, detecting it is music VF, video display Audio frequency, or gaming audio.
The type of the pre-audio frequency play of step S47, basis is by corresponding with the audio types of pre-broadcasting in electronic equipment The pre-audio frequency play is played out by play mode.
When the audio frequency that testing result shows this pre-broadcasting is music VF, played out by music playing mode;When Testing result shows when the audio frequency of this pre-broadcasting is video display audio frequency, is played out by video display play mode;When testing result shows Show when the audio frequency of this pre-broadcasting is gaming audio, played out by game play mode.
Wherein, broadcasting corresponding with the pre-audio types play in electronic equipment is passed through according to the type of the pre-audio frequency play The pre-audio frequency play is played out by pattern, can particularly as follows:
Type according to the pre-audio frequency play carries out the dynamic range of audio frequency relative loudness and adjusts, and pre-after being adjusted is broadcast Playback frequency, the pre-broadcasting audio frequency after adjusting plays out.
When the dynamic range that the audio frequency of this pre-broadcasting carries out audio frequency relative loudness adjusts, it it is the sound according to this pre-broadcasting Frequently type is adjusted, such as: for the audio frequency of a certain type, the amplitude that dynamically adjusts of its relative loudness is relatively big, needs big In some predetermined threshold value;Or, for another type of audio frequency, the amplitude that dynamically adjusts of its relative loudness is less, needs little In another predetermined threshold value, it is not specifically limited at this.
Data processing method disclosed in the present embodiment, by receiving audio frequency play instruction, audio frequency play instruction includes pre-broadcasting The audio frequency put, when the pre-audio frequency play meet first pre-conditioned time, the pre-audio frequency play is the first audio types, then by electricity The pre-audio frequency play is played out by speech play pattern corresponding with the first audio types in subset.This programme is by when pre- When the audio frequency play is the first audio types, directly invokes speech play pattern and the pre-audio frequency play played out, it is achieved that Single play mode is used to play the audio frequency of the first audio types, it is to avoid the audio frequency of the first audio types is used discomfort The problem closing the play mode of the type so that the pre-audio frequency play plays out with the pattern meeting its type, improves and broadcasts Put effect.
Present embodiment discloses a kind of data processing method, be applied to electronic equipment, its flow chart is as it is shown in figure 5, include:
Step S51, reception audio frequency play instruction, audio frequency play instruction includes the audio frequency of pre-broadcasting;
Whether the audio frequency that step S52, judgement are play in advance has second is preset mark, and the second default being designated obtains voice sound Labelling during frequency file, speech audio file carried out;
When electronic equipment gathers speech audio file, the speech audio file collected is marked, to show tool Having the second audio file presetting mark is speech audio file, in order to directly whether have second by detection audio file Default mark judges whether this audio file is speech audio file.
Wherein, speech audio type file includes: audio file and recorded audio file chatted in language.
Step S53, the most pre-audio frequency play are speech audio type file, by electronic equipment with the first sound The pre-audio frequency play is played out by the speech play pattern that type is corresponding frequently.
It is speech audio by the first audio types of speech play mode playback.
By speech play pattern corresponding with the first audio types in electronic equipment, the pre-audio frequency play is played out, Can particularly as follows:
By calling local audio effect processing chip, load the firmware program that speech play pattern is corresponding so that by with The pre-audio frequency play is played out by speech play pattern corresponding to the first audio types;Or, call locally-installed the 3rd The portions thereof of the voice output module of side's application program, the part of voice output module based on third party application The pre-audio frequency play of program module output, so that by the speech play pattern corresponding with the first audio types to pre-broadcasting Audio frequency plays out.
Wherein, third party application can be: wechat or QQ.
Either use local audio effect processing chip, still call the voice output of locally-installed third party application The portions thereof of module, all avoids by third party's audio, such as: Doby, SRS or waves etc., to the pre-audio frequency play It is optimized the process of process, it is to avoid the audio frequency to this pre-broadcasting, i.e. speech audio carry out the dynamic model of amplitude in a big way Enclose adjustment, it is ensured that the result of broadcast of this speech audio.
Data processing method disclosed in the present embodiment, by receiving audio frequency play instruction, audio frequency play instruction includes pre-broadcasting The audio frequency put, when the pre-audio frequency play meet first pre-conditioned time, the pre-audio frequency play is the first audio types, then by electricity The pre-audio frequency play is played out by speech play pattern corresponding with the first audio types in subset.This programme is by when pre- When the audio frequency play is the first audio types, directly invokes speech play pattern and the pre-audio frequency play played out, it is achieved that Single play mode is used to play the audio frequency of the first audio types, it is to avoid the audio frequency of the first audio types is used discomfort The problem closing the play mode of the type so that the pre-audio frequency play plays out with the pattern meeting its type, improves and broadcasts Put effect.
Present embodiment discloses a kind of electronic equipment, its structural representation as shown in Figure 6, including:
Audio player 61 and processor 62.
Wherein, audio player 61 is for playing out audio frequency.
Processor 62 is used for receiving audio frequency play instruction, and audio frequency play instruction includes the audio frequency of pre-broadcasting, it is judged that play in advance Audio frequency whether meet first pre-conditioned, the most pre-audio frequency play is the first audio types, by audio player The pre-audio frequency play is played out by the speech play pattern corresponding with the first audio types.
When playing when electronic equipment there being audio frequency need, receive audio frequency play instruction, wherein, in audio frequency play instruction at least Including: need the audio frequency played out, it is also possible to including: the time of broadcasting or duration, or the volume etc. that audio frequency is play, at this not It is specifically limited.
Audio frequency can be divided into polytype, such as: speech audio, video display audio frequency, music VF, gaming audio etc., then, electricity Subset includes that the audio frequency of corresponding type is played out by multiple play mode respectively.
Such as: audio frequency is speech audio, the i.e. first audio types, then by speech play pattern, this speech audio is carried out Play;Audio frequency is video display audio frequency, then played out this video display audio frequency by video display play mode;Audio frequency is music VF, then By music playing mode, this music VF is played out;Audio frequency is gaming audio, then by game play mode to this trip Play audio frequency plays out.
Different play mode is that audio frequency is carried out different process, such as: speech play pattern can be directly to this Speech audio plays out, it is not necessary to carry out any process, or, this speech audio is carried out the tune of relative loudness more by a small margin Play out after whole;Video display audio frequency, music VF or gaming audio, under the play mode of its correspondence, need to carry out larger amplitude The dynamic range of the relative loudness of degree adjusts, and single different audio types is under different play mode, and it adjusts amplitude or tune Perfect square formula is also different.
Wherein, speech audio can be particularly as follows: what electronic equipment directly gathers, such as: recorded audio or third-party application journey Sequence, such as: audio frequency chatted in the language of wechat or QQ.
It is first pre-conditioned that processor 62 judges whether the audio frequency play in advance meets, the most pre-audio frequency play is the One audio types, can particularly as follows:
Processor 62 judges that the sample rate of the audio frequency play in advance whether less than the first predetermined threshold value, is play the most in advance Audio frequency is that audio file chatted in language.
Its sample rate of different types of audio frequency is different, such as: the sample rate of music VF and video/audio is typically larger than 44.1KHz, and the sample rate that audio frequency chatted in language is typically smaller than 16KHz, wherein, language merely audio frequency is the one of speech audio, voice sound Frequency can also include: recorded audio.
Therefore, if the first predetermined threshold value is 16KHz, when the sample rate of the pre-audio frequency play is less than 16KHz, pre-broadcasting Audio frequency is that audio frequency chatted in language.
The audio frequency play the most in advance is that audio frequency or recorded audio chatted in the language in speech audio, is required for passing through speech play Pattern plays out.
I.e. when the pre-audio frequency play be language chat audio frequency time, by speech play pattern, this language merely audio frequency is played out;When When the pre-audio frequency play is recorded audio, again by speech play pattern, this recorded audio is played out.
Further, when processor 62 judge the audio frequency play in advance do not meet first pre-conditioned time, detection is pre-plays Whether audio frequency has first is preset mark, and first presets to be designated when obtaining recorded audio file and carry out recorded audio file Labelling, the most pre-audio frequency play is recorded audio file, is play pre-by the speech play pattern in audio player Audio frequency play out.
If the first predetermined threshold value is 16KHz, when the sample rate of the pre-audio frequency play is not less than the first predetermined threshold value, show The pre-audio types play is that audio frequency chatted in non-language.
Being in the case of audio frequency chatted in non-language at the pre-audio frequency play, if detecting, the audio frequency of pre-broadcasting has the first pre-bidding Note, then show that the audio frequency of this pre-broadcasting is recorded audio.
Owing to recording file is directly collected by electronic equipment, when electronic equipment gathers recording file, right Recording file is marked, with show this audio file type as recording file, therefore, when detecting that audio file has One presets mark, then this audio file is recorded audio file, and recorded audio file needs also exist for being entered by speech play pattern Row is play.
When processor 62 judges that the audio frequency play in advance does not have the first default mark, the class of the pre-audio frequency play of detection Type, passes through play mode corresponding with the pre-audio types play in audio player in advance according to the type of the pre-audio frequency play The audio frequency play plays out.
When the sample rate of the pre-audio frequency play is less than the first predetermined threshold value, the pre-audio frequency play is that audio frequency chatted in language;When in advance The audio frequency play has first and presets mark, then the pre-audio frequency play is recorded audio;When the pre-audio frequency play sample rate not Less than the first predetermined threshold value, and do not have the first default mark, then the audio frequency of this pre-broadcasting may be music VF, video display sound Frequently, it is also possible to for gaming audio, now, then detect the audio types of this pre-broadcasting, detecting it is music VF, video display Audio frequency, or gaming audio.
When the audio frequency that testing result shows this pre-broadcasting is music VF, played out by music playing mode;When Testing result shows when the audio frequency of this pre-broadcasting is video display audio frequency, is played out by video display play mode;When testing result shows Show when the audio frequency of this pre-broadcasting is gaming audio, played out by game play mode.
Wherein, broadcasting corresponding with the pre-audio types play in electronic equipment is passed through according to the type of the pre-audio frequency play The pre-audio frequency play is played out by pattern, can particularly as follows:
Type according to the pre-audio frequency play carries out the dynamic range of audio frequency relative loudness and adjusts, and pre-after being adjusted is broadcast Playback frequency, the pre-broadcasting audio frequency after adjusting plays out.
When the dynamic range that the audio frequency of this pre-broadcasting carries out audio frequency relative loudness adjusts, it it is the sound according to this pre-broadcasting Frequently type is adjusted, such as: for the audio frequency of a certain type, the amplitude that dynamically adjusts of its relative loudness is relatively big, needs big In some predetermined threshold value;Or, for another type of audio frequency, the amplitude that dynamically adjusts of its relative loudness is less, needs little In another predetermined threshold value, it is not specifically limited at this.
It addition, processor 62 to judge whether the audio frequency play in advance meets first pre-conditioned, the most pre-audio frequency play It is the first audio types, it is also possible to particularly as follows:
Processor 62 judges whether the audio frequency play in advance has second and preset mark, and the second default being designated obtains voice sound During frequency file, the labelling carrying out speech audio file, the most pre-audio frequency play is speech audio type file, voice Audio types file includes: audio file and recorded audio file chatted in language.
When electronic equipment gathers speech audio file, the speech audio file collected is marked, to show tool Having the second audio file presetting mark is speech audio file, in order to directly whether have second by detection audio file Default mark judges whether this audio file is speech audio file.
Wherein, speech audio type file includes: audio file and recorded audio file chatted in language.
By speech play pattern corresponding with the first audio types in electronic equipment, the pre-audio frequency play is played out, Can particularly as follows:
By calling local audio effect processing chip, load the firmware program that speech play pattern is corresponding so that by with The pre-audio frequency play is played out by speech play pattern corresponding to the first audio types;Or, call locally-installed the 3rd The portions thereof of the voice output module of side's application program, the part of voice output module based on third party application The pre-audio frequency play of program module output, so that by the speech play pattern corresponding with the first audio types to pre-broadcasting Audio frequency plays out.
Wherein, third party application can be: wechat or QQ.
Either use local audio effect processing chip, still call the voice output of locally-installed third party application The portions thereof of module, all avoids by third party's audio, such as: Doby, SRS or waves etc., to the pre-audio frequency play It is optimized the process of process, it is to avoid the audio frequency to this pre-broadcasting, i.e. speech audio carry out the dynamic model of amplitude in a big way Enclose adjustment, it is ensured that the result of broadcast of this speech audio.
Electronic equipment disclosed in the present embodiment, receives audio frequency play instruction by processor, and audio frequency play instruction includes pre- The audio frequency play, when the pre-audio frequency play meet first pre-conditioned time, the pre-audio frequency play is the first audio types, then pass through The pre-audio frequency play is played out by speech play pattern corresponding with the first audio types in electronic equipment.This programme is by working as When the pre-audio frequency play is the first audio types, directly invokes speech play pattern and the pre-audio frequency play played out, it is achieved Single play mode is used to play the audio frequency of the first audio types, it is to avoid the audio frequency of first audio types is used not The problem being suitable for the play mode of the type so that the pre-audio frequency play plays out with the pattern meeting its type, improves Result of broadcast.
In this specification, each embodiment uses the mode gone forward one by one to describe, and what each embodiment stressed is and other The difference of embodiment, between each embodiment, identical similar portion sees mutually.For device disclosed in embodiment For, owing to it corresponds to the method disclosed in Example, so describe is fairly simple, relevant part sees method part and says Bright.
Professional further appreciates that, in conjunction with the unit of each example that the embodiments described herein describes And algorithm steps, it is possible to electronic hardware, computer software or the two be implemented in combination in, in order to clearly demonstrate hardware and The interchangeability of software, the most generally describes composition and the step of each example according to function.These Function performs with hardware or software mode actually, depends on application-specific and the design constraint of technical scheme.Specialty Technical staff specifically should can be used for using different methods to realize described function to each, but this realization should not Think beyond the scope of this invention.
The method described in conjunction with the embodiments described herein or the step of algorithm can direct hardware, processor be held The software module of row, or the combination of the two implements.Software module can be placed in random access memory (RAM), internal memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, depositor, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.
Described above to the disclosed embodiments, makes professional and technical personnel in the field be capable of or uses the present invention. Multiple amendment to these embodiments will be apparent from for those skilled in the art, as defined herein General Principle can realize without departing from the spirit or scope of the present invention in other embodiments.Therefore, the present invention It is not intended to be limited to the embodiments shown herein, and is to fit to and principles disclosed herein and features of novelty phase one The widest scope caused.

Claims (14)

1. a data processing method, is applied to electronic equipment, it is characterised in that including:
Receiving audio frequency play instruction, described audio frequency play instruction includes the audio frequency of pre-broadcasting;
Judge whether the audio frequency of described pre-broadcasting meets first pre-conditioned;
The audio frequency of the most described pre-broadcasting is the first audio types, by described electronic equipment with described first audio class The audio frequency of described pre-broadcasting is played out by the speech play pattern that type is corresponding.
Method the most according to claim 1, it is characterised in that whether the described audio frequency judging described pre-broadcasting meets first Pre-conditioned, the audio frequency of the most described pre-broadcasting is the first audio types, including:
Judge that whether the sample rate of audio frequency of described pre-broadcasting is less than the first predetermined threshold value;
The audio frequency of the most described pre-broadcasting is that audio file chatted in language.
Method the most according to claim 2, it is characterised in that also include:
When the audio frequency of described pre-broadcasting do not meet first pre-conditioned time, detecting the audio frequency of described pre-broadcasting, whether to have first pre- Bidding is known, and described first presets labelling when being designated acquisition recorded audio file carried out described recorded audio file;
The audio frequency of the most described pre-broadcasting is recorded audio file, by the speech play pattern pair in described electronic equipment The audio frequency of described pre-broadcasting plays out.
Method the most according to claim 1, it is characterised in that described by described electronic equipment with described first audio frequency The audio frequency of described pre-broadcasting is played out by speech play pattern corresponding to type, including:
By calling local audio effect processing chip, load the firmware program that speech play pattern is corresponding, so that by with described The audio frequency of described pre-broadcasting is played out by speech play pattern corresponding to the first audio types;
Or,
Call the portions thereof of the voice output module of locally-installed third party application, should based on described third party Export the audio frequency of described pre-broadcasting with the portions thereof of the voice output module of program so that by with described first sound The audio frequency of described pre-broadcasting is played out by the speech play pattern that type is corresponding frequently.
Method the most according to claim 3, it is characterised in that also include:
When the audio frequency of described pre-broadcasting does not have the first default mark, detect the type of the audio frequency of described pre-broadcasting;
The type of the audio frequency according to described pre-broadcasting is by corresponding with the audio types of described pre-broadcasting in described electronic equipment The audio frequency of described pre-broadcasting is played out by play mode.
Method the most according to claim 5, it is characterised in that the described type according to the audio frequency of described pre-broadcasting passes through institute State play mode corresponding with the audio types of described pre-broadcasting in electronic equipment the audio frequency of described pre-broadcasting is played out, bag Include:
The type of the audio frequency according to described pre-broadcasting carries out the dynamic range of audio frequency relative loudness and adjusts, and pre-after being adjusted is broadcast Playback frequency;
Pre-broadcasting audio frequency after described adjustment is played out.
Method the most according to claim 1, it is characterised in that whether the described audio frequency judging described pre-broadcasting meets first Pre-conditioned, the audio frequency of the most described pre-broadcasting is the first audio types, particularly as follows:
Judge whether the audio frequency of described pre-broadcasting has second and preset mark, and the described second default being designated obtains speech audio literary composition During part, the labelling that described speech audio file is carried out;
The audio frequency of the most described pre-broadcasting is speech audio type file, and described speech audio type file includes: sound chatted in language Frequency file and recorded audio file.
8. an electronic equipment, it is characterised in that including: audio player and processor, wherein:
Described audio player is for playing out audio frequency;
Described processor receives audio frequency play instruction, and described audio frequency play instruction includes the audio frequency of pre-broadcasting, it is judged that described pre-broadcast It is first pre-conditioned whether the audio frequency put meets, and the audio frequency of the most described pre-broadcasting is the first audio types, by described sound The audio frequency of described pre-broadcasting is played out by frequently corresponding with described first audio types in player speech play pattern.
Electronic equipment the most according to claim 8, it is characterised in that described processor judges that the audio frequency of described pre-broadcasting is No meeting first pre-conditioned, the audio frequency of the most described pre-broadcasting is the first audio types, including:
Described processor judges whether the sample rate of the audio frequency of described pre-broadcasting is less than the first predetermined threshold value, the most described pre- The audio frequency play is that audio file chatted in language.
Electronic equipment the most according to claim 9, it is characterised in that described processor is additionally operable to:
When the audio frequency judging described pre-broadcasting do not meet first pre-conditioned time, whether the audio frequency detecting described pre-broadcasting has One presets mark, and described first presets labelling when being designated acquisition recorded audio file carried out described recorded audio file, The audio frequency of the most described pre-broadcasting is recorded audio file, by the speech play pattern in described audio player to institute The audio frequency stating pre-broadcasting plays out.
11. electronic equipments according to claim 8, it is characterised in that described processor is by described audio player The audio frequency of described pre-broadcasting is played out by the speech play pattern corresponding with described first audio types, including:
Described processor, by calling local audio effect processing chip, loads the firmware program that speech play pattern is corresponding, so that By speech play pattern corresponding with described first audio types in audio player, the audio frequency of described pre-broadcasting is broadcast Put;
Or,
Described processor calls the portions thereof of the voice output module of locally-installed third party application, based on institute The portions thereof of the voice output module stating third party application exports the audio frequency of described broadcasting, so that passing through audio frequency The audio frequency of described pre-broadcasting is played out by speech play pattern corresponding with described first audio types in player.
12. electronic equipments according to claim 10, it is characterised in that described processor is additionally operable to:
When the audio frequency judging described pre-broadcasting does not have the first default mark, detect the type of the audio frequency of described pre-broadcasting, root According to the type of audio frequency of described pre-broadcasting by broadcasting corresponding with the audio types of described pre-broadcasting in described audio player The audio frequency of described pre-broadcasting is played out by pattern.
13. electronic equipments according to claim 12, it is characterised in that described processor is according to the audio frequency of described pre-broadcasting Type by play mode corresponding with the audio types of described pre-broadcasting in described audio player to described pre-broadcasting Audio frequency plays out, including:
The dynamic range that described processor carries out audio frequency relative loudness according to the type of the audio frequency of described pre-broadcasting adjusts, and is adjusted Pre-broadcasting audio frequency after whole, is played out the pre-broadcasting audio frequency after described adjustment by described audio player.
14. electronic equipments according to claim 8, it is characterised in that described processor judges the audio frequency of described pre-broadcasting Whether meet first pre-conditioned, the audio frequency of the most described pre-broadcasting is the first audio types, particularly as follows:
Described processor judge the audio frequency of described pre-broadcasting whether have second preset mark, described second preset be designated acquisition During speech audio file, the labelling carrying out described speech audio file, the audio frequency of the most described pre-broadcasting is speech audio Type file, described speech audio type file includes: audio file and recorded audio file chatted in language.
CN201610507769.1A 2016-06-29 2016-06-29 A kind of data processing method and electronic equipment Active CN106066782B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610507769.1A CN106066782B (en) 2016-06-29 2016-06-29 A kind of data processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610507769.1A CN106066782B (en) 2016-06-29 2016-06-29 A kind of data processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN106066782A true CN106066782A (en) 2016-11-02
CN106066782B CN106066782B (en) 2019-11-26

Family

ID=57420638

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610507769.1A Active CN106066782B (en) 2016-06-29 2016-06-29 A kind of data processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN106066782B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109686371A (en) * 2018-12-25 2019-04-26 广州灵聚信息科技有限公司 A kind of music intelligent playing method and device
WO2020088078A1 (en) * 2018-11-01 2020-05-07 郑州云海信息技术有限公司 Fpga-based data processing method, apparatus, device and medium
CN111601157A (en) * 2020-05-11 2020-08-28 海信视像科技股份有限公司 Audio output method and display device
CN112367581A (en) * 2019-11-05 2021-02-12 南京中感微电子有限公司 Earphone device, conversation system, equipment and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1920947A (en) * 2006-09-15 2007-02-28 清华大学 Voice/music detector for audio frequency coding with low bit ratio
US20130061279A1 (en) * 2010-05-14 2013-03-07 Panasonic Corporation Digital broadcast reception device and digital broadcast reception method
CN104735528A (en) * 2015-03-02 2015-06-24 青岛海信电器股份有限公司 Sound effect matching method and device
CN105244048A (en) * 2015-09-25 2016-01-13 小米科技有限责任公司 Audio play control method and apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1920947A (en) * 2006-09-15 2007-02-28 清华大学 Voice/music detector for audio frequency coding with low bit ratio
US20130061279A1 (en) * 2010-05-14 2013-03-07 Panasonic Corporation Digital broadcast reception device and digital broadcast reception method
CN104735528A (en) * 2015-03-02 2015-06-24 青岛海信电器股份有限公司 Sound effect matching method and device
CN105244048A (en) * 2015-09-25 2016-01-13 小米科技有限责任公司 Audio play control method and apparatus

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020088078A1 (en) * 2018-11-01 2020-05-07 郑州云海信息技术有限公司 Fpga-based data processing method, apparatus, device and medium
CN109686371A (en) * 2018-12-25 2019-04-26 广州灵聚信息科技有限公司 A kind of music intelligent playing method and device
CN112367581A (en) * 2019-11-05 2021-02-12 南京中感微电子有限公司 Earphone device, conversation system, equipment and device
CN111601157A (en) * 2020-05-11 2020-08-28 海信视像科技股份有限公司 Audio output method and display device

Also Published As

Publication number Publication date
CN106066782B (en) 2019-11-26

Similar Documents

Publication Publication Date Title
US8654993B2 (en) Portable audio device providing automated control of audio volume parameters for hearing protection
CN106066782A (en) A kind of data processing method and electronic equipment
CN103152668B (en) Adjusting method of output audio and system thereof
CN105280195B (en) The processing method and processing device of voice signal
EP1423985B1 (en) Speaker equalization tool
JP4860748B2 (en) Hearing aid fitting method, hearing aid fitting system, and hearing aid
US9998081B2 (en) Method and apparatus for processing an audio signal based on an estimated loudness
CN112954115B (en) Volume adjusting method and device, electronic equipment and storage medium
US8903097B2 (en) Information processing device and method and program
CN106648527A (en) Volume control method, device and playing equipment
CN106126167A (en) A kind of sound effect treatment method and terminal unit
CN108093327B (en) A kind of method, apparatus and electronic equipment for examining earphone to wear consistency
JP2011123751A (en) Control device and method, and program
CN105187602B (en) A kind of adjusting method and device of terminal volume
CN105262887B (en) Mobile terminal and audio setting method thereof
CN106341535A (en) Audio playing control method and mobile terminal
CN109688498A (en) A kind of volume adjusting method, earphone and storage medium
CN105430191A (en) Volume adjusting method and device
CN104464752A (en) Sound feedback detection method and device
CN105959489A (en) Call voice processing method and system, and communication terminal
CN106302930A (en) The control method of a kind of volume and adjusting means
CN108600915A (en) A kind of method, apparatus of audio output, harmonic distortion filtering equipment and terminal
CN109375894A (en) Earpiece volume based reminding method, device, mobile terminal and readable storage medium storing program for executing
CN106060710A (en) Audio output method and electronic equipment
CN104867296B (en) A kind of volume adjusting 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
GR01 Patent grant
GR01 Patent grant