CN109584901A - Emergent broadcast audio-frequency processing method and device - Google Patents

Emergent broadcast audio-frequency processing method and device Download PDF

Info

Publication number
CN109584901A
CN109584901A CN201910090162.1A CN201910090162A CN109584901A CN 109584901 A CN109584901 A CN 109584901A CN 201910090162 A CN201910090162 A CN 201910090162A CN 109584901 A CN109584901 A CN 109584901A
Authority
CN
China
Prior art keywords
amplitude
setting
gain
value
section
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
CN201910090162.1A
Other languages
Chinese (zh)
Other versions
CN109584901B (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.)
Chengdu Core Digital Polytron Technologies Inc
Original Assignee
Chengdu Core Digital Polytron Technologies Inc
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 Chengdu Core Digital Polytron Technologies Inc filed Critical Chengdu Core Digital Polytron Technologies Inc
Priority to CN201910090162.1A priority Critical patent/CN109584901B/en
Publication of CN109584901A publication Critical patent/CN109584901A/en
Application granted granted Critical
Publication of CN109584901B publication Critical patent/CN109584901B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L21/00Processing of the speech or voice signal to produce another audible or non-audible signal, e.g. visual or tactile, in order to modify its quality or its intelligibility
    • G10L21/02Speech enhancement, e.g. noise reduction or echo cancellation
    • G10L21/0316Speech enhancement, e.g. noise reduction or echo cancellation by changing the amplitude
    • G10L21/0324Details of processing therefor
    • G10L21/034Automatic adjustment
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M1/00Analogue/digital conversion; Digital/analogue conversion
    • H03M1/10Calibration or testing
    • H03M1/1009Calibration
    • H03M1/1028Calibration at two points of the transfer characteristic, i.e. by adjusting two reference values, e.g. offset and gain error
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M1/00Analogue/digital conversion; Digital/analogue conversion
    • H03M1/12Analogue/digital converters
    • H03M1/124Sampling or signal conditioning arrangements specially adapted for A/D converters
    • H03M1/1245Details of sampling arrangements or methods

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Quality & Reliability (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Circuit For Audible Band Transducer (AREA)
  • Circuits Of Receivers In General (AREA)

Abstract

The present embodiments relate to signal processing technology fields, specifically, it is related to a kind of emergent broadcast audio-frequency processing method and device, this method can make analog-digital converter convert audio signals into multiple digital signals, and then obtain the amplitude of each digital signal, and the gain of analog-digital converter is adjusted according to setting gain delta based on setting amplitude section and setting duration, and then realization is to the Indirect method of the amplitude of each digital signal, so, it can adaptively be adjusted for the audio signal of different amplitudes, to effectively, the audio signal of different amplitudes is played in high quality.

Description

Emergent broadcast audio-frequency processing method and device
Technical field
The present embodiments relate to signal processing technology fields, in particular to a kind of emergent broadcast audio processing side Method and device.
Background technique
Emergent broadcast refers to public when the burst such as major natural disasters, emergency event, public health and social safety occurs It can provide a kind of faster information transfer channel when crisis.Emergent broadcast can be in first time disaster message or disaster The harm that may cause is transmitted in common people's hand, and the people is allowed to know what has occurred at the first time, it should how It withdraws, hedging, life and property loss is preferably minimized.
Emergent broadcast can receive a variety of audio inputs, such as the input of route audio input, microphone audio and wired electricity Audio input etc. is talked about, but most of emergency broadcase systems are difficult to effectively, in high quality play these audio inputs.
Summary of the invention
In view of this, the present invention provides a kind of emergent broadcast audio-frequency processing method and devices.
The embodiment of the invention provides a kind of emergent broadcast audio-frequency processing methods, are applied to server-side, and the server-side is logical Letter is connected to analog-digital converter, which comprises
Control the analog-digital converter real-time reception audio signal;
Make the analog-digital converter that the audio signal are converted to multiple digital signals according to setting sample rate;
Obtain the amplitude of each digital signal;
For each amplitude got, judge whether the amplitude is located at outside setting amplitude section, if the amplitude is located at institute It states outside setting amplitude section, whether is respectively positioned at the time of judgement to obtain the amplitude as each amplitude in the setting duration of starting point Outside the setting amplitude section, if each amplitude in the setting duration is respectively positioned on outside the setting amplitude section, according to Setting gain delta is adjusted the gain of the analog-digital converter, is located at until at least having one in the setting duration Target amplitude in the setting amplitude section;Wherein, the target amplitude is the analog-digital converter conversion after gain adjustment The corresponding amplitude of obtained digital signal.
Optionally, institute whether is respectively positioned on as each amplitude in the setting duration of starting point at the time of judgement to obtain the amplitude It states outside setting amplitude section, if each amplitude in the setting duration is respectively positioned on outside the setting amplitude section, according to setting Determine gain delta to be adjusted the gain of the analog-digital converter, until at least having one in the setting duration is located at institute The step of stating the target amplitude in setting amplitude section, comprising:
Whether first is below as each amplitude in the first setting duration of starting point at the time of judgement to obtain the amplitude Setting value;
If each amplitude in the first setting duration is below first setting value, according to the first setting gain Increment adds up to the gain of the analog-digital converter, is not less than until at least having one in the first setting duration The first object amplitude of first setting value;Wherein, the first object amplitude is the analog-digital converter after gain is cumulative The corresponding amplitude of the digital signal being converted to, first setting value are the lower limit value in the setting amplitude section.
Optionally, institute whether is respectively positioned on as each amplitude in the setting duration of starting point at the time of judgement to obtain the amplitude It states outside setting amplitude section, if each amplitude in the setting duration is respectively positioned on outside the setting amplitude section, according to setting Determine gain delta to be adjusted the gain of the analog-digital converter, until at least having one in the setting duration is located at institute The step of stating the target amplitude in setting amplitude section, comprising:
Whether reach second as each amplitude in the second setting duration of starting point at the time of judgement to obtain the amplitude Setting value;
If each amplitude in the second setting duration reaches second setting value, according to the second setting gain Increment carries out regressive to the gain of the analog-digital converter, does not reach until at least having one in the second setting duration To the second target amplitude of second setting value;Wherein, second target amplitude is the analog-to-digital conversion after gain regressive The corresponding amplitude of the digital signal that device is converted to, second setting value are the upper limit value in the setting amplitude section.
Optionally, the method also includes:
The modification instruction for modifying the first setting gain delta is obtained, parsing, which obtains in the modification instruction, includes First object gain delta;
Obtain the siding-to-siding block length value in the setting amplitude section;
Judge whether the first object gain delta reaches the siding-to-siding block length value, if the first object gain delta Reach the siding-to-siding block length value, refusal executes the modification instruction, if the first object gain delta does not reach the area Between length value, according to the modification instruction by it is described first setting gain delta be revised as the first object gain delta.
Optionally, the step of obtaining the siding-to-siding block length value in the setting amplitude section, comprising:
It obtains the amplitude at one of endpoint in the setting amplitude section and as the first setting value, is set described in acquisition Amplitude at another endpoint in tentering value section and as the second setting value;
Calculate the absolute value of the difference of first setting value and second setting value;
The absolute value as the siding-to-siding block length value and is obtained.
The embodiment of the invention also provides a kind of emergent broadcast apparatus for processing audio, are applied to server-side, the server-side It is communicatively coupled to analog-digital converter, described device includes:
Audio signal reception module, for controlling the analog-digital converter real-time reception audio signal;
Digital signal obtains module, for converting the analog-digital converter by the audio signal according to setting sample rate For multiple digital signals;
Amplitude obtains module, for obtaining the amplitude of each digital signal;
Gain regulation module, for judging whether the amplitude is located at setting amplitude section for each amplitude got Outside, if the amplitude is located at outside the setting amplitude section, as in the setting duration of starting point at the time of judgement to obtain the amplitude Whether each amplitude is respectively positioned on outside the setting amplitude section, if each amplitude in the setting duration is respectively positioned on described set Outside tentering value section, the gain of the analog-digital converter is adjusted according to setting gain delta, until the setting duration Inside at least there is the target amplitude being located in the setting amplitude section;Wherein, the target amplitude be gain adjustment it The corresponding amplitude of the digital signal that analog-digital converter afterwards is converted to.
Optionally, as the setting of starting point at the time of the gain regulation module is judged by the following manner to obtain the amplitude Whether each amplitude in duration is respectively positioned on outside the setting amplitude section, if the equal position of each amplitude in the setting duration In outside the setting amplitude section, the gain of the analog-digital converter is adjusted according to setting gain delta, until described It sets and at least there is the target amplitude being located in the setting amplitude section in duration:
Whether first is below as each amplitude in the first setting duration of starting point at the time of judgement to obtain the amplitude Setting value;
If each amplitude in the first setting duration is below first setting value, according to the first setting gain Increment adds up to the gain of the analog-digital converter, is not less than until at least having one in the first setting duration The first object amplitude of first setting value;Wherein, the first object amplitude is the analog-digital converter after gain is cumulative The corresponding amplitude of the digital signal being converted to, first setting value are the lower limit value in the setting amplitude section.
Optionally, as the setting of starting point at the time of the gain regulation module is judged by the following manner to obtain the amplitude Whether each amplitude in duration is respectively positioned on outside the setting amplitude section, if the equal position of each amplitude in the setting duration In outside the setting amplitude section, the gain of the analog-digital converter is adjusted according to setting gain delta, until described It sets and at least there is the target amplitude being located in the setting amplitude section in duration:
Whether reach second as each amplitude in the second setting duration of starting point at the time of judgement to obtain the amplitude Setting value;
If each amplitude in the second setting duration reaches second setting value, according to the second setting gain Increment carries out regressive to the gain of the analog-digital converter, does not reach until at least having one in the second setting duration To the second target amplitude of second setting value;Wherein, second target amplitude is the analog-to-digital conversion after gain regressive The corresponding amplitude of the digital signal that device is converted to, second setting value are the upper limit value in the setting amplitude section.
Optionally, described device further include:
Modified module parses described in obtaining for obtaining the modification instruction for modifying the first setting gain delta The first object gain delta for including in modification instruction;Obtain the siding-to-siding block length value in the setting amplitude section;Judge described Whether one target gain increment reaches the siding-to-siding block length value, if the first object gain delta reaches the siding-to-siding block length Value, refusal executes the modification instruction, if the first object gain delta does not reach the siding-to-siding block length value, according to described The first setting gain delta is revised as the first object gain delta by modification instruction.
Optionally, the modified module obtains the siding-to-siding block length value in the setting amplitude section in the following manner:
It obtains the amplitude at one of endpoint in the setting amplitude section and as the first setting value, is set described in acquisition Amplitude at another endpoint in tentering value section and as the second setting value;
Calculate the absolute value of the difference of first setting value and second setting value;
The absolute value as the siding-to-siding block length value and is obtained.
The embodiment of the invention also provides a kind of server-side, including memory, processor and storage are on a memory simultaneously The computer program that can be run on a processor, the processor realize above-mentioned emergent broadcast when executing the computer program Audio-frequency processing method.
The embodiment of the invention also provides a kind of computer readable storage medium, the readable storage medium storing program for executing includes computer Program, the server-side computer program controls the readable storage medium storing program for executing when running where execute above-mentioned emergent broadcast audio Processing method.
Beneficial effect
Emergent broadcast audio-frequency processing method and device provided in an embodiment of the present invention, can make analog-digital converter believe audio Multiple digital signals number are converted to, and then obtain the amplitude of each digital signal, and based on setting amplitude section and setting duration The gain of analog-digital converter is adjusted according to setting gain delta, and then is realized to the indirect of the amplitude of each digital signal Adjustment so, it is possible adaptively to be adjusted for the audio signal of different amplitudes, and the signal-to-noise ratio that analog-digital converter provides is remote Higher than the signal-to-noise ratio that pure digi-tal automatic gain controller provides, under the premise of the broadcast sound volume of guarantee audio signal is as big as possible It can be avoided distortion, the audio signal of different amplitudes can be played effectively, in high quality.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 is a kind of block diagram of server-side provided by the embodiment of the present invention.
Fig. 2 is a kind of flow chart of emergent broadcast audio-frequency processing method provided by the embodiment of the present invention.
Fig. 3 is a kind of structural block diagram of emergency broadcase system provided by the embodiment of the present invention.
Fig. 4 is a kind of another flow chart of emergent broadcast audio-frequency processing method provided by the embodiment of the present invention.
Fig. 5 be the embodiment of the present invention provided by one kind stress broadcast audio processing method another flow chart.
Fig. 6 is a kind of module frame chart of emergent broadcast apparatus for processing audio provided by the embodiment of the present invention.
Icon:
10- server-side;11- memory;12- processor;13- network module;
20- emergent broadcast apparatus for processing audio;21- audio signal reception module;22- digital signal obtains module;23- width Value obtains module;24- gain regulation module.
30- client;
40- analog-digital converter;
50- output end.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment only It is a part of the embodiments of the present invention, instead of all the embodiments.The present invention being usually described and illustrated herein in the accompanying drawings The component of embodiment can be arranged and be designed with a variety of different configurations.
Therefore, the detailed description of the embodiment of the present invention provided in the accompanying drawings is not intended to limit below claimed The scope of the present invention, but be merely representative of selected embodiment of the invention.Based on the embodiments of the present invention, this field is common Technical staff's every other embodiment obtained without creative efforts belongs to the model that the present invention protects It encloses.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.
Inventor further investigation reveals that, most of emergency broadcase systems are difficult to different audio inputs effectively, in high quality broadcast It puts.The amplitude for being primarily due to different audio inputs may be different, and the volume that this results in emergency broadcase system to play is excessive Or it is too small, and then influence the audibility of broadcast.
And the common method that volume is adjusted mostly uses greatly pure digi-tal automatic gain controller (Automatic Gain Control, AGC), but the audibility of broadcast is also difficult to improve using pure digi-tal AGC.
Defect present in the above scheme in the prior art, is that inventor is obtaining after practicing and carefully studying As a result, therefore, the solution that the discovery procedure of the above problem and the hereinafter embodiment of the present invention are proposed regarding to the issue above Scheme all should be the contribution that inventor makes the present invention in process of the present invention.
Based on the studies above, the embodiment of the invention provides a kind of emergent broadcast audio-frequency processing method and devices, are guaranteeing It can be avoided distortion under the premise of broadcast sound volume is as big as possible, ensure that the audio signal of different amplitudes being capable of effective, high quality Broadcasting.
Fig. 1 shows a kind of block diagram of server-side 10 provided by the embodiment of the present invention.In the embodiment of the present invention Server-side 10 have data storage, transmission, processing function, as shown in Figure 1, server-side 10 includes: memory 11, processor 12, network module 13 and emergent broadcast apparatus for processing audio 20.
It is directly or indirectly electrically connected between memory 11, processor 12 and network module 13, to realize the biography of data Defeated or interaction.It is electrically connected for example, these elements can be realized from each other by one or more communication bus or signal wire. Emergent broadcast apparatus for processing audio 20 is stored in memory 11, the emergent broadcast apparatus for processing audio 20 includes at least one The software function module that can be stored in the form of software or firmware (firmware) in the memory 11, the processor 12 By running at the emergent broadcast audio in the software program and module, such as the embodiment of the present invention that are stored in memory 11 Device 20 is managed, thereby executing various function application and data processing, i.e. emergent broadcast audio in the realization embodiment of the present invention Processing method.
Wherein, the memory 11 may be, but not limited to, random access memory (Random Access Memory, RAM), read-only memory (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM), Electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc.. Wherein, memory 11 is for storing program, and the processor 12 executes described program after receiving and executing instruction.
The processor 12 may be a kind of IC chip, the processing capacity with data.Above-mentioned processor 12 It can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc..It may be implemented or execute each method, step disclosed in the embodiment of the present invention and patrol Collect block diagram.General processor can be microprocessor or the processor is also possible to any conventional processor etc..
Network module 13 is used to establish the communication connection between server-side 10 and other communication terminal devices by network, real The transmitting-receiving operation of existing network signal and data.Above-mentioned network signal may include wireless signal or wire signal.
It is appreciated that structure shown in FIG. 1 is only to illustrate, server-side 10 may also include than shown in Fig. 1 more or more Few component, or with the configuration different from shown in Fig. 1.Each component shown in Fig. 1 can use hardware, software or its group It closes and realizes.
The embodiment of the present invention also provides a kind of computer readable storage medium, and the readable storage medium storing program for executing includes computer journey Sequence.Server-side 10 computer program controls the readable storage medium storing program for executing when running where executes following emergent broadcast audio Processing method.
It finds after many tests, ideal digital volume range is (- 6dBU, 0dBU), in order to guarantee to pass through emergency The audio signal of broadcast system output is undistorted, needs to guarantee that there is no clippings when digital volume expires width (0dBU), however, For inventor by carrying out research and analysis discovery to pure digi-tal AGC, pure digi-tal AGC can not restore the signal being limited, and Noise can also be amplified when being amplified to the audio signal of lower digital volume, therefore, even if using pure digi-tal AGC, Also it is difficult to effectively, in high quality play different audio signals.
Further, since analog-digital converter (Analog-to-Digital Converter, ADC) has gain adjustment Function, meanwhile, the signal-to-noise ratio that analog-digital converter ADC is provided is much higher than the signal-to-noise ratio that pure digi-tal ADC is provided, therefore, the present embodiment Core concept are as follows: the gain directly by adjusting analog-digital converter ADC carrys out the amplitude of Indirect method audio signal, and then controls The volume of emergency broadcase system output.
Fig. 2 shows a kind of flow charts of emergent broadcast audio-frequency processing method provided by the embodiment of the present invention.The side Method and step defined in the related process of method is applied to server-side 10, can be realized by the processor 12.It below will be to Fig. 2 Shown in detailed process be described in detail:
Please gather refering to Fig. 3, server-side 10 and analog-digital converter 40 communicate to connect, analog-digital converter 30 respectively with client 30 and output end 50 communicate to connect, it will be understood that server-side 10, analog-digital converter 40 and output end 50 constitute emergent broadcast system System, the emergency broadcase system can be realized the processing to different audio signals, so effectively, output audio signal in high quality.
Step S21, control analog-digital converter receive the audio signal that client is sent.
Server-side 10 sends control instruction to analog-digital converter 40, receives the transmission of client 30 to control analog-digital converter 40 Audio signal, it will be understood that audio signal is analog signal.
In the present embodiment, client 30 can be mobile phone, telephone and MP3 etc..
Step S22 makes analog-digital converter convert audio signals into multiple digital signals according to setting sample rate.
It is appreciated that analog-digital converter 40 can convert analog signals into digital signal, in the present embodiment, setting is adopted Sample rate can be 48kHz.
Analog-digital converter 40 can convert audio signals into multiple digital signals.Wherein, each digital signal is pulse Modulation signals.
Step S23 obtains the amplitude of each digital signal.
In the present embodiment, server-side 10 can obtain in real time the amplitude of each digital signal from analog-digital converter 40, can To understand, the multiple amplitudes got are continuous in time, in this way, being convenient for subsequent judgement and processing.
Step S24 obtains the judgement the knot whether amplitude is located at outside setting amplitude section for each amplitude got Fruit is adjusted to realize the amplitude to each digital signal being converted to the gain of analog-digital converter according to judging result Indirect method.
For example, being directed to each amplitude, judge whether the amplitude is located at outside setting amplitude section, in the present embodiment, setting Amplitude section is (- 6dBU, 0dBU), if the amplitude is located at outside the section (- 6dBU, 0dBU), at the time of judgement to obtain the amplitude Whether it is respectively positioned on outside the section (- 6dBU, 0dBU) for the amplitude in the setting duration of starting point, if so, according to setting gain delta pair The gain of analog-digital converter 40 is adjusted, and is located in the section (- 6dBU, 0dBU) until at least having one in setting duration Target amplitude, wherein the corresponding width of digital signal that target amplitude is converted to for the analog-digital converter 40 after gain adjustment Value.
It is appreciated that amplitude is located at outside the section (- 6dBU, 0dBU) and is divided into two kinds of situations: a kind of situation be amplitude be lower than- 6dBU, another situation is that amplitude is more than 0dBU, and when amplitude is more than 0dBU, analog-digital converter 40 can limit amplitude Width, it is assumed that amplitude 5dBU, analog-digital converter 40 can be by 5dBU clippings in 0dBU, therefore, according to judging result to analog-to-digital conversion The gain of device 40 is adjusted to realize and be also classified into two kinds of feelings to the Indirect method of the amplitude for each digital signal being converted to Condition: it carries out cumulative to the gain of analog-digital converter 40 and regressive is carried out to the gain of analog-digital converter 40.
After gain is cumulative or gain regressive, analog-digital converter 40 be can be realized to the multiple number letters being converted to Number amplitude adjustment, and then adjust audio signal output volume.
It will be added up below by Fig. 4 and Fig. 5 to gain and gain regressive is illustrated.
For purposes of illustration only, the lower limit value in the section (- 6dBU, 0dBU) and upper limit value are respectively defined as the first setting value and Two setting values, wherein the first setting value and the second setting value are for gain to be cumulative or the judgement of gain regressive.
The cumulative deterministic process of the gain of analog-digital converter 40 is illustrated first, please refers to Fig. 4.
It is located at the amplitude A outside the section (- 6dBU, 0dBU) with somexFor carry out saying for step S31 and subsequent step It is bright:
Step S31, it is whether equal as each amplitude in the first setting duration of starting point at the time of judgement to obtain the amplitude Lower than the first setting value.
If from amplitude A is obtainedxAt the time of for starting point first setting duration in each amplitude be below -6dBU, turn to Otherwise step S32 turns to step S33.
It is found by actual measurement, when the amplitude that server-side 10 obtains is lower than -6dBU, the volume very little that output end 50 is broadcasted, Therefore, it is necessary to the case where when detecting amplitude lower than -6dBU, further, some special audio signals may be a certain small Amplitude in the section time is very low, in order to avoid the error detection of the signal special to these, needs to be arranged one first setting duration, In the present embodiment, the first setting duration can be 5min.In other words, under non-mute state, if in some the first setting Each amplitude in duration is below -6dBU, turns to step S32, otherwise turns to step S33.
Step S32 adds up to the gain of analog-digital converter according to the first setting gain delta, until in the first setting At least there is the first object amplitude for being not less than the first setting value in duration.
Server-side 10 shows at this time when judging that each amplitude in some the first setting duration is below -6dBU Audio signal is lower in the volume of output end 50, needs to tune up volume, and therefore, server-side 10 can increase according to the first setting gain The gain of amount adjustment analog-digital converter 40, to realize the Indirect method to the amplitude of each digital signal, and then is realized to audio The adjusting of signal volume.
In the present embodiment, it in order to avoid overregulating, needs to carry out Rational choice to the first setting gain delta, for example, First setting gain delta can be 5dB, in another example, taking each amplitude in some first setting duration is -8dBU, at this time Server-side 10 can control analog-digital converter 40 by gain add up 5dB so that some first setting duration in each amplitude - 3dBU is become from -8dBU, -3dBU (first object amplitude) is located in the section (- 6dBU, 0dBU) at this time, shows this time to modulus The gain adjustment of converter 40 is completed, and then determines to complete the processing to audio signal, the audio letter that output end 50 exports at this time Number volume just in a stable range, ensure that and listen to efficiency, further, since the noise of analog-digital converter 40 compares Height can be avoided the increase of the noise in audio signal when increasing gain, in this way, when guaranteeing that volume increases It can also ensure that the quality of audio signal.
Optionally, if some is taken first to set each amplitude in duration as -13dBU, an analog-digital converter is completed After 40 gain is cumulative, each amplitude in some first setting duration becomes -8dBU (first object amplitude), is still located on Outside the section (- 6dBU, 0dBU), therefore, it is necessary to continue to add up to the gain of analog-digital converter 40, until cumulative, certain Each amplitude in a first setting duration is located in the section (- 6dBU, 0dBU), therefore, the selection for the first setting increment It is also required to combine actual conditions, if it is desired to which less adjustment number can suitably increase by the first setting increment.
Step S33 determines that audio signal is normal signal.
It is appreciated that be directed to multiple digital signals, if it does not exist it is any first setting duration in amplitude be respectively less than- 6dBU, it is possible to determine that multiple digital signals are normal signal, in other words, determine that audio signal is normal signal, there is no need to It controls analog-digital converter 40 and carries out gain adjustment.
It is appreciated that above description is amplified to audio signal, that is to say, that can be improved the width of audio signal Value, and guarantee the quality of audio signal, reduce noise.
Further, the gain regressive deterministic process of analog-digital converter 40 is illustrated, please refers to Fig. 5.
Step S41, it is whether equal as each amplitude in the second setting duration of starting point at the time of judgement to obtain the amplitude Reach the second setting value.
It is appreciated that in the present embodiment, second a length of 0.3ms when setting, it is assumed that amplitude AyGreater than 0dBU, modulus at this time Converter 40 can be to amplitude AyClipping is carried out, at this time amplitude Ay0dBU can be limited in, if from amplitude A is obtainedyAt the time of be starting point 0.3ms in each amplitude reach 0dBU, show that multiple digital signals are limited, therefore deduce that the width of audio signal Value may be excessive, it is more likely that is distorted, turns to step S42 at this time, otherwise, turns to step S43.
Step S42 carries out regressive to the gain of analog-digital converter according to the second setting gain delta, until in the second setting At least there is second target amplitude for not reaching the second setting value in duration.
Server-side 10 shows when the amplitude for judging in some the second setting duration (0.3ms) reaches -0.1dBU Analog-digital converter 40 has carried out clipping to audio signal, will lead to the distortion of audio signal in this way, needs to turn down volume, because This, server-side 10 can be according to the gain of the second setting gain delta adjustment analog-digital converter 40.
In the present embodiment, second setting increment can be 6dB, in another example, take some second setting duration in each of Amplitude is 10dBU, at this time server-side 10 can control analog-digital converter 40 by gain reduce 6dB so that some second setting when Each amplitude in length becomes 4dBU from 10dBU, and 4dBU (the second target amplitude) is still located on the section (- 6dBU, 0dBU) at this time Outside, therefore, server-side 10 needs to be further reduced the gain of analog-digital converter 40, so that in some second setting duration Each amplitude is located in the section (- 6dBU, 0dBU), in another example, after the regressive of gain twice for completing analog-digital converter 40, because This, some second sets each amplitude in duration as -2dBU, is located in the section (- 6dBU, 0dBU), it is therefore contemplated that complete Pairs of audio signal.
Interacting for adjusting, the first setting gain delta and the second setting are reduced with gain in view of gain increase is adjusted Gain delta should not all select excessive, otherwise can enter the endless loop that infinitely adjusts.It can be set according to the actual situation to first Gain delta and the second setting gain delta are rationally modified, wherein server-side 10 is available for modifying the first gain The modification of increment instructs, and parsing obtains the first object gain delta for including in modification instruction.
Further, server-side 10 judges whether first object gain delta reaches siding-to-siding block length value, if reaching, refusal To the first setting gain delta, otherwise, the first setting gain delta is revised as by first object gain delta according to modification instruction.
In the present embodiment, siding-to-siding block length value is the absolute value of the difference of the first setting value and the second setting value, in another example, In view of the precision of analog-digital converter 40, taking the first setting value is -6dBU, and taking the second setting value is -0.1dBU, in other words, When analog-digital converter 40 carries out clipping to digital signal, it is limited in -0.1dBU and can consider digital signal is limited in 0dBU. Therefore, siding-to-siding block length value is 5.9dB, that is to say, that when modifying to the first setting gain delta, first object gain increases Amount cannot reach 5.9dB, otherwise, carry out that the section (- 6dBU, 0dBU) may be directed across when gain is cumulative, similarly, right Second setting gain delta should also be as meeting above-mentioned requirements when modifying, and so, it is possible effectively to avoid analog-digital converter 40 enter gain adjustment endless loop.
Step S43 determines that audio signal is normal signal.
It is appreciated that in actual application environment, for multiple digital signals, if it does not exist in any second setting duration Amplitude reach -0.1dBU, it is possible to determine that multiple digital signals be normal signal, in other words, determine audio signal be positive Regular signal, there is no need to control analog-digital converter 40 to carry out gain adjustment.
In the present embodiment, server-side 10 can both control the progress gain of analog-digital converter 40 and add up, and be believed with realizing in height It makes an uproar and audio signal is amplified than under the conditions of, and analog-digital converter 40 can be controlled and carry out gain regressive, to realize to clipping Audio signal reduced, in this way, guarantee broadcast sound volume it is as big as possible under the premise of can be avoided distortion, ensure that difference The audio signal of amplitude being capable of effective, high quality broadcasting.
On the basis of the above, as shown in fig. 6, the embodiment of the invention provides a kind of emergent broadcast apparatus for processing audio 20, The emergent broadcast apparatus for processing audio 20 includes: audio signal reception module 21, digital signal obtains module 22, amplitude obtains Module 23 and gain regulation module 24.
Audio signal reception module 21, for controlling the analog-digital converter real-time reception audio signal.
Since audio signal reception module 21 is similar with the realization principle of step S21 in Fig. 2, do not say more herein It is bright.
Digital signal obtains module 22, for turning the analog-digital converter by the audio signal according to setting sample rate It is changed to multiple digital signals.
Since digital signal acquisition module 22 is similar with the realization principle of step S22 in Fig. 2, do not say more herein It is bright.
Amplitude obtains module 23, for obtaining the amplitude of each digital signal.
Since amplitude acquisition module 23 is similar with the realization principle of step S23 in Fig. 2, do not illustrate more herein.
Gain regulation module 24, for judging whether the amplitude is located at setting amplitude area for each amplitude got Between it is outer, if the amplitude is located at outside the setting amplitude section, as in the setting duration of starting point at the time of judgement to obtain the amplitude Each amplitude whether be respectively positioned on outside the setting amplitude section, if each amplitude in the setting duration be respectively positioned on it is described It sets outside amplitude section, the gain of the analog-digital converter is adjusted according to setting gain delta, until when the setting At least there is the target amplitude being located in the setting amplitude section in long;Wherein, the target amplitude is gain adjustment The corresponding amplitude of the digital signal that analog-digital converter later is converted to.
Since gain regulation module 24 is similar with step S24 realization principle in Fig. 2, do not illustrate more herein.
To sum up, emergent broadcast audio-frequency processing method and device provided by the embodiment of the present invention are guaranteeing that broadcast sound volume is most It can be avoided distortion under the premise of possibility is big, ensure that the audio signal of different amplitudes being capable of effective, high quality broadcasting.
In several embodiments provided by the embodiment of the present invention, it should be understood that disclosed device and method, it can also To realize by another way.Device and method embodiment described above is only schematical, for example, in attached drawing Flow chart and block diagram show that the devices of multiple embodiments according to the present invention, method and computer program product are able to achieve Architecture, function and operation.In this regard, each box in flowchart or block diagram can represent module, a program A part of section or code, a part of the module, section or code include that one or more is patrolled for realizing defined Collect the executable instruction of function.It should also be noted that in some implementations as replacement, function marked in the box It can occur in a different order than that indicated in the drawings.For example, two continuous boxes can actually be held substantially in parallel Row, they can also be executed in the opposite order sometimes, and this depends on the function involved.It is also noted that block diagram and/or The combination of each box in flow chart and the box in block diagram and or flow chart, can the function as defined in executing or dynamic The dedicated hardware based system made is realized, or can be realized using a combination of dedicated hardware and computer instructions.
In addition, each functional module in each embodiment of the present invention can integrate one independent portion of formation together Point, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server-side 10 or the network equipment etc.) execute all or part of step of each embodiment the method for the present invention Suddenly.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), deposits at random The various media that can store program code such as access to memory (RAM, Random Access Memory), magnetic or disk. It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to the packet of nonexcludability Contain, so that the process, method, article or equipment for including a series of elements not only includes those elements, but also including Other elements that are not explicitly listed, or further include for elements inherent to such a process, method, article, or device. In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including the element Process, method, article or equipment in there is also other identical elements.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (10)

