Movatterモバイル変換


[0]ホーム

URL:


CN105374363B - Audio signal encoding method and system - Google Patents

Audio signal encoding method and system
Download PDF

Info

Publication number
CN105374363B
CN105374363BCN201410421971.3ACN201410421971ACN105374363BCN 105374363 BCN105374363 BCN 105374363BCN 201410421971 ACN201410421971 ACN 201410421971ACN 105374363 BCN105374363 BCN 105374363B
Authority
CN
China
Prior art keywords
frequency
coding
audio signal
audio
signal
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.)
Active
Application number
CN201410421971.3A
Other languages
Chinese (zh)
Other versions
CN105374363A (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.)
Guangdong Midea Group Wuhu Air Conditioning Equipment Co Ltd
Original Assignee
Guangdong Midea Group Wuhu Air Conditioning Equipment 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 Guangdong Midea Group Wuhu Air Conditioning Equipment Co LtdfiledCriticalGuangdong Midea Group Wuhu Air Conditioning Equipment Co Ltd
Priority to CN201410421971.3ApriorityCriticalpatent/CN105374363B/en
Publication of CN105374363ApublicationCriticalpatent/CN105374363A/en
Application grantedgrantedCritical
Publication of CN105374363BpublicationCriticalpatent/CN105374363B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Landscapes

Abstract

The invention discloses a kind of audio signal encoding methods, terminal obtains the mixed audio signal in current operating environment in real time, and the mixed audio signal got is parsed, it is greater than the audio signal frequency of preset threshold as effective frequency to extract in mixed audio signal intensity in each audio signal, and determine in preset coding frequency with the unmatched coding frequency of the effective frequency, using determining coding frequency as present encoding frequency, when receiving audio-frequency signal coding instruction, source data is encoded to audio signal using the present encoding frequency by the terminal.The invention also discloses a kind of audio-frequency signal coding systems.Influence present invention reduces the noise in environment to audio signal to be transmitted improves the accuracy rate of audio signal transmission.

Description

