CN106066782B - 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
CN106066782B
CN106066782B CN201610507769.1A CN201610507769A CN106066782B CN 106066782 B CN106066782 B CN 106066782B CN 201610507769 A CN201610507769 A CN 201610507769A CN 106066782 B CN106066782 B CN 106066782B
Authority
CN
China
Prior art keywords
audio
broadcasting
played
file
types
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.)
Active
Application number
CN201610507769.1A
Other languages
Chinese (zh)
Other versions
CN106066782A (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 equipments, by receiving audio play instruction, audio play instruction includes the audio of pre- broadcasting, when the audio played in advance meets the first preset condition, the audio played in advance is the first audio types, then is played out by voice play mode corresponding with the first audio types in electronic equipment to the audio played in advance.This programme passes through when the audio played in advance is the first audio types, voice play mode is called directly to play out the audio played in advance, it realizes and the audio of the first audio types is played using individual play mode, the problem of avoiding to the audio of the first audio types using the play mode for being not suitable for the type, so that the audio played in advance is played out with the mode for meeting its type, result of broadcast is improved.

Description

A kind of data processing method and electronic equipment
Technical field
The present invention relates to audio area more particularly to a kind of data processing method and electronic equipments.
Background technique
The requirement of the sound quality for the audio that more and more users play electronic equipment is higher and higher, currently, in electronics In equipment, before playing out audio, need to do sound quality optimization to audio add-on third party audio first, such as: Doby, SRS, waves etc..Third party's audio does the optimization of sound quality to the audio in electronic equipment, is generally divided into: music, film and game Three kinds of audio modes, specifically, third party's audio is during optimizing the audio in electronic equipment, it will usually to sound Frequency carries out dynamic range control DRC, by the certain decibel of the medium and small signal integral raising in audio, preferably plays effect to reach Fruit.
However, user is in the use process to electronic equipment, it will usually voice communication is used, when user is set by electronics When for carrying out recording communication, third party's audio would generally play out the recording communication optimization at music pattern.
To recording communication in recording file obtain during, due to electronic equipment microphone signal-to-noise ratio limitation and The noise problem of ambient enviroment, the noise in recording file can be bigger, this is easy for the maximum for leading to dynamic range control DRC Value or minimum value can not recognize, so that recording file is made an uproar larger in playing process indsole, influence 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 the prior art When electronic equipment carries out recording communication, the processing due to third party's audio to the audio of recording file causes recording file to play Bottom make an uproar larger, the problem of influencing result of broadcast, concrete scheme is as follows:
A kind of data processing method is applied to electronic equipment, comprising:
Audio play instruction is received, the audio play instruction includes the audio of pre- broadcasting;
Judge whether the audio of the pre- broadcasting meets the first preset condition;
If so, the audio of the pre- broadcasting be the first audio types, by the electronic equipment with first sound The corresponding voice play mode of frequency type plays out the audio of the pre- broadcasting.
Further, whether the audio for judging the pre- broadcasting meets the first preset condition, pre- broadcasts if so, described The audio put is the first audio types, comprising:
Judge the sample rate of the audio of the pre- broadcasting whether less than the first preset threshold;
If so, the audio of the pre- broadcasting is that language chats audio file.
Further, further includes:
When the audio of the pre- broadcasting does not meet the first preset condition, whether the audio for detecting the pre- broadcasting has the One default mark, described first presets the label for being identified as and carrying out when obtaining recorded audio file to the recorded audio file;
If so, the audio of the pre- broadcasting is recorded audio file, mould is played by the voice in the electronic equipment Formula plays out the audio of the pre- broadcasting.
Further, described to pass through voice play mode pair corresponding with first audio types in the electronic equipment The audio of the pre- broadcasting plays out, comprising:
By calling local audio effect processing chip, the corresponding firmware program of load voice play mode so that by with The corresponding voice play mode of first audio types plays out the audio of the pre- broadcasting;
Alternatively,
The portions thereof of the voice output module of locally-installed third party application is called, the third is based on The portions thereof of the voice output module of square application program exports the audio of the broadcasting, so that by with described first The corresponding voice play mode of audio types plays out the audio of the pre- broadcasting.
Further, further includes:
When the audio of the pre- broadcasting does not have the first default mark, the type of the audio of the pre- broadcasting is detected;
Pass through the audio types pair in the electronic equipment with the pre- broadcasting according to the type of the audio of the pre- broadcasting The play mode answered plays out the audio of the pre- broadcasting.
Further, the type of the audio according to the pre- broadcasting by the electronic equipment with the pre- broadcasting The corresponding play mode of audio types the audio of the pre- broadcasting is played out, comprising:
The dynamic range adjustment that audio relative loudness is carried out according to the type of the audio of the pre- broadcasting, after being adjusted It is pre- to play audio;
The pre- broadcasting audio adjusted is played out.
Further, whether the audio for judging the pre- broadcasting meets the first preset condition, pre- broadcasts if so, described The audio put is the first audio types, specifically:
Judge whether the audio of the pre- broadcasting has the second default mark, the described second default be identified as obtains voice sound When frequency file, to the label of speech audio file progress;
If so, the audio of the pre- broadcasting is speech audio type file, the speech audio type file includes: language Merely audio file and recorded audio file.
A kind of electronic equipment, comprising: audio player and processor, in which:
The audio player is for playing out audio;
The processor receives audio play instruction, and the audio play instruction includes the audio of pre- broadcasting, described in judgement Whether the audio played in advance meets the first preset condition, if so, the audio of the pre- broadcasting is the first audio types, passes through institute Voice play mode corresponding with first audio types in audio player is stated to play out the audio of the pre- broadcasting.
Further, the processor judges whether the audio of the pre- broadcasting meets the first preset condition, if so, institute The audio for stating pre- broadcasting is the first audio types, comprising:
The processor judges the sample rate of the audio of the pre- broadcasting whether less than the first preset threshold, if so, institute The audio for stating pre- broadcasting is that language chats audio file.
Further, the processor is also used to:
When the audio for judging the pre- broadcasting does not meet the first preset condition, whether the audio for detecting the pre- broadcasting has There is the first default mark, described first presets the mark for being identified as and carrying out when obtaining recorded audio file to the recorded audio file Note passes through the voice play mode pair in the audio player if so, the audio of the pre- broadcasting is recorded audio file The audio of the pre- broadcasting plays out.
Further, the processor is broadcast by voice corresponding with first audio types in the audio player Mode playback plays out the audio of the pre- broadcasting, comprising:
The processor loads the corresponding firmware program of voice play mode by the local audio effect processing chip of calling, with So that by voice play mode corresponding with first audio types in audio player to the audio of the pre- broadcasting into Row plays;
Alternatively,
The processor calls the portions thereof of the voice output module of locally-installed third party application, base The audio of the broadcasting is exported in the portions thereof of the voice output module of the third party application, so that passing through Voice play mode corresponding with first audio types plays out the audio of the pre- broadcasting in audio player.
Further, the processor is also used to:
When the audio for judging the pre- broadcasting does not have the first default mark, the class of the audio of the pre- broadcasting is detected Type passes through corresponding with the audio types of the pre- broadcasting in the audio player according to the type of the audio of the pre- broadcasting Play mode plays out the audio of the pre- broadcasting.
Further, the processor according to the type of the audio of the pre- broadcasting by the audio player with institute The corresponding play mode of audio types for stating pre- broadcasting plays out the audio of the pre- broadcasting, comprising:
The processor is adjusted according to the dynamic range that the type of the audio of the pre- broadcasting carries out audio relative loudness, is obtained To pre- broadcasting audio adjusted, the pre- broadcasting audio adjusted is played out by the audio player.
Further, the processor judges whether the audio of the pre- broadcasting meets the first preset condition, if so, institute The audio for stating pre- broadcasting is the first audio types, specifically:
The processor judges whether the audio of the pre- broadcasting has the second default mark, and described second default is identified as When obtaining speech audio file, to the label that the speech audio file carries out, if so, the audio of the pre- broadcasting is voice Audio types file, the speech audio type file include: that language chats audio file and recorded audio file.
It can be seen from the above technical proposal that data processing method disclosed in the present application and electronic equipment, by receiving sound Frequency play instruction, audio play instruction include the audio of pre- broadcasting, when the audio played in advance meets the first preset condition, are broadcast in advance The audio put is the first audio types, then by voice play mode corresponding with the first audio types in electronic equipment to broadcasting in advance The audio put plays out.This programme is by calling directly voice and playing mould when the audio played in advance is the first audio types Formula plays out the audio played in advance, realizes and is played to the audio of the first audio types using individual play mode, is kept away The problem of having exempted to the audio of the first audio types using the play mode for being not suitable for the type, so that the audio played in advance is to accord with The mode for closing its type plays out, and improves result of broadcast.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow chart of data processing method disclosed by the embodiments of the present invention;
Fig. 2 is a kind of flow chart of data processing method disclosed by the embodiments of the present invention;
Fig. 3 is a kind of flow chart of data processing method disclosed by the embodiments of the present invention;
Fig. 4 is a kind of flow chart of data processing method disclosed by the embodiments of the present invention;
Fig. 5 is a kind of flow chart of data processing method disclosed by the embodiments of the present invention;
Fig. 6 is the structural schematic diagram of a kind of electronic equipment disclosed by the embodiments of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
The invention discloses a kind of data processing methods, are applied to electronic equipment, and flow chart is as shown in Figure 1, comprising:
Step S11, audio play instruction is received, audio play instruction includes the audio of pre- broadcasting;
When thering is audio to need to play in electronic equipment, audio play instruction is received, wherein in audio play instruction at least Include: to need the audio that plays out, can also include: the time of broadcasting or the volume etc. that duration or audio play, herein not It is specifically limited.
Step S12, whether the audio that judgement plays in advance meets the first preset condition;
Step S13, if so, the audio played in advance be the first audio types, by electronic equipment with the first audio class The corresponding voice play mode of type plays out the audio played in advance.
Audio can there are many types, such as: speech audio, video display audio, music VF, gaming audio etc., then, electricity It include that a variety of play mode respectively play out the audio of corresponding type in sub- equipment.
Such as: audio is speech audio, i.e. the first audio types, then is carried out by voice play mode to the speech audio It plays;Audio is video display audio, then is played out by video display play mode to the video display audio;Audio is music VF, then The music VF is played out by music playing mode;Audio is gaming audio, then by game play mode to the trip Play audio plays out.
Different play mode be different processing is carried out to audio, such as: voice play mode can be for directly to this Speech audio plays out, without carrying out any processing, alternatively, carrying out the tune of relative loudness more by a small margin to the speech audio It is played out after whole;Video display audio, music VF or gaming audio need to carry out larger amplitude under its corresponding play mode The dynamic range of the relative loudness of degree adjusts, and the audio types of Dan Butong adjust amplitude or tune under different play mode Perfect square formula is also different.
Wherein, speech audio can be with specifically: what electronic equipment directly acquired, such as: recorded audio or third-party application journey Sequence, such as: the language of wechat or QQ chat audio.
Data processing method disclosed in the present embodiment, by receiving audio play instruction, audio play instruction includes broadcasting in advance The audio put, when the audio played in advance meets the first preset condition, the audio played in advance is the first audio types, then passes through electricity Voice play mode corresponding with the first audio types plays out the audio played in advance in sub- equipment.This programme passes through when pre- When the audio of broadcasting is the first audio types, calls directly voice play mode and the audio played in advance is played out, realize The audio of first audio types is played using individual play mode, is avoided to the audio of the first audio types using uncomfortable The problem of closing the play mode of the type, so that the audio played in advance is played out with the mode for meeting its type, improves and broadcasts Put effect.
Present embodiment discloses a kind of data processing methods, are applied to electronic equipment, and flow chart is as shown in Figure 2, comprising:
Step S21, audio play instruction is received, audio play instruction includes the audio of pre- broadcasting;
Step S22, whether the sample rate for the audio that judgement plays in advance is less than the first preset threshold;
Its sample rate of different types of audio is different, and such as: the sample rate of music VF and video/audio is typically larger than 44.1KHz, and the sample rate that language chats audio is usually less than 16KHz, wherein language chats one kind that audio is speech audio, voice sound Frequency can also include: recorded audio.
Therefore, it if the first preset threshold is 16KHz, when the sample rate of the audio played in advance is less than 16KHz, plays in advance Audio is that language chats audio.
Step S23, if so, the audio played in advance be language chat audio file, by the electronic equipment with the first sound The corresponding voice play mode of frequency type plays out the audio played in advance.
The audio no matter played in advance is that the language in speech audio chats audio or recorded audio, requires to play by voice Mode plays out.
I.e. when the audio played in advance is that language chats audio, audio is chatted to the language by voice play mode and is played out;When When the audio played in advance is recorded audio, equally the recorded audio is played out by voice play mode.
Data processing method disclosed in the present embodiment, by receiving audio play instruction, audio play instruction includes broadcasting in advance The audio put, when the audio played in advance meets the first preset condition, the audio played in advance is the first audio types, then passes through electricity Voice play mode corresponding with the first audio types plays out the audio played in advance in sub- equipment.This programme passes through when pre- When the audio of broadcasting is the first audio types, calls directly voice play mode and the audio played in advance is played out, realize The audio of first audio types is played using individual play mode, is avoided to the audio of the first audio types using uncomfortable The problem of closing the play mode of the type, so that the audio played in advance is played out with the mode for meeting its type, improves and broadcasts Put effect.
Present embodiment discloses a kind of data processing methods, are applied to electronic equipment, and flow chart is as shown in Figure 3, comprising:
Step S31, audio play instruction is received, audio play instruction includes the audio of pre- broadcasting;
Step S32, whether the sample rate for the audio that judgement plays in advance is less than the first preset threshold;
Step S33, if so, the audio played in advance be language chat audio file, by electronic equipment with the first audio class The corresponding voice play mode of type plays out the audio played in advance;
Step S34, if it is not, whether the audio that plays in advance of detection has the first default mark, first default is identified as acquisition The label that recorded audio file is carried out when recorded audio file;
If the first preset threshold is 16KHz, when the sample rate of the audio played in advance is not less than the first preset threshold, show The audio types played in advance are that non-language chats audio.
Step S35, if so, the audio played in advance is recorded audio file, mould is played by the voice in electronic equipment Formula plays out the audio played in advance.
In the case where the audio played in advance is that non-language chats audio, if detecting, the audio of pre- broadcasting has the first pre- bidding Note then shows that the audio of the pre- broadcasting is recorded audio.
It is right when electronic equipment acquires recording file since recording file is directly collected by electronic equipment Recording file is marked, to show the type of the audio file as recording file, therefore, when detecting that audio file has the One default mark, then the audio file is recorded audio file, recorded audio file also need by voice play mode into Row plays.
Data processing method disclosed in the present embodiment, by receiving audio play instruction, audio play instruction includes broadcasting in advance The audio put, when the audio played in advance meets the first preset condition, the audio played in advance is the first audio types, then passes through electricity Voice play mode corresponding with the first audio types plays out the audio played in advance in sub- equipment.This programme passes through when pre- When the audio of broadcasting is the first audio types, calls directly voice play mode and the audio played in advance is played out, realize The audio of first audio types is played using individual play mode, is avoided to the audio of the first audio types using uncomfortable The problem of closing the play mode of the type, so that the audio played in advance is played out with the mode for meeting its type, improves and broadcasts Put effect.
Present embodiment discloses a kind of data processing methods, are applied to electronic equipment, and flow chart is as shown in Figure 4, comprising:
Step S41, audio play instruction is received, audio play instruction includes the audio of pre- broadcasting;
Step S42, whether the sample rate for the audio that judgement plays in advance is less than the first preset threshold;
Step S43, if so, the audio played in advance be language chat audio file, by electronic equipment with the first audio class The corresponding voice play mode of type plays out the audio played in advance;
Step S44, if it is not, whether the audio that plays in advance of detection has the first default mark, first default is identified as acquisition The label that recorded audio file is carried out when recorded audio file;
Step S45, if so, the audio played in advance is recorded audio file, mould is played by the voice in electronic equipment Formula plays out the audio played in advance;
If audio step S46, played in advance does not have the first default mark, the type of the audio played in advance is detected;
When the sample rate of the audio played in advance is less than the first preset threshold, the audio played in advance is that language chats audio;When pre- The audio of broadcasting has the first default mark, then the audio played in advance is recorded audio;When the audio played in advance sample rate not Less than the first preset threshold, and do not have the first default mark, then the audio of the pre- broadcasting may be music VF, video display sound Frequently, it is also possible to be gaming audio, at this point, detecting again to the audio types of the pre- broadcasting, detecting it is music VF, video display Audio or gaming audio.
Step S47, passed through according to the type of the audio played in advance corresponding with the audio types played in advance in electronic equipment Play mode plays out the audio played in advance.
When testing result shows that the audio of the pre- broadcasting is music VF, played out by music playing mode;When When testing result shows that the audio of the pre- broadcasting is video display audio, played out by video display play mode;When testing result is aobvious When the audio for showing the pre- broadcasting is gaming audio, played out by game play mode.
Wherein, broadcasting corresponding with the audio types played in advance in electronic equipment is passed through according to the type of the audio played in advance Mode plays out the audio played in advance, can be with specifically:
The dynamic range adjustment of audio relative loudness is carried out according to the type of the audio played in advance, pre- after being adjusted is broadcast Playback frequency, pre- broadcasting audio adjusted is played out.
It is the sound according to the pre- broadcasting when the dynamic range for carrying out audio relative loudness to the audio of the pre- broadcasting adjusts Frequency type is adjusted, such as: for the audio of a certain type, the dynamic adjustment amplitude of relative loudness is larger, needs big In some preset threshold;Alternatively, being directed to another type of audio, the dynamic adjustment amplitude of relative loudness is smaller, needs small In another preset threshold, it is not specifically limited herein.
Data processing method disclosed in the present embodiment, by receiving audio play instruction, audio play instruction includes broadcasting in advance The audio put, when the audio played in advance meets the first preset condition, the audio played in advance is the first audio types, then passes through electricity Voice play mode corresponding with the first audio types plays out the audio played in advance in sub- equipment.This programme passes through when pre- When the audio of broadcasting is the first audio types, calls directly voice play mode and the audio played in advance is played out, realize The audio of first audio types is played using individual play mode, is avoided to the audio of the first audio types using uncomfortable The problem of closing the play mode of the type, so that the audio played in advance is played out with the mode for meeting its type, improves and broadcasts Put effect.
Present embodiment discloses a kind of data processing methods, are applied to electronic equipment, and flow chart is as shown in Figure 5, comprising:
Step S51, audio play instruction is received, audio play instruction includes the audio of pre- broadcasting;
Step S52, whether the audio that judgement plays in advance has the second default mark, and the second default be identified as obtains voice sound The label that speech audio file is carried out when frequency file;
When electronic equipment acquires speech audio file, collected speech audio file is marked, to show to have The audio file for having the second default mark is speech audio file, in order to directly by detecting whether audio file has second Default mark is to judge whether the audio file is speech audio file.
Wherein, speech audio type file includes: that language chats audio file and recorded audio file.
Step S53, if so, the audio played in advance be speech audio type file, by electronic equipment with the first sound The corresponding voice play mode of frequency type plays out the audio played in advance.
It is speech audio by the first audio types that voice play mode plays.
The audio played in advance is played out by voice play mode corresponding with the first audio types in electronic equipment, It can be with specifically:
By calling local audio effect processing chip, the corresponding firmware program of load voice play mode so that by with The corresponding voice play mode of first audio types plays out the audio played in advance;Alternatively, calling locally-installed third The portions thereof of the voice output module of square application program, the part of the voice output module based on third party application Program module exports the audio that plays in advance, so that by voice play mode corresponding with the first audio types to playing in advance Audio plays out.
Wherein, third party application can be with are as follows: wechat or QQ.
Either using local audio effect processing chip, or call the voice output of locally-installed third party application The portions thereof of module is all avoided through third party's audio, such as: Doby, SRS or waves, to the audio played in advance The process for optimizing processing avoids the audio to the pre- broadcasting, i.e. the dynamic model of speech audio progress larger range amplitude Adjustment is enclosed, ensure that the result of broadcast of the speech audio.
Data processing method disclosed in the present embodiment, by receiving audio play instruction, audio play instruction includes broadcasting in advance The audio put, when the audio played in advance meets the first preset condition, the audio played in advance is the first audio types, then passes through electricity Voice play mode corresponding with the first audio types plays out the audio played in advance in sub- equipment.This programme passes through when pre- When the audio of broadcasting is the first audio types, calls directly voice play mode and the audio played in advance is played out, realize The audio of first audio types is played using individual play mode, is avoided to the audio of the first audio types using uncomfortable The problem of closing the play mode of the type, so that the audio played in advance is played out with the mode for meeting its type, improves and broadcasts Put effect.
Present embodiment discloses a kind of electronic equipment, structural schematic diagram is as shown in Figure 6, comprising:
Audio player 61 and processor 62.
Wherein, audio player 61 is for playing out audio.
For processor 62 for receiving audio play instruction, audio play instruction includes the audio of pre- broadcasting, judges pre- play Audio whether meet the first preset condition, if so, the audio played in advance be the first audio types, by audio player Voice play mode corresponding with the first audio types plays out the audio played in advance.
When thering is audio to need to play in electronic equipment, audio play instruction is received, wherein in audio play instruction at least Include: to need the audio that plays out, can also include: the time of broadcasting or the volume etc. that duration or audio play, herein not It is specifically limited.
Audio can there are many types, such as: speech audio, video display audio, music VF, gaming audio etc., then, electricity It include that a variety of play mode respectively play out the audio of corresponding type in sub- equipment.
Such as: audio is speech audio, i.e. the first audio types, then is carried out by voice play mode to the speech audio It plays;Audio is video display audio, then is played out by video display play mode to the video display audio;Audio is music VF, then The music VF is played out by music playing mode;Audio is gaming audio, then by game play mode to the trip Play audio plays out.
Different play mode be different processing is carried out to audio, such as: voice play mode can be for directly to this Speech audio plays out, without carrying out any processing, alternatively, carrying out the tune of relative loudness more by a small margin to the speech audio It is played out after whole;Video display audio, music VF or gaming audio need to carry out larger amplitude under its corresponding play mode The dynamic range of the relative loudness of degree adjusts, and the audio types of Dan Butong adjust amplitude or tune under different play mode Perfect square formula is also different.
Wherein, speech audio can be with specifically: what electronic equipment directly acquired, such as: recorded audio or third-party application journey Sequence, such as: the language of wechat or QQ chat audio.
Processor 62 judges whether the audio played in advance meets the first preset condition, if so, the audio played in advance is the One audio types, can be with specifically:
Processor 62 judges the sample rate of the audio played in advance whether less than the first preset threshold, if so, playing in advance Audio is that language chats audio file.
Its sample rate of different types of audio is different, and such as: the sample rate of music VF and video/audio is typically larger than 44.1KHz, and the sample rate that language chats audio is usually less than 16KHz, wherein language chats one kind that audio is speech audio, voice sound Frequency can also include: recorded audio.
Therefore, it if the first preset threshold is 16KHz, when the sample rate of the audio played in advance is less than 16KHz, plays in advance Audio is that language chats audio.
The audio no matter played in advance is that the language in speech audio chats audio or recorded audio, requires to play by voice Mode plays out.
I.e. when the audio played in advance is that language chats audio, audio is chatted to the language by voice play mode and is played out;When When the audio played in advance is recorded audio, equally the recorded audio is played out by voice play mode.
Further, when processor 62 judges that the audio played in advance does not meet the first preset condition, what detection played in advance Whether audio has the first default mark, and first presets when being identified as acquisition recorded audio file to the progress of recorded audio file Label is played by the voice play mode in audio player to pre- if so, the audio played in advance is recorded audio file Audio play out.
If the first preset threshold is 16KHz, when the sample rate of the audio played in advance is not less than the first preset threshold, show The audio types played in advance are that non-language chats audio.
In the case where the audio played in advance is that non-language chats audio, if detecting, the audio of pre- broadcasting has the first pre- bidding Note then shows that the audio of the pre- broadcasting is recorded audio.
It is right when electronic equipment acquires recording file since recording file is directly collected by electronic equipment Recording file is marked, to show the type of the audio file as recording file, therefore, when detecting that audio file has the One default mark, then the audio file is recorded audio file, recorded audio file also need by voice play mode into Row plays.
When processor 62 judges that the audio played in advance does not have the first default mark, the class of the audio played in advance is detected Type, according to the type of the audio played in advance by play mode corresponding with the audio types played in advance in audio player to pre- The audio of broadcasting plays out.
When the sample rate of the audio played in advance is less than the first preset threshold, the audio played in advance is that language chats audio;When pre- The audio of broadcasting has the first default mark, then the audio played in advance is recorded audio;When the audio played in advance sample rate not Less than the first preset threshold, and do not have the first default mark, then the audio of the pre- broadcasting may be music VF, video display sound Frequently, it is also possible to be gaming audio, at this point, detecting again to the audio types of the pre- broadcasting, detecting it is music VF, video display Audio or gaming audio.
When testing result shows that the audio of the pre- broadcasting is music VF, played out by music playing mode;When When testing result shows that the audio of the pre- broadcasting is video display audio, played out by video display play mode;When testing result is aobvious When the audio for showing the pre- broadcasting is gaming audio, played out by game play mode.
Wherein, broadcasting corresponding with the audio types played in advance in electronic equipment is passed through according to the type of the audio played in advance Mode plays out the audio played in advance, can be with specifically:
The dynamic range adjustment of audio relative loudness is carried out according to the type of the audio played in advance, pre- after being adjusted is broadcast Playback frequency, pre- broadcasting audio adjusted is played out.
It is the sound according to the pre- broadcasting when the dynamic range for carrying out audio relative loudness to the audio of the pre- broadcasting adjusts Frequency type is adjusted, such as: for the audio of a certain type, the dynamic adjustment amplitude of relative loudness is larger, needs big In some preset threshold;Alternatively, being directed to another type of audio, the dynamic adjustment amplitude of relative loudness is smaller, needs small In another preset threshold, it is not specifically limited herein.
In addition, processor 62 judges whether the audio played in advance meets the first preset condition, if so, the audio played in advance It, can be with for the first audio types specifically:
Processor 62 judges whether the audio played in advance has the second default mark, and the second default be identified as obtains voice sound When frequency file, to the label that speech audio file carries out, if so, the audio played in advance is speech audio type file, voice Audio types file includes: that language chats audio file and recorded audio file.
When electronic equipment acquires speech audio file, collected speech audio file is marked, to show to have The audio file for having the second default mark is speech audio file, in order to directly by detecting whether audio file has second Default mark is to judge whether the audio file is speech audio file.
Wherein, speech audio type file includes: that language chats audio file and recorded audio file.
The audio played in advance is played out by voice play mode corresponding with the first audio types in electronic equipment, It can be with specifically:
By calling local audio effect processing chip, the corresponding firmware program of load voice play mode so that by with The corresponding voice play mode of first audio types plays out the audio played in advance;Alternatively, calling locally-installed third The portions thereof of the voice output module of square application program, the part of the voice output module based on third party application Program module exports the audio that plays in advance, so that by voice play mode corresponding with the first audio types to playing in advance Audio plays out.
Wherein, third party application can be with are as follows: wechat or QQ.
Either using local audio effect processing chip, or call the voice output of locally-installed third party application The portions thereof of module is all avoided through third party's audio, such as: Doby, SRS or waves, to the audio played in advance The process for optimizing processing avoids the audio to the pre- broadcasting, i.e. the dynamic model of speech audio progress larger range amplitude Adjustment is enclosed, ensure that the result of broadcast of the speech audio.
Electronic equipment disclosed in the present embodiment receives audio play instruction by processor, and audio play instruction includes pre- The audio of broadcasting, when the audio played in advance meets the first preset condition, the audio played in advance is the first audio types, then passes through Voice play mode corresponding with the first audio types plays out the audio played in advance in electronic equipment.This programme is by working as It when the audio played in advance is the first audio types, calls directly voice play mode and the audio played in advance is played out, realize The audio of first audio types is played using individual play mode, is avoided to the audio of first audio types using not It the problem of being suitble to the play mode of the type, so that the audio played in advance is played out with the mode for meeting its type, improves Result of broadcast.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with other The difference of embodiment, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodiment For, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is said referring to method part It is bright.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered Think beyond the scope of this invention.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest scope of cause.

Claims (10)

1. a kind of data processing method is applied to electronic equipment characterized by comprising
Audio play instruction is received, the audio play instruction includes the audio of pre- broadcasting;
Judge whether the audio of the pre- broadcasting meets the first preset condition;
If so, the audio of the pre- broadcasting be the first audio types, by the electronic equipment with first audio class The corresponding voice play mode of type plays out the audio of the pre- broadcasting, specifically: by calling local audio effect processing core Piece, the corresponding firmware program of load voice play mode, so that being played by voice corresponding with first audio types Mode plays out the audio of the pre- broadcasting, alternatively, calling the voice output mould of locally-installed third party application The portions thereof output of the portions thereof of block, the voice output module based on the third party application is described pre- The audio of broadcasting so that by voice play mode corresponding with first audio types to the audio of the pre- broadcasting into Row plays;
Wherein, whether the audio for judging the pre- broadcasting meets the first preset condition, if so, the audio of the pre- broadcasting For the first audio types, comprising:
Judge the sample rate of the audio of the pre- broadcasting whether less than the first preset threshold;
If so, the audio of the pre- broadcasting is that language chats audio file.
2. the method according to claim 1, wherein further include:
When the audio of the pre- broadcasting does not meet the first preset condition, detect the pre- broadcasting audio whether have it is first pre- Bidding is known, and described first presets the label for being identified as and carrying out when obtaining recorded audio file to the recorded audio file;
If so, the audio of the pre- broadcasting is recorded audio file, pass through the voice play mode pair in the electronic equipment The audio of the pre- broadcasting plays out.
3. according to the method described in claim 2, it is characterized by further comprising:
When the audio of the pre- broadcasting does not have the first default mark, the type of the audio of the pre- broadcasting is detected;
Passed through according to the type of the audio of the pre- broadcasting corresponding with the audio types of the pre- broadcasting in the electronic equipment Play mode plays out the audio of the pre- broadcasting.
4. according to the method described in claim 3, it is characterized in that, the type of the audio according to the pre- broadcasting passes through institute It states play mode corresponding with the audio types of the pre- broadcasting in electronic equipment to play out the audio of the pre- broadcasting, wrap It includes:
The dynamic range adjustment of audio relative loudness is carried out according to the type of the audio of the pre- broadcasting, pre- after being adjusted is broadcast Playback frequency;
The pre- broadcasting audio adjusted is played out.
5. the method according to claim 1, wherein whether the audio for judging the pre- broadcasting meets first Preset condition, if so, the audio of the pre- broadcasting is the first audio types, specifically:
Judge whether the audio of the pre- broadcasting has the second default mark, the described second default be identified as obtains speech audio text When part, to the label of speech audio file progress;
If so, the audio of the pre- broadcasting is speech audio type file, the speech audio type file includes: that language chats sound Frequency file and recorded audio file.
6. a kind of electronic equipment characterized by comprising audio player and processor, in which:
The audio player is for playing out audio;
The processor receives audio play instruction, and the audio play instruction includes the audio of pre- broadcasting, judges described pre- broadcast Whether the audio put meets the first preset condition, if so, the audio of the pre- broadcasting is the first audio types, passes through the sound Voice play mode corresponding with first audio types plays out the audio of the pre- broadcasting in frequency player, specifically Are as follows: by calling local audio effect processing chip, the corresponding firmware program of load voice play mode, so that by with described the The corresponding voice play mode of one audio types plays out the audio of the pre- broadcasting, alternatively, calling locally-installed the The portions thereof of the voice output module of tripartite's application program, the voice output module based on the third party application Portions thereof export the audio of the pre- broadcasting played so that passing through voice corresponding with first audio types Mode plays out the audio of the pre- broadcasting;
Wherein, the processor judges whether the audio of the pre- broadcasting meets the first preset condition, if so, the pre- broadcasting Audio be the first audio types, comprising:
The processor judges the sample rate of the audio of the pre- broadcasting whether less than the first preset threshold, if so, described pre- The audio of broadcasting is that language chats audio file.
7. electronic equipment according to claim 6, which is characterized in that the processor is also used to:
When the audio for judging the pre- broadcasting does not meet the first preset condition, whether the audio for detecting the pre- broadcasting has the One default mark, described first presets the label for being identified as and carrying out when obtaining recorded audio file to the recorded audio file, If so, the audio of the pre- broadcasting is recorded audio file, by the voice play mode in the audio player to institute The audio for stating pre- broadcasting plays out.
8. electronic equipment according to claim 7, which is characterized in that the processor is also used to:
When the audio for judging the pre- broadcasting does not have the first default mark, the type of the audio of the pre- broadcasting, root are detected Type according to the audio of the pre- broadcasting passes through broadcasting corresponding with the audio types of the pre- broadcasting in the audio player Mode plays out the audio of the pre- broadcasting.
9. electronic equipment according to claim 8, which is characterized in that the processor is according to the audio of the pre- broadcasting Type is by play mode corresponding with the audio types of the pre- broadcasting in the audio player to the sound of the pre- broadcasting Frequency plays out, comprising:
The processor is adjusted according to the dynamic range that the type of the audio of the pre- broadcasting carries out audio relative loudness, is adjusted Pre- broadcasting audio after whole plays out the pre- broadcasting audio adjusted by the audio player.
10. electronic equipment according to claim 6, which is characterized in that the processor judges the audio of the pre- broadcasting Whether first preset condition is met, if so, the audio of the pre- broadcasting is the first audio types, specifically:
The processor judges whether the audio of the pre- broadcasting has the second default mark, and described second default is identified as acquisition When speech audio file, to the label that the speech audio file carries out, if so, the audio of the pre- broadcasting is speech audio Type file, the speech audio type file include: that language chats audio file and recorded audio file.
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 CN106066782A (en) 2016-11-02
CN106066782B true 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)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109445863B (en) * 2018-11-01 2021-12-17 郑州云海信息技术有限公司 Data processing method, device, equipment and medium based on FPGA
CN109686371A (en) * 2018-12-25 2019-04-26 广州灵聚信息科技有限公司 A kind of music intelligent playing method and device
CN110891216A (en) * 2019-11-05 2020-03-17 南京中感微电子有限公司 Earphone device
CN111601157B (en) * 2020-05-11 2022-06-14 海信视像科技股份有限公司 Audio output method and display device

