CN107357547A - A kind of audio control method, audio control apparatus and audio frequency apparatus - Google Patents

A kind of audio control method, audio control apparatus and audio frequency apparatus Download PDF

Info

Publication number
CN107357547A
CN107357547A CN201710454578.8A CN201710454578A CN107357547A CN 107357547 A CN107357547 A CN 107357547A CN 201710454578 A CN201710454578 A CN 201710454578A CN 107357547 A CN107357547 A CN 107357547A
Authority
CN
China
Prior art keywords
audio
frame
audio frequency
application processor
data frame
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710454578.8A
Other languages
Chinese (zh)
Other versions
CN107357547B (en
Inventor
迟欣
吴海全
韩中波
陈飞
祁学文
王如军
张恩勤
曹磊
师瑞文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Grandsun Electronics Co Ltd
Original Assignee
Shenzhen Grandsun Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Grandsun Electronics Co Ltd filed Critical Shenzhen Grandsun Electronics Co Ltd
Priority to CN201710454578.8A priority Critical patent/CN107357547B/en
Publication of CN107357547A publication Critical patent/CN107357547A/en
Application granted granted Critical
Publication of CN107357547B publication Critical patent/CN107357547B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/162Interface to dedicated audio devices, e.g. audio drivers, interface to CODECs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • G06F13/4291Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus using a clocked protocol

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Communication Control (AREA)
  • Transmission Systems Not Characterized By The Medium Used For Transmission (AREA)

Abstract

The invention discloses a kind of audio control method, audio control apparatus and audio frequency apparatus, wherein, the audio control method is applied to audio frequency apparatus, and the audio control method includes:The audio frequency control frame of coder or application processor the generation preset format of the audio frequency apparatus, the audio frequency control frame is sent within the frame period of an audio data frame, wherein, the audio frequency control frame generated and sent by the coder to the application processor enables to attribute of the application processor based on the audio frequency control frame acquisition audio data frame;The audio frequency control frame generated and sent by the application processor to the coder enables to the coder to control output of the audio data frame on the audio frequency apparatus based on the audio frequency control frame.The present invention program make it that extra traffic need not be taken under the working condition of audio frequency apparatus can be achieved the dynamic transmission of audio frequency parameter, and can dynamically adjust the output of voice data.

Description

A kind of audio control method, audio control apparatus and audio frequency apparatus
Technical field
Voice data transmission field of the present invention, more particularly to a kind of audio control method, audio control apparatus, audio frequency apparatus And computer-readable recording medium.
Background technology
Integrated circuit built-in audio bus (Inter-IC Sound, I2S) is that PHILIPS Co. is directed to digital audio-frequency apparatus, Such as the sound between laser disc (Compact Disc, CD) player, digital sound effect processor, DTV sound system etc. Frequency data transfer and a kind of bus standard formulated.It employs the design of independent wire transmission clock and data-signal, leads to The distortion that by data and clock signal separation, can avoid inducing by the time difference is crossed, thus most audios are equal on current market Carried out data transmission by I2S agreements.In I2S agreements, there are three kinds of signals, respectively serial clock, frame clock and serial number According to.Serial data is the voice data represented with the complement of two's two's complement, and each pulse of serial clock has corresponded to serially respectively A voice data on data-signal, and frame clock is then used for the voice data of switching right and left sound channel.When audio frequency apparatus is being broadcast Put middle when needing to be adjusted the audio of output, often also need to take extra data flow and related play parameter is adjusted Whole and control.
The content of the invention
In view of this, can the invention provides a kind of audio control method, audio control apparatus, audio frequency apparatus and computer Read storage medium, it is intended to so that audio frequency apparatus need not take extra data flow when playing and the dynamic of audio frequency parameter can be achieved State transmission, and can also realize and the dynamic of voice data output is adjusted.
The first aspect of the present invention provides a kind of audio control method, applied to audio frequency apparatus, the audio frequency control side Method includes:
The audio frequency control frame of coder or application processor the generation preset format of the audio frequency apparatus, wherein, institute State audio frequency control frame and carry audio frequency parameter, the audio frequency parameter is used for the attribute for transmitting audio data frame or control voice data The output of frame;
The coder to the application processor after it have sent an audio data frame, in the audio data frame Frame period in, the audio frequency control frame is sent to the application processor, to cause the application processor to be based on the sound Frequency control frame obtains the attribute of the audio data frame;
Or the application processor is to the coder after it have sent an audio data frame, in the audio In the frame period of data frame, the audio frequency control frame is sent to the coder, make it that it is described that the coder is based on Audio frequency control frame controls output of the audio data frame on the audio frequency apparatus.
The second aspect of the present invention provides a kind of audio control apparatus, applied to audio frequency apparatus, the audio frequency apparatus bag Coder and application processor are included, the audio control apparatus includes:
Generation unit, for generating the audio frequency control frame of preset format by the coder or application processor, Wherein, the audio frequency control frame carries audio frequency parameter, and the audio frequency parameter is used for attribute or the control for transmitting audio data frame The output of audio data frame;
First transmitting element, for the coder to the application processor have sent with voice data it Afterwards, within the frame period of the audio data frame, the audio frequency control frame is sent to the application processor, to cause described answer The attribute of the audio data frame is obtained based on the audio frequency control frame with processor;
Second transmitting element, for the application processor to the coder have sent an audio data frame it Afterwards, within the frame period of the audio data frame, the audio frequency control frame is sent to the coder, to cause the compiling Code device controls output of the audio data frame on the audio frequency apparatus based on the audio frequency control frame.
The third aspect of the present invention provides a kind of audio frequency apparatus, including memory, primary processor, coder, application Processor and the computer program that can be run in the memory and on the processor is stored in, the primary processor is held The coder and/or application processor is controlled to realize the step of audio control method as described above during the row computer program Suddenly.
The fourth aspect of the present invention provides a kind of computer-readable recording medium, and the computer-readable recording medium is deposited Computer program is contained, the step of computer program realizes audio control method as described above when being executed by processor.
Therefore in the present invention, the audio frequency control frame of preset format is generated by the coder of the audio frequency apparatus, Wherein, the audio frequency control frame carries audio frequency parameter, and the audio frequency parameter is used for attribute or the control for transmitting audio data frame The output of audio data frame, then, the coder have sent an audio number in the application processor to the audio frequency apparatus After frame, within the frame period of the audio data frame, continue to send the audio frequency control frame to the application processor, with So that the application processor obtains the attribute of the audio data frame based on the audio frequency control frame.Or at the application Device is managed after it have sent an audio data frame to the coder, within the frame period of the audio data frame, to described Coder sends the audio frequency control frame, to cause the coder is based on the audio frequency control frame to control the audio number According to output of the frame on the audio frequency apparatus.
The present invention program need not take extra data flow, only with existing serial data line in transmission audio Spare bits during data frame, you can the audio frequency parameter required for being transmitted to application processor during audio plays, also achieve dynamic Adjust the function of the output of voice data.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art In the required accompanying drawing used be briefly described, it should be apparent that, drawings in the following description be only the present invention some Embodiment, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these Accompanying drawing obtains other accompanying drawings.
Fig. 1 is the implementation process schematic diagram of audio control method provided in an embodiment of the present invention;
Fig. 2 is the exemplary plot of the standard output waveform of each data wire provided in an embodiment of the present invention based on I2S agreements;
Fig. 3 is another implementation process schematic diagram of audio control method provided in an embodiment of the present invention;
Fig. 4 is the exemplary plot of audio control apparatus provided in an embodiment of the present invention;
Fig. 5 is the schematic diagram of audio frequency apparatus provided in an embodiment of the present invention.
Embodiment
In describing below, in order to illustrate rather than in order to limit, it is proposed that such as tool of particular system structure, technology etc Body details, thoroughly to understand the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific The present invention can also be realized in the other embodiments of details.In other situations, omit to well-known system, device, electricity Road and the detailed description of method, in case unnecessary details hinders description of the invention.
In order to illustrate technical solutions according to the invention, illustrated below by specific embodiment.
Embodiment one
Fig. 1 shows the implementation process for the audio control method that the embodiment of the present invention one provides, and details are as follows:
In step S101, the audio control of coder or application processor the generation preset format of above-mentioned audio frequency apparatus Frame processed.
In embodiments of the present invention, the coder of above-mentioned audio frequency apparatus or application processor can generate preset format Audio frequency control frame, wherein, above-mentioned audio frequency control frame carries audio frequency parameter, and above-mentioned audio frequency parameter is used to control audio data frame Output or transmit audio data frame attribute.For example, when above-mentioned audio data frame is as output data, then above-mentioned audio Parameter can be the relevant parameter for adjusting audio output quality or the related ginseng for changing audio output apparatus Number, it can also be for controlling Digital Signal Processing in audio frequency apparatus (Digital Signal Processing, DSP) to apply Relevant parameter, be not restricted herein.When above-mentioned audio data frame is as input data, then above-mentioned audio frequency parameter can be used In the attribute information for reporting or transmitting above-mentioned audio data frame, such as sound source position information etc., it is not construed as limiting herein.It is different Audio frequency apparatus production firm the form of above-mentioned audio frequency control frame according to its purpose, can be preset and above-mentioned audio frequency parameter exists Purposes under different scenes, is not construed as limiting herein.
In step s 102, above-mentioned coder is to above-mentioned application processor after it have sent an audio data frame, In the frame period of above-mentioned audio data frame, above-mentioned audio frequency control frame is sent to above-mentioned application processor, to cause at above-mentioned application Manage the attribute that device obtains above-mentioned audio data frame based on above-mentioned audio frequency control frame.
In embodiments of the present invention, above-mentioned coder to above-mentioned application processor have sent an audio data frame it Afterwards, within the frame period of above-mentioned audio data frame, continue to send above-mentioned audio frequency control frame to above-mentioned application processor, on causing State the attribute that application processor obtains above-mentioned audio data frame based on above-mentioned audio frequency control frame, it should be noted that now, compiling The audio frequency control frame that code device is sent to application processor is the audio frequency control frame that is generated by above-mentioned coder.Wherein, it is above-mentioned to answer It is a kind of multimedia application processor of low-power consumption with processor, the multi-medium datas such as audio frequency and video and image can be handled.Fig. 2 shows Go out when transmitting voice data based on I2S agreements, the oscillogram on each data wire:WS represents track selecting, and WS is low electricity Usually (such as during WS=0), it is the voice data of L channel to represent what is transmitted, when WS is high level (such as WS=1 When), it is the voice data of R channel to represent what is transmitted;SCK represents serial clock, and SD represents serial data line, What is transmitted on serial data line is audio data frame, it can be seen that is corresponding with audio data frame in the rising edge of serial clock A data bit.By taking the voice data of L channel in Fig. 2 as an example, although in the data transmission period of L channel, Ke Yichuan Defeated 32 data bit, but the audio data frame actually transmitted on serial data line has only taken up 24 data bit, it means that There are 8 data bit not to be utilized, it is in idle condition, can be called spare bits.In this step, exactly passing After a defeated frame audio data frame, the audio frequency control frame that is obtained using remaining spare bits transmitting step S101.It should be noted , the data bits that above-mentioned audio frequency control frame takes must be no more than the digit of the spare bits after a frame audio data frame. Thus in step S101, in the form of the above-mentioned audio frequency control frame of factory default, it is necessary in view of can on serial data line The maximum number of digits of the spare bits continuously taken, avoid the audio frequency control frame of generation long.After application processor is sent to, such as The above-mentioned audio frequency apparatus of fruit is supported to read audio frequency control frame, then parses above-mentioned audio frequency control frame by application processor, obtain audio ginseng Number;If above-mentioned audio frequency apparatus is not supported to read audio frequency control frame, above-mentioned application processor still can read serial data The audio data frame of upper transmission, and the audio frequency control frame transmitted after audio data frame is directly abandoned, will not be to voice data Transfer tape carrys out any adverse effect.Further, can also be according to each even if being connected with different audio frequency apparatuses on one group of I2S The different audio frequency parameters that audio frequency apparatus is supported, allow output of the different audio frequency apparatuses to voice data carry out different control or Obtain the different types of attribute of audio data frame.
In step s 103, above-mentioned application processor is to above-mentioned coder after it have sent an audio data frame, In the frame period of above-mentioned audio data frame, above-mentioned audio frequency control frame is sent to above-mentioned coder, to cause above-mentioned coder Output of the above-mentioned audio data frame on above-mentioned audio frequency apparatus is controlled based on above-mentioned audio frequency control frame.
In embodiments of the present invention, the process of above-mentioned application processor to above-mentioned coder transmission audio frequency control frame is similar Seemingly, all it is in the audio control after a frame audio data frame is transmitted, obtained using remaining spare bits transmitting step S101 Frame processed, it should be noted that now, the audio frequency control frame that application processor is sent to coder is by above-mentioned application processor The audio frequency control frame of generation.After the audio frequency control frame that coder obtains that above-mentioned application processor is sent, if above-mentioned Audio frequency apparatus is supported to read audio frequency control frame, then parses above-mentioned audio frequency control frame by coder, obtain audio frequency parameter;On if State audio frequency apparatus not support to read audio frequency control frame, then above-mentioned coder still can read the audio sent in serial data Data frame, and the audio frequency control frame transmitted after audio data frame is directly abandoned, the output of voice data will not be brought any Adverse effect.It should be noted that in actual applications, audio frequency apparatus can only carry out above-mentioned steps S102, can also only hold Row above-mentioned steps S103, above-mentioned steps S102 and step S103 can also simultaneously or be successively performed, is not construed as limiting herein.
Alternatively, in order to better control over voice data, above-mentioned steps S101 can include:
Above-mentioned coder or application processor are according to the transmission order of each audio data frame to be sent, in real time life Into audio frequency control frame corresponding with each audio data frame to be sent.
Wherein, above-mentioned coder or application processor can be with spontaneous according to each audio data frame to be sent Transmission order, generates audio frequency control frame corresponding with each audio data frame to be sent in real time.For example, for application processor For, it is currently needed for being controlled audio output if application processor judges to obtain, each frame sound can be generated in real time Audio frequency control frame corresponding to frequency data frame, and parsed by coder after audio data frame is received, realize real When control;If coder is thought currently be controlled, above-mentioned audio frequency control frame can be directly abandoned, without shadow Ring original audio output.
In order that the embodiment of the present invention is clearer, clear, the embodiment of the present invention is illustrated with concrete instance below:
Microphone array has been a main flow equipment in audio frequency apparatus, passes through microphone array, it is possible to achieve long distance From voice recognition, while it may determine that the direction of audio.Current location information mostly by bus transfer extra I2C etc., On the one hand complete synchronization can not be accomplished with voice, on the other hand adds additional bus and the power consumption of controller.
Based on the embodiment of the present invention, one can be collected into microphone after microphone is collected into 16 speech datas After frame speech data frame, within the frame period of the speech data frame, the positional information of preset format is transmitted, with above-mentioned preset format Digit be 8 exemplified by, more than 180 angle informations can be described, can accomplish 2 degree of resolution ratio, but due to it is current mostly Number microphone array not yet reaches so high precision, so transmitting the real-time of the source of speech data with the positional information of 8 Position is enough, behind still available free position transmit other audio frequency parameters that audio frequency apparatus may need.
Specifically, can be behind the speech data frame of a L channel or after the speech data frame of a R channel Above-mentioned positional information is transmitted in face, can also be and above-mentioned positional information is transmitted behind the speech data frame of each sound channel, can be by Developer sets, and herein and is not construed as limiting, as long as I2S bus terminal devices are consistent.Believe for non-use position The equipment of breath, receive the positional information that can ignore completely after speech data below.
Therefore by the embodiment of the present invention, during the audio transmission based on I2S agreements, in serial data The audio frequency parameter in audio frequency control frame is transmitted using the spare bits after a frame audio data frame so that audio frequency apparatus energy on line Enough attributes for being adjusted or obtaining voice data to audio output based on these audio frequency parameters.And due to audio frequency control frame It is the transmission carried out under I2S agreements, possesses the characteristics of real-time is good, can be completely corresponding with audio data frame, it will not produce The problem of voice data that different bus issues can not be to its.
It should be understood that the size of the sequence number of each step is not meant to the priority of execution sequence, each process in above-described embodiment Execution sequence should determine that the implementation process without tackling the embodiment of the present invention forms any limit with its function and internal logic It is fixed.
Embodiment two
Fig. 3 shows the implementation process for another audio control method that the embodiment of the present invention two provides, and details are as follows:
In step S301, if above-mentioned coder receives the control initial order that above-mentioned application processor device is sent, Then under the instruction of above-mentioned control initial order, origination audio data frame is determined.
In embodiments of the present invention, when above-mentioned coder receives the control initial order of above-mentioned application processor transmission When, origination audio data frame can be determined under the instruction of above-mentioned control initial order, wherein, above-mentioned origination audio data frame The the first frame audio data frame for needing to transmit audio frequency parameter for this.Above-mentioned control initial order can be led to by application processor Operation requests generation generate or response user is crossed after comprehensive descision, is not construed as limiting herein.
In step s 302, origination audio control frame corresponding with above-mentioned origination audio data frame is generated.
In embodiments of the present invention, after above-mentioned origination audio data frame is determined, can be given birth to by above-mentioned coder Into origination audio control frame corresponding with above-mentioned origination audio data frame, above-mentioned origination audio control frame except audio frequency parameter it Outside, further indicates corresponding audio data frame is the first frame audio data frame that this needs to transmit audio frequency parameter.
In step S303, above-mentioned coder to above-mentioned application processor send above-mentioned origination audio data frame it Afterwards, within the frame period of above-mentioned origination audio data frame, above-mentioned origination audio control frame is sent to above-mentioned application processor.
In embodiments of the present invention, above-mentioned coder is sending above-mentioned origination audio data frame to above-mentioned application processor Afterwards, it can send above-mentioned origination audio within the frame period of above-mentioned origination audio data frame to above-mentioned application processor and control Frame, to cause above-mentioned application processor is based on above-mentioned audio frequency control frame to obtain above-mentioned origination audio data frame and above-mentioned origination audio The attribute of other audio data frames after data frame.When above-mentioned application processor receive above-mentioned origination audio control frame it Afterwards, it can determine that audio data frame corresponding with above-mentioned audio frequency control frame is origination audio data according to above-mentioned audio frequency control frame Frame, it is the first frame audio data frame that this needs to obtain the attribute of voice data, if the attribute of the voice data now obtained It will not change in a short time, i.e. if other data frames and above-mentioned origination audio data after above-mentioned origination audio data frame Frame possesses same attribute, then after now application processor has actually also got above-mentioned origination audio data frame The attribute of other audio data frames, thus, for other audio data frames after above-mentioned origination audio data frame, coder It can select not generating audio frequency control frame, to reduce the operating pressure of above-mentioned coder.
Alternatively, above-mentioned audio control method also includes:
If above-mentioned coder receives the control END instruction that above-mentioned application processor is sent, terminate in above-mentioned control Under the instruction of instruction, it is determined that terminating audio data frame, above-mentioned termination audio data frame needs to transmit audio frequency parameter most for this A later frame audio data frame;
Generation termination audio frequency control frame corresponding with above-mentioned termination audio data frame;
Above-mentioned coder to above-mentioned application processor after above-mentioned termination audio data frame is sent, in above-mentioned termination sound In the frame period of frequency data frame, above-mentioned termination audio frequency control frame is sent to above-mentioned application processor, to cause above-mentioned application to handle Device terminates the attribute based on other audio data frames after the above-mentioned termination audio data frame of above-mentioned origination audio control frame acquisition.
Wherein, after above-mentioned coder receives control initial order, origination audio data frame is can determine whether, and generate Corresponding origination audio control frame, to enable application processor to start to obtain these sounds based on above-mentioned origination audio control frame The attribute of frequency data frame.It will be clear that the attribute of this audio data frame can't keep constant for a long time under normal circumstances.When should When the attribute for obtaining voice data is no longer desired with processor, control termination can be sent to coder from application processor and referred to Order, after coder obtains above-mentioned control command for stopping, it can determine whether to terminate audio data frame, i.e., this needs to transmit audio The last frame audio data frame of parameter, and generate termination audio frequency control frame corresponding with above-mentioned termination audio data frame.Due to For above-mentioned termination audio frequency control frame in addition to audio frequency parameter, further indicates corresponding audio data frame is that this needs audio The last frame audio data frame of parameter, thus acquisition of the application processor to the attribute of audio data frame can be in above-mentioned termination Terminate under the instruction of audio frequency control frame.
Alternatively, above-mentioned audio control method also includes:
Above-mentioned application processor obtains above-mentioned audio frequency apparatus and is presently in the environmental noise value of environment and above-mentioned audio frequency apparatus Audio output state;
The then audio frequency control frame of the coder of above-mentioned audio frequency apparatus or application processor generation preset format, can be with table It is now:
If above-mentioned environmental noise value and above-mentioned audio output state meet default audio frequency control condition, by above-mentioned application Processor generates the audio frequency control frame of preset format.
Wherein, above-mentioned application processor can obtain the environmental noise value of audio frequency apparatus local environment by microphone, together When, application processor can also get the current audio output state of audio frequency apparatus.Above-mentioned audio output state can be Present video equipment is obtained with which kind of state output audio, that is to say the application state of above-mentioned audio frequency apparatus.If for example, Above-mentioned audio frequency apparatus also has call function, then when audio frequency apparatus is in talking state, if being detected simultaneously by environmental noise value Default environmental noise threshold value is exceeded, has then needed to strengthen the output effect of audio, enable a user to clearly be led to Words.In other words, once application processor finds that current audio output state is talking state, and environmental noise value exceedes Default environmental noise threshold value, then generation controls initial order, to cause above-mentioned coder to be based on above-mentioned control initial order Origination audio control frame is generated, volume amplification when control audio data frame exports.Certainly, above-mentioned default audio frequency control shape What state was merely exemplary, developer can set the audio frequency control condition under various application scenarios according to demand, herein not It is construed as limiting.Further, when application processor is just controlled based on audio frequency control frame to voice data, once above-mentioned environment Level of noise and above-mentioned audio output state are unsatisfactory for default audio frequency control condition, then above-mentioned application processor can stop generating The audio frequency control frame of preset format, to terminate the control to audio data frame.Further, application processor is generating above-mentioned sound During frequency control frame, can be for each audio data frame generate in real time audio frequency control frame or with above-mentioned coder It is similar during generation audio frequency control frame, meet default audio frequency control in above-mentioned environmental noise value and above-mentioned audio output state Origination audio data frame is determined during condition, default audio control is unsatisfactory in above-mentioned environmental noise value and above-mentioned audio output state Determine to terminate audio data frame during condition processed, and it is relative with above-mentioned origination audio data frame and termination audio data frame by generation The origination audio control frame and termination audio frequency control frame answered, to enable above-mentioned coder to be based on application processor generation simultaneously The origination audio control frame and termination audio frequency control frame of transmission carry out output control to series of audio data frame.In order to it is above-mentioned The origination audio control frame and termination audio frequency control frame of coder generation make a distinction, and can generate application processor rises Beginning audio frequency control frame and termination audio frequency control frame are referred to as the second origination audio control frame and the second termination audio frequency control frame.
Therefore pass through the embodiment of the present invention so that audio frequency apparatus is actively entered control operation without user, you can real Now to the dynamic control for the audio frequency apparatus for exporting voice data, more intelligent and hommization.
It should be understood that the size of the sequence number of each step is not meant to the priority of execution sequence, each process in above-described embodiment Execution sequence should determine that the implementation process without tackling the embodiment of the present invention forms any limit with its function and internal logic It is fixed.
Embodiment three
Fig. 4 shows the concrete structure block diagram for the audio control apparatus that the embodiment of the present invention three provides, for convenience of description, It illustrate only the related part of the embodiment of the present invention.The audio control apparatus 4 is applied to audio frequency apparatus, including:Generation unit 41, First transmitting element 42, the second transmitting element 43.
Wherein, generation unit 41, for generating the audio frequency control of preset format by above-mentioned coder or coder Frame, wherein, above-mentioned audio frequency control frame carries audio frequency parameter, and above-mentioned audio frequency parameter is used for attribute or the control for transmitting audio data frame The output of audio data frame processed;
First transmitting element 42, for have sent one in the application processor to above-mentioned audio frequency apparatus in above-mentioned coder After audio data frame, within the frame period of above-mentioned audio data frame, above-mentioned audio frequency control frame is sent to above-mentioned application processor, To cause attribute of the above-mentioned application processor based on the above-mentioned audio data frame of above-mentioned audio frequency control frame acquisition;
Second transmitting element 43, for have sent an audio data frame to above-mentioned coder in above-mentioned application processor Afterwards, within the frame period of above-mentioned audio data frame, above-mentioned audio frequency control frame is sent to above-mentioned coder, to cause above-mentioned volume Decoder controls output of the above-mentioned audio data frame on above-mentioned audio frequency apparatus based on above-mentioned audio frequency control frame.
Alternatively, above-mentioned generation unit 41 includes:
First generation subelement, for by above-mentioned coder or application processor according to each audio number to be sent According to the transmission order of frame, audio frequency control frame corresponding with each audio data frame to be sent is generated in real time.
Alternatively, above-mentioned generation unit 41 includes:
Initial data frame determination subelement, for receiving the control of above-mentioned application processor device transmission when above-mentioned coder During initial order processed, under the instruction of above-mentioned control initial order, origination audio data frame, above-mentioned origination audio data frame are determined The the first frame audio data frame for needing to transmit audio frequency parameter for this;
Second generation subelement, for generating origination audio control corresponding with above-mentioned origination audio data frame as coder Frame processed;
Above-mentioned first transmitting element 42 is specifically used for, and above-mentioned coder is sending above-mentioned starting to above-mentioned application processor After audio data frame, within the frame period of above-mentioned origination audio data frame, above-mentioned starting sound is sent to above-mentioned application processor Frequency control frame, to cause above-mentioned application processor is based on above-mentioned audio frequency control frame to obtain above-mentioned origination audio data frame and above-mentioned The attribute of other audio data frames after beginning audio data frame.
Alternatively, above-mentioned generation unit 41 includes:
Data frame determination subelement is terminated, for receiving the control of above-mentioned application processor transmission when above-mentioned coder During END instruction, under the instruction of above-mentioned control END instruction, it is determined that terminating audio data frame, above-mentioned termination audio data frame is This needs the last frame audio data frame for transmitting audio frequency parameter;
3rd generation subelement, for as coder generation termination audio control corresponding with above-mentioned termination audio data frame Frame processed;
Above-mentioned first transmitting element 42 is specifically used for, and above-mentioned coder is sending above-mentioned termination to above-mentioned application processor After audio data frame, within the frame period of above-mentioned termination audio data frame, above-mentioned termination sound is sent to above-mentioned application processor Frequency control frame, to cause above-mentioned application processor so that above-mentioned application processor terminates to obtain based on above-mentioned origination audio control frame The attribute of other audio data frames after above-mentioned termination audio data frame.
Alternatively, above-mentioned audio control apparatus 4 also includes:
Acquiring unit, for being presently in the environmental noise of environment by the above-mentioned audio frequency apparatus of above-mentioned application processor acquisition The audio output state of value and above-mentioned audio frequency apparatus;
Above-mentioned generation unit 41, including:
4th generation subelement, for meeting default audio control when above-mentioned environmental noise value and above-mentioned audio output state During condition processed, the audio frequency control frame of preset format is generated by above-mentioned application processor.
Therefore by the embodiment of the present invention, the audio transmission process based on I2S agreements is used in audio control apparatus In, the audio frequency parameter in audio frequency control frame is transmitted using the spare bits after a frame audio data frame on serial data line, Audio frequency apparatus is enabled to be adjusted or obtain the parameter of required voice data to audio output based on these audio frequency parameters. And because audio frequency control frame is the transmission that is carried out under I2S agreements, possess the characteristics of real-time is good, can be with audio data frame It is completely corresponding, the problem of voice data that different bus issues can not be to its will not be produced.Further, audio frequency apparatus is also caused Control operation is actively entered without user, you can is realized to the dynamic control for the audio frequency apparatus for exporting voice data, more Intellectuality and hommization.
Example IV
Fig. 5 is the schematic diagram for the audio frequency apparatus that the embodiment of the present invention four provides.As shown in figure 5, the audio of the embodiment is set Standby 5 include:Primary processor 50, memory 51, coder 52, application processor 53 and it is stored in above-mentioned memory 51 simultaneously The computer program 54 that can be run on above-mentioned primary processor 50, such as audio frequency control program.On above-mentioned primary processor 50 performs The step in above-mentioned each audio control method embodiment, such as the step S101 shown in Fig. 1 are realized when stating computer program 54 To S103.Or above-mentioned primary processor 50 realizes each unit in above-mentioned each device embodiment when performing above computer program 54 Function, such as the function of unit 41 to 43 shown in Fig. 4.
Exemplary, above computer program 54 can be divided into one or more units, said one or multiple Unit is stored in above-mentioned memory 51, and is performed by above-mentioned primary processor 50, to complete the present invention.Said one is multiple Unit can be the series of computation machine programmed instruction section that can complete specific function, and the instruction segment is used to describe above computer Implementation procedure of the program 54 in above-mentioned audio control apparatus 4.For example, above computer program 54 can be divided into generation list Member, the first transmitting element, the second transmitting element, each unit concrete function are as follows:
Generation unit, for generating the audio control of preset format by above-mentioned coder 52 or above-mentioned application processor 53 Frame processed, wherein, above-mentioned audio frequency control frame carries audio frequency parameter, above-mentioned audio frequency parameter be used for the attribute for transmitting audio data frame or Control the output of audio data frame;
First transmitting element, for being sent in above-mentioned coder 52 in the application processor 53 to above-mentioned audio frequency apparatus 5 After one audio data frame, within the frame period of above-mentioned audio data frame, above-mentioned audio is sent to above-mentioned application processor 53 Control frame, to cause attribute of the above-mentioned application processor 53 based on the above-mentioned audio data frame of above-mentioned audio frequency control frame acquisition;
Second transmitting element, for have sent a voice data to above-mentioned coder 52 in above-mentioned application processor 53 After frame, within the frame period of above-mentioned audio data frame, above-mentioned audio frequency control frame is sent to above-mentioned coder 52, on causing State coder 52 and output of the above-mentioned audio data frame on above-mentioned audio frequency apparatus 5 is controlled based on above-mentioned audio frequency control frame.
Above-mentioned audio frequency apparatus 5 can be desktop PC, notebook, smart mobile phone or CD Player etc..Above-mentioned audio Equipment 5 may include, but be not limited only to, processor 50, memory 51, coder 52, application processor 53.People in the art Member is appreciated that Fig. 5 is only the example of audio frequency apparatus 5, does not form the restriction to audio frequency apparatus 5, can include than diagram More or less parts, either combine some parts or different parts, for example, above-mentioned audio frequency apparatus can also include it is defeated Enter output equipment, network access equipment, bus etc..
Alleged primary processor 50 can be CPU (Central Processing Unit, CPU), can be with It is other general processors, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other PLDs, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor Deng.
Above-mentioned memory 51 can be the internal storage unit of above-mentioned audio frequency apparatus 5, for example, the hard disk of audio frequency apparatus 5 or Internal memory.Above-mentioned memory 51 can also be the External memory equipment of above-mentioned audio frequency apparatus 5, such as be equipped with above-mentioned audio frequency apparatus 5 Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, Flash card (Flash Card) etc..Further, above-mentioned memory 51 can also both include the storage inside of above-mentioned audio frequency apparatus 5 Unit also includes External memory equipment.Above-mentioned memory 51 is used to store above computer program 54 and above-mentioned audio frequency apparatus 5 Other required programs and data.Above-mentioned memory 51 can be also used for temporarily storing the number that has exported or will export According to.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each work( Can unit, module division progress for example, in practical application, can be as needed and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of described device are divided into different functional units or module, more than completion The all or part of function of description.Each functional unit, module in embodiment can be integrated in a processing unit, also may be used To be that unit is individually physically present, can also two or more units it is integrated in a unit, it is above-mentioned integrated Unit can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.In addition, each function list Member, the specific name of module are not limited to the protection domain of the application also only to facilitate mutually distinguish.Said system The specific work process of middle unit, module, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and is not described in detail or remembers in some embodiment The part of load, it may refer to the associated description of other embodiments.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein Member and algorithm steps, it can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually Performed with hardware or software mode, application-specific and design constraint depending on technical scheme.Professional and technical personnel Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed device/audio frequency apparatus and method, can be with Realize by another way.For example, device described above/audio frequency apparatus embodiment is only schematical, for example, institute The division of module or unit is stated, only a kind of division of logic function, there can be other dividing mode when actually realizing, such as Multiple units or component can combine or be desirably integrated into another system, or some features can be ignored, or not perform.Separately A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be by some interfaces, device Or INDIRECT COUPLING or the communication connection of unit, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated module/unit realized in the form of SFU software functional unit and as independent production marketing or In use, it can be stored in a computer read/write memory medium.Based on such understanding, the present invention realizes above-mentioned implementation All or part of flow in example method, by computer program the hardware of correlation can also be instructed to complete, described meter Calculation machine program can be stored in a computer-readable recording medium, and the computer program can be achieved when being executed by processor The step of stating each embodiment of the method..Wherein, the computer program includes computer program code, the computer program Code can be source code form, object identification code form, executable file or some intermediate forms etc..Computer-readable Jie Matter can include:Can carry any entity or device of the computer program code, recording medium, USB flash disk, mobile hard disk, Magnetic disc, CD, computer storage, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It is it should be noted that described The content that computer-readable medium includes can carry out appropriate increasing according to legislation in jurisdiction and the requirement of patent practice Subtract, such as in some jurisdictions, according to legislation and patent practice, computer-readable medium do not include be electric carrier signal and Telecommunication signal.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although with reference to foregoing reality Example is applied the present invention is described in detail, it will be understood by those within the art that:It still can be to foregoing each Technical scheme described in embodiment is modified, or carries out equivalent substitution to which part technical characteristic;And these are changed Or replace, the essence of appropriate technical solution is departed from the spirit and scope of various embodiments of the present invention technical scheme, all should Within protection scope of the present invention.

Claims (10)

1. a kind of audio control method, applied to audio frequency apparatus, it is characterised in that the audio control method includes:
The audio frequency control frame of coder or application processor the generation preset format of the audio frequency apparatus, wherein, the sound Frequency control frame carries audio frequency parameter, and the audio frequency parameter is used for the attribute for transmitting audio data frame or controls audio data frame Output;
The coder to the application processor after it have sent an audio data frame, in the frame of the audio data frame In cycle, the audio frequency control frame is sent to the application processor, to cause the application processor to be based on the audio control Frame processed obtains the attribute of the audio data frame;
Or the application processor is to the coder after it have sent an audio data frame, in the voice data In the frame period of frame, the audio frequency control frame is sent to the coder, to cause the coder to be based on the audio Control frame controls output of the audio data frame on the audio frequency apparatus.
2. audio control method as claimed in claim 1, it is characterised in that the coder of the audio frequency apparatus or application Processor generates the audio frequency control frame of preset format, including:
The coder or application processor according to the transmission of each audio data frame to be sent order, generation in real time with Audio frequency control frame corresponding to each audio data frame to be sent.
3. audio control method as claimed in claim 1, it is characterised in that the coder of the audio frequency apparatus or application Processor generates the audio frequency control frame of preset format, including:
If the coder receives the control initial order that the application processor is sent, in the control initial order Instruction under, determine origination audio data frame, the first frame that the origination audio data frame needs to transmit audio frequency parameter for this Audio data frame;
Generation origination audio control frame corresponding with the origination audio data frame;
The coder is after the application processor to the audio frequency apparatus have sent an audio data frame, in the audio In the frame period of data frame, the audio frequency control frame is sent to the application processor, including:
The coder to the application processor after the origination audio data frame is sent, in the origination audio number According in the frame period of frame, the origination audio control frame is sent to the application processor, to cause the application processor base Other voice datas after the audio frequency control frame obtains the origination audio data frame and the origination audio data frame The attribute of frame.
4. audio control method as claimed in claim 3, it is characterised in that the coder of the audio frequency apparatus or application Processor generates the audio frequency control frame of preset format, including:
If the coder receives the control END instruction that the application processor is sent, in the control END instruction Instruction under, it is determined that terminate audio data frame, it is described terminate audio data frame for this need transmit audio frequency parameter last Frame audio data frame;
Generation is corresponding with the termination audio data frame to terminate audio frequency control frame;
The coder is after the application processor to the audio frequency apparatus have sent an audio data frame, in the audio In the frame period of data frame, the audio frequency control frame is sent to the application processor, including:
The coder is after the termination audio data frame is sent to the application processor, in the termination audio number According in the frame period of frame, the termination audio frequency control frame is sent to the application processor, to cause the application processor knot Attribute of the beam based on other audio data frames after the origination audio control frame acquisition termination audio data frame.
5. the audio control method as described in any one of Claims 1-4, it is characterised in that the coding and decoding of the audio frequency apparatus The audio frequency control frame of device or application processor generation preset format, also includes before:
The application processor obtains the audio frequency apparatus and is presently in the environmental noise value of environment and the sound of the audio frequency apparatus Frequency output state;
The audio frequency control frame of coder or application processor the generation preset format of the audio frequency apparatus, including:
If the environmental noise value and the audio output state meet default audio frequency control condition, handled by the application Device generates the audio frequency control frame of preset format.
6. a kind of audio control apparatus, applied to audio frequency apparatus, the audio frequency apparatus includes coder and application processor, its It is characterised by, the audio control apparatus includes:
Generation unit, for generating the audio frequency control frame of preset format by the coder or application processor, wherein, The audio frequency control frame carries audio frequency parameter, and the audio frequency parameter is used for the attribute for transmitting audio data frame or control audio number According to the output of frame;
First transmitting element, in the coder after it have sent an audio data frame to the application processor, Within the frame period of the audio data frame, the audio frequency control frame is sent to the application processor, to cause the application Processor obtains the attribute of the audio data frame based on the audio frequency control frame;
Second transmitting element, in the application processor after it have sent an audio data frame to the coder, Within the frame period of the audio data frame, the audio frequency control frame is sent to the coder, to cause the coding and decoding Device controls output of the audio data frame on the audio frequency apparatus based on the audio frequency control frame.
7. audio control apparatus as claimed in claim 6, it is characterised in that the generation unit includes:
First generation subelement, for by the coder or application processor according to each voice data to be sent The transmission order of frame, generates audio frequency control frame corresponding with each audio data frame to be sent in real time.
8. audio control apparatus as claimed in claim 6, it is characterised in that the generation unit includes:
Initial data frame determination subelement, the control for receiving the application processor device transmission when the coder rise When beginning to instruct, under the instruction of the control initial order, origination audio data frame is determined, the origination audio data frame is this Secondary the first frame audio data frame for needing to transmit audio frequency parameter;
Second generation subelement, for generating origination audio control corresponding with the origination audio data frame as the coder Frame processed;
First transmitting element is specifically used for, and the coder is sending the origination audio number to the application processor After frame, within the frame period of the origination audio data frame, send the origination audio to the application processor and control Frame, to cause the application processor is based on the audio frequency control frame to obtain the origination audio data frame and the origination audio The attribute of other audio data frames after data frame.
9. a kind of audio frequency apparatus, including memory, primary processor, coder, application processor and it is stored in the storage In device and the computer program that can run on the processor, it is characterised in that the primary processor performs the computer The coder and/or application processor is controlled to realize such as the step of any one of claim 1 to 5 methods described during program.
10. a kind of computer-readable recording medium, the computer-readable recording medium storage has computer program, and its feature exists In when the computer program is executed by processor the step of realization such as any one of claim 1 to 5 methods described.
CN201710454578.8A 2017-06-15 2017-06-15 Audio control method, audio control device and audio equipment Active CN107357547B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710454578.8A CN107357547B (en) 2017-06-15 2017-06-15 Audio control method, audio control device and audio equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710454578.8A CN107357547B (en) 2017-06-15 2017-06-15 Audio control method, audio control device and audio equipment

Publications (2)

Publication Number Publication Date
CN107357547A true CN107357547A (en) 2017-11-17
CN107357547B CN107357547B (en) 2020-06-26

Family

ID=60273682

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710454578.8A Active CN107357547B (en) 2017-06-15 2017-06-15 Audio control method, audio control device and audio equipment

Country Status (1)

Country Link
CN (1) CN107357547B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109874097A (en) * 2017-12-05 2019-06-11 炬芯(珠海)科技有限公司 Active noise reduction earphone and its test macro

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050282580A1 (en) * 2004-06-04 2005-12-22 Nokia Corporation Video and audio synchronization
CN101198068A (en) * 2006-12-08 2008-06-11 中兴通讯股份有限公司 Auxiliary data encapsulation method for media data flow of multimedia broadcasting system
CN101213795A (en) * 2005-06-30 2008-07-02 诺基亚公司 Method and apparatus for padding time-slice frames with useful data
CN101272205A (en) * 2008-05-14 2008-09-24 中兴通讯股份有限公司 Transmission method and device of mobile multimedia broadcasting service parameter information
CN104104800A (en) * 2014-07-25 2014-10-15 Tcl通讯(宁波)有限公司 Method for adjusting volume output of mobile terminal according to environment noises and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050282580A1 (en) * 2004-06-04 2005-12-22 Nokia Corporation Video and audio synchronization
CN101213795A (en) * 2005-06-30 2008-07-02 诺基亚公司 Method and apparatus for padding time-slice frames with useful data
CN101198068A (en) * 2006-12-08 2008-06-11 中兴通讯股份有限公司 Auxiliary data encapsulation method for media data flow of multimedia broadcasting system
CN101272205A (en) * 2008-05-14 2008-09-24 中兴通讯股份有限公司 Transmission method and device of mobile multimedia broadcasting service parameter information
CN104104800A (en) * 2014-07-25 2014-10-15 Tcl通讯(宁波)有限公司 Method for adjusting volume output of mobile terminal according to environment noises and mobile terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109874097A (en) * 2017-12-05 2019-06-11 炬芯(珠海)科技有限公司 Active noise reduction earphone and its test macro
CN109874097B (en) * 2017-12-05 2020-10-30 炬芯科技股份有限公司 Active noise reduction earphone and test system thereof

Also Published As

Publication number Publication date
CN107357547B (en) 2020-06-26

Similar Documents

Publication Publication Date Title
CN105843572B (en) Information processing method and deformable electronic equipment
CN106796799A (en) efficient DRC configuration files transmission
CN105208189B (en) Audio-frequency processing method and mobile terminal
CN109413525B (en) Encoding rate adjustment method, encoding rate adjustment device, electronic device, and storage medium
CN105959878A (en) Control method and device of stereo sound system
US20160066116A1 (en) Using single bitstream to produce tailored audio device mixes
CN111918174B (en) Method and device for balancing volume gain, electronic device and vehicle
CN103987000A (en) Audio frequency correction method and terminal
CN202940816U (en) Audio data transmission system, transmission device and electronic signing tool
CN113096677B (en) Intelligent noise reduction method and related equipment
CN103744505B (en) Information processing method and electronic equipment
CN107357547A (en) A kind of audio control method, audio control apparatus and audio frequency apparatus
CN105632509A (en) Audio processing method and audio processing device
CN104392744A (en) Method and apparatus for recording voice frequency
CN108650592B (en) Method for realizing neck strap type surround sound and stereo control system
DE112009005147T5 (en) System and method for modifying an audio signal
WO2020016484A1 (en) Controlling audio focus for spatial audio processing
CN112883222B (en) Song recommendation playing method, electronic equipment and computer readable storage medium
CN104330983A (en) Control method and electronic device
CN106205629A (en) A kind of sound manufacture method and device
CN107273087A (en) A kind of audio input/output system based on Type C interface, device and method
CN109995941B (en) Data adjusting method, device and storage medium
CN107105083A (en) A kind of way of recording, master terminal, sub- terminal and system
CN106209314A (en) Data transmission method, equipment and audio frequency apparatus
CN107708036A (en) The adjustment method and device of audio frequency apparatus power output

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant