CN106384596A - Audio data processing method and terminal - Google Patents
Audio data processing method and terminal Download PDFInfo
- Publication number
- CN106384596A CN106384596A CN201610842872.1A CN201610842872A CN106384596A CN 106384596 A CN106384596 A CN 106384596A CN 201610842872 A CN201610842872 A CN 201610842872A CN 106384596 A CN106384596 A CN 106384596A
- Authority
- CN
- China
- Prior art keywords
- voice data
- decoder
- module
- software
- terminal
- 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.)
- Pending
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/18—Vocoders using multiple modes
-
- 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/008—Multichannel audio signal coding or decoding using interchannel correlation to reduce redundancy, e.g. joint-stereo, intensity-coding or matrixing
Abstract
The invention discloses an audio data processing method and a terminal. The method includes the following steps that: S1, audio data are received, and the audio data are decoded through adopting a hardware decoder; S2, the state of the hardware decoder is monitored; S3, if the abnormal information of the hardware decoder is detected, and the position information of a decoding error of the audio data is recorded; S4, a software decoder is started; and S5, the software decoder is adopted to further decode the audio data according to the position information of the decoding error of the audio data. According to the audio data processing method and the terminal of the invention, after the abnormal information of the hardware decoder is detected, the position information of the decoding error of the audio data is recorded automatically, the software decoder is adopted to further decode the audio data according to the position information of the decoding error of the audio data, and therefore, high-bit rate, high-sampling rate, high-sampling bit and multi-channel decoding can be completed.
Description
Technical field
The present invention relates to communication technical field, more particularly, to a kind of processing method of voice data and terminal.
Background technology
In the mobile Internet epoch, popularizing with intelligent terminal, user constantly pursues the audio frequency of high-quality/regard
Frequency is experienced, and high code check, multichannel, lossless source of sound become standard configuration gradually, and the tonequality that audio frequency is play and the requirement of audio are also more next
Higher.
Dynamic image expert's compression standard audio frequency aspect 3 (Moving Picture Experts Group Audio
Layer III, MP3) be a kind of more popular digital audio encoding and lossy compression method technology, can be significantly by this technology
Degree ground reduces amount of audio data, and for the auditory perception of most of users, the tonequality after compression is not compressed with initial
Audio frequency is compared, and does not significantly decrease.
Intelligent terminal typically supports MP3 hard decoder, because the framework of MP3 coding is varied, and the support of hard decoder
Not perfect, therefore hard decoder cannot support all framework types.In addition in order to improve efficiency, intelligent terminal manufacturer is at intelligent end
When bringing out factory, unlatching hard decoder can be given tacit consent to, but this will lead to high sampling rate or high bit rate or high sampling resolution or many
The audio frequency of sound channel cannot normal play.And software decoder can support nearly all mp3 file in accordance with ISO and ITU standard,
But existing intelligent terminal cannot give full play to its MP3 software decode ability.
Content of the invention
Present invention is primarily targeted at proposing a kind of it is intended to the hard decoder support solving existing intelligent terminal is not complete
Kind, and the problem that its software decode ability cannot be given full play to.
For achieving the above object, embodiment of the present invention first aspect provides a kind of processing method of voice data, described side
Method includes step:
S1:Accept voice data, and described voice data is decoded using hardware decoder;
S2:Monitor the state of hardware decoder;
S3:If listening to hardware decoder abnormal information, record the positional information of described voice data decoding error;
S4:Start software decoder;
S5:According to the positional information of described voice data decoding error, continue to decode described audio frequency using software decoder
Data.
In conjunction with the embodiment of the present invention in a first aspect, the embodiment of the present invention first aspect the first implementation in,
Described hardware decoder abnormal information produces in the following manner:The maximum sample rate of described voice data is more than default maximum
Sample rate;Or the Maximum Bit Rate of described voice data is more than default Maximum Bit Rate;Or described voice data is
Big sampling resolution is more than default maximum sampling resolution;Or the maximum channel number of described voice data is more than default the most loud
Road number.
In conjunction with the embodiment of the present invention in a first aspect, the embodiment of the present invention first aspect second implementation in,
Step S4.0 is also included before described step S4:Judge whether described voice data supports software decode, if described voice data
Support software decode, then execution step S4;Otherwise execution step S6;
Methods described also includes step S6:Feedback decoding error message.
In conjunction with the embodiment of the present invention in a first aspect, the embodiment of the present invention first aspect the third implementation in,
Methods described also includes step:
S7.1:Close software decoder.
In conjunction with the embodiment of the present invention in a first aspect, the embodiment of the present invention first aspect the 4th kind of implementation in,
Methods described also includes step:
S7.2:Voice data after broadcast decoder.
Additionally, for achieving the above object, embodiment of the present invention second aspect provides a kind of terminal, and described terminal includes:Firmly
Part decoding process module, monitoring module, logging modle, starting module, software decode processing module, hardware decoder and software solution
Code device;
Described hardware decoding process module, is used for accepting voice data, and decodes described sound using described hardware decoder
Frequency evidence;
Described monitoring module, for monitoring the state of described hardware decoder;
Described logging modle, if listening to described hardware decoder abnormal information for described monitoring module, record is described
The positional information of voice data decoding error;
Described starting module, for starting described software decoder;
Described software decode processing module, for the position of the voice data decoding error according to described logging modle record
Information, continues to decode described voice data using software decoder.
In conjunction with the second aspect of the embodiment of the present invention, in the first implementation of the second aspect of the embodiment of the present invention,
Described hardware decoder abnormal information produces in the following manner:The maximum sample rate of described voice data is more than default maximum
Sample rate;Or the Maximum Bit Rate of described voice data is more than default Maximum Bit Rate;Or described voice data is
Big sampling resolution is more than default maximum sampling resolution;Or the maximum channel number of described voice data is more than default the most loud
Road number.
In conjunction with the second aspect of the embodiment of the present invention, in the second implementation of the second aspect of the embodiment of the present invention,
Described terminal also includes judge module and feedback module;
Described judge module, for judging whether described voice data supports software decode, if described voice data is supported
Software decode, then generate enable information to described starting module;Otherwise generate enable information to described feedback module;
Described feedback module, for the enable information being generated according to described judge module, feedback decoding error message.
In conjunction with the second aspect of the embodiment of the present invention, in the third implementation of the second aspect of the embodiment of the present invention,
Described terminal also includes closedown module;
Described closedown module, for closing software decoder.
In conjunction with the second aspect of the embodiment of the present invention, in the 4th kind of implementation of the second aspect of the embodiment of the present invention,
Described terminal also includes playing module;
Described playing module, for the voice data after broadcast decoder.
The processing method of voice data provided in an embodiment of the present invention and terminal, are listening to hardware decoder abnormal information
Afterwards, the positional information that automatic recording audio malfunctions according to decoding, and start software decoder from voice data decoding error
Continue decoding audio data, to complete the decoding of high bit rate, high sampling rate, high sampling resolution and multichannel at position.
Brief description
Fig. 1 is the hardware architecture diagram of the mobile terminal realizing each embodiment of the present invention;
Fig. 2 is the process flow schematic diagram of the voice data of first embodiment of the invention;
Fig. 3 is the process flow schematic diagram of the voice data of second embodiment of the invention;
Fig. 4 is the process flow schematic diagram of the voice data of third embodiment of the invention;
Fig. 5 is the process flow schematic diagram of the voice data of fourth embodiment of the invention;
Fig. 6 is the terminal structure schematic diagram of fifth embodiment of the invention;
Fig. 7 is the terminal structure schematic diagram of sixth embodiment of the invention;
Fig. 8 is the terminal structure schematic diagram of seventh embodiment of the invention;
Fig. 9 is the terminal structure schematic diagram of eighth embodiment of the invention.
The realization of the object of the invention, functional characteristics and advantage will be described further in conjunction with the embodiments referring to the drawings.
Specific embodiment
It should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Realize the mobile terminal of each embodiment of the present invention referring now to Description of Drawings.In follow-up description, use
For represent element such as " module ", " part " or " unit " suffix only for being conducive to the explanation of the present invention, itself
Not specific meaning.Therefore, " module " and " part " can mixedly use.
Mobile terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as moving
Phone, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (panel computer), PMP
The mobile terminal of (portable media player), guider etc. and such as numeral TV, desk computer etc. consolidate
Determine terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that, except being used in particular for moving
Outside the element of purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Fig. 1 is that the hardware configuration of the mobile terminal realizing each embodiment of the present invention is illustrated.
Mobile terminal 1 00 can include wireless communication unit 110, A/V (audio/video) input block 120, user input
Unit 130, sensing unit 140, output unit 150, memorizer 160, interface unit 170, controller 180 and power subsystem 190
Etc..Fig. 1 shows the mobile terminal with various assemblies, it should be understood that being not required for implementing all groups illustrating
Part.More or less of assembly can alternatively be implemented.Will be discussed in more detail below the element of mobile terminal.
Wireless communication unit 110 generally includes one or more assemblies, and it allows mobile terminal 1 00 and wireless communication system
Or the radio communication between network.For example, wireless communication unit can include broadcasting reception module 111, mobile communication module
112nd, at least one of wireless Internet module 113, short range communication module 114 and location information module 115.
Broadcasting reception module 111 receives broadcast singal and/or broadcast via broadcast channel from external broadcast management server
Relevant information.Broadcast channel can include satellite channel and/or terrestrial channel.Broadcast management server can be generated and sent
The broadcast singal generating before the server of broadcast singal and/or broadcast related information or reception and/or broadcast related information
And send it to the server of terminal.Broadcast singal can include TV broadcast singal, radio signals, data broadcasting
Signal etc..And, broadcast singal may further include the broadcast singal combining with TV or radio signals.Broadcast phase
Pass information can also provide via mobile communications network, and in this case, broadcast related information can be by mobile communication mould
Block 112 is receiving.Broadcast singal can exist in a variety of manners, and for example, it can be with the electronics of DMB (DMB)
The form of program guide (EPG), the electronic service guidebooks (ESG) of digital video broadcast-handheld (DVB-H) etc. and exist.Broadcast
Receiver module 111 can be broadcasted by using various types of broadcast system receipt signals.Especially, broadcasting reception module 111
Can be wide by using such as multimedia broadcasting-ground (DMB-T), DMB-satellite (DMB-S), digital video
Broadcast-hand-held (DVB-H), the Radio Data System of forward link media (MediaFLO@), received terrestrial digital broadcasting integrated service
Etc. (ISDB-T) digit broadcasting system receives digital broadcasting.Broadcasting reception module 111 may be constructed such that and is adapted to provide for extensively
Broadcast the various broadcast systems of signal and above-mentioned digit broadcasting system.Via broadcasting reception module 111 receive broadcast singal and/
Or broadcast related information can be stored in memorizer 160 (or other types of storage medium).
Mobile communication module 112 sends radio signals to base station (for example, access point, node B etc.), exterior terminal
And at least one of server and/or receive from it radio signal.Such radio signal can include voice and lead to
Words signal, video calling signal or the various types of data sending and/or receiving according to text and/or Multimedia Message.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.This module can be internally or externally
It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by this module can include WLAN (WLAN) (Wi-Fi), Wibro
(WiMAX), Wimax (worldwide interoperability for microwave accesses), HSDPA (high-speed downlink packet access) etc..
Short range communication module 114 is the module for supporting junction service.Some examples of short-range communication technology include indigo plant
Tooth TM, RF identification (RFID), Infrared Data Association (IrDA), ultra broadband (UWB), purple honeybee TM etc..
Location information module 115 be for check or obtain mobile terminal positional information module.Location information module
Typical case be GPS (global positioning system).According to current technology, GPS module 115 calculates and is derived from three or more satellites
Range information and correct time information and for the Information application triangulation calculating, thus according to longitude, latitude
Highly accurately calculate three-dimensional current location information.Currently, the method for calculating position and temporal information is defended using three
Star and the error of the position that calculates by using other satellite correction and temporal information.Additionally, GPS module 115
Can be by Continuous plus current location information in real time come calculating speed information.
A/V input block 120 is used for receiving audio or video signal.A/V input block 120 can include camera 121 He
Mike 122, camera 121 is to the static images being obtained by image capture apparatus in Video Capture pattern or image capture mode
Or the view data of video is processed.Picture frame after process may be displayed on display unit 151.Process through camera 121
Picture frame afterwards can be stored in memorizer 160 (or other storage medium) or carry out sending out via wireless communication unit 110
Send, two or more cameras 121 can be provided according to the construction of mobile terminal.Mike 122 can be in telephone calling model, note
Sound (voice data) is received via mike in record pattern, speech recognition mode etc. operational mode, and can be by so
Acoustic processing be voice data.Audio frequency (voice) data after process can be converted in the case of telephone calling model can
It is sent to the form output of mobile communication base station via mobile communication module 112.Mike 122 can implement various types of making an uproar
Sound eliminates (or suppression) algorithm to eliminate the noise that (or suppression) produces in reception with during sending audio signal or to do
Disturb.
User input unit 130 can generate key input data to control each of mobile terminal according to the order of user input
Plant operation.User input unit 130 allows the various types of information of user input, and can include keyboard, metal dome, touch
Plate (for example, detection due to touched and lead to resistance, pressure, the change of electric capacity etc. sensitive component), roller, rocking bar etc.
Deng.Especially, when touch pad is superimposed upon on display unit 151 as a layer, touch screen can be formed.
Sensing unit 140 detect mobile terminal 1 00 current state, (for example, mobile terminal 1 00 open or close shape
State), the position of mobile terminal 1 00, user is for the presence or absence of the contact (that is, touch input) of mobile terminal 1 00, mobile terminal
100 orientation, the acceleration or deceleration movement of mobile terminal 1 00 and direction etc., and generate for controlling mobile terminal 1 00
The order of operation or signal.For example, when mobile terminal 1 00 is embodied as sliding-type mobile phone, sensing unit 140 can sense
This sliding-type phone opens or cuts out.In addition, sensing unit 140 can detect power subsystem 190 whether provide electric power or
Whether person's interface unit 170 is coupled with external device (ED).
Interface unit 170 is connected, with mobile terminal 1 00, the interface that can pass through as at least one external device (ED).For example,
External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing
Line FPDP, memory card port, the port of device for connection with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Identification module can be storage for verifying that user uses each of mobile terminal 1 00
Kind of information and subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) can be included
Etc..In addition, the device (hereinafter referred to as " identifying device ") with identification module can take the form of smart card, therefore, know
Other device can be connected with mobile terminal 1 00 via port or other attachment means.Interface unit 170 can be used for reception and is derived from
The input (for example, data message, electric power etc.) of the external device (ED) and input receiving is transferred in mobile terminal 1 00
One or more elements or can be used for transmission data between mobile terminal and external device (ED).
In addition, when mobile terminal 1 00 is connected with external base, interface unit 170 can serve as allowing by it by electricity
Power provides the path of mobile terminal 1 00 from base or can serve as allowing the various command signals from base input to pass through it
It is transferred to the path of mobile terminal.May serve as identifying that mobile terminal is from the various command signals of base input or electric power
The no signal being accurately fitted within base.Output unit 150 is configured to defeated with the offer of vision, audio frequency and/or tactile manner
Go out signal (for example, audio signal, video signal, alarm signal, vibration signal etc.).Output unit 150 can include showing
Unit 151, dio Output Modules 152, alarm unit 153 etc..
Display unit 151 may be displayed on the information processing in mobile terminal 1 00.For example, when mobile terminal 1 00 is in electricity
During words call mode, display unit 151 can show (for example, text messaging, the multimedia file that communicate with call or other
Download etc.) related user interface (UI) or graphic user interface (GUI).When mobile terminal 1 00 is in video calling pattern
Or during image capture mode, display unit 151 can show the image of capture and/or the image of reception, illustrate video or figure
UI or GUI of picture and correlation function etc..
Meanwhile, when display unit 151 and the touch pad touch screen with formation superposed on one another as a layer, display unit
151 can serve as input equipment and output device.Display unit 151 can include liquid crystal display (LCD), thin film transistor (TFT)
In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least
A kind of.Some in these display may be constructed such that transparence to allow user from outside viewing, and this is properly termed as transparent
Display, typical transparent display can be, for example, TOLED (transparent organic light emitting diode) display etc..According to specific
The embodiment wanted, mobile terminal 1 00 can include two or more display units (or other display device), for example, moves
Dynamic terminal can include outernal display unit (not shown) and inner display unit (not shown).Touch screen can be used for detection and touches
Input pressure and touch input position and touch input area.
Dio Output Modules 152 can mobile terminal be in call signal reception pattern, call mode, logging mode,
When under the isotypes such as speech recognition mode, broadcast reception mode, that wireless communication unit 110 is received or in memorizer 160
The voice data transducing audio signal of middle storage and be output as sound.And, dio Output Modules 152 can provide and move
The audio output (for example, call signal receives sound, message sink sound etc.) of the specific function correlation of terminal 100 execution.
Dio Output Modules 152 can include speaker, buzzer etc..
Alarm unit 153 can provide output to notify event to mobile terminal 1 00.Typical event is permissible
Including calling reception, message sink, key signals input, touch input etc..In addition to audio or video output, alarm unit
153 can provide output in a different manner with the generation of notification event.For example, alarm unit 153 can be in the form of vibrating
Output is provided, enters when communicating (incomingcommunication) when receiving calling, message or some other, alarm list
Unit 153 can provide tactile output (that is, vibrating) to notify to user.By providing such tactile output, even if
When the mobile phone of user is in the pocket of user, user also can recognize that the generation of various events.Alarm unit 153
The output of the generation of notification event can be provided via display unit 151 or dio Output Modules 152.
Memorizer 160 can store software program of the process being executed by controller 180 and control operation etc., or can
Temporarily to store oneself data (for example, telephone directory, message, still image, video etc.) through exporting or will export.And
And, memorizer 160 can be to store the vibration of various modes with regard to exporting and audio signal when touching and being applied to touch screen
Data.
Memorizer 160 can include the storage medium of at least one type, and described storage medium includes flash memory, hard disk, many
Media card, card-type memorizer (for example, SD or DX memorizer etc.), random access storage device (RAM), static random-access storage
Device (SRAM), read only memory (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory
(PROM), magnetic storage, disk, CD etc..And, mobile terminal 1 00 can execute memorizer with by network connection
The network storage device cooperation of 160 store function.
Controller 180 generally controls the overall operation of mobile terminal.For example, controller 180 execution and voice call, data
The related control of communication, video calling etc. and process.In addition, controller 180 can be included for reproducing (or playback) many matchmakers
The multi-media module 181 of volume data, multi-media module 181 can construct in controller 180, or it is so structured that and controls
Device 180 separates.Controller 180 can be with execution pattern identifying processing, by the handwriting input executing on the touchscreen or picture
Draw input and be identified as character or image.
Power subsystem 190 receives external power or internal power under the control of controller 180 and provides operation each unit
Suitable electric power needed for part and assembly.
Various embodiment described herein can be with using such as computer software, hardware or its any combination of calculating
Machine computer-readable recording medium is implementing.Hardware is implemented, embodiment described herein can be by using application-specific IC
(ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can
Program gate array (FPGA), processor, controller, microcontroller, microprocessor, be designed to execute function described herein
At least one in electronic unit implementing, in some cases, can be implemented in controller 180 by such embodiment.
Software is implemented, the embodiment of such as process or function can with allow to execute the single of at least one function or operation
Software module is implementing.Software code can be come by the software application (or program) write with any suitable programming language
Implement, software code can be stored in memorizer 160 and be executed by controller 180.
So far, oneself is through describing mobile terminal according to its function.Below, for the sake of brevity, will describe such as folded form,
Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc. is as showing
Example.Therefore, the present invention can be applied to any kind of mobile terminal, and is not limited to slide type mobile terminal.
Based on above-mentioned mobile terminal hardware configuration, each embodiment of the inventive method is proposed.
As shown in Fig. 2 first embodiment of the invention proposes a kind of processing method of voice data, methods described includes walking
Suddenly:
S1:Accept voice data, and described voice data is decoded using hardware decoder;
S2:Monitor the state of hardware decoder;
S3:If listening to hardware decoder abnormal information, record the positional information of described voice data decoding error;
In the present embodiment, described hardware decoder abnormal information produces in the following manner:Described voice data is
Big sample rate is more than default maximum sample rate;Or the Maximum Bit Rate of described voice data is more than default maximal bit
Rate;Or the maximum sampling resolution of described voice data is more than default maximum sampling resolution;Or described voice data is
Big channel number is more than default maximum channel number.
As an example, refer to shown in table one and table two.When default maximum sample rate is 48KHZ it is assumed that actual
The maximum sample rate of MP3 is 96KHZ, and the voice data that at this time it is 96KHZ to maximum sample rate that hardware decoder will be unable to enters
Row decoding and broadcasting, and then lead to the application program of terminal no to respond.Maximum Bit Rate, maximum sampling resolution and maximum channel number
Situation similar.
S4:Start software decoder;
S5:According to the positional information of described voice data decoding error, continue to decode described audio frequency using software decoder
Data.
In the present embodiment, after starting software decoder, can be at the position of voice data decoding error, using soft
Part decoder continues decoding audio data it is ensured that audio frequency plays smoothness.
As shown in figure 3, second embodiment of the invention proposes a kind of processing method of voice data, methods described includes walking
Suddenly:
S1:Accept voice data, and described voice data is decoded using hardware decoder;
S2:Monitor the state of hardware decoder;
S3:If listening to hardware decoder abnormal information, record the positional information of described voice data decoding error;
In the present embodiment, described hardware decoder abnormal information produces in the following manner:Described voice data is
Big sample rate is more than default maximum sample rate;Or the Maximum Bit Rate of described voice data is more than default maximal bit
Rate;Or the maximum sampling resolution of described voice data is more than default maximum sampling resolution;Or described voice data is
Big channel number is more than default maximum channel number.
Step S4.0:Judge whether described voice data supports software decode, if described voice data supports software decode,
Then execution step S4;Otherwise execution step S6;
In the present embodiment, by increasing step S4.0, software decoder can more accurately be started to voice data
It is decoded.
S4:Start software decoder;
S5:According to the positional information of described voice data decoding error, continue to decode described audio frequency using software decoder
Data.
In the present embodiment, after starting software decoder, can be at the position of voice data decoding error, using soft
Part decoder continues decoding audio data it is ensured that audio frequency plays smoothness.
Step S6:Feedback decoding error message.
As shown in figure 4, third embodiment of the invention proposes a kind of processing method of voice data, methods described includes walking
Suddenly:
S1:Accept voice data, and described voice data is decoded using hardware decoder;
S2:Monitor the state of hardware decoder;
S3:If listening to hardware decoder abnormal information, record the positional information of described voice data decoding error;
In the present embodiment, described hardware decoder abnormal information produces in the following manner:Described voice data is
Big sample rate is more than default maximum sample rate;Or the Maximum Bit Rate of described voice data is more than default maximal bit
Rate;Or the maximum sampling resolution of described voice data is more than default maximum sampling resolution;Or described voice data is
Big channel number is more than default maximum channel number.
S4:Start software decoder;
S5:According to the positional information of described voice data decoding error, continue to decode described audio frequency using software decoder
Data;
In the present embodiment, after starting software decoder, can be at the position of voice data decoding error, using soft
Part decoder continues decoding audio data it is ensured that audio frequency plays smoothness.
S7.1:Close software decoder.
After voice data has decoded or in the case that voice data do not support software decode, can close soft in time
Part decoder, discharges resource.
As shown in figure 5, fourth embodiment of the invention proposes a kind of processing method of voice data, methods described includes walking
Suddenly:
S1:Accept voice data, and described voice data is decoded using hardware decoder;
S2:Monitor the state of hardware decoder;
S3:If listening to hardware decoder abnormal information, record the positional information of described voice data decoding error;
In the present embodiment, described hardware decoder abnormal information produces in the following manner:Described voice data is
Big sample rate is more than default maximum sample rate;Or the Maximum Bit Rate of described voice data is more than default maximal bit
Rate;Or the maximum sampling resolution of described voice data is more than default maximum sampling resolution;Or described voice data is
Big channel number is more than default maximum channel number.
S4:Start software decoder;
S5:According to the positional information of described voice data decoding error, continue to decode described audio frequency using software decoder
Data;
In the present embodiment, after starting software decoder, can be at the position of voice data decoding error, using soft
Part decoder continues decoding audio data it is ensured that audio frequency plays smoothness.
S7.2:Voice data after broadcast decoder.
In the present embodiment, play out using after hardware decoder or software decoder decoding audio data.
The processing method of voice data provided in an embodiment of the present invention, after listening to hardware decoder abnormal information,
Automatically the positional information that recording audio malfunctions according to decoding, and start software decoder at the position of voice data decoding error
Continue decoding audio data, to complete the decoding of high bit rate, high sampling rate, high sampling resolution and multichannel.
The present invention further provides a kind of terminal.
With reference to Fig. 6, a kind of terminal that Fig. 6 proposes for fifth embodiment of the invention, terminal 200 includes:Hardware decoding process
Module 201, monitoring module 202, logging modle 203, starting module 204, software decode processing module 205, hardware decoder 206
And software decoder 207;
Hardware decoding process module 201, is used for accepting voice data, and decodes described audio frequency using hardware decoder 206
Data;
Monitor module 202, for monitoring the state of hardware decoder 206;
Logging modle 203, if listen to the abnormal information of hardware decoder 206 for monitoring module 202, records described sound
Frequency is according to the positional information of decoding error;
In the present embodiment, described hardware decoder abnormal information produces in the following manner:Described voice data is
Big sample rate is more than default maximum sample rate;Or the Maximum Bit Rate of described voice data is more than default maximal bit
Rate;Or the maximum sampling resolution of described voice data is more than default maximum sampling resolution;Or described voice data is
Big channel number is more than default maximum channel number.
As an example, refer to shown in table three and table four.When default maximum sample rate is 48KHZ it is assumed that actual
The maximum sample rate of MP3 is 96KHZ, and the voice data that at this time it is 96KHZ to maximum sample rate that hardware decoder will be unable to enters
Row decoding and broadcasting, and then lead to the application program of terminal no to respond.Maximum Bit Rate, maximum sampling resolution and maximum channel number
Situation similar.
Starting module 204, for starting software decoder 207;
Software decode processing module 205, the position letter of the voice data decoding error for being recorded according to logging modle 203
Breath, continues to decode described voice data using software decoder 207.
In the present embodiment, after starting software decoder, can be at the position of voice data decoding error, using soft
Part decoder continues decoding audio data it is ensured that audio frequency plays smoothness.
With reference to Fig. 7, a kind of terminal that Fig. 7 proposes for sixth embodiment of the invention, and unlike the 5th embodiment, terminal
200 also include judge module 208 and feedback module 209;
Judge module 208, for judging whether described voice data supports software decode, if the support of described voice data is soft
Part decodes, then generate enable information to starting module 204;Otherwise generate enable information to feedback module 209;
Feedback module 209, for the enable information being generated according to judge module 208, feedback decoding error message.
With reference to Fig. 8, a kind of terminal that Fig. 8 proposes for seventh embodiment of the invention, and unlike the 5th embodiment, terminal
200 also include closedown module 210;
Closedown module 210, for closing software decoder.
In the present embodiment, after voice data has decoded or in the case that voice data do not support software decode,
Software decoder can be closed in time, discharge resource.
With reference to Fig. 9, a kind of terminal that Fig. 9 proposes for eighth embodiment of the invention, and unlike the 5th embodiment, terminal
200 also include playing module 211;
Playing module 211, for the voice data after broadcast decoder.
In the present embodiment, play out using after hardware decoder or software decoder decoding audio data.
Terminal provided in an embodiment of the present invention, after listening to hardware decoder abnormal information, automatic recording audio
According to the positional information of decoding error, and start software decoder continuation decoding audio frequency number at the position of voice data decoding error
According to complete the decoding of high bit rate, high sampling rate, high sampling resolution and multichannel.
It should be noted that herein, term " inclusion ", "comprising" or its any other variant are intended to non-row
The comprising of his property, so that including a series of process of key elements, method, article or device not only include those key elements, and
And also include other key elements of being not expressly set out, or also include intrinsic for this process, method, article or device institute
Key element.In the absence of more restrictions, the key element being limited by sentence "including a ..." is it is not excluded that including being somebody's turn to do
Also there is other identical element in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by the mode of software plus necessary general hardware platform naturally it is also possible to pass through hardware, but in many cases
The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words
Go out partly can embodying in the form of software product of contribution, this computer software product is stored in a storage medium
In (as ROM/RAM, magnetic disc, CD), including some instructions with so that a station terminal equipment (can be mobile phone, computer, clothes
Business device, air-conditioner, or network equipment etc.) method described in execution each embodiment of the present invention.
These are only the preferred embodiments of the present invention, not thereby limit the present invention the scope of the claims, every using this
Equivalent structure or equivalent flow conversion that bright description and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of processing method of voice data is it is characterised in that methods described includes step:
S1:Accept voice data, and described voice data is decoded using hardware decoder;
S2:Monitor the state of hardware decoder;
S3:If listening to hardware decoder abnormal information, record the positional information of described voice data decoding error;
S4:Start software decoder;
S5:According to the positional information of described voice data decoding error, continue to decode described voice data using software decoder.
2. a kind of processing method of voice data according to claim 1 is it is characterised in that described hardware decoder is abnormal
Information produces in the following manner:The maximum sample rate of described voice data is more than default maximum sample rate;Or described sound
The Maximum Bit Rate of frequency evidence is more than default Maximum Bit Rate;Or the maximum sampling resolution of described voice data is more than default
Maximum sampling resolution;Or the maximum channel number of described voice data is more than default maximum channel number.
3. a kind of processing method of voice data according to claim 1 is it is characterised in that also wrap before described step S4
Include step S4.0:Judge whether described voice data supports software decode, if described voice data supports software decode, execute
Step S4;Otherwise execution step S6;
Methods described also includes step S6:Feedback decoding error message.
4. a kind of processing method of voice data according to claim 1 is it is characterised in that methods described also includes walking
Suddenly:
S7.1:Close software decoder.
5. according to a kind of voice data described in claim 1 processing method it is characterised in that methods described also includes step:
S7.2:Voice data after broadcast decoder.
6. a kind of terminal is it is characterised in that described terminal includes:Hardware decoding process module, monitor module, logging modle, open
Dynamic model block, software decode processing module, hardware decoder and software decoder;
Described hardware decoding process module, is used for accepting voice data, and decodes described audio frequency number using described hardware decoder
According to;
Described monitoring module, for monitoring the state of described hardware decoder;
Described logging modle, if listening to described hardware decoder abnormal information for described monitoring module, records described audio frequency
The positional information of data decoding error;
Described starting module, for starting described software decoder;
Described software decode processing module, for the position letter of the voice data decoding error according to described logging modle record
Breath, continues to decode described voice data using software decoder.
7. a kind of terminal according to claim 6 is it is characterised in that described hardware decoder abnormal information is passed through with lower section
Formula produces:The maximum sample rate of described voice data is more than default maximum sample rate;Or the high specific of described voice data
Special rate is more than default Maximum Bit Rate;Or the maximum sampling resolution of described voice data is more than default maximum sample bits
Number;Or the maximum channel number of described voice data is more than default maximum channel number.
8. a kind of terminal according to claim 6 is it is characterised in that described terminal also includes judge module and feedback mould
Block;
Described judge module, for judging whether described voice data supports software decode, if described voice data supports software
Decoding, then generate enable information to described starting module;Otherwise generate enable information to described feedback module;
Described feedback module, for the enable information being generated according to described judge module, feedback decoding error message.
9. a kind of terminal according to claim 6 is it is characterised in that described terminal also includes closedown module;
Described closedown module, for closing software decoder.
10. according to a kind of terminal described in claim 6 it is characterised in that described terminal also includes playing module;
Described playing module, for the voice data after broadcast decoder.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610842872.1A CN106384596A (en) | 2016-09-22 | 2016-09-22 | Audio data processing method and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610842872.1A CN106384596A (en) | 2016-09-22 | 2016-09-22 | Audio data processing method and terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106384596A true CN106384596A (en) | 2017-02-08 |
Family
ID=57936846
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610842872.1A Pending CN106384596A (en) | 2016-09-22 | 2016-09-22 | Audio data processing method and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106384596A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116013334A (en) * | 2023-01-28 | 2023-04-25 | 荣耀终端有限公司 | Audio data processing method, electronic device and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101308658A (en) * | 2007-05-14 | 2008-11-19 | 深圳艾科创新微电子有限公司 | Audio decoder based on system on chip and decoding method thereof |
CN101442586A (en) * | 2008-12-31 | 2009-05-27 | 中兴通讯股份有限公司 | Method and terminal for playing multimedia |
CN103177744A (en) * | 2011-12-21 | 2013-06-26 | 深圳市快播科技有限公司 | Low-power-consumption playing method and device for mobile equipment |
CN104394456A (en) * | 2014-11-20 | 2015-03-04 | 福建星网视易信息系统有限公司 | Method and device for decoding audios and videos in embedded environment |
CN104780378A (en) * | 2015-04-16 | 2015-07-15 | 腾讯科技(北京)有限公司 | Method, device and player for decoding video |
CN105260333A (en) * | 2015-09-24 | 2016-01-20 | 福州瑞芯微电子股份有限公司 | Accelerated processing method and device for audio signal |
CN204990278U (en) * | 2015-08-14 | 2016-01-20 | 天津市联恒融科技有限公司 | External device of USB of computer hardware monitoring |
-
2016
- 2016-09-22 CN CN201610842872.1A patent/CN106384596A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101308658A (en) * | 2007-05-14 | 2008-11-19 | 深圳艾科创新微电子有限公司 | Audio decoder based on system on chip and decoding method thereof |
CN101442586A (en) * | 2008-12-31 | 2009-05-27 | 中兴通讯股份有限公司 | Method and terminal for playing multimedia |
CN103177744A (en) * | 2011-12-21 | 2013-06-26 | 深圳市快播科技有限公司 | Low-power-consumption playing method and device for mobile equipment |
CN104394456A (en) * | 2014-11-20 | 2015-03-04 | 福建星网视易信息系统有限公司 | Method and device for decoding audios and videos in embedded environment |
CN104780378A (en) * | 2015-04-16 | 2015-07-15 | 腾讯科技(北京)有限公司 | Method, device and player for decoding video |
CN204990278U (en) * | 2015-08-14 | 2016-01-20 | 天津市联恒融科技有限公司 | External device of USB of computer hardware monitoring |
CN105260333A (en) * | 2015-09-24 | 2016-01-20 | 福州瑞芯微电子股份有限公司 | Accelerated processing method and device for audio signal |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116013334A (en) * | 2023-01-28 | 2023-04-25 | 荣耀终端有限公司 | Audio data processing method, electronic device and storage medium |
CN116013334B (en) * | 2023-01-28 | 2023-08-18 | 荣耀终端有限公司 | Audio data processing method, electronic device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106658174A (en) | Video decoding terminal and method | |
CN106506856A (en) | A kind of screen-refresh control method and terminal | |
CN106254628A (en) | A kind of mobile terminal and multi-display method | |
CN104918064A (en) | Rapid video play method and device of mobile terminal | |
CN106407088A (en) | Method and device for detecting multi-core CPU | |
CN106303088A (en) | Prompting control method and mobile terminal | |
CN106453939A (en) | Streaming media access method and apparatus | |
CN106157970A (en) | A kind of audio identification methods and terminal | |
CN106375840A (en) | Screen projection device, mobile terminal and screen projection connection method | |
CN106101455A (en) | Page jump management method, device and terminal | |
CN106254617A (en) | A kind of mobile terminal and control method | |
CN106095464A (en) | A kind of method and device of the seamless operation of application program | |
CN106453863A (en) | Method and system for controlling terminal and headset | |
CN106658288A (en) | Method for controlling playing of loudspeaker, and mobile terminal | |
CN106993093A (en) | A kind of image processing apparatus and method | |
CN106447595A (en) | Distributed image and graph rendering method and terminal | |
CN106484534A (en) | Control method for the mobile terminal of displaying and control device | |
CN106125898A (en) | The method and device of screen rotation | |
CN106161790A (en) | A kind of mobile terminal and control method thereof | |
CN105049916A (en) | Video recording method and device | |
CN106686211A (en) | Processing method and terminal for sound playing in split screen mode | |
CN107241497A (en) | Mobile terminal and loudness output adjusting method | |
CN106777251A (en) | A kind of file management method and device | |
CN106209137A (en) | A kind of SIM safe mobile phone and control method thereof and control system | |
CN106384596A (en) | Audio data processing method and terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170208 |
|
RJ01 | Rejection of invention patent application after publication |