CN103247292B - audio communication method and device - Google Patents

audio communication method and device Download PDF

Info

Publication number
CN103247292B
CN103247292B CN201310102402.8A CN201310102402A CN103247292B CN 103247292 B CN103247292 B CN 103247292B CN 201310102402 A CN201310102402 A CN 201310102402A CN 103247292 B CN103247292 B CN 103247292B
Authority
CN
China
Prior art keywords
numerical value
mixer
value
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.)
Expired - Fee Related
Application number
CN201310102402.8A
Other languages
Chinese (zh)
Other versions
CN103247292A (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

Abstract

The present invention discloses a kind of audio communication method and device, sets up chained list corresponding to mixer by main process equipment, and the Data Modulation audio carrier signal that need be exported by audio interface generates modulated acoustic tone signal; Export as the input source of mixer the sound signal comprising described modulated acoustic tone signal to mixer, on audio mixing Qian Jiangge road, input source is converted to unified audio sampling frequency; For the two kind different accumulation algorithm of mixer when audio mixing, input source adopts different audio signal output modes respectively, the signal of each input source exports as audio mixing result by mixer after cumulative audio mixing, have under the audio setting not revising main process equipment and the condition not affecting the operation of other programs of main process equipment, the beneficial effect that background sound when carrying out data communication to adopting audio interface is suppressed, because above-mentioned solution is by software simulating, therefore there is better compatible and versatility.<!--1-->

Description

Audio communication method and device
Technical field
The present invention relates to audio signal processing technique field, particularly relate to a kind of audio communication method and device.
Background technology
The main process equipment such as smart mobile phone and panel computer by audio interface and some external audio communication facilities as USBKey carry out data communication time, realize data communication function by carrying out modulation to voice data; But usually can there is following problem in actual applications; to be carried out the interference that can be subject to the sound that other application program is play on main frame in the process communicated at above-mentioned main process equipment and external audio communication facilities by audio interface, thus cause garble or communication failure.For above-mentioned situation, solution conventional is at present: when above-mentioned main process equipment communicates with some external audio communication facilities, and the sound revising other program on main frame and main frame arranges, closes the operation etc. of other program; But this solution still can not stop the interference that main frame produces because there is other sound completely, the problem that the sound interference play because of other application programs causes garble or communication failure can not be solved completely.
Summary of the invention
Fundamental purpose of the present invention is to provide a kind of audio communication method and device, when being intended to not revise Operation 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 on main process equipment, other application programs are play produces.
The embodiment of the invention discloses a kind of audio communication method, comprise the following steps:
Set up mixer input source and safeguard chained list, each input source is inserted described chained list successively from linked list head;
The Data Modulation audio carrier signal that need be exported by audio interface generates modulated acoustic tone signal, exports the sound signal comprising described modulated acoustic tone signal to mixer 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;
Add up by road each input source of described mixer from the gauge outfit of described chained list, exported by last accumulation result, receive for external audio communication facilities as audio mixing result from described audio interface.
Preferably, describedly to comprise by add up each input source of described mixer of road from the gauge outfit of described chained list:
Time cumulative, all amplitude limiting processing is carried out to each accumulation result, when the amplitude of this accumulation result exceedes the positive maximal value of described mixer preset PCM numerical value, then the amplitude of this accumulation result is restricted to the positive maximal value of described preset PCM numerical value; The amplitude of this accumulation result exceed the preset PCM numerical value of described mixer bear maximal value time, then the amplitude of this accumulation result is restricted to described preset PCM numerical value and bears maximal value.
Preferably, describedly export as the input source of mixer the sound signal comprising described modulated acoustic tone signal to mixer and comprise:
First export the sound signal that two-way or multichannel numerical value are the positive maximal value of PCM numerical value, then to export a way value be the sound signal that PCM numerical value bears maximal value; Or first output two-way or multichannel numerical value are the sound signal that PCM numerical value bears maximal value, then export the sound signal that a way value is the positive maximal value of PCM numerical value;
Finally, the described modulated acoustic tone signal extremely described mixer for carrying out data communication is exported.
Preferably, describedly to comprise by add up each input source of described mixer of road from the gauge outfit of described chained list:
Amplitude limiting processing is carried out to the last accumulation result of described each input source, when the amplitude of described last accumulation result exceedes the positive maximal value of described mixer preset PCM numerical value, then the amplitude of described last accumulation result is restricted to the positive maximal value of described preset PCM numerical value; The amplitude of described last accumulation result exceed the preset PCM numerical value of described mixer bear maximal value time, then the amplitude of described last accumulation result is restricted to described preset PCM numerical value and bears maximal value.
Preferably, describedly export as the input source of mixer the sound signal comprising described modulated acoustic tone signal to mixer and comprise:
Described modulated acoustic tone signal be on the occasion of time, the amplitude of described modulated acoustic tone signal is converted to the positive maximal value of described preset PCM numerical value; When described modulated acoustic tone signal is negative value, the amplitude of described modulated acoustic tone signal is converted to described preset PCM numerical value and bears maximal value;
Export two-way simultaneously or multichannel PCM numerical value is identical and the described modulated acoustic tone signal that the amplitude that phase place is identical is the positive maximal value of PCM numerical value or PCM numerical value bears maximal value to described mixer.
Preferably, describedly export as the input source of mixer the sound signal comprising described modulated acoustic tone signal to mixer and comprise:
Described modulated acoustic tone signal be on the occasion of time, the amplitude of described modulated acoustic tone signal is converted to described preset PCM numerical value and bears maximal 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 described preset PCM numerical value;
Export two-way simultaneously or multichannel PCM numerical value is identical and the described modulated acoustic tone signal that the amplitude that phase place is identical is the positive maximal value of described preset PCM numerical value or described preset PCM numerical value bears maximal value to described mixer.
Preferably, the described Data Modulation audio carrier signal generation modulated acoustic tone signal that need be exported by audio interface is comprised:
The described data that need be exported by audio interface on the occasion of time, the corresponding modulated acoustic tone signal generating the positive maximal value of PCM numerical value; When the described data that need be exported by audio interface are negative value, corresponding generation PCM numerical value bears the modulated acoustic tone signal of maximal value;
Or:
The described data that need be exported by audio interface on the occasion of time, corresponding generate the modulated acoustic tone signal that PCM numerical value bears maximal value; When the described data that need be exported by audio interface are negative value, the corresponding modulated acoustic tone signal generating the positive maximal value of PCM numerical value;
Describedly export as the input source of mixer the sound signal comprising described modulated acoustic tone signal to mixer and comprise: export two-way or multichannel PCM numerical value is identical and the amplitude that phase place is identical is the positive maximal value of described preset PCM numerical value or described preset PCM numerical value bears the described modulated acoustic tone signal of maximal value to described mixer simultaneously.
The embodiment of the present invention also discloses a kind of VOCA voice communications assembly, comprising:
Chained list sets up module, safeguards chained list, each input source is inserted described chained list successively from linked list head for setting up mixer input source;
Data modulation module, generates modulated acoustic tone signal for the Data Modulation audio carrier signal that need be exported by audio interface, exports the sound signal comprising described modulated acoustic tone signal to mixer as the input source of mixer;
Frequency setting module, for arranging audio sampling frequency, is converted to unified described audio sampling frequency by each input source of described mixer;
Signal output module, for each input source of the described mixer that adds up by road the gauge outfit from described chained list, exports last accumulation result from described audio interface as audio mixing result, receives for external audio communication facilities.
Preferably, described signal output module also for:
Time cumulative, all amplitude limiting processing is carried out to each accumulation result, when the amplitude of this accumulation result exceedes the positive maximal value of described mixer preset PCM numerical value, then the amplitude of this accumulation result is restricted to the positive maximal value of PCM numerical value; The amplitude of this accumulation result exceed the preset PCM numerical value of described mixer bear maximal value time, then the amplitude of this accumulation result is restricted to PCM numerical value and bears maximal value.
Preferably, described data modulation module also for:
First export the sound signal that two-way or multichannel numerical value are the positive maximal value of PCM numerical value, then to export a way value be the sound signal that PCM numerical value bears maximal value; Or first output two-way or multichannel numerical value are the sound signal that PCM numerical value bears maximal value, then export the sound signal that a way value is the positive maximal value of PCM numerical value;
Finally, the described modulated acoustic tone signal extremely described mixer for carrying out data communication is exported.
Preferably, described signal output module also for:
Amplitude limiting processing is carried out to the last accumulation result of described each input source, when the amplitude of described last accumulation result exceedes the positive maximal value of described mixer preset PCM numerical value, then the amplitude of described last accumulation result is restricted to the positive maximal value of described preset PCM numerical value; The amplitude of described last accumulation result exceed the preset PCM numerical value of described mixer bear maximal value time, then the amplitude of described last accumulation result is restricted to described preset PCM numerical value and bears maximal value.
Preferably, described data modulation module also for:
Described modulated acoustic tone signal be on the occasion of time, the amplitude of described modulated acoustic tone signal is converted to the positive maximal value of described preset PCM numerical value; When described modulated acoustic tone signal is negative value, the amplitude of described modulated acoustic tone signal is converted to described preset PCM numerical value and bears maximal value;
Export two-way simultaneously or multichannel PCM numerical value is identical and the described modulated acoustic tone signal that the amplitude that phase place is identical is the positive maximal value of described preset PCM numerical value or described preset PCM numerical value bears maximal value to described mixer.
Preferably, described data modulation module also for:
Described modulated acoustic tone signal be on the occasion of time, the amplitude of described modulated acoustic tone signal is converted to described preset PCM numerical value and bears maximal 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 described preset PCM numerical value;
Export two-way simultaneously or multichannel PCM numerical value is identical and the described modulated acoustic tone signal that the amplitude that phase place is identical is the positive maximal value of described preset PCM numerical value or described preset PCM numerical value bears maximal value to described mixer.
Preferably, described data modulation module also for:
The described data that need be exported by audio interface on the occasion of time, the corresponding modulated acoustic tone signal generating the positive maximal value of described preset PCM numerical value; When the described data that need be exported by audio interface are negative value, the described preset PCM numerical value of corresponding generation bears the modulated acoustic tone signal of maximal value;
Or:
The described data that need be exported by audio interface on the occasion of time, corresponding generate the modulated acoustic tone signal that described preset PCM numerical value bears maximal value; When the described data that need be exported by audio interface are negative value, the corresponding modulated acoustic tone signal generating the positive maximal value of described preset PCM numerical value;
Export two-way simultaneously or multichannel PCM numerical value is identical and the described modulated acoustic tone signal that the amplitude that phase place is identical is the positive maximal value of described preset PCM numerical value or described preset PCM numerical value bears maximal value to described mixer.
The present invention sets up chained list corresponding to mixer by main process equipment, and the Data Modulation audio carrier signal that need be exported by audio interface generates modulated acoustic tone signal, export as the input source of mixer the sound signal comprising described modulated acoustic tone signal to mixer, on audio mixing Qian Jiangge road, input source is converted to unified audio sampling frequency, and for the two kind different accumulation algorithm of mixer when audio mixing, input source adopts different audio signal output modes respectively, each input source signal exports as audio mixing result by mixer after cumulative audio mixing, for the method that external audio communication facilities receives, have under the audio setting not revising main process equipment and the condition not affecting the operation of other programs of main process equipment, to the beneficial effect that the background audio adopting audio interface to carry out data communication is suppressed, thoroughly solve when carrying out data communication by audio interface, because other application programs play sound produced interference problem, because above-mentioned solution is by software simulating, therefore there is better compatible and versatility.
Accompanying drawing explanation
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 in conjunction with the embodiments, are described further with reference to accompanying drawing.
Embodiment
Technical scheme of the present invention is further illustrated below in conjunction with Figure of description and specific embodiment.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
In the specific embodiment of audio communication method of the present invention and device, described main process equipment refers to the main process equipment such as mobile terminal, panel computer, the described external unit communicated with refers to the external audio communication facilities being carried out data communication with described main process equipment by audio interface, as USBKey etc.; Main process equipment cooperatively interacts with the external audio communication facilities being undertaken communicating by audio interface and main process equipment, realizes the compacting to background audio, and when ensureing to communicate therebetween, communication data is correct.
Reference Fig. 1, Fig. 1 are audio communication method one embodiment schematic flow sheets of the present invention; As shown in Figure 1, audio communication method of the present invention comprises the following steps:
Step S01, set up mixer input source and safeguard chained list, each input source is inserted described chained list successively from linked list head;
The input source that main process equipment sets up mixer corresponding safeguards chained list, and each input source is inserted described chained list successively successively from described linked list head.
In a preferred embodiment, mixer safeguards each road input source by the chained list of above-mentioned foundation, to have new input source to add fashionable, the input source newly increased is inserted into the end of this chained list; When there being input source to close, the described input source of closing is removed from described chained list.
Step S02, the Data Modulation audio carrier signal that need be exported by audio interface generate modulated acoustic tone signal, export the sound signal comprising described modulated acoustic tone signal to mixer as the input source of mixer;
Main process equipment will need the data being used for carrying out with external audio communication facilities communicating exported by audio interface, be modulated on audio carrier signal and generate modulated acoustic tone signal.
In a preferred embodiment, main process equipment adopt PCM(Pulse-CodeModulation, pulse code modulation (PCM)) mode to export data modulate.
Main process equipment exports as the input source of mixer the sound signal comprising described modulation sound to mixer.When main process equipment is communicated with external audio communication facilities by audio interface, the sound signal comprising described modulated acoustic tone signal is exported to the mixer of this main process equipment by main process equipment by two-way or multichannel input source, by mixer, audio mixing is carried out to two or more sound signal, synthesize an independent mixed audio signal and export.
Step S03, audio sampling frequency is set, each input source of described mixer is converted to unified described audio sampling frequency;
Before the sound signal inputted input source at the mixer of main process equipment carries out audio mixing, each road input source that this mixer is safeguarded by main process equipment is converted to unified audio sampling frequency, when making each input source gather sound signal, sample according to same sample frequency.
Each input source of step S04, the described mixer that adds up by road from the gauge outfit of described chained list, exports last accumulation result from described audio interface as audio mixing result, receives for external audio communication facilities.
For the different modes that mixer in main process equipment adds up to the sound signal that each road input source inputs, 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, to add up each road input source by road from the linked list head of the chained list mated with this mixer, wherein a kind of accumulate mode is: time cumulative, all amplitude limiting processing is carried out to each cumulative result, exceed the positive maximal value of described mixer preset PCM numerical value at this accumulation result, then the amplitude of this accumulation result is restricted to the positive maximal value of described preset PCM numerical value; This accumulation result exceed described preset PCM numerical value bear maximal value time, then the amplitude of this accumulation result is restricted to described preset PCM numerical value and bears maximal value.
The accumulate mode of amplitude limiting processing is all carried out for each accumulation result, when main process equipment exports as input source the sound signal comprising described modulated acoustic tone signal to mixer, first export the sound signal that two-way or multichannel numerical value are the positive maximal value of described preset PCM numerical value, then to export a way value be the sound signal that described preset PCM numerical value bears maximal value; Or first output two-way or multichannel numerical value are the sound signal that described preset PCM numerical value bears maximal value, then export the sound signal that a way value is the positive maximal value of described preset PCM numerical value; Finally export for modulated acoustic tone signal when carrying out data communication to mixer.Like this, export after mixer audio mixing only carry out data communication time modulated acoustic tone signal.The mixer of main process equipment is according to the unified audio sample frequency arranged, to add up each input source by road from the linked list head that this mixer is corresponding, i.e. cumulative each modulated acoustic tone signal, and the accumulation result after described modulated acoustic tone signal adds up is exported as audio mixing result from described audio interface, for receiving with the external audio communication facilities that main process equipment carries out communicating.
When the mixer of main process equipment carries out audio mixing, from the linked list head of the chained list mated with this mixer by the add up another kind of accumulate mode of each road input source of road be: time cumulative, only in the end cumulative result is carried out amplitude limiting processing and is namely only carried out amplitude limiting processing to the last accumulation result of each input source, when in the end accumulation result exceedes the preset PCM numerical value of described mixer positive maximal value, then the amplitude of described last accumulation result is restricted to the positive maximal value of described preset PCM numerical value; When in the end accumulation result exceedes the negative maximal value of preset PCM numerical value of described mixer, then the amplitude of described last accumulation result is restricted to described preset PCM numerical value and bears maximal value.
For only in the end accumulation result carry out the accumulate mode of amplitude limiting processing, when main process equipment exports as the input source of mixer the sound signal comprising described modulated acoustic tone signal to mixer, export two-way or multichannel PCM numerical value is identical and the amplitude that phase place is identical is the positive maximal value of described preset PCM numerical value or described preset PCM numerical value bears the described modulated acoustic tone signal of maximal value to described mixer simultaneously.Like this, export after mixer audio mixing only carry out data communication time modulated acoustic tone signal.The mixer of main process equipment is according to the unified audio sample frequency arranged, to add up each input source by road from the linked list head that this mixer is corresponding, i.e. cumulative each modulated acoustic tone signal, and the accumulation result after described modulated acoustic tone signal adds up is exported as audio mixing result from described audio interface, for receiving with the external audio communication facilities that main process equipment carries out communicating.
In a preferred embodiment, describedly export as the input source of mixer the sound signal comprising described modulated acoustic tone signal to mixer and comprise:
Described modulated acoustic tone signal be on the occasion of time, the amplitude of described modulated acoustic tone signal is converted to described preset PCM numerical value and bears maximal 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 described preset PCM numerical value; Export two-way simultaneously or multichannel PCM numerical value is identical and the described modulated acoustic tone signal that the amplitude that phase place is identical is the positive maximal value of described preset PCM numerical value or described preset PCM numerical value bears maximal value to described mixer.
In a preferred embodiment, the described Data Modulation audio carrier signal generation modulated acoustic tone signal that need be exported by audio interface is comprised:
The described data that need be exported by audio interface on the occasion of time, the corresponding modulated acoustic tone signal generating the positive maximal value of described preset PCM numerical value; When the described data that need be exported by audio interface are negative value, the described preset PCM numerical value of corresponding generation bears the modulated acoustic tone signal of maximal value; Or: the described data that need be exported by audio interface on the occasion of time, corresponding generate the modulated acoustic tone signal that described preset PCM numerical value bears maximal value; When the described data that need be exported by audio interface are negative value, the corresponding modulated acoustic tone signal generating the positive maximal value of described preset PCM numerical value.In the present embodiment, when the described data that need be exported by audio interface are high level, define these data on the occasion of; When the described data that need be exported by audio interface are low level, defining these data is negative value.
The Data Modulation audio carrier signal that the present embodiment need be exported by audio interface by main process equipment generates modulated acoustic tone signal; Set up the chained list that mixer is corresponding, export as the input source of mixer the sound signal comprising described modulated acoustic tone signal to mixer, on audio mixing Qian Jiangge road, input source is converted to unified audio sampling frequency; For the two kind different accumulation algorithm of mixer when audio mixing, input source adopts different audio signal output modes respectively, the audio mixing result that the modulated acoustic tone signal that each input source exports by mixer obtains after cumulative audio mixing exports from described audio interface, for the method that external audio communication facilities receives, have under the audio setting not revising main process equipment and the condition not affecting the operation of other programs of main process equipment, to the beneficial effect that the background audio adopting audio interface to carry out data communication is suppressed; Because above-mentioned solution is by software simulating, therefore there is better compatible and versatility.
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 sets up module 01, data modulation module 02, frequency setting module 03 and signal output module 04.
Chained list sets up module 01, safeguards chained list, each input source is inserted described chained list successively from linked list head for setting up mixer input source;
Chained list is set up the input source that module 01 sets up mixer corresponding and is safeguarded chained list, and each input source is inserted described chained list successively successively from described linked list head.
In a preferred embodiment, mixer is set up by above-mentioned chained list the chained list that module 01 sets up and is safeguarded each road input source, and to have new input source to add fashionable, chained list sets up the end that the input source newly increased is inserted into this chained list by module 01; When there being input source to close, chained list is set up module 01 and is removed from described chained list by the described input source of closing.
Data modulation module 02 for, the Data Modulation audio carrier signal that need be exported by audio interface generates modulated acoustic tone signal, exports the sound signal comprising described modulated acoustic tone signal to mixer as the input source of mixer;
Data modulation module 02 will need the Data Modulation being used for carrying out communicating with external audio communication facilities exported by audio interface to be audio carrier signal, and generates modulated acoustic tone signal.
In a preferred embodiment, data modulation module 02 adopts the mode of PCM to modulate the data exported.
When main process equipment is communicated with external audio communication facilities by audio interface, data modulation module 02 exports by two-way or multichannel input source the sound signal comprising described modulated acoustic tone signal to mixer, by mixer, audio mixing is carried out to two or more sound signal, synthesize an independent mixed audio signal and export.
Frequency setting module 03 for, audio sampling frequency is set, each input source of described mixer is converted to unified described audio sampling frequency;
Before the sound signal exported input source at the mixer of main process equipment carries out audio mixing, each road input source that this mixer is safeguarded by frequency setting module 03 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 for, each input source of the described mixer that adds up by road from the gauge outfit of described chained list, exports last accumulation result from described audio interface as audio mixing result, receives for external audio communication facilities.
For the different modes that mixer in main process equipment adds up to the sound signal that each road input source inputs, data modulation module 02 adopts different audio signal output modes to export as input source the sound signal comprising described modulated acoustic tone signal to mixer respectively.
Signal output module 04 to add up each road input source by road from the linked list head of the chained list mated with mixer, wherein a kind of accumulate mode is: time cumulative, all amplitude limiting processing is carried out to each cumulative result, when this accumulation result exceedes the positive maximal value of the preset PCM numerical value of described mixer, then the amplitude of this accumulation result is restricted to the positive maximal value of described preset PCM numerical value; When the preset PCM numerical value that this accumulation result exceedes described mixer bears maximal value, then the amplitude of this accumulation result is restricted to described preset PCM numerical value and bears maximal value.
For signal output module 04, each accumulation result is all carried out to the accumulate mode of amplitude limiting processing, when data modulation module 02 exports as input source the sound signal comprising described modulated acoustic tone signal to mixer, first export the sound signal that two-way or multichannel numerical value are the positive maximal value of described preset PCM numerical value, then to export a way value be the sound signal that described preset PCM numerical value bears maximal value; Or first output two-way or multichannel numerical value are the sound signal that described preset PCM numerical value bears maximal value, then export the sound signal that a way value is the positive maximal value of described preset PCM numerical value; Finally export for modulated acoustic tone signal when carrying out data communication to mixer.Like this, export after signal output module 04 audio mixing only carry out data communication time modulated acoustic tone signal.The signal output module 04 of main process equipment is according to the unified audio sample frequency arranged, to add up each input source by road from the linked list head that mixer is corresponding, i.e. cumulative each modulated acoustic tone signal, and the accumulation result after described modulated acoustic tone signal adds up is exported as audio mixing result from described audio interface, for receiving with the external audio communication facilities that main process equipment carries out communicating.
Signal output module 04 by the add up another kind of accumulate mode of each road input source of road is from the gauge outfit of the chained list mated with mixer: time cumulative, only in the end cumulative result is carried out amplitude limiting processing and is namely only carried out amplitude limiting processing to the last accumulation result of each input source, when in the end accumulation result exceedes the preset PCM numerical value of described mixer positive maximal value, then the amplitude of described last accumulation result is restricted to the positive maximal value of described preset PCM numerical value; When in the end accumulation result exceedes the negative maximal value of preset PCM numerical value of described mixer, then the amplitude of described last accumulation result is restricted to described preset PCM numerical value and bears maximal value.
For signal output module 04 only in the end accumulation result carry out the accumulate mode of amplitude limiting processing, when data modulation module 02 exports as the input source of mixer the sound signal comprising described modulated acoustic tone signal to mixer, export two-way or multichannel PCM numerical value is identical and the amplitude that phase place is identical is the positive maximal value of described preset PCM numerical value or described preset PCM numerical value bears the described modulated acoustic tone signal of maximal value to described mixer simultaneously.Like this, export after mixer audio mixing only carry out data communication time modulated acoustic tone signal.Signal output module 04 is according to the unified audio sample frequency arranged, to add up each input source by road from the linked list head that this mixer is corresponding, i.e. cumulative each modulated acoustic tone signal, and the accumulation result after described modulated acoustic tone signal adds up is exported as audio mixing result from described audio interface, for receiving with the external audio communication facilities that main process equipment carries out communicating.
In a preferred embodiment, described data modulation module 02 exports as the input source of mixer the sound signal comprising described modulated acoustic tone signal to mixer and comprises:
Described modulated acoustic tone signal be on the occasion of time, the amplitude of described modulated acoustic tone signal is converted to described preset PCM numerical value and bears maximal value by data modulation module 02; 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 described preset PCM numerical value by data modulation module 02; Simultaneously data modulation module 02 exports two-way or multichannel PCM numerical value is identical and the amplitude that phase place is identical is the positive maximal value of described preset PCM numerical value or described preset PCM numerical value bears the described modulated acoustic tone signal of maximal value to described mixer.
In a preferred embodiment, the Data Modulation audio carrier signal that described data modulation module 02 need be exported by audio interface generates modulated acoustic tone signal and comprises:
The described data that need be exported by audio interface on the occasion of time, data modulation module 02 correspondence generates the modulated acoustic tone signal of described preset PCM numerical value positive maximal value; When the described data that need be exported by audio interface are negative value, data modulation module 02 correspondence generates the modulated acoustic tone signal that described preset PCM numerical value bears maximal value; Or: the described data that need be exported by audio interface on the occasion of time, data modulation module 02 correspondence generates described preset PCM numerical value and bears the modulated acoustic tone signal of maximal value; When the described data that need be exported by audio interface are negative value, data modulation module 02 correspondence generates the modulated acoustic tone signal of the positive maximal value of described preset PCM numerical value.In the present embodiment, when the described data that need be exported by audio interface are high level, define these data on the occasion of; When the described data that need be exported by audio interface are low level, defining these data is negative value.
The present embodiment sets up chained list corresponding to mixer by main process equipment, and the Data Modulation audio carrier signal that need be exported by audio interface generates modulated acoustic tone signal; Export as input source the sound signal comprising described modulated acoustic tone signal to mixer, on audio mixing Qian Jiangge road, input source is converted to unified audio sampling frequency; For the two kind different accumulation algorithm of mixer when audio mixing, input source adopts different audio signal output modes respectively, the audio mixing result that the modulated acoustic tone signal that each input source exports by mixer obtains after cumulative audio mixing exports from described audio interface, receives for external audio communication facilities; Have under the audio setting not revising main process equipment and the condition not affecting the operation of other programs of main process equipment, to the beneficial effect that the background audio adopting audio interface to carry out data communication is suppressed; The above-mentioned solution adopted due to the present embodiment VOCA voice communications assembly, by software simulating, therefore has better compatible and versatility.
The foregoing is only the preferred embodiments of the present invention; not thereby its scope of the claims is limited; every utilize instructions of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; directly or indirectly be used in the technical field that other are relevant, be all in like manner included in scope of patent protection of the present invention.

Claims (12)

1. an audio communication method, is characterized in that, comprises the following steps:
Set up mixer input source and safeguard chained list, each input source is inserted described chained list successively from linked list head;
The Data Modulation audio carrier signal that need be exported by audio interface generates modulated acoustic tone signal, exports the sound signal comprising described modulated acoustic tone signal to mixer 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;
Add up by road each input source of described mixer from the gauge outfit of described chained list, exported by last accumulation result, receive for external audio communication facilities as audio mixing result from described audio interface;
Describedly export as the input source of mixer the sound signal comprising described modulated acoustic tone signal to mixer and comprise:
First export the sound signal that two-way or multichannel numerical value are the positive maximal value of PCM numerical value, then to export a way value be the sound signal that PCM numerical value bears maximal value; Or first output two-way or multichannel numerical value are the sound signal that PCM numerical value bears maximal value, then export the sound signal that a way value is the positive maximal value of PCM numerical value;
Finally, the described modulated acoustic tone signal extremely described mixer for carrying out data communication is exported.
2. the method for claim 1, is characterized in that, describedly comprises by add up each input source of described mixer of road from the gauge outfit of described chained list:
Time cumulative, all amplitude limiting processing is carried out to each accumulation result, when the amplitude of this accumulation result exceedes the positive maximal value of described mixer preset PCM numerical value, then the amplitude of this accumulation result is restricted to the positive maximal value of described preset PCM numerical value; The amplitude of this accumulation result exceed the preset PCM numerical value of described mixer bear maximal value time, then the amplitude of this accumulation result is restricted to described preset PCM numerical value and bears maximal value.
3. the method for claim 1, is characterized in that, describedly comprises by add up each input source of described mixer of road from the gauge outfit of described chained list:
Amplitude limiting processing is carried out to the last accumulation result of described each input source, when the amplitude of described last accumulation result exceedes the positive maximal value of described mixer preset PCM numerical value, then the amplitude of described last accumulation result is restricted to the positive maximal value of described preset PCM numerical value; The amplitude of described last accumulation result exceed the preset PCM numerical value of described mixer bear maximal value time, then the amplitude of described last accumulation result is restricted to described preset PCM numerical value and bears maximal value.
4. as claimed in claim 2 or claim 3 method, is characterized in that, describedly exports as the input source of mixer the sound signal comprising described modulated acoustic tone signal to mixer and comprises:
Described modulated acoustic tone signal be on the occasion of time, the amplitude of described modulated acoustic tone signal is converted to the positive maximal value of described preset PCM numerical value; When described modulated acoustic tone signal is negative value, the amplitude of described modulated acoustic tone signal is converted to described preset PCM numerical value and bears maximal value;
Export two-way simultaneously or multichannel PCM numerical value is identical and the described modulated acoustic tone signal that the amplitude that phase place is identical is the positive maximal value of PCM numerical value or PCM numerical value bears maximal value to described mixer.
5. the method as described in claim 2 or 4, is characterized in that, describedly exports as the input source of mixer the sound signal comprising described modulated acoustic tone signal to mixer and comprises:
Described modulated acoustic tone signal be on the occasion of time, the amplitude of described modulated acoustic tone signal is converted to described preset PCM numerical value and bears maximal 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 described preset PCM numerical value;
Export two-way simultaneously or multichannel PCM numerical value is identical and the described modulated acoustic tone signal that the amplitude that phase place is identical is the positive maximal value of described preset PCM numerical value or described preset PCM numerical value bears maximal value to described mixer.
6. the method as described in claim 2 or 4, is characterized in that, the described Data Modulation audio carrier signal that need be exported by audio interface is generated modulated acoustic tone signal and comprises:
The described data that need be exported by audio interface on the occasion of time, the corresponding modulated acoustic tone signal generating the positive maximal value of PCM numerical value; When the described data that need be exported by audio interface are negative value, corresponding generation PCM numerical value bears the modulated acoustic tone signal of maximal value;
Or:
The described data that need be exported by audio interface on the occasion of time, corresponding generate the modulated acoustic tone signal that PCM numerical value bears maximal value; When the described data that need be exported by audio interface are negative value, the corresponding modulated acoustic tone signal generating the positive maximal value of PCM numerical value;
Describedly export as the input source of mixer the sound signal comprising described modulated acoustic tone signal to mixer and comprise: export two-way or multichannel PCM numerical value is identical and the amplitude that phase place is identical is the positive maximal value of described preset PCM numerical value or described preset PCM numerical value bears the described modulated acoustic tone signal of maximal value to described mixer simultaneously.
7. a VOCA voice communications assembly, is characterized in that, comprising:
Chained list sets up module, safeguards chained list, each input source is inserted described chained list successively from linked list head for setting up mixer input source;
Data modulation module, generates modulated acoustic tone signal for the Data Modulation audio carrier signal that need be exported by audio interface, exports the sound signal comprising described modulated acoustic tone signal to mixer as the input source of mixer;
Frequency setting module, for arranging audio sampling frequency, is converted to unified described audio sampling frequency by each input source of described mixer;
Signal output module, for each input source of the described mixer that adds up by road the gauge outfit from described chained list, exports last accumulation result from described audio interface as audio mixing result, receives for external audio communication facilities;
Described data modulation module also for:
First export the sound signal that two-way or multichannel numerical value are the positive maximal value of PCM numerical value, then to export a way value be the sound signal that PCM numerical value bears maximal value; Or first output two-way or multichannel numerical value are the sound signal that PCM numerical value bears maximal value, then export the sound signal that a way value is the positive maximal value of PCM numerical value;
Finally, the described modulated acoustic tone signal extremely described mixer for carrying out data communication is exported.
8. device as claimed in claim 7, is characterized in that, described signal output module also for:
Time cumulative, all amplitude limiting processing is carried out to each accumulation result, when the amplitude of this accumulation result exceedes the positive maximal value of described mixer preset PCM numerical value, then the amplitude of this accumulation result is restricted to the positive maximal value of PCM numerical value; The amplitude of this accumulation result exceed the preset PCM numerical value of described mixer bear maximal value time, then the amplitude of this accumulation result is restricted to PCM numerical value and bears maximal value.
9. device as claimed in claim 8, is characterized in that, described signal output module also for:
Amplitude limiting processing is carried out to the last accumulation result of described each input source, when the amplitude of described last accumulation result exceedes the positive maximal value of described mixer preset PCM numerical value, then the amplitude of described last accumulation result is restricted to the positive maximal value of described preset PCM numerical value; The amplitude of described last accumulation result exceed the preset PCM numerical value of described mixer bear maximal value time, then the amplitude of described last accumulation result is restricted to described preset PCM numerical value and bears maximal value.
10. as claimed in claim 8 or 9 device, is characterized in that, described data modulation module also for:
Described modulated acoustic tone signal be on the occasion of time, the amplitude of described modulated acoustic tone signal is converted to the positive maximal value of described preset PCM numerical value; When described modulated acoustic tone signal is negative value, the amplitude of described modulated acoustic tone signal is converted to described preset PCM numerical value and bears maximal value;
Export two-way simultaneously or multichannel PCM numerical value is identical and the described modulated acoustic tone signal that the amplitude that phase place is identical is the positive maximal value of described preset PCM numerical value or described preset PCM numerical value bears maximal value to described mixer.
11. devices as claimed in claim 10, is characterized in that, described data modulation module also for:
Described modulated acoustic tone signal be on the occasion of time, the amplitude of described modulated acoustic tone signal is converted to described preset PCM numerical value and bears maximal 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 described preset PCM numerical value;
Export two-way simultaneously or multichannel PCM numerical value is identical and the described modulated acoustic tone signal that the amplitude that phase place is identical is the positive maximal value of described preset PCM numerical value or described preset PCM numerical value bears maximal value to described mixer.
12. devices as claimed in claim 11, is characterized in that, described data modulation module also for:
The described data that need be exported by audio interface on the occasion of time, the corresponding modulated acoustic tone signal generating the positive maximal value of described preset PCM numerical value; When the described data that need be exported by audio interface are negative value, the described preset PCM numerical value of corresponding generation bears the modulated acoustic tone signal of maximal value;
Or:
The described data that need be exported by audio interface on the occasion of time, corresponding generate the modulated acoustic tone signal that described preset PCM numerical value bears maximal value; When the described data that need be exported by audio interface are negative value, the corresponding modulated acoustic tone signal generating the positive maximal value of described preset PCM numerical value;
Export two-way simultaneously or multichannel PCM numerical value is identical and the described modulated acoustic tone signal that the amplitude that phase place is identical is the positive maximal value of described preset PCM numerical value or described preset PCM numerical value bears maximal value 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 CN103247292A (en) 2013-08-14
CN103247292B true 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)

Families Citing this family (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 (3)

* 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
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

Family Cites Families (1)

* 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

Patent Citations (3)

* 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
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

Also Published As

Publication number Publication date
CN103247292A (en) 2013-08-14

Similar Documents

Publication Publication Date Title
CN203289452U (en) Wireless audio system based on acoustic wave communication pairing
CN106445528B (en) Method and device for rapidly configuring SETUP option of BIOS
CN110213058A (en) A kind of block chain all-in-one machine for realizing data cochain
CN202260046U (en) Audio-data interface adapter device and audio-data signal conversion system
WO2022222292A1 (en) Power amplifier adaptation method, terminal device, storage medium and computer program product
CN102968995A (en) Sound mixing method and device of audio signal
CN111144878B (en) Instruction generation method and instruction generation device
CN103247292B (en) audio communication method and device
US8667261B2 (en) Systems, methods, and apparatus for utility meter configuration
CN105425951A (en) Application interaction control method and device
CN102880497B (en) Complier and method for reusing and optimizing software management memory
CN203482192U (en) Wireless communication apparatus
CN101299223B (en) Emulation method and device of high speed serial duct receiver balance
CN102739323A (en) Audio data transmission method
CN203387524U (en) Multi-interface and multifunctional intelligent cipher key apparatus
CN102904718A (en) Audio communication based information security equipment and communication method thereof
CN105846863A (en) Bluetooth based operation method and device
CN113687814A (en) Automation realization method of model framework and interface file based on AUTOSAR (automotive open system architecture)
CN208638571U (en) Electronic equipment and its universal audio development board
CN102750183B (en) Numerical simulation open-type application program interface of electric power system
CN108415827B (en) Application automation processing method, device, client and system
CN105261090A (en) Making method of electron key of intelligent lock
CN106203191A (en) A kind of data processing method and smart card
CN207867479U (en) A kind of man-machine interactive system based on NFC
CN102868466B (en) Simulation device and method for transmitting 2fsk data through simulated global system for mobile communications (GSM) channel

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