CN103247292A - Audio communication method and device - Google Patents

Audio communication method and device Download PDF

Info

Publication number
CN103247292A
CN103247292A CN2013101024028A CN201310102402A CN103247292A CN 103247292 A CN103247292 A CN 103247292A CN 2013101024028 A CN2013101024028 A CN 2013101024028A CN 201310102402 A CN201310102402 A CN 201310102402A CN 103247292 A CN103247292 A CN 103247292A
Authority
CN
China
Prior art keywords
numerical value
pcm
mixer
tone signal
acoustic tone
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
CN2013101024028A
Other languages
Chinese (zh)
Other versions
CN103247292B (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.)
Beijing Minghua Alliance Technology Co., Ltd.
Original Assignee
Shenzhen Excelsecu Data Technology 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 Excelsecu Data Technology Co Ltd filed Critical Shenzhen Excelsecu Data Technology Co Ltd
Priority to CN201310102402.8A priority Critical patent/CN103247292B/en
Publication of CN103247292A publication Critical patent/CN103247292A/en
Application granted granted Critical
Publication of CN103247292B publication Critical patent/CN103247292B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephonic Communication Services (AREA)
  • Transmitters (AREA)

Abstract

The invention discloses an audio communication method and device. A chain table corresponding to an audio mixer is set up through host equipment, and a data modulation audio carrier signal needed to be outputted through an audio interface is generated into a modulation sound signal; audio signals including the modulation sound signal acting as input sources of the audio mixer are outputted to the audio mixer, and all the input sources are converted into the unified audio sample frequency before audio mixing; on account of two different kinds of accumulative algorithms during the audio mixing of the audio mixer, the input sources adopt different audio single input manners respectively; the signals of all the input sources through accumulative audio mixing acting as a result of audio mixing are outputted by the audio mixer; and the method and the device have the benefits that under the condition of not modifying the audio setting of the host equipment or not affecting the operation of other programs of the host equipment, the background sound which performs data communication through adopting the audio interface is suppressed; and as the solution is realized through a software, the method and the device have better compatibility and generality.

Description

Audio communication method and device
Technical field
The present invention relates to the audio signal processing technique field, relate in particular to a kind of audio communication method and device.
Background technology
When main process equipment such as smart mobile phone and panel computer carries out data communication by audio interface and some external audio communication facilities such as USBKey, by voice data being modulated to realize data communication function; But can there be following problem usually in actual applications; in the process that above-mentioned main process equipment and external audio communication facilities communicate by audio interface, the interference of the sound that other application program is play on the main frame be can be subjected to, thereby garble or communication failure caused.At above-mentioned situation, solution at present commonly used is: when above-mentioned main process equipment and some external audio communication facilities communicate, the sound setting of other program on modification main frame and the main frame, close the operation of other program etc.; But this solution still can not be stopped on the main frame fully because the interference that other sound produces occurring, and can not solve the problem that the sound interference of playing because of other application programs causes garble or communication failure fully.
Summary of the invention
Fundamental purpose of the present invention provides a kind of audio communication method and device, be intended under the situation of not modification system setting, when solution part main process equipment and some external audio communication facilities carry out data communication by audio interface, the interference problem that the sound that other application programs are play on the main process equipment produces.
The embodiment of the invention discloses a kind of audio communication method, may further comprise the steps:
Set up the mixer input source and safeguard chained list, each input source is begun to insert successively described chained list from linked list head;
The data modulating audio frequency carrier signal of need by audio interface output generated the modulated acoustic tone signal, and the sound signal that will comprise described modulated acoustic tone signal exports mixer to as the input source of mixer;
Audio sampling frequency is set, each input source of described mixer is converted to unified described audio sampling frequency;
Begin last accumulation result export from described audio interface as the audio mixing result, for the reception of external audio communication facilities by add up each input source of described mixer of road from the gauge outfit of described chained list.
Preferably, described gauge outfit from described chained list begins to comprise by add up each input source of described mixer of road:
When adding up, each accumulation result is all carried out amplitude limiting processing, when the amplitude of this accumulation result preset the positive maximal value of PCM numerical value above described mixer, then the amplitude with this accumulation result was restricted to the positive maximal value of the described PCM of presetting numerical value; When the amplitude of this accumulation result surpassed described mixer and presets the negative maximal value of PCM numerical value, then the amplitude with this accumulation result was restricted to the negative maximal value of the described PCM of presetting numerical value.
Preferably, the described sound signal that will comprise described modulated acoustic tone signal exports mixer to as the input source of mixer and comprises:
Output two-way or multichannel numerical value are the just peaked sound signal of PCM numerical value earlier, export a way value again and are the negative peaked sound signal of PCM numerical value; Perhaps, output two-way or multichannel numerical value are the negative peaked sound signal of PCM numerical value earlier, and exporting a way value again is the just peaked sound signal of PCM numerical value;
At last, output is used for carrying out the described modulated acoustic tone signal of data communication to described mixer.
Preferably, described gauge outfit from described chained list begins to comprise by add up each input source of described mixer of road:
Last accumulation result to described each input source carries out amplitude limiting processing, and when the amplitude of described last accumulation result preset the positive maximal value of PCM numerical value above described mixer, then the amplitude with described last accumulation result was restricted to the positive maximal value of the described PCM of presetting numerical value; When the amplitude of described last accumulation result surpassed described mixer and presets the negative maximal value of PCM numerical value, amplitude that then will described last accumulation result was restricted to the described PCM of presetting numerical value and bears maximal value.
Preferably, the described sound signal that will comprise described modulated acoustic tone signal exports mixer to as the input source of mixer and comprises:
Described modulated acoustic tone signal be on the occasion of the time, the amplitude of described modulated acoustic tone signal is converted to the positive maximal value of the described PCM of presetting numerical value; When described modulated acoustic tone signal is negative value, the amplitude of described modulated acoustic tone signal is converted to the negative maximal value of the described PCM of presetting numerical value;
Exporting two-way or multichannel PCM numerical value is identical and phase place is identical amplitude simultaneously is that the negative peaked described modulated acoustic tone signal of the positive maximal value of PCM numerical value or PCM numerical value is to described mixer.
Preferably, the described sound signal that will comprise described modulated acoustic tone signal exports mixer to as the input source of mixer and comprises:
Described modulated acoustic tone signal be on the occasion of the time, the amplitude of described modulated acoustic tone signal is converted to the negative maximal value of the described PCM of presetting numerical value; When described modulated acoustic tone signal is negative value, the amplitude of described modulated acoustic tone signal is converted to the positive maximal value of the described PCM of presetting numerical value;
Exporting two-way or multichannel PCM numerical value is identical and phase place is identical amplitude simultaneously is that the negative peaked described modulated acoustic tone signal of the positive maximal value of the described PCM of presetting numerical value or the described PCM of presetting numerical value is to described mixer.
Preferably, described will the need comprises by the data modulating audio frequency carrier signal generation modulated acoustic tone signal of audio interface output:
The data of described need by audio interface output be on the occasion of the time, the just peaked modulated acoustic tone signal of corresponding generation PCM numerical value; When the data of described need by audio interface output are negative value, the corresponding negative peaked modulated acoustic tone signal of PCM numerical value that generates;
Perhaps:
The data of described need by audio interface output be on the occasion of the time, the corresponding PCM of generation numerical value is born peaked modulated acoustic tone signal; When the data of described need by audio interface output are negative value, the corresponding just peaked modulated acoustic tone signal of PCM numerical value that generates;
The described sound signal that will comprise described modulated acoustic tone signal exports mixer to as the input source of mixer and comprises: exporting two-way or multichannel PCM numerical value is identical and phase place is identical amplitude simultaneously is that the negative peaked described modulated acoustic tone signal of the positive maximal value of the described PCM of presetting numerical value or the described PCM of presetting numerical value is to described mixer.
The embodiment of the invention also discloses a kind of VOCA voice communications assembly, comprising:
Chained list is set up module, is used for setting up the mixer input source and safeguards chained list, and each input source is begun to insert successively described chained list from linked list head;
The data modulation module to need to be used for the data modulating audio frequency carrier signal generation modulated acoustic tone signal by audio interface output, and the sound signal that will comprise described modulated acoustic tone signal exports mixer to as the input source of mixer;
Frequency setting module is used for arranging audio sampling frequency, and each input source of described mixer is converted to unified described audio sampling frequency;
Signal output module is used for beginning last accumulation result export from described audio interface as the audio mixing result, for the reception of external audio communication facilities by add up each input source of described mixer of road from the gauge outfit of described chained list.
Preferably, described signal output module also is used for:
When adding up, each accumulation result is all carried out amplitude limiting processing, when the amplitude of this accumulation result preset the positive maximal value of PCM numerical value above described mixer, then the amplitude with this accumulation result was restricted to the positive maximal value of PCM numerical value; When the amplitude of this accumulation result surpassed described mixer and presets the negative maximal value of PCM numerical value, then the amplitude with this accumulation result was restricted to the negative maximal value of PCM numerical value.
Preferably, described data modulation module also is used for:
Output two-way or multichannel numerical value are the just peaked sound signal of PCM numerical value earlier, export a way value again and are the negative peaked sound signal of PCM numerical value; Perhaps, output two-way or multichannel numerical value are the negative peaked sound signal of PCM numerical value earlier, and exporting a way value again is the just peaked sound signal of PCM numerical value;
At last, output is used for carrying out the described modulated acoustic tone signal of data communication to described mixer.
Preferably, described signal output module also is used for:
Last accumulation result to described each input source carries out amplitude limiting processing, and when the amplitude of described last accumulation result preset the positive maximal value of PCM numerical value above described mixer, then the amplitude with described last accumulation result was restricted to the positive maximal value of the described PCM of presetting numerical value; When the amplitude of described last accumulation result surpassed described mixer and presets the negative maximal value of PCM numerical value, amplitude that then will described last accumulation result was restricted to the described PCM of presetting numerical value and bears maximal value.
Preferably, described data modulation module also is used for:
Described modulated acoustic tone signal be on the occasion of the time, the amplitude of described modulated acoustic tone signal is converted to the positive maximal value of the described PCM of presetting numerical value; When described modulated acoustic tone signal is negative value, the amplitude of described modulated acoustic tone signal is converted to the negative maximal value of the described PCM of presetting numerical value;
Exporting two-way or multichannel PCM numerical value is identical and phase place is identical amplitude simultaneously is that the negative peaked described modulated acoustic tone signal of the positive maximal value of the described PCM of presetting numerical value or the described PCM of presetting numerical value is to described mixer.
Preferably, described data modulation module also is used for:
Described modulated acoustic tone signal be on the occasion of the time, the amplitude of described modulated acoustic tone signal is converted to the negative maximal value of the described PCM of presetting numerical value; When described modulated acoustic tone signal is negative value, the amplitude of described modulated acoustic tone signal is converted to the positive maximal value of the described PCM of presetting numerical value;
Exporting two-way or multichannel PCM numerical value is identical and phase place is identical amplitude simultaneously is that the negative peaked described modulated acoustic tone signal of the positive maximal value of the described PCM of presetting numerical value or the described PCM of presetting numerical value is to described mixer.
Preferably, described data modulation module also is used for:
The data of described need by audio interface output be on the occasion of the time, the described just peaked modulated acoustic tone signal of PCM numerical value that presets of corresponding generation; When the data of described need by audio interface output are negative value, correspondingly generate the described negative peaked modulated acoustic tone signal of PCM numerical value that presets;
Perhaps:
The data of described need by audio interface output be on the occasion of the time, correspondingly generate the described PCM numerical value that presets and bear peaked modulated acoustic tone signal; When the data of described need by audio interface output are negative value, correspondingly generate the described just peaked modulated acoustic tone signal of PCM numerical value that presets;
Exporting two-way or multichannel PCM numerical value is identical and phase place is identical amplitude simultaneously is that the negative peaked described modulated acoustic tone signal of the positive maximal value of the described PCM of presetting numerical value or the described PCM of presetting numerical value is to described mixer.
The present invention sets up the chained list of mixer correspondence by main process equipment, and the data modulating audio frequency carrier signal of need by audio interface output generated the modulated acoustic tone signal; The sound signal that will comprise described modulated acoustic tone signal exports mixer to as the input source of mixer, before audio mixing each road input source is converted to unified audio sampling frequency; And at the two kind different accumulation algorithm of mixer when the audio mixing, input source adopts different audio signal output modes respectively, mixer is exported each input source signal behind the audio mixing that adds up as the audio mixing result, method for the reception of external audio communication facilities, have in the audio setting of not revising main process equipment and do not influence under the condition of other programs of main process equipment operation, the beneficial effect that the background audio that adopts audio interface to carry out data communication is suppressed, thoroughly solved when carrying out data communication by audio interface the interference problem that plays sound and produce because of other application programs; Because above-mentioned solution realizes therefore having better compatibility and versatility by software.
Description of drawings
Fig. 1 is audio communication method one embodiment schematic flow sheet of the present invention;
Fig. 2 is VOCA voice communications assembly one embodiment high-level schematic functional block diagram of the present invention.
The realization of the object of the invention, functional characteristics and advantage will be in conjunction with the embodiments, are described further with reference to accompanying drawing.
Embodiment
Further specify technical scheme of the present invention below in conjunction with Figure of description and specific embodiment.Should be appreciated that specific embodiment described herein only in order to explaining the present invention, and be not used in restriction the present invention.
In the specific embodiment of audio communication method of the present invention and device, described main process equipment refers to main process equipments such as portable terminal, panel computer, the described external unit that communicates with refers to the external audio communication facilities that carries out data communication by audio interface with described main process equipment, as USBKey etc.; Main process equipment and cooperatively interact by the external audio communication facilities that audio interface and main process equipment communicate is realized the compacting to background audio, and communication data is correct when guaranteeing to communicate between the two.
With reference to Fig. 1, Fig. 1 is audio communication method one embodiment schematic flow sheet of the present invention; As shown in Figure 1, audio communication method of the present invention may further comprise the steps:
Step S01, set up the mixer input source and safeguard chained list, each input source is begun to insert successively described chained list from linked list head;
Main process equipment is set up the input source of mixer correspondence and is safeguarded chained list, and each input source is begun to insert successively described chained list from described linked list head successively.
In a preferred embodiment, mixer is safeguarded each road input source by the chained list of above-mentioned foundation, in that to have new input source to add fashionable, the input source that increases newly is inserted into the end of this chained list; When having input source to close, the described input source of closing is removed from described chained list.
Step S02, will need to generate the modulated acoustic tone signal by the data modulating audio frequency carrier signal of audio interface output, the sound signal that will comprise described modulated acoustic tone signal exports mixer to as the input source of mixer;
Main process equipment will need the data that communicate with the external audio communication facilities of being used for by audio interface output, be modulated at and generate the modulated acoustic tone signal on the audio carrier signal.
In a preferred embodiment, main process equipment adopts PCM(Pulse-Code Modulation, pulse code modulation (PCM)) mode the data of output are modulated.
The sound signal that main process equipment will comprise described modulation sound exports mixer to as the input source of mixer.When main process equipment communicates by audio interface and external audio communication facilities, the sound signal that main process equipment will comprise described modulated acoustic tone signal exports the mixer of this main process equipment to by two-way or multichannel input source, by mixer two or more sound signals are carried out audio mixing, a synthetic independent mixed audio signal and output.
Step S03, audio sampling frequency is set, each input source of described mixer is converted to unified described audio sampling frequency;
Before the mixer of main process equipment carries out audio mixing to the sound signal of input source input, each road input source that main process equipment is safeguarded this mixer is converted to unified audio sampling frequency, when making each input source gather sound signal, sample according to same sample frequency.
Step S04, begin last accumulation result export from described audio interface as the audio mixing result, for the reception of external audio communication facilities by add up each input source of described mixer of road from the gauge outfit of described chained list.
The different modes that the sound signal of each road input source being imported at mixer in the main process equipment adds up, each input source adopts different audio signal output modes to export mixer to respectively.
When the mixer of main process equipment carries out audio mixing, begin by road each road input source that adds up from the linked list head with the chained list of this mixer coupling, wherein a kind of accumulate mode is: when adding up, the result who at every turn adds up is all carried out amplitude limiting processing, surpass described mixer at this accumulation result and preset the positive maximal value of PCM numerical value, then the amplitude with this accumulation result is restricted to the positive maximal value of the described PCM of presetting numerical value; Surpass describedly when presetting the negative maximal value of PCM numerical value at this accumulation result, then the amplitude with this accumulation result is restricted to the negative maximal value of the described PCM of presetting numerical value.
All carry out the accumulate mode of amplitude limiting processing at each accumulation result, when the sound signal that main process equipment will comprise described modulated acoustic tone signal exports mixer to as input source, output two-way or multichannel numerical value are the described just peaked sound signal of PCM numerical value that presets earlier, and exporting a way value again is the negative peaked sound signal of the described PCM of presetting numerical value; Perhaps, output two-way or multichannel numerical value are the described negative peaked sound signal of PCM numerical value that presets earlier, and exporting a way value again is the just peaked sound signal of the described PCM of presetting numerical value; Modulated acoustic tone signal when output is used for carrying out data communication at last is to mixer.Like this, export behind the mixer audio mixing only carry out data communication the time the modulated acoustic tone signal.The mixer of main process equipment is according to the unified audio sampling frequency that arranges, begin by road each input source that adds up from the linked list head of this mixer correspondence, each modulated acoustic tone signal namely adds up, and the accumulation result after described modulated acoustic tone signal added up exports from described audio interface as the audio mixing result, receives for the external audio communication facilities that communicates with main process equipment.
When the mixer of main process equipment carries out audio mixing, begin from the linked list head with the chained list of this mixer coupling by the add up another kind of accumulate mode of each road input source of road be: when adding up, only the result who in the end adds up carries out amplitude limiting processing and namely only the last accumulation result of each input source is carried out amplitude limiting processing, in the end accumulation result surpass described mixer preset the positive maximal value of PCM numerical value the time, then the amplitude with described last accumulation result is restricted to the positive maximal value of the described PCM of presetting numerical value; In the end accumulation result surpass described mixer preset the negative maximal value of PCM numerical value the time, amplitude that then will described last accumulation result is restricted to the described PCM of presetting numerical value and bears maximal value.
At only in the end accumulation result carry out the accumulate mode of amplitude limiting processing, when the sound signal that main process equipment will comprise described modulated acoustic tone signal exported mixer to as the input source of mixer, exporting two-way or multichannel PCM numerical value is identical and phase place is identical amplitude simultaneously was that the negative peaked described modulated acoustic tone signal of the positive maximal value of the described PCM of presetting numerical value or the described PCM of presetting numerical value is to described mixer.Like this, export behind the mixer audio mixing only carry out data communication the time the modulated acoustic tone signal.The mixer of main process equipment is according to the unified audio sampling frequency that arranges, begin by road each input source that adds up from the linked list head of this mixer correspondence, each modulated acoustic tone signal namely adds up, and the accumulation result after described modulated acoustic tone signal added up exports from described audio interface as the audio mixing result, receives for the external audio communication facilities that communicates with main process equipment.
In a preferred embodiment, the described sound signal that will comprise described modulated acoustic tone signal exports mixer to as the input source of mixer and comprises:
Described modulated acoustic tone signal be on the occasion of the time, the amplitude of described modulated acoustic tone signal is converted to the negative maximal value of the described PCM of presetting numerical value; When described modulated acoustic tone signal is negative value, the amplitude of described modulated acoustic tone signal is converted to the positive maximal value of the described PCM of presetting numerical value; Exporting two-way or multichannel PCM numerical value is identical and phase place is identical amplitude simultaneously is that the negative peaked described modulated acoustic tone signal of the positive maximal value of the described PCM of presetting numerical value or the described PCM of presetting numerical value is to described mixer.
In a preferred embodiment, described will the need comprises by the data modulating audio frequency carrier signal generation modulated acoustic tone signal of audio interface output:
The data of described need by audio interface output be on the occasion of the time, the described just peaked modulated acoustic tone signal of PCM numerical value that presets of corresponding generation; When the data of described need by audio interface output are negative value, correspondingly generate the described negative peaked modulated acoustic tone signal of PCM numerical value that presets; Perhaps: the data of described need by audio interface output be on the occasion of the time, correspondingly generate the described PCM numerical value that presets and bear peaked modulated acoustic tone signal; When the data of described need by audio interface output are negative value, correspondingly generate the described just peaked modulated acoustic tone signal of PCM numerical value that presets.In the present embodiment, when the data of described need by audio interface output are high level, define these data on the occasion of; When the data that described need are exported by audio interface were low level, defining these data was negative value.
Present embodiment will need to generate the modulated acoustic tone signal by the data modulating audio frequency carrier signal of audio interface output by main process equipment; Set up the chained list of mixer correspondence, the sound signal that will comprise described modulated acoustic tone signal exports mixer to as the input source of mixer, before audio mixing each road input source is converted to unified audio sampling frequency; At the two kind different accumulation algorithm of mixer when the audio mixing, input source adopts different audio signal output modes respectively, the audio mixing result that the modulated acoustic tone signal that mixer is exported each input source obtains behind the audio mixing that adds up exports from described audio interface, method for the reception of external audio communication facilities, have in the audio setting of not revising main process equipment and do not influence under the condition of other programs of main process equipment operation, the beneficial effect that the background audio that adopts audio interface to carry out data communication is suppressed; Because above-mentioned solution realizes therefore having better compatibility and versatility by software.
Please refer to Fig. 2, Fig. 2 is VOCA voice communications assembly one embodiment high-level schematic functional block diagram of the present invention.As shown in Figure 2, VOCA voice communications assembly of the present invention comprises: chained list is set up module 01, data modulation module 02, frequency setting module 03 and signal output module 04.
Chained list is set up module 01, is used for setting up the mixer input source and safeguards chained list, and each input source is begun to insert successively described chained list from linked list head;
Chained list is set up module 01 and is set up the input source of mixer correspondence and safeguard chained list, and each input source is begun to insert successively described chained list from described linked list head successively.
In a preferred embodiment, mixer is set up the chained list that module 01 sets up by above-mentioned chained list and is safeguarded each road input source, and in that to have new input source to add fashionable, chained list is set up the end that module 01 is inserted into the input source that increases newly this chained list; When having input source to close, chained list is set up the described input source that module 01 will close and is removed from described chained list.
Data modulation module 02 is used for, and the data modulating audio frequency carrier signal of need by audio interface output generated the modulated acoustic tone signal, and the sound signal that will comprise described modulated acoustic tone signal exports mixer to as the input source of mixer;
Data modulation module 02 will need to be modulated to audio carrier signal by the data that are used for communicating with the external audio communication facilities of audio interface output, and generate the modulated acoustic tone signal.
In a preferred embodiment, data modulation module 02 adopts the mode of PCM that the data of output are modulated.
When main process equipment communicates by audio interface and external audio communication facilities, the sound signal that data modulation module 02 will comprise described modulated acoustic tone signal exports mixer to by two-way or multichannel input source, by mixer two or more sound signals are carried out audio mixing, a synthetic independent mixed audio signal and output.
Frequency setting module 03 is used for, and audio sampling frequency is set, and each input source of described mixer is converted to unified described audio sampling frequency;
Before the mixer of main process equipment carries out audio mixing to the sound signal of input source output, each road input source that frequency setting module 03 is safeguarded this mixer is converted to unified audio sampling frequency, when making each input source gather sound signal, sample according to same sample frequency.
Signal output module 04 is used for, and begins last accumulation result export from described audio interface as the audio mixing result, for the reception of external audio communication facilities by add up each input source of described mixer of road from the gauge outfit of described chained list.
The different modes that the sound signal of each road input source being imported at mixer in the main process equipment adds up, the sound signal that data modulation module 02 adopts different audio signal output modes will comprise described modulated acoustic tone signal respectively exports mixer to as input source.
Signal output module 04 begins by road each road input source that adds up from the linked list head with the chained list of mixer coupling, wherein a kind of accumulate mode is: when adding up, the result who at every turn adds up is all carried out amplitude limiting processing, this accumulation result surpass described mixer preset the positive maximal value of PCM numerical value the time, then the amplitude with this accumulation result is restricted to the positive maximal value of the described PCM of presetting numerical value; This accumulation result surpass described mixer preset the negative maximal value of PCM numerical value the time, then the amplitude with this accumulation result is restricted to the negative maximal value of the described PCM of presetting numerical value.
All carry out the accumulate mode of amplitude limiting processing at 04 pair of each accumulation result of signal output module, when the sound signal that data modulation module 02 will comprise described modulated acoustic tone signal exports mixer to as input source, output two-way or multichannel numerical value are the described just peaked sound signal of PCM numerical value that presets earlier, and exporting a way value again is the negative peaked sound signal of the described PCM of presetting numerical value; Perhaps, output two-way or multichannel numerical value are the described negative peaked sound signal of PCM numerical value that presets earlier, and exporting a way value again is the just peaked sound signal of the described PCM of presetting numerical value; Modulated acoustic tone signal when output is used for carrying out data communication at last is to mixer.Like this, export behind signal output module 04 audio mixing only carry out data communication the time the modulated acoustic tone signal.The signal output module 04 of main process equipment is according to the unified audio sampling frequency that arranges, begin by road each input source that adds up from the linked list head of mixer correspondence, each modulated acoustic tone signal namely adds up, and the accumulation result after described modulated acoustic tone signal added up exports from described audio interface as the audio mixing result, receives for the external audio communication facilities that communicates with main process equipment.
Signal output module 04 begins from the gauge outfit with the chained list of mixer coupling: when adding up, only the result who in the end adds up carries out amplitude limiting processing and namely only the last accumulation result of each input source is carried out amplitude limiting processing, in the end accumulation result surpass described mixer preset the positive maximal value of PCM numerical value the time, then the amplitude with described last accumulation result is restricted to the positive maximal value of the described PCM of presetting numerical value; In the end accumulation result surpass described mixer preset the negative maximal value of PCM numerical value the time, amplitude that then will described last accumulation result is restricted to the described PCM of presetting numerical value and bears maximal value.
At 04 of signal output module in the end accumulation result carry out the accumulate mode of amplitude limiting processing, when the sound signal that data modulation module 02 will comprise described modulated acoustic tone signal exported mixer to as the input source of mixer, exporting two-way or multichannel PCM numerical value is identical and phase place is identical amplitude simultaneously was that the negative peaked described modulated acoustic tone signal of the positive maximal value of the described PCM of presetting numerical value or the described PCM of presetting numerical value is to described mixer.Like this, export behind the mixer audio mixing only carry out data communication the time the modulated acoustic tone signal.Signal output module 04 is according to the unified audio sampling frequency that arranges, begin by road each input source that adds up from the linked list head of this mixer correspondence, each modulated acoustic tone signal namely adds up, and the accumulation result after described modulated acoustic tone signal added up exports from described audio interface as the audio mixing result, receives for the external audio communication facilities that communicates with main process equipment.
In a preferred embodiment, the sound signal that described data modulation module 02 will comprise described modulated acoustic tone signal exports mixer to as the input source of mixer and comprises:
Described modulated acoustic tone signal be on the occasion of the time, data modulation module 02 is converted to the negative maximal value of the described PCM of presetting numerical value with the amplitude of described modulated acoustic tone signal; When described modulated acoustic tone signal was negative value, data modulation module 02 was converted to the positive maximal value of the described PCM of presetting numerical value with the amplitude of described modulated acoustic tone signal; While data modulation module 02 output two-way or the amplitude that multichannel PCM numerical value is identical and phase place is identical are the positive maximal value of the described PCM of presetting numerical value or the described extremely described mixer of the negative peaked described modulated acoustic tone signal of PCM numerical value that presets.
In a preferred embodiment, described data modulation module 02 will need to comprise by the data modulating audio frequency carrier signal generation modulated acoustic tone signal of audio interface output:
The data of described need by audio interface output be on the occasion of the time, the described just peaked modulated acoustic tone signal of PCM numerical value that presets of data modulation module 02 corresponding generation; When the data of described need by audio interface output were negative value, data modulation module 02 is corresponding to generate the described negative peaked modulated acoustic tone signal of PCM numerical value that presets; Perhaps: the data of described need by audio interface output be on the occasion of the time, data modulation module 02 is corresponding to be generated the described PCM numerical value that presets and bears peaked modulated acoustic tone signal; When the data of described need by audio interface output were negative value, data modulation module 02 is corresponding to generate the described just peaked modulated acoustic tone signal of PCM numerical value that presets.In the present embodiment, when the data of described need by audio interface output are high level, define these data on the occasion of; When the data that described need are exported by audio interface were low level, defining these data was negative value.
Present embodiment is set up the chained list of mixer correspondence by main process equipment, and the data modulating audio frequency carrier signal of need by audio interface output generated the modulated acoustic tone signal; The sound signal that will comprise described modulated acoustic tone signal exports mixer to as input source, before audio mixing each road input source is converted to unified audio sampling frequency; At the two kind different accumulation algorithm of mixer when the audio mixing, input source adopts different audio signal output modes respectively, the audio mixing result that the modulated acoustic tone signal that mixer is exported each input source obtains behind the audio mixing that adds up exports from described audio interface, receives for the external audio communication facilities; Have in the audio setting of not revising main process equipment and do not influence under the condition of other programs of main process equipment operation, the beneficial effect that the background audio that adopts audio interface to carry out data communication is suppressed; Because the above-mentioned solution that the present embodiment VOCA voice communications assembly adopts realizes therefore having better compatibility and versatility by software.
The above only is the preferred embodiments of the present invention; be not so limit its claim; every equivalent structure or equivalent flow process conversion that utilizes instructions of the present invention and accompanying drawing content to do; directly or indirectly be used in other relevant technical fields, all in like manner be included in the scope of patent protection of the present invention.

Claims (14)

1. an audio communication method is characterized in that, may further comprise the steps:
Set up the mixer input source and safeguard chained list, each input source is begun to insert successively described chained list from linked list head;
The data modulating audio frequency carrier signal of need by audio interface output generated the modulated acoustic tone signal, and the sound signal that will comprise described modulated acoustic tone signal exports mixer to as the input source of mixer;
Audio sampling frequency is set, each input source of described mixer is converted to unified described audio sampling frequency;
Begin last accumulation result export from described audio interface as the audio mixing result, for the reception of external audio communication facilities by add up each input source of described mixer of road from the gauge outfit of described chained list.
2. the method for claim 1 is characterized in that, described gauge outfit from described chained list begins to comprise by add up each input source of described mixer of road:
When adding up, each accumulation result is all carried out amplitude limiting processing, when the amplitude of this accumulation result preset the positive maximal value of PCM numerical value above described mixer, then the amplitude with this accumulation result was restricted to the positive maximal value of the described PCM of presetting numerical value; When the amplitude of this accumulation result surpassed described mixer and presets the negative maximal value of PCM numerical value, then the amplitude with this accumulation result was restricted to the negative maximal value of the described PCM of presetting numerical value.
3. method as claimed in claim 2 is characterized in that, the described sound signal that will comprise described modulated acoustic tone signal exports mixer to as the input source of mixer and comprises:
Output two-way or multichannel numerical value are the just peaked sound signal of PCM numerical value earlier, export a way value again and are the negative peaked sound signal of PCM numerical value; Perhaps, output two-way or multichannel numerical value are the negative peaked sound signal of PCM numerical value earlier, and exporting a way value again is the just peaked sound signal of PCM numerical value;
At last, output is used for carrying out the described modulated acoustic tone signal of data communication to described mixer.
4. the method for claim 1 is characterized in that, described gauge outfit from described chained list begins to comprise by add up each input source of described mixer of road:
Last accumulation result to described each input source carries out amplitude limiting processing, and when the amplitude of described last accumulation result preset the positive maximal value of PCM numerical value above described mixer, then the amplitude with described last accumulation result was restricted to the positive maximal value of the described PCM of presetting numerical value; When the amplitude of described last accumulation result surpassed described mixer and presets the negative maximal value of PCM numerical value, amplitude that then will described last accumulation result was restricted to the described PCM of presetting numerical value and bears maximal value.
5. as claim 1,2 or 4 each described methods, it is characterized in that the described sound signal that will comprise described modulated acoustic tone signal exports mixer to as the input source of mixer and comprises:
Described modulated acoustic tone signal be on the occasion of the time, the amplitude of described modulated acoustic tone signal is converted to the positive maximal value of the described PCM of presetting numerical value; When described modulated acoustic tone signal is negative value, the amplitude of described modulated acoustic tone signal is converted to the negative maximal value of the described PCM of presetting numerical value;
Exporting two-way or multichannel PCM numerical value is identical and phase place is identical amplitude simultaneously is that the negative peaked described modulated acoustic tone signal of the positive maximal value of PCM numerical value or PCM numerical value is to described mixer.
6. as claim 1,2 or 4 each described methods, it is characterized in that the described sound signal that will comprise described modulated acoustic tone signal exports mixer to as the input source of mixer and comprises:
Described modulated acoustic tone signal be on the occasion of the time, the amplitude of described modulated acoustic tone signal is converted to the negative maximal value of the described PCM of presetting numerical value; When described modulated acoustic tone signal is negative value, the amplitude of described modulated acoustic tone signal is converted to the positive maximal value of the described PCM of presetting numerical value;
Exporting two-way or multichannel PCM numerical value is identical and phase place is identical amplitude simultaneously is that the negative peaked described modulated acoustic tone signal of the positive maximal value of the described PCM of presetting numerical value or the described PCM of presetting numerical value is to described mixer.
7. as claim 1,2 or 4 each described methods, it is characterized in that described will the need comprises by the data modulating audio frequency carrier signal generation modulated acoustic tone signal of audio interface output:
The data of described need by audio interface output be on the occasion of the time, the just peaked modulated acoustic tone signal of corresponding generation PCM numerical value; When the data of described need by audio interface output are negative value, the corresponding negative peaked modulated acoustic tone signal of PCM numerical value that generates;
Perhaps:
The data of described need by audio interface output be on the occasion of the time, the corresponding PCM of generation numerical value is born peaked modulated acoustic tone signal; When the data of described need by audio interface output are negative value, the corresponding just peaked modulated acoustic tone signal of PCM numerical value that generates;
The described sound signal that will comprise described modulated acoustic tone signal exports mixer to as the input source of mixer and comprises: exporting two-way or multichannel PCM numerical value is identical and phase place is identical amplitude simultaneously is that the negative peaked described modulated acoustic tone signal of the positive maximal value of the described PCM of presetting numerical value or the described PCM of presetting numerical value is to described mixer.
8. a VOCA voice communications assembly is characterized in that, comprising:
Chained list is set up module, is used for setting up the mixer input source and safeguards chained list, and each input source is begun to insert successively described chained list from linked list head;
The data modulation module to need to be used for the data modulating audio frequency carrier signal generation modulated acoustic tone signal by audio interface output, and the sound signal that will comprise described modulated acoustic tone signal exports mixer to as the input source of mixer;
Frequency setting module is used for arranging audio sampling frequency, and each input source of described mixer is converted to unified described audio sampling frequency;
Signal output module is used for beginning last accumulation result export from described audio interface as the audio mixing result, for the reception of external audio communication facilities by add up each input source of described mixer of road from the gauge outfit of described chained list.
9. device as claimed in claim 8 is characterized in that, described signal output module also is used for:
When adding up, each accumulation result is all carried out amplitude limiting processing, when the amplitude of this accumulation result preset the positive maximal value of PCM numerical value above described mixer, then the amplitude with this accumulation result was restricted to the positive maximal value of PCM numerical value; When the amplitude of this accumulation result surpassed described mixer and presets the negative maximal value of PCM numerical value, then the amplitude with this accumulation result was restricted to the negative maximal value of PCM numerical value.
10. device as claimed in claim 8 is characterized in that, described data modulation module also is used for:
Output two-way or multichannel numerical value are the just peaked sound signal of PCM numerical value earlier, export a way value again and are the negative peaked sound signal of PCM numerical value; Perhaps, output two-way or multichannel numerical value are the negative peaked sound signal of PCM numerical value earlier, and exporting a way value again is the just peaked sound signal of PCM numerical value;
At last, output is used for carrying out the described modulated acoustic tone signal of data communication to described mixer.
11. install as claimed in claim 8 or 9, it is characterized in that described signal output module also is used for:
Last accumulation result to described each input source carries out amplitude limiting processing, and when the amplitude of described last accumulation result preset the positive maximal value of PCM numerical value above described mixer, then the amplitude with described last accumulation result was restricted to the positive maximal value of the described PCM of presetting numerical value; When the amplitude of described last accumulation result surpassed described mixer and presets the negative maximal value of PCM numerical value, amplitude that then will described last accumulation result was restricted to the described PCM of presetting numerical value and bears maximal value.
12., it is characterized in that described data modulation module also is used for as claim 8 or 10 described devices:
Described modulated acoustic tone signal be on the occasion of the time, the amplitude of described modulated acoustic tone signal is converted to the positive maximal value of the described PCM of presetting numerical value; When described modulated acoustic tone signal is negative value, the amplitude of described modulated acoustic tone signal is converted to the negative maximal value of the described PCM of presetting numerical value;
Exporting two-way or multichannel PCM numerical value is identical and phase place is identical amplitude simultaneously is that the negative peaked described modulated acoustic tone signal of the positive maximal value of the described PCM of presetting numerical value or the described PCM of presetting numerical value is to described mixer.
13. device as claimed in claim 12 is characterized in that, described data modulation module also is used for:
Described modulated acoustic tone signal be on the occasion of the time, the amplitude of described modulated acoustic tone signal is converted to the negative maximal value of the described PCM of presetting numerical value; When described modulated acoustic tone signal is negative value, the amplitude of described modulated acoustic tone signal is converted to the positive maximal value of the described PCM of presetting numerical value;
Exporting two-way or multichannel PCM numerical value is identical and phase place is identical amplitude simultaneously is that the negative peaked described modulated acoustic tone signal of the positive maximal value of the described PCM of presetting numerical value or the described PCM of presetting numerical value is to described mixer.
14. device as claimed in claim 12 is characterized in that, described data modulation module also is used for:
The data of described need by audio interface output be on the occasion of the time, the described just peaked modulated acoustic tone signal of PCM numerical value that presets of corresponding generation; When the data of described need by audio interface output are negative value, correspondingly generate the described negative peaked modulated acoustic tone signal of PCM numerical value that presets;
Perhaps:
The data of described need by audio interface output be on the occasion of the time, correspondingly generate the described PCM numerical value that presets and bear peaked modulated acoustic tone signal; When the data of described need by audio interface output are negative value, correspondingly generate the described just peaked modulated acoustic tone signal of PCM numerical value that presets;
Exporting two-way or multichannel PCM numerical value is identical and phase place is identical amplitude simultaneously is that the negative peaked described modulated acoustic tone signal of the positive maximal value of the described PCM of presetting numerical value or the described PCM of presetting numerical value is to described mixer.
CN201310102402.8A 2013-03-27 2013-03-27 audio communication method and device Expired - Fee Related CN103247292B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310102402.8A CN103247292B (en) 2013-03-27 2013-03-27 audio communication method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310102402.8A CN103247292B (en) 2013-03-27 2013-03-27 audio communication method and device