Citations (3)

* 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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130061279A1 (en) * 2010-05-14 2013-03-07 Panasonic Corporation Digital broadcast reception device and digital broadcast reception method

Patent Citations (3)

* 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
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

Also Published As

Publication number Publication date
CN106066782A (en) 2016-11-02

Similar Documents

Publication Publication Date Title
CN106066782B (en) A kind of data processing method and electronic equipment
US8654993B2 (en) Portable audio device providing automated control of audio volume parameters for hearing protection
JP4860748B2 (en) Hearing aid fitting method, hearing aid fitting system, and hearing aid
US20080276793A1 (en) Beat enhancement device, sound output device, electronic apparatus and method of outputting beats
US8903097B2 (en) Information processing device and method and program
KR20130012073A (en) User-specific noise suppression for voice quality improvements
CN107124149A (en) A kind of method for regulation of sound volume, device and equipment
CN112954115B (en) Volume adjusting method and device, electronic equipment and storage medium
CN105187602B (en) A kind of adjusting method and device of terminal volume
CN104020979B (en) A kind of mobile terminal and method of adaptive desktop selection audio
CN110493691A (en) Abnormal sound detection method, device and electronic equipment
CN108449496A (en) Voice communication data detection method, device, storage medium and mobile terminal
CN108449506A (en) Voice communication data processing method, device, storage medium and mobile terminal
CN108989946A (en) Detection and reduction feedback
CN107547732A (en) A kind of media play volume adjusting method, device, terminal and storage medium
US20160336023A1 (en) Methods and apparatus for improving understandability of audio corresponding to dictation
US8571235B2 (en) Method and device for providing a plurality of audio files with consistent loudness levels but different audio characteristics
KR101722686B1 (en) Method and Apparatus for outputting bell sound
CN108040181A (en) Audio frequency playing method, device and electronic equipment
CN1983804A (en) Audio-frequency processor and volume management
CN107741840A (en) Music processing method, equipment and computer-readable recording medium
US20040264705A1 (en) Context aware adaptive equalization of user interface sounds
CN116132869A (en) Earphone volume adjusting method, earphone and storage medium
CN1941619B (en) Volume management system and method
US20210373845A1 (en) Method for adjusting sound playback and portable device thereof

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