Audio signal encoding method and system
Technical field
The present invention relates to audio transmission field more particularly to audio signal encoding method and systems.
Background technique
With the development of audio communication technology, more and more terminals (such as air conditioner) are using sound come configured transmission and controlSystem instruction, other terminals are based on its sound pickup device and pick up the parameter and control instruction, and based on the parameter picked up withControl instruction is correspondingly operated, its operating parameter is such as adjusted.
But in the prior art, when source data to be passed being encoded to audio signal, often by source data to be transmittedIt is audio signal according to preset frequency coding, and based on audio playing apparatus by the audio signal transmission to target terminal, butSince the rattle devices (compressor and blower on such as air conditioner) of terminal itself can generate noise in vibration processes, simultaneouslyOther rattle devices in the terminal local environment may also generate rattle devices, generate interference to the audio signal of transmission, leadCause audio signal transmission accuracy rate lower.
Summary of the invention
It is a primary object of the present invention to solve the lower technical problem of audio signal transmission accuracy rate.
To achieve the above object, a kind of audio signal encoding method provided by the invention, the audio signal encoding methodThe following steps are included:
Terminal obtains the mixed audio signal in current operating environment in real time, and carries out to the mixed audio signal gotParsing, with the frequency and intensity of each audio signal in the determination mixed audio signal;
The terminal extracts intensity in each audio signal and is greater than the audio signal frequency of preset threshold as effective frequency;
The terminal determines with the unmatched coding frequency of the effective frequency in preset coding frequency, will be determiningFrequency is encoded as present encoding frequency;
When receiving audio-frequency signal coding instruction, source data is encoded to by the terminal using the present encoding frequencyAudio signal.
Preferably, the terminal is determined with the unmatched coding frequency of effective frequency in preset coding frequency, will be trueFixed coding frequency includes: as the step of present encoding frequency
The terminal is based on each effective frequency and preset float value generates the corresponding effective frequency of each effective frequencyRate section;
Preset coding frequency is compared the terminal with each effective frequency section, described has with determining with eachImitate the unmatched coding frequency of frequency separation;
The terminal is using determining coding frequency as present encoding frequency.
Preferably, the terminal is extracted intensity in each audio signal and is used as greater than the audio signal frequency of preset threshold and hasImitate frequency further include:
When preset coding frequency is matched with the effective frequency, the terminal exports prompt information.
Preferably, the terminal determine in preset coding frequency with the unmatched coding frequency of the effective frequency,Include: using determining coding frequency as the step of present encoding frequency
The terminal determine in preset coding frequency with the unmatched coding frequency of the effective frequency;
When having multiple with the unmatched coding frequency of the effective frequency, the terminal determines multiple coding frequenciesPriority;
The terminal is using the coding frequency of highest priority as present encoding frequency.
Preferably, the terminal determine in preset coding frequency with the unmatched coding frequency of the effective frequency,Include: using determining coding frequency as the step of present encoding frequency
The terminal according to preset priority by each preset coding frequency successively with each effective frequency intoRow compares;
When having coding frequency and each effective frequency to mismatch, the terminal is using the coding frequency as currentEncode frequency.
Preferably, when receiving audio-frequency signal coding instruction, the terminal uses the present encoding frequency by source numberBefore the step of being encoded to audio signal, the audio signal encoding method further include:
The terminal obtains the intensity of the mixed audio signal received, and increases the intensity of mixed audio signal defaultValue;
The terminal updates current audio signals encoding strength using the intensity for the mixed audio signal for increasing preset value.
Preferably, described when receiving audio-frequency signal coding instruction, the terminal will using the present encoding frequencySource data is encoded to the step of audio signal and includes:
When receiving audio-frequency signal coding instruction, the terminal is believed using the present encoding frequency and present videoSource data is encoded to audio signal by number encoding strength.
In addition, to achieve the above object, the present invention also proposes a kind of audio signal encoding method, the audio-frequency signal codingMethod includes:
When detecting audio-frequency signal coding instruction, terminal obtains source data to be encoded;
The terminal extracts intensity in each audio signal and is greater than the audio signal frequency of preset threshold as effective frequency;
The terminal determines with the unmatched coding frequency of the effective frequency in preset coding frequency, will be determiningFrequency is encoded as present encoding frequency;
The source data is encoded to audio signal using the present encoding frequency by the terminal.
In addition, to achieve the above object, the present invention also proposes a kind of audio-frequency signal coding system, the audio-frequency signal codingSystem includes:
Audio signal sample module, for obtaining the mixed audio signal in current operating environment;
Parsing module, for being parsed to the mixed audio signal got, in the determination mixed audio signalThe frequency and intensity of each audio signal;
Extraction module is greater than the audio signal frequency of preset threshold as effective for extracting intensity in each audio signalFrequency;
Processing module will for determining with the unmatched coding frequency of the effective frequency in preset coding frequencyDetermining coding frequency is as present encoding frequency;
Coding module, for when receiving audio-frequency signal coding instruction, using the present encoding frequency by source dataIt is encoded to audio signal.
Preferably, the processing module includes:
Generation unit, for being generated based on each effective frequency and preset float value, each effective frequency is corresponding to be hadImitate frequency separation;
Comparing unit, for preset coding frequency to be compared with each effective frequency section, with it is determining with it is eachThe unmatched coding frequency in the effective frequency section;
Processing unit, the coding frequency for will determine is as present encoding frequency.
Preferably, the audio-frequency signal coding system further include:
Output module, for exporting prompt information when preset coding frequency is matched with the effective frequency.
Preferably, the processing module includes:
Determination unit, for determine in preset coding frequency with the unmatched coding frequency of the effective frequency;WithAnd when having multiple with the unmatched coding frequency of the effective frequency, the priority of multiple coding frequencies is determined;
Processing unit, for using the coding frequency of highest priority as present encoding frequency.
Preferably, the processing module includes:
Comparing unit, for according to preset priority by each preset coding frequency successively with each effective frequencyRate is compared;
Processing unit, for when having coding frequency and each effective frequency to mismatch, which to be madeFor present encoding frequency.
Preferably, the audio-frequency signal coding system further include:
Module is obtained, for obtaining the intensity of the mixed audio signal received;
Processing module is also used to increase preset value to the intensity of mixed audio signal, and using the mixing for increasing preset valueThe intensity of audio signal updates current audio signals encoding strength.
Preferably, the coding module is also used to when receiving audio-frequency signal coding instruction, using the present encodingSource data is encoded to audio signal by frequency and current audio signals encoding strength.
In addition, to achieve the above object, the present invention also proposes a kind of audio-frequency signal coding system, the audio-frequency signal codingSystem includes:
Module is obtained, for obtaining source data to be encoded when detecting audio-frequency signal coding instruction;
Extraction module is greater than the audio signal frequency of preset threshold as effective for extracting intensity in each audio signalFrequency;
Processing module will for determining with the unmatched coding frequency of the effective frequency in preset coding frequencyDetermining coding frequency is as present encoding frequency;
Coding module, for the source data to be encoded to audio signal using the present encoding frequency.
Audio signal encoding method proposed by the present invention and system, terminal obtain the mixing sound in current operating environment in real timeFrequency signal, and parsing to the mixed audio signal got is strong in each audio signal to extract in mixed audio signalThe audio signal frequency that degree is greater than preset threshold is used as effective frequency, and in the preset coding frequency of determination with the effective frequencyUnmatched coding frequency is receiving audio-frequency signal coding instruction using determining coding frequency as present encoding frequencyWhen, source data is encoded to audio signal using the present encoding frequency by the terminal, is treated with the noise reduced in environmentThe influence of the audio signal of transmission improves the accuracy rate of audio signal transmission.
Detailed description of the invention
Fig. 1 is the hardware structural diagram of the first embodiment for the terminal that the present invention realizes audio-frequency signal coding;
Fig. 2 is the hardware structural diagram of the second embodiment for the terminal that the present invention realizes audio-frequency signal coding;
Fig. 3 is the functional block diagram of the preferred embodiment of Fig. 1 sound intermediate frequency signal coding system;
Fig. 4 is the functional block diagram of the preferred embodiment of Fig. 2 sound intermediate frequency signal coding system;
Fig. 5 is the flow diagram of audio signal encoding method first embodiment of the present invention;
Fig. 6 is the flow diagram of audio signal encoding method second embodiment of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Referring to Fig.1, Fig. 1 is the hardware configuration signal of the first embodiment for the terminal that the present invention realizes audio-frequency signal codingFigure.
The terminal 1 includes processing unit 11, storage unit 12, coding unit 13, voice pickup unit 14 and audio letterNumber coded system 15.The terminal can be that controlled terminal is also controlling terminal.
The coding unit 13, under the control of processing unit 11, source data to be encoded to be encoded to audio letterNumber.
The voice pickup unit 14, for the audio in the running environment where being picked up under the control of processing unit 11Signal.
Storage unit 12, for storing audio-frequency signal coding system 15 and its operation data, preset coding frequency.It needs, it is emphasized that the storage unit 12 is either an individual storage device, is also possible to the system of multiple and different storage devicesClaim, therefore not to repeat here.
The processing unit 11, for calling and executing audio-frequency signal coding system 15, control voice pickup unit 14 is real-timeThe mixed audio signal in current operating environment is obtained, the mitigation audio signal got is parsed with the determination mixingThe frequency and intensity of each audio signal in audio signal are determined and are mismatched in preset coding frequency with the effective frequencyCoding frequency, when detecting audio-frequency signal coding instruction, call and compile using determining coding frequency as present encoding frequencyThe source data is encoded to audio signal using the present encoding frequency by code unit 13.The processing unit 11 and storage unit12 both can be individual unit respectively, also can integrate together, constitute a controller, therefore not to repeat here.
It is the hardware structural diagram of the second embodiment for the terminal that the present invention realizes audio-frequency signal coding referring to Fig. 2, Fig. 2
The terminal 2 includes processing unit 21, storage unit 22, coding unit 23, voice pickup unit 24 and audio letterNumber coded system 25.
The coding unit 23, under the control of processing unit 21, source data to be encoded to be encoded to audio letterNumber.
The voice pickup unit 24, for the audio in the running environment where being picked up under the control of processing unit 21Signal.
Storage unit 22, for storing audio-frequency signal coding system 25 and its operation data, preset coding frequency.It needs, it is emphasized that the storage unit 22 is either an individual storage device, is also possible to the system of multiple and different storage devicesClaim, therefore not to repeat here.
The processing unit 21 is detecting audio signal for calling and executing air conditioner operating parameter adjustment system 25When coded command, terminal obtains source data to be encoded, and it is mixed in current operating environment to call voice pickup unit 24 to obtainAudio signal is closed, and the mixed audio signal got is parsed, with each audio in the determination mixed audio signalThe frequency and intensity of signal extract intensity in each audio signal and are greater than the audio signal frequency of preset threshold as effectively frequencyRate is extracted the preset coding frequency that storage unit 22 stores, is determined in preset coding frequency with the effective frequency notMatched coding frequency calls coding unit 23 to use the current volume using determining coding frequency as present encoding frequencyThe source data is encoded to audio signal by code frequency.The processing unit 21 and storage unit 22 both can be individual list respectivelyMember also can integrate together, constitute a controller, therefore not to repeat here.
The present invention provides a kind of audio-frequency signal coding system.
It is the functional block diagram of the preferred embodiment of Fig. 1 sound intermediate frequency signal coding system referring to Fig. 3, Fig. 3.
It is emphasized that it will be apparent to those skilled in the art that functional block diagram shown in Fig. 3 is only one preferably realThe exemplary diagram of example is applied, those skilled in the art surrounds audio-frequency signal coding system 15 shown in Fig. 3, can carry out new function easilyThe supplement of energy module;The title of each functional module is self-defined title, is only used for auxiliary and understands the audio-frequency signal coding system 15Each program function block, be not used in restriction technical solution of the present invention, the core of technical solution of the present invention is each self-defining nameThe function to be reached of the functional module of title.
The audio-frequency signal coding system 15 that the present embodiment proposes, comprising:
Audio signal sample module 151, for the mixed audio signal in real-time or timing acquisition current operating environment;
In this in real time example, which can in real time or timing acquisition audio collecting device (such as microphone) acquiresThe mixed audio signal arrived.
Parsing module 152, for being parsed to the mixed audio signal got, with the determination mixed audio signalIn each audio signal frequency and intensity;
In the present embodiment, Fourier transform is carried out to the mixed audio signal received, the time domain of audio signal is believedNumber frequency-region signal is converted to, the frequency for each audio signal for including in the mixed audio signal can be determined based on the frequency-region signalRate, and the amplitude of the audio signal of each frequency is obtained, which is the intensity of audio signal.
Extraction module 153, the audio signal frequency conduct for being greater than preset threshold for extracting intensity in each audio signalEffective frequency;
In the present embodiment, the intensity of the audio signal can be configured by manufacturer or user, due to noise signalIntensity may not influence the accuracy rate of the audio signal transmission of terminal output when smaller, then extract strong in each audio signalDegree is greater than the audio signal frequency of preset threshold as effective frequency.
Processing module 154, for determine in preset coding frequency with the unmatched coding frequency of the effective frequency,Using determining coding frequency as present encoding frequency;
In the present embodiment, preset coding frequency is matched with effective frequency refers to preset coding frequency and effective frequencyBetween difference be less than preset threshold, i.e., the described processing module 154 includes:
Generation unit, for being generated based on each effective frequency and preset float value, each effective frequency is corresponding to be hadImitate frequency separation;
Comparing unit, for preset coding frequency to be compared with each effective frequency section, with it is determining with it is eachThe unmatched coding frequency in the effective frequency section;
Processing unit, the coding frequency for will determine is as present encoding frequency.
By above-mentioned alignments, so that the determination of present encoding frequency is more accurate.
Coding module 155, for when receiving audio-frequency signal coding instruction, using the present encoding frequency by source numberAccording to being encoded to audio signal.
The source data can may include lteral data or audio data for the data type currently entered perhaps prestoredDeng.When text information is encoded to audio signal, text information can be first converted to audio data, and the sound that will be converted toFrequency evidence is encoded to audio signal.
The audio-frequency signal coding system that the present embodiment proposes, audio signal sample module obtain in current operating environment in real timeMixed audio signal, parsing module parses the mixed audio signal got, each in mixed audio signal to extractFor intensity greater than the audio signal frequency of preset threshold as effective frequency, processing module determines preset coding in a audio signalIn frequency with the unmatched coding frequency of the effective frequency, and using determining coding frequency as present encoding frequency,When receiving audio-frequency signal coding instruction, source data is encoded to audio signal using the present encoding frequency by coding module,To reduce influence of the noise in environment to audio signal to be transmitted, the accuracy rate of audio signal transmission is improved.
It further, is raising user experience, the audio-frequency signal coding system further include:
Output module, for exporting prompt information when preset coding frequency is matched with the effective frequency.
In the present embodiment, which can be light prompt information and/or auditory tone cues information and/or text information.When standby signal is light prompt information, preset color can be switched to for control instructions lamp by exporting the light prompt information, orControl instructions lamp is with preset frequency scintillation, or lights indicator light etc., and auditory tone cues information can be control loudspeaker outputPreset alarm alert signal.User is based on above-mentioned prompt information, can know currently to be not suitable for carrying out audio signal output in timeOperation.
It will be appreciated by persons skilled in the art that for improve user experience, preset coding frequency with it is describedWhen effective frequency matches, compiled using the effective frequency matched coding frequency minimum with intensity in each effective frequency as currentCode frequency.
Further, to improve the accuracy to audio-frequency signal coding, the processing module 154 includes:
Determination unit, for determine in preset coding frequency with the unmatched coding frequency of the effective frequency;WithAnd when having multiple with the unmatched coding frequency of the effective frequency, the priority of multiple coding frequencies is determined;
Processing unit, for using the coding frequency of highest priority as present encoding frequency.
Specific example is as follows: pre-arranged code frequency is 12KHZ, 14KHZ, 16KHZ and 18KHZ, the sound being currently receivedFrequency mitigates the audio signal in audio signal comprising 12KHZ and 14KHZ, and the priority of 16KHZ is greater than 18KHZ, therefore selects excellentThe first higher 16KHZ of grade is as present encoding frequency.The priority of each coding frequency can be by for being set.
Further, number is compared to reduce, to reduce terminal energy consumption, the processing module 154 includes:
Comparing unit, for according to preset priority by each preset coding frequency successively with each effective frequencyRate is compared;
Processing unit, for when having coding frequency and each effective frequency to mismatch, which to be madeFor present encoding frequency.
Specific example is as follows: pre-arranged code frequency according to priority ranking be 12KHZ, 14KHZ, 16KHZ and 18KHZ,The audio being currently received mitigates intensity in audio signal and is greater than the audio that the audio signal of preset threshold is 12KHZ and 14KHZThen 12KHZ is compared with 12KHZ and 14KHZ first for signal, due to exist and the matched effective frequency of coding frequency,Then continue for 14KHZ to be compared with 12KHZ and 14KHZ, until 16KHZ and 12KHZ and 14KHZ is mismatched, at this time will16KHZ is as present encoding frequency.The priority of each coding frequency can be by for being set.
Further, to reduce terminal energy consumption, audio-frequency signal coding system is stated further include:
Module is obtained, for obtaining the intensity of the mixed audio signal received;
Processing module is also used to increase preset value to the intensity of mixed audio signal, and using the mixing for increasing preset valueThe intensity of audio signal updates current audio signals encoding strength.
In the present embodiment, the coding module is also used to work as when receiving audio-frequency signal coding instruction using describedSource data is encoded to audio signal by preceding coding frequency and current audio signals encoding strength.
It is encoded to avoid all audio signals from being all made of maximum intensity, so that terminal energy consumption is larger, is then only neededThe intensity adjustment for the audio signal that present encoding is generated to more than the intensity of current noise signal.The preset value can be byUser sets.
It is the functional block diagram of the preferred embodiment of Fig. 2 sound intermediate frequency signal coding system referring to Fig. 4, Fig. 4.
It is emphasized that it will be apparent to those skilled in the art that functional block diagram shown in Fig. 4 is only one preferably realThe exemplary diagram of example is applied, those skilled in the art surrounds audio-frequency signal coding system 25 shown in Fig. 4, can carry out new function easilyThe supplement of energy module;The title of each functional module is self-defined title, is only used for auxiliary and understands the audio-frequency signal coding system 25Each program function block, be not used in restriction technical solution of the present invention, the core of technical solution of the present invention is each self-defining nameThe function to be reached of the functional module of title.
The audio-frequency signal coding system 25 that the present embodiment proposes, comprising:
Module 251 is obtained, for obtaining source data to be encoded, and obtain when detecting audio-frequency signal coding instructionTake the mixed audio signal in current operating environment;
In the present embodiment, Fourier transform is carried out to the mixed audio signal received, the time domain of audio signal is believedNumber frequency-region signal is converted to, the frequency for each audio signal for including in the mixed audio signal can be determined based on the frequency-region signalRate, and the amplitude of the audio signal of each frequency is obtained, which is the intensity of audio signal.
Parsing module 252, for being parsed to the mixed audio signal got, with the determination mixed audio signalIn each audio signal frequency and intensity
Extraction module 253, the audio signal frequency conduct for being greater than preset threshold for extracting intensity in each audio signalEffective frequency;
In the present embodiment, the intensity of the audio signal can be configured by manufacturer or user, due to noise signalIntensity may not influence the accuracy rate of the audio signal transmission of terminal output when smaller, then extract strong in each audio signalDegree is greater than the audio signal frequency of preset threshold as effective frequency.
Processing module 254, for determine in preset coding frequency with the unmatched coding frequency of the effective frequency,Using determining coding frequency as present encoding frequency;
In the present embodiment, preset coding frequency is matched with effective frequency refers to preset coding frequency and effective frequencyBetween difference be less than preset threshold, i.e., the described processing module 254 includes:
Generation unit, for being generated based on each effective frequency and preset float value, each effective frequency is corresponding to be hadImitate frequency separation;
Comparing unit, for preset coding frequency to be compared with each effective frequency section, with it is determining with it is eachThe unmatched coding frequency in the effective frequency section;
Processing unit, the coding frequency for will determine is as present encoding frequency.
By above-mentioned alignments, so that the determination of present encoding frequency is more accurate.
Coding module 255, for the source data to be encoded to audio signal using the present encoding frequency.
The source data can may include lteral data or audio data for the data type currently entered perhaps prestoredDeng.When text information is encoded to audio signal, text information can be first converted to audio data, and the sound that will be converted toFrequency evidence is encoded to audio signal.
The audio-frequency signal coding system that the present embodiment proposes obtains module and obtains when detecting audio-frequency signal coding instructionThe mixed audio signal in source data and current operating environment to be encoded is taken, parsing module believes the mixed audio gotIt number is parsed, with the frequency and intensity of each audio signal in the determination mixed audio signal;Extraction module extracts eachIntensity is greater than the audio signal frequency of preset threshold as effective frequency in audio signal;Processing module determines preset coding frequencyIn rate with the unmatched coding frequency of the effective frequency, and using determining coding frequency as present encoding frequency;CodingThe source data is encoded to audio signal using the present encoding frequency by module, to reduce the noise in environment to be transmittedAudio signal influence, improve the accuracy rate of audio signal transmission.
It further, is raising user experience, the audio-frequency signal coding system further include:
Output module, for exporting prompt information when preset coding frequency is matched with the effective frequency.
In the present embodiment, which can be light prompt information and/or auditory tone cues information and/or text information.When standby signal is light prompt information, preset color can be switched to for control instructions lamp by exporting the light prompt information, orControl instructions lamp is with preset frequency scintillation, or lights indicator light etc., and auditory tone cues information can be control loudspeaker outputPreset alarm alert signal.User is based on above-mentioned prompt information, can know currently to be not suitable for carrying out audio signal output in timeOperation.
It will be appreciated by persons skilled in the art that for improve user experience, preset coding frequency with it is describedWhen effective frequency matches, compiled using the effective frequency matched coding frequency minimum with intensity in each effective frequency as currentCode frequency.
Further, to improve the accuracy to audio-frequency signal coding, the processing module 254 includes:
Determination unit, for determine in preset coding frequency with the unmatched coding frequency of the effective frequency;WithAnd when having multiple with the unmatched coding frequency of the effective frequency, the priority of multiple coding frequencies is determined;
Processing unit, for using the coding frequency of highest priority as present encoding frequency.
Specific example is as follows: pre-arranged code frequency is 12KHZ, 14KHZ, 16KHZ and 18KHZ, the sound being currently receivedFrequency mitigates the audio signal in audio signal comprising 12KHZ and 14KHZ, and the priority of 16KHZ is greater than 18KHZ, therefore selects excellentThe first higher 16KHZ of grade is as present encoding frequency.The priority of each coding frequency can be by for being set.
Further, number is compared to reduce, to reduce terminal energy consumption, the processing module 254 includes:
Comparing unit, for according to preset priority by each preset coding frequency successively with each effective frequencyRate is compared;
Processing unit, for when having coding frequency and each effective frequency to mismatch, which to be madeFor present encoding frequency.
Specific example is as follows: pre-arranged code frequency according to priority ranking be 12KHZ, 14KHZ, 16KHZ and 18KHZ,The audio being currently received mitigates intensity in audio signal and is greater than the audio that the audio signal of preset threshold is 12KHZ and 14KHZThen 12KHZ is compared with 12KHZ and 14KHZ first for signal, due to exist and the matched effective frequency of coding frequency,Then continue for 14KHZ to be compared with 12KHZ and 14KHZ, until 16KHZ and 12KHZ and 14KHZ is mismatched, at this time will16KHZ is as present encoding frequency.The priority of each coding frequency can be by for being set.
Further, to reduce terminal energy consumption, audio-frequency signal coding system is stated further include:
Module is obtained, for obtaining the intensity of the mixed audio signal received;
Processing module is also used to increase preset value to the intensity of mixed audio signal, and using the mixing for increasing preset valueThe intensity of audio signal updates current audio signals encoding strength.
In the present embodiment, the coding module is also used to work as when receiving audio-frequency signal coding instruction using describedSource data is encoded to audio signal by preceding coding frequency and current audio signals encoding strength.
It is encoded to avoid all audio signals from being all made of maximum intensity, so that terminal energy consumption is larger, is then only neededThe intensity adjustment for the audio signal that present encoding is generated to more than the intensity of current noise signal.The preset value can be byUser sets.
It is the flow diagram of audio signal encoding method first embodiment of the present invention referring to Fig. 5, Fig. 5.
The audio signal encoding method that the present embodiment proposes, comprising the following steps:
Step S10, terminal are in real time or the mixed audio signal in timing acquisition current operating environment, and mixed to what is gotIt closes audio signal to be parsed, with the frequency and intensity of each audio signal in the determination mixed audio signal;
In this in real time example, which can in real time or timing acquisition audio collecting device (such as microphone) acquiresThe mixed audio signal arrived.In the present embodiment, Fourier transform is carried out to the mixed audio signal received, by audio signalTime-domain signal be converted to frequency-region signal, each audio for including in the mixed audio signal can be determined based on the frequency-region signalThe frequency of signal, and the amplitude of the audio signal of each frequency is obtained, which is the intensity of audio signal.
Step S20, the terminal extract the audio signal frequency conduct that intensity in each audio signal is greater than preset thresholdEffective frequency;
In the present embodiment, the intensity of the audio signal can be configured by manufacturer or user, due to noise signalIntensity may not influence the accuracy rate of the audio signal transmission of terminal output when smaller, then extract strong in each audio signalDegree is greater than the audio signal frequency of preset threshold as effective frequency.
Step S30, the terminal determine in preset coding frequency with the unmatched coding frequency of the effective frequency,Using determining coding frequency as present encoding frequency;
In the present embodiment, preset coding frequency is matched with effective frequency refers to preset coding frequency and effective frequencyBetween difference be less than preset threshold, i.e., the described step S30 includes:
The terminal is based on each effective frequency and preset float value generates the corresponding effective frequency of each effective frequencyRate section;
Preset coding frequency is compared the terminal with each effective frequency section, described has with determining with eachImitate the unmatched coding frequency of frequency separation;
The terminal is using determining coding frequency as present encoding frequency.
By above-mentioned alignments, so that the determination of present encoding frequency is more accurate.
Step S40, when receiving audio-frequency signal coding instruction, the terminal uses the present encoding frequency by source numberAccording to being encoded to audio signal.
The source data can may include lteral data or audio data for the data type currently entered perhaps prestoredDeng.When text information is encoded to audio signal, text information can be first converted to audio data, and the sound that will be converted toFrequency evidence is encoded to audio signal.
The audio signal encoding method that the present embodiment proposes, terminal obtain the letter of the mixed audio in current operating environment in real timeNumber, and the mixed audio signal got is parsed, to extract, intensity is big in each audio signal in mixed audio signalIn preset threshold audio signal frequency as effective frequency, and determine in preset coding frequency with the effective frequency notMatched coding frequency, using determining coding frequency as present encoding frequency, when receiving audio-frequency signal coding instruction, instituteIt states terminal and source data is encoded to by audio signal using the present encoding frequency, to reduce the noise in environment to be transmittedThe influence of audio signal improves the accuracy rate of audio signal transmission.
It further, is raising user experience, after the step S20, the audio signal encoding method further include:
When preset coding frequency is matched with the effective frequency, the terminal exports prompt information
In the present embodiment, which can be light prompt information and/or auditory tone cues information and/or text information.When standby signal is light prompt information, preset color can be switched to for control instructions lamp by exporting the light prompt information, orControl instructions lamp is with preset frequency scintillation, or lights indicator light etc., and auditory tone cues information can be control loudspeaker outputPreset alarm alert signal.User is based on above-mentioned prompt information, can know currently to be not suitable for carrying out audio signal output in timeOperation.
It will be appreciated by persons skilled in the art that for improve user experience, preset coding frequency with it is describedWhen effective frequency matches, compiled using the effective frequency matched coding frequency minimum with intensity in each effective frequency as currentCode frequency.
Further, to improve the accuracy to audio-frequency signal coding, the step S30 includes:
The terminal determine in preset coding frequency with the unmatched coding frequency of the effective frequency;
When having multiple with the unmatched coding frequency of the effective frequency, the terminal determines multiple coding frequenciesPriority;
The terminal is using the coding frequency of highest priority as present encoding frequency.
Specific example is as follows: pre-arranged code frequency is 12KHZ, 14KHZ, 16KHZ and 18KHZ, the sound being currently receivedFrequency mitigates the audio signal in audio signal comprising 12KHZ and 14KHZ, and the priority of 16KHZ is greater than 18KHZ, therefore selects excellentThe first higher 16KHZ of grade is as present encoding frequency.The priority of each coding frequency can be by for being set.
Further, number is compared to reduce, to reduce terminal energy consumption, the processing module 154 includes:
The terminal according to preset priority by each preset coding frequency successively with each effective frequency intoRow compares;
When having coding frequency and each effective frequency to mismatch, the terminal is using the coding frequency as currentEncode frequency.
Specific example is as follows: pre-arranged code frequency according to priority ranking be 12KHZ, 14KHZ, 16KHZ and 18KHZ,The audio being currently received mitigates intensity in audio signal and is greater than the audio that the audio signal of preset threshold is 12KHZ and 14KHZThen 12KHZ is compared with 12KHZ and 14KHZ first for signal, due to exist and the matched effective frequency of coding frequency,Then continue for 14KHZ to be compared with 12KHZ and 14KHZ, until 16KHZ and 12KHZ and 14KHZ is mismatched, at this time will16KHZ is as present encoding frequency.The priority of each coding frequency can be by for being set.
It further, is reduction terminal energy consumption, before the step S40, the audio signal encoding method further include:
The terminal obtains the intensity of the mixed audio signal received, and increases the intensity of mixed audio signal defaultValue;
The terminal updates current audio signals encoding strength using the intensity for the mixed audio signal for increasing preset value.
In the present embodiment, the step S40 includes: when receiving audio-frequency signal coding instruction, and the terminal usesSource data is encoded to audio signal by the present encoding frequency and current audio signals encoding strength.
It is encoded to avoid all audio signals from being all made of maximum intensity, so that terminal energy consumption is larger, is then only neededThe intensity adjustment for the audio signal that present encoding is generated to more than the intensity of current noise signal.The preset value can be byUser sets.
It is the flow diagram of audio signal encoding method second embodiment of the present invention referring to Fig. 6, Fig. 6.
The audio signal encoding method that the present embodiment proposes, comprising:
Step S50, when detecting audio-frequency signal coding instruction, terminal obtains source data to be encoded;
Step S60, the terminal obtain the mixed audio signal in current operating environment, and to the mixed audio gotSignal is parsed, with the frequency and intensity of each audio signal in the determination mixed audio signal;
In the present embodiment, Fourier transform is carried out to the mixed audio signal received, the time domain of audio signal is believedNumber frequency-region signal is converted to, the frequency for each audio signal for including in the mixed audio signal can be determined based on the frequency-region signalRate, and the amplitude of the audio signal of each frequency is obtained, which is the intensity of audio signal.
Step S70, the terminal extract the audio signal frequency conduct that intensity in each audio signal is greater than preset thresholdEffective frequency;
In the present embodiment, the intensity of the audio signal can be configured by manufacturer or user, due to noise signalIntensity may not influence the accuracy rate of the audio signal transmission of terminal output when smaller, then extract strong in each audio signalDegree is greater than the audio signal frequency of preset threshold as effective frequency.
Step S80, the terminal determine in preset coding frequency with the unmatched coding frequency of the effective frequency,Using determining coding frequency as present encoding frequency;
In the present embodiment, preset coding frequency is matched with effective frequency refers to preset coding frequency and effective frequencyBetween difference be less than preset threshold, i.e., the described step S80 includes:
The terminal is based on each effective frequency and preset float value generates the corresponding effective frequency of each effective frequencyRate section;
Preset coding frequency is compared the terminal with each effective frequency section, described has with determining with eachThe unmatched coding frequency of frequency separation is imitated, and using determining coding frequency as present encoding frequency.
By above-mentioned alignments, so that the determination of present encoding frequency is more accurate.
The source data is encoded to audio signal using the present encoding frequency by step S90, the terminal.
The source data can may include lteral data or audio data for the data type currently entered perhaps prestoredDeng.When text information is encoded to audio signal, text information can be first converted to audio data, and the sound that will be converted toFrequency evidence is encoded to audio signal.
The audio signal encoding method that the present embodiment proposes, when detecting audio-frequency signal coding instruction, the terminal is obtainedThe mixed audio signal in source data and current operating environment to be encoded is taken, and the mixed audio signal got is carried outParsing, with the frequency and intensity of each audio signal in the determination mixed audio signal;The terminal extracts each audio letterThe audio signal frequency that intensity is greater than preset threshold in number has as effective frequency, and in determining preset coding frequency with describedThe unmatched coding frequency of frequency is imitated, using determining coding frequency as present encoding frequency;The terminal is worked as described in usingThe source data is encoded to audio signal by preceding coding frequency, to reduce the noise in environment to the shadow of audio signal to be transmittedIt rings, improves the accuracy rate of audio signal transmission.
It further, is raising user experience, after the step S70, the audio signal encoding method further include:
When preset coding frequency is matched with the effective frequency, the terminal exports prompt information.
In the present embodiment, which can be light prompt information and/or auditory tone cues information and/or text information.When standby signal is light prompt information, preset color can be switched to for control instructions lamp by exporting the light prompt information, orControl instructions lamp is with preset frequency scintillation, or lights indicator light etc., and auditory tone cues information can be control loudspeaker outputPreset alarm alert signal.User is based on above-mentioned prompt information, can know currently to be not suitable for carrying out audio signal output in timeOperation.
It will be appreciated by persons skilled in the art that for improve user experience, preset coding frequency with it is describedWhen effective frequency matches, compiled using the effective frequency matched coding frequency minimum with intensity in each effective frequency as currentCode frequency.
Further, to improve the accuracy to audio-frequency signal coding, the step S80 includes:
The terminal determine in preset coding frequency with the unmatched coding frequency of the effective frequency;
When having multiple with the unmatched coding frequency of the effective frequency, the terminal determines multiple coding frequenciesPriority, and using the coding frequency of highest priority as present encoding frequency.
Specific example is as follows: pre-arranged code frequency is 12KHZ, 14KHZ, 16KHZ and 18KHZ, the sound being currently receivedFrequency mitigates the audio signal in audio signal comprising 12KHZ and 14KHZ, and the priority of 16KHZ is greater than 18KHZ, therefore selects excellentThe first higher 16KHZ of grade is as present encoding frequency.The priority of each coding frequency can be by for being set.
Further, number is compared to reduce, to reduce terminal energy consumption, the step S80 includes:
The terminal according to preset priority by each preset coding frequency successively with each effective frequency intoRow compares;
When having coding frequency and each effective frequency to mismatch, the terminal is using the coding frequency as currentEncode frequency.
Specific example is as follows: pre-arranged code frequency according to priority ranking be 12KHZ, 14KHZ, 16KHZ and 18KHZ,The audio being currently received mitigates intensity in audio signal and is greater than the audio that the audio signal of preset threshold is 12KHZ and 14KHZThen 12KHZ is compared with 12KHZ and 14KHZ first for signal, due to exist and the matched effective frequency of coding frequency,Then continue for 14KHZ to be compared with 12KHZ and 14KHZ, until 16KHZ and 12KHZ and 14KHZ is mismatched, at this time will16KHZ is as present encoding frequency.The priority of each coding frequency can be by for being set.
It further, is reduction terminal energy consumption, before the step S90, the audio signal encoding method further include:
The terminal obtains the intensity of the mixed audio signal received;
The terminal increases preset value to the intensity of mixed audio signal, and using the mixed audio letter for increasing preset valueNumber intensity update current audio signals encoding strength.
In the present embodiment, the step S90 includes: when receiving audio-frequency signal coding instruction, and the terminal usesSource data is encoded to audio signal by the present encoding frequency and current audio signals encoding strength.
It is encoded to avoid all audio signals from being all made of maximum intensity, so that terminal energy consumption is larger, is then only neededThe intensity adjustment for the audio signal that present encoding is generated to more than the intensity of current noise signal.The preset value can be byUser sets.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-rowHis property includes, so that the process, method, article or the system that include a series of elements not only include those elements, andAnd further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsicElement.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to doThere is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment sideMethod can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many casesThe former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior artThe part contributed out can be embodied in the form of software products, which is stored in a storage mediumIn (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothesBusiness device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hairEquivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skillsArt field, is included within the scope of the present invention.

Claims (16)

CN201410421971.3A2014-08-252014-08-25Audio signal encoding method and systemActiveCN105374363B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201410421971.3ACN105374363B (en)2014-08-252014-08-25Audio signal encoding method and system

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201410421971.3ACN105374363B (en)2014-08-252014-08-25Audio signal encoding method and system

Publications (2)

Publication NumberPublication Date
CN105374363A CN105374363A (en)2016-03-02
CN105374363Btrue CN105374363B (en)2019-06-04

Family

ID=55376492

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201410421971.3AActiveCN105374363B (en)2014-08-252014-08-25Audio signal encoding method and system

Country Status (1)

CountryLink
CN (1)CN105374363B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109102816B (en)*2018-08-142020-12-29Oppo广东移动通信有限公司 Code control method, device and electronic device
CN111415672A (en)*2020-03-272020-07-14河北师范大学 A method and system for encoding, transmitting, receiving and analyzing underwater audio signals

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1462429A (en)*2001-05-082003-12-17皇家菲利浦电子有限公司Audio coding
CN102859591A (en)*2010-04-122013-01-02瑞典爱立信有限公司Method and arrangement for noise cancellation in a speech encoder
CN103368682A (en)*2012-03-292013-10-23华为技术有限公司 Method and device for encoding and decoding signals

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
KR100527002B1 (en)*2003-02-262005-11-08한국전자통신연구원Apparatus and method of that consider energy distribution characteristic of speech signal
CN102436820B (en)*2010-09-292013-08-28华为技术有限公司High frequency band signal coding and decoding methods and devices

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1462429A (en)*2001-05-082003-12-17皇家菲利浦电子有限公司Audio coding
CN102859591A (en)*2010-04-122013-01-02瑞典爱立信有限公司Method and arrangement for noise cancellation in a speech encoder
CN103368682A (en)*2012-03-292013-10-23华为技术有限公司 Method and device for encoding and decoding signals

Also Published As

Publication numberPublication date
CN105374363A (en)2016-03-02

Similar Documents

PublicationPublication DateTitle
CN104978957A (en)Voice control method and system based on voiceprint identification
US20190333514A1 (en)Method and apparatus for dialoguing based on a mood of a user
CN102237087B (en)Voice control method and voice control device
CN106560892A (en)Intelligent robot and cloud side interactive method and cloud side interactive system thereof
CN105554283B (en)A kind of information processing method and electronic equipment
CN106782563A (en)A kind of intelligent home voice interactive system
CN104978955A (en)Voice control method and system
US11069332B2 (en)Interference generation
CN109065051B (en)Voice recognition processing method and device
CN105185378A (en)Voice control method, voice control system and air conditioner capable of realizing voice control
CN104978956A (en)Voice control method and system
CN104575503A (en)Speech recognition method and device
CN111462741A (en)Voice data processing method, device and storage medium
CN108156497A (en)A kind of control method, control device and control system
CN209642689U (en)A kind of IR remote controller and electrical control system based on acoustic control
CN107395873B (en)Volume adjusting method and device, storage medium and terminal
CN112992137B (en)Voice interaction method and device, storage medium and electronic device
CN105374363B (en)Audio signal encoding method and system
CN108932947B (en)Voice control method and household appliance
CN105091208A (en)Method and system for controlling air speed of air conditioner
CN103730117A (en)Self-adaptation intelligent voice device and method
CN112885341A (en)Voice wake-up method and device, electronic equipment and storage medium
CN105407445B (en)A kind of connection method and the first electronic equipment
CN105096936A (en)Push-to-talk service control method and apparatus
CN105280188B (en)Audio signal encoding method and system based on terminal operating environment

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp