CN106157962B - A kind of sound effect treatment method and mobile terminal - Google Patents
A kind of sound effect treatment method and mobile terminal Download PDFInfo
- Publication number
- CN106157962B CN106157962B CN201610438820.8A CN201610438820A CN106157962B CN 106157962 B CN106157962 B CN 106157962B CN 201610438820 A CN201610438820 A CN 201610438820A CN 106157962 B CN106157962 B CN 106157962B
- Authority
- CN
- China
- Prior art keywords
- audio
- target
- source
- mobile terminal
- standard
- 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
Links
Classifications
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
- G10L19/00—Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
- G10L19/04—Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis using predictive techniques
- G10L19/16—Vocoder architecture
- G10L19/167—Audio streaming, i.e. formatting and decoding of an encoded audio signal representation into a data stream for transmission or storage purposes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/16—Sound input; Sound output
- G06F3/165—Management of the audio stream, e.g. setting of volume, audio stream path
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
- G10L25/00—Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
- G10L25/48—Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use
- G10L25/51—Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use for comparison or discrimination
Abstract
The embodiment of the invention discloses a kind of sound effect treatment method and mobile terminal, this method includes:Source audio data are obtained, source audio data are handled using target audio corresponding current audio effect processing algorithm, current goal voice data is obtained;Compare whether standard target voice data of the current goal voice data with prestoring matches, wherein, standard target voice data is that source audio data pre-process what is obtained by target audio;If so, then confirming that target audio is effective;If it is not, then confirming that target audio is invalid, restarts target audio.Implement the embodiment of the present invention, the target audio can be restarted after the failure of target audio, so that, the probability of reduction audio failure.
Description
Technical field
The present invention relates to audio signal processing technique field, and in particular to a kind of sound effect treatment method and mobile terminal.
Background technology
At present, with mobile terminal (such as:Mobile phone, tablet personal computer etc.) gradually popularization, the integrated function of mobile terminal
More and more, in order to meet higher pursuit of the user to audio, mobile terminal is respectively provided with audio effect processing function.For example, mobile whole
End can to music, recording, film sound tracks etc. carry out audio effect processing, with reach enhancing music effect, strengthen sound the sense of reality,
Render the purpose of scene atmosphere.However, because operating system exception in mobile terminal or third-party application software are incompatible etc.
It etc. reason, then may cause during audio effect processing, the situation of audio failure can be run into.
The content of the invention
The embodiment of the present invention provides a kind of sound effect treatment method and mobile terminal, can be after audio failure, to the audio
Restarted, so that, the probability of reduction audio failure.
First aspect of the embodiment of the present invention provides a kind of sound effect treatment method, including:
Source audio data are obtained, the source audio data are carried out using target audio corresponding current audio effect processing algorithm
Processing, obtains current goal voice data;
Compare whether standard target voice data of the current goal voice data with prestoring matches, wherein, institute
The standard target voice data source audio data are stated to obtain by target audio pretreatment;
If so, then confirming that the target audio is effective;
If it is not, then confirming that the target audio is invalid, the target audio is restarted.
It is described before the acquisition source audio data with reference in a first aspect, in the first implementation of first aspect
Method also includes:
Gather source audio data;
The source audio data are pre-processed using target audio corresponding standard audio Processing Algorithm, standard is obtained
Target audio data;
Preserve the standard target voice data.
With reference to the first implementation of first aspect, in second of implementation of first aspect, the utilization mesh
Mark with phonetic symbols imitates corresponding standard audio Processing Algorithm and the source audio data is pre-processed, and obtains standard target voice data,
Including:
Pulse code modulation pcm encoder is carried out to the source audio data, source PCM codes are obtained;
The source PCM codes are handled using the target audio corresponding standard audio Processing Algorithm, standard is obtained
PCM codes.
With reference to second of implementation of first aspect, in the third implementation of first aspect, the utilization mesh
Mark with phonetic symbols imitates corresponding current audio effect processing algorithm and the source audio data is handled, and obtains current goal voice data, wraps
Include:
The pcm encoder is carried out to the source audio data, the source PCM codes are obtained;
The source PCM codes are handled using the target audio corresponding current audio effect processing algorithm, obtain current
Target PCM codes.
It is described to compare institute in the 4th kind of implementation of first aspect with reference to the third implementation of first aspect
State whether standard target voice data of the current goal voice data with prestoring matches, including:
Compare whether the current goal PCM codes match with the standard PCM codes;
If the current goal PCM codes are matched with the standard PCM codes, the confirmation target audio is performed effective
The step of;
If the current goal PCM codes and the standard PCM codes are mismatched, perform the confirmation target audio without
Effect, the step of restarting the target audio.
Second aspect of the embodiment of the present invention provides a kind of mobile terminal, including:
Acquiring unit, for obtaining source audio data;
Processing unit, at using the corresponding current audio effect processing algorithm of target audio to the source audio data
Reason, obtains current goal voice data;
Comparing unit, for whether comparing the current goal voice data and the standard target voice data that prestores
Matching, wherein, the standard target voice data source audio data are obtained by target audio pretreatment;
Confirmation unit, during for being when the comparing unit comparative result, confirms that the target audio is effective;
Unit is restarted in confirmation, for when the comparing unit comparative result is no, confirming that the target audio is invalid, weight
Open the target audio.
With reference to second aspect, in the first implementation of second aspect, the mobile terminal also includes:
Collecting unit, for before the acquiring unit obtains source audio data, gathering source audio data;
Pretreatment unit, for being carried out using the corresponding standard audio Processing Algorithm of target audio to the source audio data
Pretreatment, obtains standard target voice data;
Memory cell, for preserving the standard target voice data.
With reference to the first implementation of second aspect, in second of implementation of second aspect, the pretreatment
Unit includes:
First coded sub-units, for carrying out pulse code modulation pcm encoder to the source audio data, obtain source PCM
Code;
First processing subelement, for utilizing the corresponding standard audio Processing Algorithm of the target audio to the source PCM
Code is handled, and obtains standard PCM codes.
With reference to second of implementation of second aspect, in the third implementation of second aspect, the processing is single
Member includes:
Second coded sub-units, for carrying out the pcm encoder to the source audio data, obtain the source PCM codes;
Second processing subelement, for utilizing the corresponding current audio effect processing algorithm of the target audio to the source PCM
Code is handled, and obtains current goal PCM codes.
It is described relatively more single in the 4th kind of implementation of second aspect with reference to the third implementation of second aspect
Member includes comparing subunit, wherein:
The comparing subunit, for comparing whether the current goal PCM codes match with the standard PCM codes;
The confirmation unit, is additionally operable to when the current goal PCM codes are matched with the standard PCM codes, confirms described
Target audio is effective;
Unit is restarted in confirmation, is additionally operable to, when the current goal PCM codes and standard PCM codes mismatch, confirm institute
State target audio invalid, restart the target audio.
The third aspect of the embodiment of the present invention provides a kind of mobile terminal, including memory, baseband chip, radio-frequency module,
Peripheral system and sensor, wherein, the memory be used for store code or instruction, the baseband chip include processor, when
Clock module and power management module, the processor is by calling the code in the memory or instructing to perform such as first party
Any portion or Overall Steps in face and its possible embodiment.
Implement the embodiment of the present invention, have the advantages that:
As can be seen that a kind of sound effect treatment method and mobile terminal that are provided according to the present invention, mobile terminal can be utilized
Whether former voice data test target audio is effective, when current goal sound of the source audio data after above-mentioned target audio effect processing
When frequency is mismatched according to the standard target voice data with prestoring, it is determined that above-mentioned target audio is invalid, restarts above-mentioned mesh
Mark with phonetic symbols is imitated, and implements the embodiment of the present invention, can restart the target audio after the failure of target audio, so that, reduction audio failure
Probability.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of flow chart of sound effect treatment method disclosed in the embodiment of the present invention;
Fig. 2 is the flow chart of another sound effect treatment method disclosed in the embodiment of the present invention;
Fig. 3 is a kind of structural representation of mobile terminal disclosed in the embodiment of the present invention;
Fig. 4 is the structural representation of another mobile terminal disclosed in the embodiment of the present invention;
Fig. 5 is the structural representation of another mobile terminal disclosed in the embodiment of the present invention;
Fig. 6 is the structural representation of another mobile terminal disclosed in the embodiment of the present invention;
Fig. 7 is the structural representation of another mobile terminal disclosed in the embodiment of the present invention;
Fig. 8 is the structural representation of another mobile terminal disclosed in the embodiment of the present invention.
Embodiment
The embodiment of the present invention provides a kind of sound effect treatment method and mobile terminal, can be after audio failure, to the audio
Restarted, so that, the probability of reduction audio failure.
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
Site preparation is described, it is clear that described embodiment is a part of embodiment of the invention, rather than whole embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made
Example, belongs to the scope of protection of the invention.
Term " first ", " second ", " the 3rd " in description and claims of this specification and the accompanying drawing and "
Four " etc. be to be used to distinguish different objects, rather than for describing particular order.In addition, term " comprising " and " having " and it
Any deformation, it is intended that covering non-exclusive is included.For example contain the process of series of steps or unit, method, be
The step of system, product or equipment are not limited to list or unit, but the step of alternatively also include not listing or list
Member, or alternatively also include for the intrinsic other steps of these processes, method, product or equipment or unit.
Referenced herein " embodiment " is it is meant that the special characteristic, structure or the characteristic that describe can be wrapped in conjunction with the embodiments
In at least one embodiment of the present invention.Each position in the description occur the phrase might not each mean it is identical
Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and
Implicitly understand, embodiment described herein can be combined with other embodiments.
Mobile terminal described by the embodiment of the present invention can include smart mobile phone (such as Android phone, iOS mobile phones,
Windows Phone mobile phones etc.), tablet personal computer, palm PC, notebook computer, mobile internet device (MID, Mobile
Internet Devices) or Wearable etc., above-mentioned mobile terminal is only citing, and non exhaustive, including but not limited to upper
State mobile terminal.
It is to be understood that audio is exactly as the effect manufactured by sound, the sense of reality or atmosphere for promoting scene,
And it is added on the noise on vocal cords or sound.So-called sound then includes music and effect sound.Audio may include digital audio, ring
Border audio, MP3 audios (common audio, professional audio etc.).Therefore, audio is the artificial sound for manufacturing or strengthening, and be can be used to
Strengthen the art to film, electronic game, music or other media or the acoustic processing of other guide.Based on determining audio
Justice, default audio can be:The audio that the audio downloaded in network or user record.Similarly, in the embodiment of the present invention, target sound
Effect is also similar with default audio.
Referring to Fig. 1, Fig. 1 is a kind of flow chart of sound effect treatment method disclosed in the embodiment of the present invention.As shown in figure 1,
Sound effect treatment method described in the present embodiment, comprises the following steps.
101st, acquisition for mobile terminal source audio data, using the corresponding current audio effect processing algorithm of target audio to source audio
Data are handled, and obtain current goal voice data.
In the embodiment of the present invention, source audio data are the section audio files prestored in mobile terminal, for example, system
The tinkle of bells, recording file, MP3 music, film sound tracks etc..After acquisition for mobile terminal source audio data, in order to detect target audio
Effectively whether, mobile terminal is handled source audio data first with target audio, i.e., source audio data are passed through into target
The processing of audio, obtains current goal voice data (data after target audio effect processing), mobile terminal utilizes target sound
Imitate and be specially to the mode that source audio data are handled:Mobile terminal utilizes the corresponding current audio effect processing algorithm of target audio
Source audio data are handled, current goal voice data is obtained, current goal voice data is that mobile terminal utilizes target
Audio is to the result that is obtained after source audio data processing.
102nd, mobile terminal compares whether standard target voice data of the current goal voice data with prestoring matches,
If so, step 103 is then performed, if it is not, then performing step 104;Wherein, standard target voice data is source audio data through looking over so as to check
Mark with phonetic symbols effect pretreatment is obtained.
In the embodiment of the present invention, mobile terminal is using the corresponding current audio effect processing algorithm of target audio to source audio data
Handled, obtained after current goal voice data, mobile terminal compares current goal voice data and the mark prestored
Whether quasi- target audio data match, wherein, standard target voice data is that above-mentioned source audio data are located in advance by target audio
What reason was obtained, standard target voice data is what mobile terminal was prestored, before step 102 is performed, when mobile terminal is true
When the audio that sets the goal is effective, above-mentioned source audio data are handled using above-mentioned target audio, you can obtain standard target sound
Frequency evidence.Standard target voice data is one that mobile terminal is obtained using effective target audio to source audio data processing
As a result, and store in the terminal, when whether the above-mentioned target audio of subsequent detection effective, utilize identical source audio data
(i.e. above-mentioned source audio data) obtain result (i.e. above-mentioned current goal voice data) after above-mentioned target audio effect processing
It is compared with standard target voice data and may know that whether above-mentioned target audio is effective.When above-mentioned current goal voice data
During with above-mentioned standard target audio Data Matching, then it is assumed that above-mentioned target audio effectively, performs step 103;When above-mentioned current mesh
When marking voice data with above-mentioned standard target audio data mismatch, then it is assumed that above-mentioned target audio is invalid, performs step 104.
103rd, mobile terminal confirms that target audio is effective.
104th, mobile terminal confirms that target audio is invalid, restarts target audio.
Alternatively, preset time can be set in mobile terminal, if in preset time, restarting the failure of target audio, then, carry
Show that user restarts mobile terminal or decides whether to restart mobile terminal (example automatically according to the current time in system of mobile terminal
Such as, if the current time in system is the time of having a rest, such as 1:00 AM to 6 points of morning need not then point out user, directly restart it is mobile eventually
End, is such as at 9 points in the morning between 5 PM, then prompting the user whether to restart movement if the current time in system is the working time
Terminal.), if in preset time, restarting target audio effective, then, the target audio is played, or, use the target sound
Effect goes to perform other operations, for example, editing the target audio.Wherein, preset time may include but be not limited only to:1 minute, 5 points
Clock, 10 minutes, 1 hour etc..
Alternatively, settable preset of mobile terminal restarts number of times, if restarting default in number of times, restarts the mistake of target audio
Effect, then, point out user to restart mobile terminal, if restarting default in number of times, restart target audio effective, then, playing should
Target audio, or, go to perform other operations using the target audio, for example, editing the target audio.Wherein, preset time
It may include but be not limited only to:1 time, 5 times, 10 times etc..
Alternatively, mobile terminal can be set preset time and it is default restarts number of times, if in preset time or default restarting
One in number of times when reaching, restarts the failure of target audio, then, point out user to restart mobile terminal, if being arrived in preset time
Reach and preset restart number of times reach do not reach before, restart target audio effective, then, play the target audio, or, make
Gone to perform other operations with the target audio, for example, editing the target audio.
In the embodiment of the present invention, when mobile terminal confirms that target audio is invalid, target audio is restarted.Target audio can be with
It is the section audio processing routine that system is carried in mobile terminal, with certain audio effect processing algorithm, when target audio correspondence
Audio frequency process program when there is abnormal or mistake, target audio can fail, and restart target audio, can restart target audio pair
The audio frequency process program answered, reaches the purpose for repairing target audio.Certainly, directly restart mobile terminal and can also reach and restart mesh
The purpose of mark with phonetic symbols effect.
There is provided a kind of sound effect treatment method in method shown in Fig. 1, mobile terminal can utilize former voice data test
Whether target audio is effective, when current goal voice data of the source audio data after above-mentioned target audio effect processing with depositing in advance
When the standard target voice data of storage is mismatched, it is determined that above-mentioned target audio is invalid, restarts above-mentioned target audio, by implementing
Method shown in Fig. 1, can detect that target audio fails and carries out restarting target audio, to reduce the several of target audio failure
Rate.
There can be a variety of audios in mobile terminal, for example, for audio file (audio file of such as MP3 format),
Just there is " the target audio " mentioned in the audio of the plurality of optional such as " rock and roll ", " prevalence ", " jazz ", the embodiment of the present invention be only
One kind in a variety of audios, for all audios in mobile terminal, can be detected using the method shown in Fig. 1.
Referring to Fig. 2, Fig. 2 is the flow chart of another sound effect treatment method disclosed in the embodiment of the present invention.Such as Fig. 2 institutes
Show that the sound effect treatment method described in the present embodiment comprises the following steps.
201st, mobile terminal collection source audio data.
In the embodiment of the present invention, mobile terminal can directly gather the source audio data of storage in the terminal, for example,
System the tinkle of bells, recording file, MP3 music, film sound tracks etc., are adopted in the audio file that mobile terminal can also be downloaded from network
Collect a section audio data, gather source audio data in one section of voice that mobile terminal can also be inputted from user, or from user
Source audio data are gathered in the one section of video shot.After mobile terminal collection source audio data, source audio data storage is existed
In the nonvolatile memory of mobile terminal.
202nd, mobile terminal is pre-processed using the corresponding standard audio Processing Algorithm of target audio to source audio data,
Obtain standard target voice data.
In the embodiment of the present invention, when target audio is effective (for example, when restarting target audio), mobile terminal utilizes target
The corresponding standard audio Processing Algorithm of audio is pre-processed to source audio data, obtains standard target voice data.
Optionally, step 202 can include:
11) mobile terminal carries out pulse code modulation pcm encoder to source audio data, obtains source PCM codes;
12) mobile terminal is handled source PCM codes using the corresponding standard audio Processing Algorithm of target audio, is marked
Quasi- PCM codes.
In the embodiment of the present invention, pulse code modulation (English:Pulse Code Modulation;Abbreviation:PCM) it is pair
The analog signals such as voice are sampled, quantify, encode after obtained one group of binary code stream.Mobile terminal enters to source audio data
After row pcm encoder, obtain source PCM codes, source PCM codes are the corresponding PCM codes of source audio data, mobile terminal obtain source PCM codes it
Afterwards, mobile terminal is handled source PCM codes using the corresponding standard audio Processing Algorithm of target audio, obtains standard PCM codes,
Standard PCM codes are source PCM codes by obtaining PCM codes after target audio effect processing.By implementation steps 11) and step 12), can be with
Source audio data are converted into standard PCM codes, because PCM is binary code stream, conveniently subsequently PCM codes can be contrasted.
203rd, mobile terminal preserves standard target voice data.
In the embodiment of the present invention, mobile terminal is obtained after standard target voice data, and mobile terminal preserves standard target
Voice data, mobile terminal standard target voice data can be stored in mobile terminal nonvolatile memory (for example,
Flash in).
Optionally, step 203 can include:Mobile terminal obtains source audio data by effective target audio effect processing
Standard PCM codes be stored in the nonvolatile memory of mobile terminal.
204th, acquisition for mobile terminal source audio data, using the corresponding current audio effect processing algorithm of target audio to source audio
Data are handled, and obtain current goal voice data.
In the embodiment of the present invention, when whether it is effective audio that mobile terminal needs detection target audio, mobile terminal can
To obtain source audio data from the nonvolatile memory of mobile terminal, calculated using the corresponding current audio effect processing of target audio
Method is handled source audio data, obtains current goal voice data.Current audio effect processing algorithm is if there is exception, with mark
Quasi- audio effect processing algorithm is different, then target audio fails, if current audio effect processing algorithm does not occur exception, at standard audio
Adjustment method is identical, then target audio is effective.
Optionally, step 204 can include:
21) mobile terminal carries out pcm encoder to source audio data, obtains source PCM codes;
22) mobile terminal is handled source PCM codes using the corresponding current audio effect processing algorithm of target audio, is worked as
Preceding target PCM codes.
In the embodiment of the present invention, source PCM codes are the corresponding PCM codes of source audio data, mobile terminal obtain source PCM codes it
Afterwards, mobile terminal is handled source PCM codes using the corresponding current audio effect processing algorithm of target audio, obtains current goal
PCM codes.Current audio effect processing algorithm is different from standard audio Processing Algorithm if there is exception, then target audio fails, currently
If audio effect processing algorithm does not occur exception, identical with standard audio Processing Algorithm, then target audio is effective.Pass through implementation steps
21) with step 22), source audio data can be converted into current goal PCM codes, because PCM is binary code stream, can be facilitated
Subsequently standard PCM codes are contrasted with current goal PCM codes.It should be noted that in order to ensure the uniformity compared, step
21) pcm encoder and step 11 in) in the coding parameter that is used of pcm encoder it is identical.
205th, mobile terminal compares whether standard target voice data of the current goal voice data with prestoring matches,
If so, step 206 is then performed, if it is not, then performing step 207;Wherein, standard target voice data is source audio data through looking over so as to check
Mark with phonetic symbols effect pretreatment is obtained.
Optionally, step 205 can include:
31) mobile terminal compares whether current goal PCM codes match with standard PCM codes;
If 32) current goal PCM codes are matched with standard PCM codes, mobile terminal confirms that target audio is effective;
If 33) current goal PCM codes are mismatched with standard PCM codes, mobile terminal confirms that target audio is invalid, restarts target
Audio.
In the embodiment of the present invention, mobile terminal compares whether current goal PCM codes match with standard PCM codes, wherein, standard
PCM codes are to be obtained after source audio data pass through effective target audio effect processing, and current goal PCM codes pass through for source audio data
Cross after the processing of target sound effect and obtain, in order to detect whether above-mentioned target audio effective, can compare current goal PCM codes and
Whether standard PCM codes match, if current goal PCM codes are matched with standard PCM codes, and mobile terminal confirms above-mentioned target audio
Effectively, if current goal PCM codes are mismatched with standard PCM codes, mobile terminal confirms above-mentioned target audio failure.Pass through reality
Apply step 31), 32) and 33), source audio data are passed through to the current goal PCM codes that are obtained after target audio effect processing and by source
Voice data passes through the standard PCM codes obtained after effective target audio effect processing and is compared, and source audio data can be united
One, which is converted to PCM, is compared, and conveniently compares, and improves the detection whether effective accuracy rate of target audio.
206th, mobile terminal confirms that target audio is effective.
207th, mobile terminal confirms that target audio is invalid, restarts target audio.
Step 206 to step 207 in Fig. 2 may refer to step 103 in Fig. 1 to step 104, the implementation shown in Fig. 2
Example is repeated no more.
In the embodiment of the present invention, obtained standard mesh is handled by effective target audio progress to source audio data in advance
Mark voice data is preserved, convenient subsequently to be contrasted, and (is all source sound using identical audio when subsequently being contrasted
Frequently), identical audio (being all target audio) is compared analysis, when target audio fails, restarts the target audio, from
And, the probability of reduction audio failure.
Referring to Fig. 3, Fig. 3 is a kind of structural representation of mobile terminal disclosed in the embodiment of the present invention.As shown in figure 3,
Mobile terminal described in the present embodiment, including acquiring unit 301, processing unit 302, comparing unit 303, confirmation unit
304 and confirmation restart unit 305, wherein:
Acquiring unit 301, for obtaining source audio data.
Processing unit 302, at using the corresponding current audio effect processing algorithm of target audio to source audio data
Reason, obtains current goal voice data.
Comparing unit 303, for whether comparing current goal voice data and the standard target voice data that prestores
Matching, wherein, standard target voice data is that source audio data pre-process what is obtained by target audio.
Confirmation unit 304, during for being when the comparative result of comparing unit 303, confirms that target audio is effective.
Unit 305 is restarted in confirmation, for when the comparative result of comparing unit 303 is no, confirming that target audio is invalid, restarting
Target audio.
By the mobile terminal shown in implementing Fig. 3, whether mobile terminal can utilize former voice data test target audio
Effectively, when current goal voice data of the source audio data after above-mentioned target audio effect processing and the standard target prestored
When voice data is mismatched, it is determined that above-mentioned target audio is invalid, restarts above-mentioned target audio, it can detect that target audio fails
And recover.
Also referring to Fig. 4, Fig. 4 is the structural representation of another mobile terminal disclosed in the embodiment of the present invention.Fig. 4 is
Further optimization is obtained on Fig. 3 basis, as shown in figure 4, mobile terminal described in the present embodiment, except including
Acquiring unit 301, processing unit 302, comparing unit 303, confirmation unit 304 and confirmation shown in Fig. 3 restart unit 305 it
Outside, in addition to collecting unit 306, pretreatment unit 307 and memory cell 308, wherein:
Collecting unit 306, for before acquiring unit 301 obtains source audio data, gathering source audio data.
Pretreatment unit 307, for being carried out using the corresponding standard audio Processing Algorithm of target audio to source audio data
Pretreatment, obtains standard target voice data.
Optionally, as shown in figure 5, pretreatment unit 307 includes the first coded sub-units 3071 and the first processing subelement
3072, wherein:
First coded sub-units 3071, for carrying out pulse code modulation pcm encoder to source audio data, obtain source PCM
Code;
First processing subelement 3072, for being entered using the corresponding standard audio Processing Algorithm of target audio to source PCM codes
Row processing, obtains standard PCM codes.
By implementing the mobile terminal shown in Fig. 5, source audio data can be converted into standard PCM codes by mobile terminal, by
It is binary code stream in PCM, conveniently subsequently PCM codes can be contrasted.
Memory cell 308, for preserving standard target voice data.
Acquiring unit 301, for obtaining source audio data.
Processing unit 302, at using the corresponding current audio effect processing algorithm of target audio to source audio data
Reason, obtains current goal voice data.
Optionally, as shown in fig. 6, processing unit 302 includes the second coded sub-units 3021 and second processing subelement
3022, wherein:
Second coded sub-units 3021, for carrying out pcm encoder to source audio data, obtain source PCM codes;
Second processing subelement 3022, for being entered using the corresponding current audio effect processing algorithm of target audio to source PCM codes
Row processing, obtains current goal PCM codes.
By implementing the mobile terminal shown in Fig. 6, source audio data can be converted into current goal PCM by mobile terminal
Code, because PCM is binary code stream, conveniently subsequently can be contrasted to standard PCM codes with current goal PCM codes.Need note
Meaning, in order to ensure in the uniformity compared, the first coded sub-units 3071 in pcm encoder and the second coded sub-units 3021
The coding parameter that pcm encoder is used is identical.
Comparing unit 303, for whether comparing current goal voice data and the standard target voice data that prestores
Matching, wherein, standard target voice data is that source audio data pre-process what is obtained by target audio.
Optionally, as shown in fig. 7, comparing unit 303 includes comparing subunit 3031, wherein:
Comparing subunit 3031, for comparing whether current goal PCM codes match with standard PCM codes;
Confirmation unit 304, is additionally operable to when current goal PCM codes are matched with standard PCM codes, confirms that target audio is effective;
Unit 305 is restarted in confirmation, is additionally operable to, when current goal PCM codes and standard PCM codes mismatch, confirm target audio
It is invalid, restart target audio.
By implementing the mobile terminal shown in Fig. 7, mobile terminal passes through source audio data to be obtained after target audio effect processing
To current goal PCM codes with by source audio data pass through effective target audio effect processing after obtain standard PCM codes progress
Compare, source audio data can be uniformly converted to PCM and be compared, conveniently compared, whether effective improve detection target audio
Accuracy rate.
Confirmation unit 304, during for being when the comparative result of comparing unit 303, confirms that target audio is effective.
Unit 305 is restarted in confirmation, for when the comparative result of comparing unit 303 is no, confirming that target audio is invalid, restarting
Target audio.
By implementing the mobile terminal shown in Fig. 4, mobile terminal passes through effective target audio to source audio data in advance
Progress handles obtained standard target voice data and preserved, convenient subsequently to be contrasted, when subsequently being contrasted, using phase
Same audio (being all source audio), identical audio (being all target audio) is compared analysis, when target audio fails, weight
The target audio is opened, so that, the probability of reduction audio failure.
Referring to Fig. 8, Fig. 8 is the structural representation of another mobile terminal disclosed in the embodiment of the present invention.Such as Fig. 8 institutes
Show, the mobile terminal 80 (mobile terminal 80 can be mobile phone) described in the present embodiment, including at least one memory 801,
Baseband chip 802, radio-frequency module 803, peripheral system 804 and sensor 805.Wherein, memory 801 is used to store operation system
System, network communication program, user interface program, detection audio failure program etc.;Baseband chip 802 includes at least one processor
8021, such as CPU, clock module 8022 and power management module 8023;Peripheral system 804 includes audio input device 8042
(for example, microphone), audio output device 8043 (for example, loudspeaker), touch display screen controller 8044 and sensor management
Module 8045, correspondingly, in addition to audio input circuit 8047, audio output circuit 8048 and touch display screen 8049;Enter one
Step ground, sensor 805 can include light sensor, acceleration transducer etc., sum it up, sensor 805 can regard actual
Need to increase or reduce;Memory 801 can be high-speed RAM memory or non-labile memory (non-
Volatile memory), for example, at least one magnetic disk storage.It is remote that memory 805 optionally can also be that at least one is located at
From the storage device of aforementioned processor 8021.
Memory 801 can be used for store instruction and data, and memory 801 can mainly include store instruction area and data storage
Area, wherein, instruction that store instruction area can be needed for storage program area, at least one function etc.;Above-mentioned instruction can make processor
8021 perform following methods, and specific method includes:Source audio data are obtained, are calculated using the corresponding current audio effect processing of target audio
Method is handled source audio data, obtains current goal voice data;Compare current goal voice data and prestore
Whether standard target voice data matches, wherein, standard target voice data is that source audio data are pre-processed by target audio
Obtain;If so, then confirming that target audio is effective;If it is not, then confirming that target audio is invalid, restarts target audio.
Processor 8021 is the control centre of mobile terminal 80, utilizes various interfaces and the whole mobile terminal 80 of connection
Various pieces, by operation or perform and be stored in software program and/or module in memory 801, and call and be stored in
Data in memory 801, perform the various functions and processing data of mobile terminal 80, so as to carry out entirety to mobile terminal 80
Monitoring.Optionally, processor 8021 may include one or more processing units;Wherein, application processor mainly handles operation system
System, user interface and application program etc..In embodiments of the present invention, processor 8021 be additionally operable to call instruction in memory and
Data (such as source audio data) are to realize following operation:Source audio data are obtained, at the corresponding current audio of target audio
Adjustment method is handled source audio data, obtains current goal voice data;Compare current goal voice data with depositing in advance
Whether the standard target voice data of storage matches, wherein, standard target voice data is that source audio data are pre- by target audio
What processing was obtained;If so, then confirming that target audio is effective;If it is not, then confirming that target audio is invalid, restarts target audio.
Touch display screen 8044 can be used for showing the information inputted by user or be supplied to the information of user and movement whole
The various menus at end 80.Touch display screen 8044 may include contact panel and display panel, optionally, can use LCD
(Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, You Jifa
Optical diode) etc. form configure display panel.Further, contact panel can cover display panel, when contact panel detection
To after the touch operation on or near it, processor is sent to determine the type of touch event, with preprocessor 8021
Corresponding visual output is provided on a display panel according to the type of touch event.Contact panel is only as two with display panel
Vertical part realizes input and the output function of mobile terminal 80, but in some embodiments it is possible to by contact panel with
Display panel is integrated and realizes the input of mobile terminal 80 and output function.
Audio input circuit 8047, audio output circuit 8048, audio output device 8043 and audio input device 8042
COBBAIF between user and mobile terminal 80 can be provided.Audio input circuit 8047 can change the voice data received
Electric signal afterwards, is transferred to loudspeaker, and voice signal output is converted to by loudspeaker.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can
To instruct the hardware of correlation to complete by program, the program can be stored in a computer-readable recording medium, storage
Medium can include:Flash disk, read-only storage (Read-Only Memory, ROM), random access device (Random Access
Memory, RAM), disk or CD etc..
In previous embodiment, the structure realization that each step method flow can be based on the mobile terminal.In the specific implementation, can
Implement above-mentioned sound effect treatment method on mobile phone, or, using mobile phone to the audio in other equipment (such as TV, computer)
Perform above-mentioned sound effect treatment method.
The embodiment of the present invention also provides a kind of computer-readable storage medium, wherein, the computer-readable storage medium can be stored with journey
Sequence, the program includes the part or all of step of any sound effect treatment method described in the above method embodiment when performing
Suddenly.
Although combining each embodiment herein, invention has been described, however, implementing the present invention for required protection
During, those skilled in the art are by checking the accompanying drawing, disclosure and appended claims, it will be appreciated that and it is real
Other changes of the existing open embodiment.In the claims, the word of " comprising " (comprising) one is not excluded for other compositions
Part or step, "a" or "an" are not excluded for multiple situations.Single processor or other units can realize claim
In some functions enumerating.Mutually different has been recited in mutually different dependent some measures, it is not intended that these are arranged
Apply to combine and produce good effect.
It will be understood by those skilled in the art that embodiments of the invention can be provided as method, device (equipment) or computer journey
Sequence product.Therefore, in terms of the present invention can be using complete hardware embodiment, complete software embodiment or combination software and hardware
The form of embodiment.Moreover, the present invention can be used in one or more calculating for wherein including computer usable program code
The computer program that machine usable storage medium is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.Computer program is stored/distributed in suitable medium, is provided together with other hardware or as the one of hardware
Part, it would however also be possible to employ other distribution forms, such as passes through the wired or wireless telecommunication systems of Internet or other.
The present invention be with reference to the method for the embodiment of the present invention, device (equipment) and computer program product flow chart with/
Or block diagram is described.It should be understood that can by each flow in computer program instructions implementation process figure and/or block diagram and/
Or square frame and the flow in flow chart and/or block diagram and/or the combination of square frame.These computer program instructions can be provided
To the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices to produce one
Individual machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for realizing
The device for the function of being specified in one flow of flow chart or multiple flows and/or one square frame of block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which is produced, to be included referring to
Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, thus in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
Although with reference to specific features and embodiment, invention has been described, it is clear that, do not departing from this hair
In the case of bright spirit and scope, various modifications and combinations can be carried out to it.Correspondingly, the specification and drawings are only institute
The exemplary illustration of the invention that attached claim is defined, and be considered as covered in the scope of the invention any and all and repair
Change, change, combining or equivalent.Obviously, those skilled in the art can to the present invention carry out it is various change and modification without
Depart from the spirit and scope of the present invention.So, if the present invention these modifications and variations belong to the claims in the present invention and its
Within the scope of equivalent technologies, then the present invention is also intended to comprising including these changes and modification.
Claims (11)
1. a kind of sound effect treatment method, it is characterised in that including:
When mobile terminal determines that target audio is effective, source audio data are handled using the effective target audio,
Obtain and standard target voice data and store into the mobile terminal, the source audio data are pre- in the mobile terminal
The audio file first stored, the target audio is the audio of the audio or user's recording obtained from other storage devices;
The acquisition for mobile terminal source audio data, utilize the corresponding current audio effect processing algorithm of the target audio under current state
The source audio data are handled, current goal voice data is obtained;
Compare whether the standard target voice data of the current goal voice data with prestoring matches;
If so, then confirming that the target audio is effective and the corresponding audio frequency process program normal operation of the target audio;
If it is not, then confirm that the target audio is invalid, and there is abnormal or mistake in the corresponding audio frequency process program of the target audio
By mistake, the target audio or mobile terminal are restarted in preset time, to restart the corresponding audio frequency process program of target audio
And repair target audio.
2. according to the method described in claim 1, it is characterised in that before the acquisition source audio data, methods described is also wrapped
Include:
Gather source audio data;
The source audio data are pre-processed using the target audio corresponding standard audio Processing Algorithm, obtain described
Standard target voice data;
Preserve the standard target voice data.
3. method according to claim 2, it is characterised in that the corresponding standard audio effect processing of the utilization target audio is calculated
Method is pre-processed to the source audio data, obtains standard target voice data, including:
Pulse code modulation pcm encoder is carried out to the source audio data, source PCM codes are obtained;
The source PCM codes are handled using the target audio corresponding standard audio Processing Algorithm, standard PCM is obtained
Code.
4. method according to claim 3, it is characterised in that the corresponding current audio effect processing of the utilization target audio is calculated
Method is handled the source audio data, obtains current goal voice data, including:
The pcm encoder is carried out to the source audio data, the source PCM codes are obtained;
The source PCM codes are handled using the target audio corresponding current audio effect processing algorithm, current goal is obtained
PCM codes.
5. method according to claim 4, it is characterised in that the comparison current goal voice data with depositing in advance
Whether the standard target voice data of storage matches, including:
Compare whether the current goal PCM codes match with the standard PCM codes;
If the current goal PCM codes are matched with the standard PCM codes, perform the confirmation target audio and effectively walk
Suddenly;
If the current goal PCM codes and the standard PCM codes are mismatched, it is invalid to perform the confirmation target audio,
The step of restarting the target audio.
6. a kind of mobile terminal, it is characterised in that including:
Pretreatment unit, for utilizing the effective target audio when mobile terminal determines that target audio is effective to source audio
Data are handled, and are obtained standard target voice data and are stored into the mobile terminal, the source audio data are institutes
The audio file prestored in mobile terminal is stated, the target audio is the audio or user obtained from other storage devices
The audio of recording;
Acquiring unit, for obtaining source audio data;
Processing unit, for being handled using the corresponding current audio effect processing algorithm of target audio the source audio data,
Obtain current goal voice data;
Comparing unit, for compare the current goal voice data and the standard target voice data that prestores whether
Match somebody with somebody;
Confirmation unit, during for being when the comparing unit comparative result, confirms that the target audio is effective and the target
The corresponding audio frequency process program normal operation of audio;
Unit is restarted in confirmation, for when the comparing unit comparative result is no, confirming that the target audio is invalid and described
There is exception or mistake in the corresponding audio frequency process program of target audio, and the target audio or movement are restarted in preset time
Terminal, to restart the corresponding audio frequency process program of target audio and repair target audio.
7. mobile terminal according to claim 6, it is characterised in that the mobile terminal also includes:
Collecting unit, for before the acquiring unit obtains source audio data, gathering source audio data;
The pretreatment unit is carried out using the corresponding standard audio Processing Algorithm of the target audio to the source audio data
Pretreatment, obtains the standard target voice data;
Memory cell, for preserving the standard target voice data.
8. mobile terminal according to claim 7, it is characterised in that the pretreatment unit includes:
First coded sub-units, for carrying out pulse code modulation pcm encoder to the source audio data, obtain source PCM codes;
First processing subelement, for being entered using the corresponding standard audio Processing Algorithm of the target audio to the source PCM codes
Row processing, obtains standard PCM codes.
9. mobile terminal according to claim 8, it is characterised in that the processing unit includes:
Second coded sub-units, for carrying out the pcm encoder to the source audio data, obtain the source PCM codes;
Second processing subelement, for being entered using the corresponding current audio effect processing algorithm of the target audio to the source PCM codes
Row processing, obtains current goal PCM codes.
10. mobile terminal according to claim 9, it is characterised in that the comparing unit includes comparing subunit, its
In:
The comparing subunit, for comparing whether the current goal PCM codes match with the standard PCM codes;
The confirmation unit, is additionally operable to when the current goal PCM codes are matched with the standard PCM codes, confirms the target
Audio is effective;
Unit is restarted in confirmation, is additionally operable to, when the current goal PCM codes and standard PCM codes mismatch, confirm the mesh
Mark with phonetic symbols effect is invalid, restarts the target audio.
11. a kind of mobile terminal, it is characterised in that including memory, baseband chip, radio-frequency module, peripheral system and sensor,
Wherein, the memory is used for store code or instruction, and the baseband chip includes processor, clock module and power management mould
Block, the processor is by calling the code in the memory or instructing to perform as described in claim 1-5 any one
Method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610438820.8A CN106157962B (en) | 2016-06-16 | 2016-06-16 | A kind of sound effect treatment method and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610438820.8A CN106157962B (en) | 2016-06-16 | 2016-06-16 | A kind of sound effect treatment method and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106157962A CN106157962A (en) | 2016-11-23 |
CN106157962B true CN106157962B (en) | 2017-10-27 |
Family
ID=57353387
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610438820.8A Active CN106157962B (en) | 2016-06-16 | 2016-06-16 | A kind of sound effect treatment method and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106157962B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106601216A (en) * | 2016-11-30 | 2017-04-26 | 宇龙计算机通信科技(深圳)有限公司 | Method and system for realizing electronic device control through music |
CN109872710B (en) * | 2019-03-13 | 2021-01-08 | 腾讯音乐娱乐科技(深圳)有限公司 | Sound effect modulation method, device and storage medium |
CN114040318A (en) * | 2021-11-02 | 2022-02-11 | 海信视像科技股份有限公司 | Method and equipment for playing spatial audio |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102348148A (en) * | 2010-08-02 | 2012-02-08 | 廖明忠 | Method and device for monitoring and feeding back sound effect by utilizing sensor, and sound effect system |
CN104768106A (en) * | 2015-03-26 | 2015-07-08 | 广东欧珀移动通信有限公司 | Conversion method and device for terminal sound effect |
CN104966521A (en) * | 2015-06-12 | 2015-10-07 | 广东小天才科技有限公司 | Method and apparatus for adjusting play mode of music |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150262162A1 (en) * | 2012-10-31 | 2015-09-17 | Rakuten, Inc. | Mobile terminal, method for controlling mobile terminal, program product, and recording medium |
CN103209368A (en) * | 2013-03-27 | 2013-07-17 | 广东欧珀移动通信有限公司 | Method and device for adjusting audio in blue-ray player |
CN103532929B (en) * | 2013-09-17 | 2017-03-15 | 烽火通信科技股份有限公司 | A kind of voice terminal device and the double protocol switching methods of voice |
CN104021148B (en) * | 2014-05-16 | 2017-05-03 | 小米科技有限责任公司 | Method and device for adjusting sound effect |
CN104661153B (en) * | 2014-12-31 | 2018-02-02 | 歌尔股份有限公司 | A kind of compensation method of earphone audio, device and earphone |
-
2016
- 2016-06-16 CN CN201610438820.8A patent/CN106157962B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102348148A (en) * | 2010-08-02 | 2012-02-08 | 廖明忠 | Method and device for monitoring and feeding back sound effect by utilizing sensor, and sound effect system |
CN104768106A (en) * | 2015-03-26 | 2015-07-08 | 广东欧珀移动通信有限公司 | Conversion method and device for terminal sound effect |
CN104966521A (en) * | 2015-06-12 | 2015-10-07 | 广东小天才科技有限公司 | Method and apparatus for adjusting play mode of music |
Also Published As
Publication number | Publication date |
---|---|
CN106157962A (en) | 2016-11-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP4064276A1 (en) | Method and device for speech recognition, terminal and storage medium | |
EP2669889B1 (en) | Method and apparatus for executing voice command in an electronic device | |
CN107610695A (en) | Driver's voice wakes up the dynamic adjusting method of instruction word weight | |
CN106157962B (en) | A kind of sound effect treatment method and mobile terminal | |
CN103365551B (en) | It can be applied to the method and electronic installation of the bookmark function of Messenger application | |
CN106331370B (en) | A kind of data transmission method and terminal device | |
CN106170034B (en) | A kind of sound effect treatment method and mobile terminal | |
CN105635449A (en) | Alarm clock control method and mobile terminal | |
CN103716309A (en) | Security authentication method and terminal | |
CN108665889B (en) | Voice signal endpoint detection method, device, equipment and storage medium | |
CN102263866B (en) | Fixed echo is used to eliminate method and the VOCA voice communications assembly of filter coefficient | |
CN104239343A (en) | User input information processing method and device | |
CN107436763A (en) | A kind of method and wearable device for switching wearable device interface subject | |
CN103454906A (en) | Alarm clock reminding device, achieving method thereof and electronic device | |
CN107836122A (en) | Select subscriber identity module profile main frame | |
CN105094333A (en) | Method and device for control | |
JP5558792B2 (en) | Method, system, and computer program for dynamically improving the performance of an interactive voice response system using a complex event processor | |
CN106126171B (en) | A kind of sound effect treatment method and mobile terminal | |
CN108595412A (en) | Correction processing method and device, computer equipment and readable medium | |
CN106484771A (en) | Different information file generated and application process, device | |
CN105868598A (en) | Method and terminal for fingerprint unlocking | |
CN108597499B (en) | Voice processing method and voice processing device | |
CN109065017B (en) | Voice data generation method and related device | |
CN110008698A (en) | Method for detecting virus and device | |
CN107864295A (en) | Call control method, mobile terminal and computer-readable recording medium |
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 | ||
CP01 | Change in the name or title of a patent holder | ||
CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd. |