1. a kind of emergent broadcast audio-frequency processing method, which is characterized in that be applied to server-side, the server-side is communicatively coupled to mould Number converter, which comprises
Control the analog-digital converter real-time reception audio signal;
Make the analog-digital converter that the audio signal are converted to multiple digital signals according to setting sample rate;
Obtain the amplitude of each digital signal;
For each amplitude got, judge whether the amplitude is located at outside setting amplitude section, if the amplitude is located at described set Whether it is respectively positioned on outside tentering value section, at the time of judgement to obtain the amplitude as each amplitude in the setting duration of starting point described It sets outside amplitude section, if each amplitude in the setting duration is respectively positioned on outside the setting amplitude section, according to setting Gain delta is adjusted the gain of the analog-digital converter, until at least having one in the setting duration positioned at described Set the target amplitude in amplitude section;Wherein, the target amplitude is that the analog-digital converter after gain adjustment is converted to The corresponding amplitude of digital signal.
2. emergent broadcast audio-frequency processing method according to claim 1, which is characterized in that judge with obtain the amplitude when Whether each amplitude carved in the setting duration for being starting point is respectively positioned on outside the setting amplitude section, if in the setting duration Each amplitude be respectively positioned on outside the setting amplitude section, the gain of the analog-digital converter is carried out according to setting gain delta Adjustment, until at least there is the step of target amplitude being located in the setting amplitude section, packet in the setting duration It includes:
The first setting whether is below as each amplitude in the first setting duration of starting point at the time of judgement to obtain the amplitude Value;
If each amplitude in the first setting duration is below first setting value, according to the first setting gain delta It adds up to the gain of the analog-digital converter, until at least having one in the first setting duration not less than described The first object amplitude of first setting value;Wherein, the first object amplitude is the analog-digital converter conversion after gain is cumulative The corresponding amplitude of obtained digital signal, first setting value are the lower limit value in the setting amplitude section.
3. emergent broadcast audio-frequency processing method according to claim 1, which is characterized in that judge with obtain the amplitude when Whether each amplitude carved in the setting duration for being starting point is respectively positioned on outside the setting amplitude section, if in the setting duration Each amplitude be respectively positioned on outside the setting amplitude section, the gain of the analog-digital converter is carried out according to setting gain delta Adjustment, until at least there is the step of target amplitude being located in the setting amplitude section, packet in the setting duration It includes:
Whether reach the second setting as each amplitude in the second setting duration of starting point at the time of judgement to obtain the amplitude Value;
If each amplitude in the second setting duration reaches second setting value, according to the second setting gain delta Regressive is carried out to the gain of the analog-digital converter, until at least having one in the second setting duration does not reach institute State the second target amplitude of the second setting value;Wherein, second target amplitude is that the analog-digital converter after gain regressive turns The corresponding amplitude of the digital signal got in return, second setting value are the upper limit value in the setting amplitude section.
4. emergent broadcast audio-frequency processing method according to claim 2, which is characterized in that the method also includes:
The modification instruction for modifying the first setting gain delta is obtained, parsing obtains include in the modification instruction the One target gain increment;
Obtain the siding-to-siding block length value in the setting amplitude section;
Judge whether the first object gain delta reaches the siding-to-siding block length value, if the first object gain delta reaches The siding-to-siding block length value, refusal execute the modification and instruct, if not reach the section long for the first object gain delta The first setting gain delta is revised as the first object gain delta according to modification instruction by angle value.
5. emergent broadcast audio-frequency processing method according to claim 4, which is characterized in that obtain the setting amplitude section Siding-to-siding block length value the step of, comprising:
Obtain it is described setting amplitude section one of endpoint at amplitude and as the first setting value, obtain the setting width It is worth the amplitude at another endpoint in section and as the second setting value;
Calculate the absolute value of the difference of first setting value and second setting value;
The absolute value as the siding-to-siding block length value and is obtained.
6. a kind of emergent broadcast apparatus for processing audio, which is characterized in that be applied to server-side, the server-side is communicatively coupled to mould Number converter, described device include:
Audio signal reception module, for controlling the analog-digital converter real-time reception audio signal;
Digital signal obtains module, more for being converted to the analog-digital converter by the audio signal according to setting sample rate A digital signal;
Amplitude obtains module, for obtaining the amplitude of each digital signal;
Gain regulation module, for judging whether the amplitude is located at outside setting amplitude section for each amplitude got, if The amplitude is located at outside the setting amplitude section, as each width in the setting duration of starting point at the time of judgement to obtain the amplitude Whether value is respectively positioned on outside the setting amplitude section, if each amplitude in the setting duration is respectively positioned on the setting amplitude Outside section, the gain of the analog-digital converter is adjusted according to setting gain delta, until in the setting duration at least The target amplitude being located in the setting amplitude section there are one;Wherein, the target amplitude is the mould after gain adjustment The corresponding amplitude of the digital signal that number converter is converted to.
7. emergent broadcast apparatus for processing audio according to claim 6, which is characterized in that the gain regulation module passes through The setting whether is respectively positioned on as each amplitude in the setting duration of starting point at the time of following manner judges to obtain the amplitude Outside amplitude section, if each amplitude in the setting duration is respectively positioned on outside the setting amplitude section, according to setting gain Increment is adjusted the gain of the analog-digital converter, until at least having one in the setting duration is located at the setting Target amplitude in amplitude section:
The first setting whether is below as each amplitude in the first setting duration of starting point at the time of judgement to obtain the amplitude Value;
If each amplitude in the first setting duration is below first setting value, according to the first setting gain delta It adds up to the gain of the analog-digital converter, until at least having one in the first setting duration not less than described The first object amplitude of first setting value;Wherein, the first object amplitude is the analog-digital converter conversion after gain is cumulative The corresponding amplitude of obtained digital signal, first setting value are the lower limit value in the setting amplitude section.
8. emergent broadcast apparatus for processing audio according to claim 6, which is characterized in that the gain regulation module passes through The setting whether is respectively positioned on as each amplitude in the setting duration of starting point at the time of following manner judges to obtain the amplitude Outside amplitude section, if each amplitude in the setting duration is respectively positioned on outside the setting amplitude section, according to setting gain Increment is adjusted the gain of the analog-digital converter, until at least having one in the setting duration is located at the setting Target amplitude in amplitude section:
Whether reach the second setting as each amplitude in the second setting duration of starting point at the time of judgement to obtain the amplitude Value;
If each amplitude in the second setting duration reaches second setting value, according to the second setting gain delta Regressive is carried out to the gain of the analog-digital converter, until at least having one in the second setting duration does not reach institute State the second target amplitude of the second setting value;Wherein, second target amplitude is that the analog-digital converter after gain regressive turns The corresponding amplitude of the digital signal got in return, second setting value are the upper limit value in the setting amplitude section.
9. emergent broadcast apparatus for processing audio according to claim 7, which is characterized in that described device further include:
Modified module, for obtaining the modification instruction for modifying the first setting gain delta, parsing obtains the modification The first object gain delta for including in instruction;Obtain the siding-to-siding block length value in the setting amplitude section;Judge first mesh Whether mark gain delta reaches the siding-to-siding block length value, if the first object gain delta reaches the siding-to-siding block length value, refuses The modification instruction is executed absolutely, if the first object gain delta does not reach the siding-to-siding block length value, according to the modification The first setting gain delta is revised as the first object gain delta by instruction.
10. emergent broadcast apparatus for processing audio according to claim 9, which is characterized in that the modified module by with Under type obtains the siding-to-siding block length value in the setting amplitude section:
Obtain it is described setting amplitude section one of endpoint at amplitude and as the first setting value, obtain the setting width It is worth the amplitude at another endpoint in section and as the second setting value;
Calculate the absolute value of the difference of first setting value and second setting value;
The absolute value as the siding-to-siding block length value and is obtained.
CN201910090162.1A 2019-01-29 2019-01-29 Emergency broadcast audio processing method and device Active CN109584901B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910090162.1A CN109584901B (en) 2019-01-29 2019-01-29 Emergency broadcast audio processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910090162.1A CN109584901B (en) 2019-01-29 2019-01-29 Emergency broadcast audio processing method and device

Publications (2)

Publication Number Publication Date
CN109584901A true CN109584901A (en) 2019-04-05
CN109584901B CN109584901B (en) 2021-04-23

Family

ID=65918209

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910090162.1A Active CN109584901B (en) 2019-01-29 2019-01-29 Emergency broadcast audio processing method and device

Country Status (1)

Country Link
CN (1) CN109584901B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113659987A (en) * 2021-08-20 2021-11-16 合肥御微半导体技术有限公司 Signal processing device and method thereof
US11387838B1 (en) 2021-03-19 2022-07-12 Microsoft Technology Licensing, Llc SAR analog-to-digital converter calibration
US11677409B2 (en) 2021-03-19 2023-06-13 Microsoft Technology Licensing, Llc Cloud assisted calibration of analog-to-digital converters

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101483445A (en) * 2008-01-09 2009-07-15 联发科技股份有限公司 Methods for preventing unwanted sound and electronic devices thereof
CN103050119A (en) * 2012-12-30 2013-04-17 安徽科大讯飞信息科技股份有限公司 Self-adaptive detection method for synchronism of lamplight/motor and sound
CN106448690A (en) * 2016-10-20 2017-02-22 广州视源电子科技股份有限公司 Automatic gain control method and apparatus of audio signals
CN106817483A (en) * 2016-12-26 2017-06-09 建荣半导体(深圳)有限公司 A kind of method and apparatus for adjusting speech volume
US9847092B2 (en) * 2010-12-22 2017-12-19 Alon Konchitsky Methods and system for wideband signal processing in communication network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101483445A (en) * 2008-01-09 2009-07-15 联发科技股份有限公司 Methods for preventing unwanted sound and electronic devices thereof
US9847092B2 (en) * 2010-12-22 2017-12-19 Alon Konchitsky Methods and system for wideband signal processing in communication network
CN103050119A (en) * 2012-12-30 2013-04-17 安徽科大讯飞信息科技股份有限公司 Self-adaptive detection method for synchronism of lamplight/motor and sound
CN106448690A (en) * 2016-10-20 2017-02-22 广州视源电子科技股份有限公司 Automatic gain control method and apparatus of audio signals
CN106817483A (en) * 2016-12-26 2017-06-09 建荣半导体(深圳)有限公司 A kind of method and apparatus for adjusting speech volume

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11387838B1 (en) 2021-03-19 2022-07-12 Microsoft Technology Licensing, Llc SAR analog-to-digital converter calibration
US11677409B2 (en) 2021-03-19 2023-06-13 Microsoft Technology Licensing, Llc Cloud assisted calibration of analog-to-digital converters
CN113659987A (en) * 2021-08-20 2021-11-16 合肥御微半导体技术有限公司 Signal processing device and method thereof