Publications (2)

Publication Number Publication Date
CN103247292A true CN103247292A (en) 2013-08-14
CN103247292B CN103247292B (en) 2015-11-18

Family

ID=48926778

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310102402.8A Expired - Fee Related CN103247292B (en) 2013-03-27 2013-03-27 audio communication method and device

Country Status (1)

Country Link
CN (1) CN103247292B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110970008A (en) * 2018-09-28 2020-04-07 广州灵派科技有限公司 Embedded sound mixing method and device, embedded equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2845312Y (en) * 2005-11-23 2006-12-06 中兴通讯股份有限公司 Multicarrier peak inhibitor
JP2007072023A (en) * 2005-09-06 2007-03-22 Hitachi Ltd Information processing apparatus and method
CN1972263A (en) * 2005-11-23 2007-05-30 中兴通讯股份有限公司 A multi-carrier communication system
CN202454261U (en) * 2012-02-27 2012-09-26 株洲华通科技有限责任公司 Voice frequency mixing device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007072023A (en) * 2005-09-06 2007-03-22 Hitachi Ltd Information processing apparatus and method
CN2845312Y (en) * 2005-11-23 2006-12-06 中兴通讯股份有限公司 Multicarrier peak inhibitor
CN1972263A (en) * 2005-11-23 2007-05-30 中兴通讯股份有限公司 A multi-carrier communication system
CN202454261U (en) * 2012-02-27 2012-09-26 株洲华通科技有限责任公司 Voice frequency mixing device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110970008A (en) * 2018-09-28 2020-04-07 广州灵派科技有限公司 Embedded sound mixing method and device, embedded equipment and storage medium

Also Published As

Publication number Publication date
CN103247292B (en) 2015-11-18

Similar Documents

Publication Publication Date Title
CN203289452U (en) Wireless audio system based on acoustic wave communication pairing
CN203415228U (en) Audio decoder using program information element data
CN103200263B (en) Intelligent terminal and Bluetooth audio frequency playback equipment and exchange method, system
CN102968995A (en) Sound mixing method and device of audio signal
CN104104762A (en) Efficient audio test method of communication terminal
CN103873973A (en) Method of realizing shield function and earphone function and Bluetooth shield
CN103247292B (en) audio communication method and device
CN102739587A (en) Audio data transmission method
CN203482192U (en) Wireless communication apparatus
CN109697987A (en) A kind of the far field voice interaction device and implementation method of circumscribed
CN105578272A (en) Audio gain automatic adjustment method and apparatus
CN102739323A (en) Audio data transmission method
CN101299223B (en) Emulation method and device of high speed serial duct receiver balance
CN102970637B (en) The interactive system of a kind of electro-acoustic product and audio-video playback equipment
CN101505165B (en) Audio encoding and decoding module for mobile terminal
CN102904718A (en) Audio communication based information security equipment and communication method thereof
CN102594989A (en) Data communication method, system and terminal
CN104113820A (en) Method for data communication between IOS and Bluetooth module
CN105657592B (en) A kind of audio communication method and device
CN204518066U (en) A kind of speaker unit and a kind of electronic equipment
CN105261090A (en) Making method of electron key of intelligent lock
CN208739395U (en) Audio board and digital sound console
CN104506247A (en) Instruction transmission method, voice equipment, voice auxiliary device and instruction transmission system
CN204258735U (en) 16 passage programmable digital processing power amplifiers
CN102831040B (en) The method of testing of audio frequency KEY and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20170329

Address after: 100000 room 703-710, room B3, Huayuan Road, Haidian District, Beijing, 7

Patentee after: Beijing Minghua Alliance Technology Co., Ltd.

Address before: 518057 Guangdong city of Shenzhen province Nanshan District Ke Feng Lu No. 2 idiopathic information building A building unit seven floor South 701-709

Patentee before: Shenzhen Wendingchuang Data Technology Co., Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20151118

Termination date: 20190327