A kind of audio playing apparatusTechnical field
The present invention relates to a kind of audio playing apparatus, be meant the audio playing apparatus of default played songs especially.
Background technology
In the prior art, the multi-medium data that mobile communication is handled is finished by special digital signal processor usually, is handled by audio process such as voice data.Fig. 1 is the structured flowchart of these processors.
As shown in Figure 1, audio process comprisesinterface module 110, voicedata decoder module 120,memory module 130, the D/A converter module 140 of transmitting data with baseband processor.In order to support different audio data format, before audio process began deal with data, its program and initialization data need pass throughinterface module 110, download to thememory module 130 from baseband processor.Baseband processor is input to voicedata decoder module 120 byinterface module 110 with voice data, voicedata decoder module 120 is extraction procedure and initialization data frommemory module 130, and to the voice data of the being imported computing of decoding, decoded voice data is sent into D/A converter module 140, realize playing.
Because before audio process begins deal with data, need from baseband processor download and initialization data to memory module, and the voice data decoder module will be from memory module extraction procedure and initialization data, and the time-delay phenomenon can appear in the voice data decoding, so can cause playing back music time-delay to occur, and the voice data decoder module to carry out the power consumption of data processing bigger.When only requiring that audio process plays acquiescence music seldom, and to the power consumption play with postpone to require when higher, such play mode, be difficult to reach low-power consumption and time delay short effect.
Summary of the invention
In view of this, one object of the present invention is to provide a kind of voice data playing device.
Another object of the present invention is to provide a kind of voice data Play System.
Technical scheme provided by the invention is specific as follows:
A kind of audio playing apparatus, comprise interface module, memory module, voice data decoder module, D/A converter module, described voice data decoder module is used for obtaining non-default audio data from described interface module under non-default audio play mode, and the voice data behind the output decoder;
Described audio playing apparatus also comprises selector switch two and steering logic unit;
Described memory module wherein stores the default audio data;
Described steering logic unit is used under the default audio play mode, according to the voice playing speed that is disposed, extracts the default audio data from described memory module, and output;
Described selector switch two, be arranged between described D/A converter module and steering logic unit, the voice data decoder module, be used under the default audio play mode, the transmission channel of default audio data from the steering logic unit to D/A converter module is provided, under non-default audio play mode, provide the transmission channel of decoded voice data from the voice data decoder module to D/A converter module;
Described D/A converter module receives default audio data or decoded voice data from selector switch two, and carries out the broadcast of default audio data or decoded voice data.
Described interface module comprises I/O port and voice playing speed deposit unit,
Described I/O port is used to receive the default audio data of external unit input, and stores in the described memory module;
Described voice playing speed deposit unit is used to receive the voice playing speed of external unit input, and is configured in the described steering logic unit.
Described memory module is further used for the intermediate result in program, initialization data and the decode procedure of stores audio data decoder module;
Described audio playing apparatus further comprises selector switch one, be arranged between described I/O port, voice data decoder module and the memory module, be used under the default audio play mode, the transmission channel of default audio data from the I/O port to memory module is provided, under non-default audio play mode, program, the transmission channel of initialization data from the I/O port to memory module of voice data decoder module are provided, and provide intermediate result in the decode procedure from the voice data decoder module to the transmission channel between the memory module.
Described interface module further comprises the selection deposit unit, is connected with described selector switch one, described selector switch two, will being used to control and selecting the selection signal of transmission channel to export described selector switch one and selector switch two to from external unit.
Described selector switch one is the gating switch of alternative, and one road input end connects described I/O port, and another road input end connects described voice data decoder module, and its output terminal connects described memory module, and its control end connects described selection deposit unit.
Described selector switch two is the gating switch of alternative, and the input of one road connects described steering logic unit, and another road input connects described voice data decoder module, and its output terminal connects described D/A converter module, and its control end connects described selection deposit unit.
Described interface module further comprises the command register unit, is used to receive the control signal from external unit, and exports described voice data decoder module and steering logic unit to,
Described control signal is used under the default audio play mode, closes described voice data decoder module, and opens described steering logic unit; Under non-default audio play mode, close described steering logic unit, and open described voice data decoder module.
Described interface module further comprises non-default audio data buffer, is used under non-default audio play mode, receives the non-default audio data of external unit input, and exports described voice data decoder module to.
Described default audio data are that described non-default audio data are for needing the voice data of decoding not through the voice data of coding.
The present invention also provides a kind of audio frequency broadcast system that comprises above-mentioned audio playing apparatus, also comprise baseband processor, described baseband processor connects the interface module of described audio playing apparatus, and under non-default audio play mode, program by described interface module input audio data decoder module and initialization data and are imported non-default audio data to the voice data decoder module of described audio playing apparatus to the memory module of described audio playing apparatus.
Described baseband processor is further used for when system initialization, stores to described memory module by the I/O port input default voice data of described interface module; And under the default audio play mode, the voice playing speed deposit unit by described interface module is to described steering logic configuration of cells voice playing speed.
Described baseband processor further is used for the control command of described audio decoder module of opening and closing and steering logic unit to described voice data decoder module and the input of steering logic unit by the command register unit of described interface module;
And the selection deposit unit by described interface module is used to control the selection signal of selecting transmission channel to the selector switch one and selector switch two inputs of described audio playing apparatus.
By above technical scheme as seen, audio playing apparatus provided by the invention and audio frequency broadcast system, on the basis of function that keeps original audio decoder and structure, by increasing control logic circuit seldom, the default audio data are kept in the memory module, from memory module, fetch data by certain frequency by the steering logic unit again, and be transferred to D/A converter module, realize playing.Before having reduced voice data decoder module processing audio data, from baseband processor download and initialization data to storage unit, again by the process of voice data decoder module from memory module extraction procedure and initialization data.When playing, close audio decoding unit, reduced power consumption, shortened downloading and the time delay that process caused such as initialization data.
Description of drawings
Fig. 1 is the structured flowchart of prior art sound intermediate frequency processor;
Fig. 2 is an audio playing apparatus embodiment synoptic diagram provided by the invention.
Embodiment
According to audio playing apparatus provided by the invention and audio frequency broadcast system, on the basis of function that keeps original audio decoder and structure, by increasing control logic circuit seldom, the default audio data are kept in the storage unit, from memory module, extract voice data by the steering logic unit by certain frequency again, and be transferred to D/A converter module, realize playing.
For making purpose of the present invention, technical scheme and advantage clearer, below with reference to the accompanying drawing embodiment that develops simultaneously, the present invention is described in more detail.
Fig. 2 is an audio frequency broadcast system embodiment synoptic diagram provided by the invention.As shown in Figure 2, this system comprisesbaseband processor 280 and audio data decoding apparatus 290, and wherein audio data decoding apparatus 290 comprisesinterface module 210, voicedata decoder module 220,memory module 240,steering logic unit 250, D/A converter module 270 and twoselector switchs 230 and 260.
Comprise command register unit 211, data buffer to be decoded 212, I/O port 213 in the describedinterface module 210, select deposit unit 214, voice playingspeed deposit unit 215.
Wherein, command register unit 211 is used to receive and store the control signal that sends from baseband processor 280.When system initialization, the command register unit receives the control signal frombaseband processor 280, closes voicedata decoder module 220, makes it be in the low-power consumption off position.When needs are play default audio, the control signal that command register unit 211 receives frombaseband processor 280,steering logic unit 260 obtains this control signal from order deposit unit 211, and is changed to opening; When the audio frequency of needs broadcast is not default audio, inbaseband processor 280 with audio decoder program and initialization data by after sending tomemory module 240, the control signal that command register unit 211 receives frombaseband processor 280, voicedata decoder module 220 obtains this control signal from order deposit unit 211, and places opening.
Data buffer 212 to be decoded, be used to receive and buffer memory from the non-default audio data ofbaseband processor 280, and under non-default audio play mode, send non-default audio data to voicedata decoder module 220.
I/O port 213 is used to transmit the program and the data that need conversion timing sequence.When needs were play default audio, 213 transmission of I/O port were given selector switch 1 from the default audio data ofbaseband processor 280; When needs were play non-default audio, 213 transmission of I/O port were from the voice data decoding program and the initialization data ofbaseband processor 280.
Select deposit unit 214, be used to receive and store selection signal from baseband processor 280.Whether according to the voice data that will play is default data, selects deposit unit 214 receptions and the storage alternative signal frombaseband processor 280, and this alternative signal will be as the gating control signal of selector switch 1 and selector switch 2 260.
Voice playingspeed deposit unit 215 is used to receive and store the voice playing rate value ofbaseband processor 280 configurations.
Described selector switch 1, selector switch 2 260 all can be the gating switch of alternative.
An input end of selector switch 1 connects I/O port 213, be used to import program and the data that described I/O port 213 sends, another input end connects voicedata decoder module 220, be used to import the voice data processing intermediate result that described voicedata decoder module 220 sends, its gating control end input is from the selection signal of selecting deposit unit 214, and its output terminal is connected with memory module.
An input end of selector switch 2 260 connects voicedata decoder module 220, be used to import final data from after voicedata decoder module 220 decoding processing, another input end connectssteering logic unit 250, be used for importing the default audio data that send fromsteering logic unit 250 frommemory module 240 extractions, its gating control end input is from the selection signal of selectingdeposit unit 213, and its output terminal is connected withsteering logic unit 250.
During system initialization, atfirst baseband processor 280 transmits control signal through command register unit 211 and closesaudio decoder module 220, send then and select signal to selecting deposit unit 214, this signal will be as the gating control signal of selector switch 1, selector switch 1 gating under the control of this gating control signal connects the input end of I/O port 213, and the default audio data that output sends through I/O port 213 are tomemory module 250, andmemory module 250 is preserved these default audio data.
When needs are play default audio, atfirst baseband processor 280 transmits control signal through command register unit 211 and closesaudio decoder module 220, and configuration voice playing speed is then selected signal to selecting deposit unit 214 to send, select deposit unit 214 will select signal to send to selector switch 1 as the gating control signal of selector switch 1, selector switch one 230 gatings connect the input end of I/O port 213; The steering logic unit is opened in the command register unit,steering logic unit 250 regularly extracts the default audio data according to the voice playing rate value frommemory module 240, then the default audio data of extracting are sent to selector switch 2 260, as an input end input of selector switch 2 260; This selection signal equally also sends to selector switch 2 260 as the gating control signal of selector switch 2 260, selector switch 2 260 gatings connect the input end ofsteering logic unit 250, and the default audio data that outputcontrol logic unit 260 sends realize playing to D/A converter module 270.
When the audio frequency of needs broadcast is not default audio, thebaseband processor 280 closing controllogical block 250 that transmits control signal through command register unit 211 at first, select signal to selecting deposit unit 214 to send, select deposit unit 214 will select signal to send to selector switch 1 as the gating control signal of selector switch 1, selector switch one 230 gatings connect the input end of I/O port, and output through I/O port 213 send from the voice data decoding program ofbaseband processor 280 and initialization data tomemory module 240; Basebandprocessor 280 sends to the selection signal of selecting deposit unit 214, sends to selector switch 1 as the gating control signal of selector switch 1, and selector switch one 230 gatings connect the input end of voicedata decoder module 220; Thenbaseband processor 280 transmits control signal through command register unit 211, opens voicedata decoder module 220, and 212 sends non-default audio data to voicedata decoder module 220 through non-default audio data buffer; Voicedata decoder module 220 extracts initialization voice data decoding program and initialization data frommemory module 250 then, and non-default audio data are handled.In processing procedure, voicedata decoder module 220 stores the intermediate result of decoding processing intomemory module 240 on the one hand, handle non-default audio data on the other hand from non-defaultaudio data buffer 212, and will finish the final data output of decoding, as an input end input of selector switch 2 260; Same selector switch 2 260 is also selected under the control of signal at this, and gating connects the input end of voicedata decoder module 220, and exports from the audio decoder final data ofaudio decoder module 220 and give D/A converter module 270, realizes playing.
Among the present invention, described default audio data can be the voice datas of un-encoded, such as WAV, PCM data etc.
By the above embodiments as seen, compared with prior art, play at needs under the situation of default audio, reduce preceding download initializes program and the initialization data of voice data decoder module processing audio data and arrived memory module, by the process of voice data decoder module, when playing, close audio decoding unit again from memory module extraction procedure and data, reduced power consumption, shortened downloading and the time delay that process caused such as initialization data.
Based on above-mentioned superiority of the present invention, the present invention can be widely used in the portable audio-frequence player device, and it is short to obtain time delay, remarkable result low in energy consumption.Such as being used for mobile phone, when start, or before mobile phone dispatches from the factory, in advance with the default audio data storage in the storage card of mobile phone, baseband processor with the default audio data storage in memory module, under the situation that is chosen to be the system default the tinkle of bells, in case incoming call or note or mail etc. are arranged, the baseband processor of mobile phone will be controlled audio playing apparatus of the present invention, and the default audio data of directly extracting in the memory module are play as ringing sound of cell phone.
In a word, the above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.Those skilled in the art can change accordingly according to embodiments of the invention, be not limited to the structure of the foregoing description as the interface module among the present invention, can be that other form structures, as long as the interface with transmission command, data function is all applicable among the present invention.The present invention also can be implemented as to solidify in the memory module and store the default audio data for another example, and/or for the process of steering logic configuration of cells voice playing speed in advance voice playing speed being cured in the steering logic unit.In addition, selector switch one, two also can adopt other modules that data transmission channel can be provided to realize.Therefore within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.