Also Published As

Publication number Publication date
CN109584901B (en) 2021-04-23

Similar Documents

Publication Publication Date Title
CN109584901A (en) Emergent broadcast audio-frequency processing method and device
CN104640054B (en) Mobile terminal receiver/loudspeaker method of testing and system
KR101538756B1 (en) Mobile device and method for outputting sound wave to control external device, and the external device
CN105225681B (en) Speech playing method and system
CN103199942B (en) A kind of voice communication method and the terminal using the method
CN104012040B (en) Optimize video calling service quality
CN105744439B (en) Microphone apparatus and mobile terminal with it
AU2007354783A1 (en) Method for user individualized fitting of a hearing aid
CN101808392A (en) Automatic gain control method for time orthogonal frequency division multiplexing system
CN103249061B (en) Voice quality method of testing and system
CN101060724A (en) A method for avoiding the hearing injury of audio equipment and electro-acoustic device made through this method
CN105142227B (en) A kind of determination method and apparatus of MCS grade
CN103905646B (en) Communicating terminal and sound processing method thereof
CN107729506A (en) A kind of storage medium and the other dynamic adjusting method of journal stage, apparatus and system
CN109756240A (en) Wireless communication receiver and gain control method with gain control
KR20190039552A (en) Multipath ground splitting based on input signal fidelity and output requirements
CN108307259B (en) Noise Processing for removing method, apparatus, computer equipment, storage medium and speaker
CN103138805B (en) Transmission method and device and system of power line carrier waves
CN103812462A (en) Loudness control method and device
CN106849996B (en) Meter reading method and data acquisition unit based on power line communication
CN105515609A (en) Amplitude equalization circuit for mobile underwater sound frequency-hopping communication receiving system
CN1983804A (en) Audio-frequency processor and volume management
CN105611203B (en) A kind of method, apparatus and receiving terminal for digital television adjusting TV programme volume
CN102195681B (en) Demodulation signal gain control method and device and microcontroller
CN104519396B (en) A kind of method for connecting network and television set

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