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 based on terminal operating environment provided by the invention, instituteState the audio signal encoding method based on terminal operating environment the following steps are included:
When detecting audio-frequency signal coding instruction, terminal obtains source data to be encoded, and obtains preset noise dressThe operating parameter set;
The terminal determines the operation ginseng got according to the mapping relations between preset operating parameter and coding frequencyThe corresponding coding frequency of number;
The source data is encoded to audio signal using determining coding frequency by the terminal.
Preferably, the terminal is got according to the mapping relations between preset operating parameter and coding frequency, determinationOperating parameter corresponding coding frequency the step of include:
When the operating parameter got includes the operating parameter of multiple rattle devices, the terminal is according to preset operationMapping relations between parameter and coding group of frequencies, determine the corresponding coding group of frequencies of the operating parameter of each rattle devices;
When the coding group of frequencies got has multiple, the terminal obtains intersection between each coding group of frequencies;
When intersection is single encoded frequency between each coding group of frequencies, the terminal is using the coding frequency as acquisitionCoding frequency corresponding to the operating parameter arrived.
Preferably, each coding frequency described when the coding group of frequencies got has multiple, that the terminal is gotBetween group the step of intersection after, the terminal according to preset operating parameter and coding frequency between mapping relations, determineThe step of operating parameter got corresponding coding frequency further include:
When intersection is multiple coding frequencies between each coding group of frequencies, the terminal determines the excellent of each coding frequencyFirst grade;
The terminal is using the coding frequency of highest priority as the corresponding coding frequency of the operating parameter of the rattle devicesRate.
Preferably, the step of source data is encoded to audio signal using determining coding frequency by terminal replacementAre as follows:
The terminal obtains other coding frequencies in preset coding frequency in addition to determining coding frequency;
Other coding frequencies that the terminal will acquire use the present encoding frequency will as present encoding frequencyThe source data is encoded to audio signal.
Preferably, the terminal is got according to the mapping relations between preset operating parameter and coding frequency, determinationOperating parameter corresponding coding frequency the step of include:
When the operating parameter got includes the operating parameter of multiple rattle devices, the terminal is according to preset operationParameter and coding frequency mapping relations, determine the corresponding coding frequency of the operating parameter of each rattle devices;
When the coding frequency got has multiple, all coding frequencies that the terminal will acquire are used as and getOperating parameter corresponding to coding frequency.
Preferably, the terminal obtains other coding frequencies in preset coding frequency in addition to determining coding frequencyThe step of after, the audio signal encoding method based on terminal running state further include:
When the coding frequency got includes all preset coding frequencies, the terminal exports prompt information.
In addition, to achieve the above object, the present invention also proposes a kind of audio-frequency signal coding system based on terminal operating environmentSystem, the audio-frequency signal coding system based on terminal operating environment include:
Module is obtained, for when detecting audio-frequency signal coding instruction, terminal to obtain source data to be encoded, and obtainsTake the operating parameter of rattle devices;
Determining module, for determining and getting according to the mapping relations between preset operating parameter and coding frequencyThe corresponding coding frequency of operating parameter;
First coding module, for the source data to be encoded to audio signal using determining coding frequency.
Preferably, the determining module includes:
Determination unit, when for including the operating parameter of multiple rattle devices in the operating parameter got, according to defaultOperating parameter and coding group of frequencies between mapping relations, determine the corresponding coding frequency of the operating parameter of each rattle devicesGroup;
Acquiring unit when for having multiple in the coding group of frequencies got, obtains intersection between each coding group of frequencies;
Processing unit, for when intersection is single encoded frequency between each coding group of frequencies, which to be madeFor coding frequency corresponding to the operating parameter that gets.
Preferably, the determination unit is also used between each coding group of frequencies intersection when being multiple coding frequencies, reallyThe priority of fixed each coding frequency;The processing unit is also used to fill the coding frequency of highest priority as the noiseThe corresponding coding frequency of the operating parameter set.
Preferably, the first coding module replacement are as follows:
Second coding module, for obtaining other codings frequency in preset coding frequency in addition to determining coding frequencyRate, and the other coding frequencies that will acquire are as present encoding frequency, and using the present encoding frequency by the source dataIt is encoded to audio signal.
Preferably, the determining module includes:
Determination unit, when for including the operating parameter of multiple rattle devices in the operating parameter got, according to defaultOperating parameter and coding frequency mapping relations, determine the corresponding coding frequency of the operating parameter of each rattle devices;
Processing unit, when for having multiple in the coding frequency got, all coding frequency conducts that will acquireCoding frequency corresponding to the operating parameter got.
Preferably, the audio-frequency signal coding system based on terminal running state further include:
Cue module, for exporting prompt information when the coding frequency got includes all preset coding frequencies.
Audio signal encoding method and system proposed by the present invention based on terminal operating environment, is detecting audio signalWhen coded command, terminal obtains the operating parameter of source data and preset rattle devices to be encoded, and according to preset fortuneMapping relations between row parameter and coding frequency determine that the corresponding coding frequency of operating parameter got, the terminal are adoptedThe source data is encoded to audio signal with determining coding frequency, terminal uses the side for the audio for avoiding rattle devices from generatingFormula carries out the transmission of audio signal, so that target terminal can accurately identify the audio signal of terminal transmission, improves audio signalTransmit accuracy rate.
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 preferable implementation for the terminal that the present invention realizes the audio-frequency signal coding based on terminal operating environmentThe hardware structural diagram of example.
The terminal 1 includes processing unit 11, storage unit 12, coding unit 13 and the audio based on terminal operating environmentSignal coding system 14.
The coding unit 13, under the control of processing unit 11, source data to be encoded to be encoded to audio letterNumber.
Storage unit 12, for storing audio-frequency signal coding system 14 and its operation data based on terminal operating environment,Mapping relations between preset operating parameter and coding frequency.It is emphasized that the storage unit 12 is either oneIndividual storage device is also possible to the general designation of multiple and different storage devices, and therefore not to repeat here.
The processing unit 11 for calling and executing air conditioner operating parameter adjustment system 14, and is detecting audio letterWhen number coded command, source data to be encoded is obtained, and obtain the operating parameter of preset rattle devices, calls storage unit 12Mapping relations between the preset operating parameter and coding frequency of middle storage, determine the corresponding coding of operating parameter gotFrequency, and call coding unit 13 that the source data is encoded to audio signal using the coding frequency got.The processing listMember 11 and storage unit 12 both can be individual unit respectively, also can integrate together, constituted a controller, herein notIt repeats.
It is the function of the audio-frequency signal coding system first embodiment based on terminal operating environment in Fig. 1 referring to Fig. 2, Fig. 2Module diagram.
It is emphasized that it will be apparent to those skilled in the art that functional block diagram shown in Fig. 2 is only one preferably realThe exemplary diagram of example is applied, those skilled in the art surrounds the audio-frequency signal coding system shown in Fig. 2 based on terminal operating environment14, the supplement of new functional module can be carried out easily;The title of each functional module is self-defined title, and being only used for auxiliary understanding shouldEach program function block of audio-frequency signal coding system 14 based on terminal operating environment is not used in and limits technical side of the inventionThe core of case, technical solution of the present invention is the function to be reached of the functional module of each self-defined title.
The audio-frequency signal coding system 14 based on terminal operating environment that the present embodiment proposes, comprising:
Obtain module 141, for detect audio-frequency signal coding instruction when, terminal obtains source data to be encoded, withAnd obtain the operating parameter of preset rattle devices;
In the present embodiment, phonetic control command or terminal is sent to target terminal in terminal to send to target terminalAudio-frequency signal coding instruction is triggered when audio signal.The preset rattle devices can be the rattle devices of operation in terminal, such as emptyAdjust compressor and blower etc. in device that can generate the device of noise because of vibration, it can also be to generate noise in the running environment of terminalDevice such as motor etc..The source data can be that lteral data is also audio data.
When preset rattle devices are the rattle devices in terminal, obtaining module 141 can compile detecting audio signalWhen code instruction, the current operating parameter of the rattle devices run in it is directly acquired, such as when terminal is air conditioner, acquisition is made an uproarMixer operating parameter can be compressor low-frequency operation and the operation of blower high frequency etc.;It is terminal operating in preset rattle devicesWhen rattle devices in environment, obtaining module 141 can send to rattle devices and run when detecting audio-frequency signal coding instructionParameter acquisition instruction sends operating parameter to terminal, or make an uproar so that rattle devices are when receiving operating parameter acquisition instructionMixer in real time or timing to terminal send operating parameter, obtain module 141 can directly acquire terminal it is currently transmitted orThe operating parameter sent in prefixed time interval.
Determining module 142, for according to the mapping relations between preset operating parameter and coding frequency, determination to be gotThe corresponding coding frequency of operating parameter;
In the present embodiment, preset operating parameter can be corresponding with multiple coding frequencies, can also only correspond to a coding frequencyRate, the coding frequency is different from the frequency for the noise that rattle devices generate, the audio signal for sending terminal for target terminalThe noise generated with rattle devices is distinguished.For example, rattle devices are compressor, the operating parameter of compressor is low frequency fortuneRow, and the frequency noise generated in compressor low-frequency operation is 12KHZ, then when operating parameter is compressor low-frequency operation,Corresponding coding frequency is 14KHZ.
First coding module 143, for the source data to be encoded to audio signal using determining coding frequency.
In the present embodiment, after source data being encoded to audio signal using determining coding frequency, this can directly be playedThe audio signal can also be sent to the audio signal transmission to target device preset playing device and carried out by audio signalIt plays, by the audio signal transmission to target device.
The audio-frequency signal coding system based on terminal operating environment that the present embodiment proposes, is detecting audio-frequency signal codingWhen instruction, terminal obtains the operating parameter of source data and preset rattle devices to be encoded, and is joined according to preset operationMapping relations between number and coding frequency determine the corresponding coding frequency of operating parameter got, and the terminal is using trueThe source data is encoded to audio signal by fixed coding frequency, terminal by the way of the audio for avoiding rattle devices from generating intoThe transmission of row audio signal improves audio signal transmission so that target terminal can accurately identify the audio signal of terminal transmissionAccuracy rate.
It further, is the accuracy for improving audio signal transmission, the determining module 142 includes:
Determination unit, when for including the operating parameter of multiple rattle devices in the operating parameter got, according to defaultOperating parameter and coding group of frequencies between mapping relations, determine the corresponding coding frequency of the operating parameter of each rattle devicesGroup;
In the present embodiment, obtain module 141 can obtain noise terminal operating parameter and generation frequency noise itBetween mapping relations, and each frequency noise is compared with preset coding frequency, by preset coding frequency except making an uproarOther coding frequencies except voice frequency, coding group of frequencies corresponding to the operating parameter as rattle devices, generation module are rawAt and save operating parameter and encode group of frequencies between mapping relations.
Acquiring unit when for having multiple in the coding group of frequencies got, obtains intersection between each coding group of frequencies;
Processing unit, for when intersection is single encoded frequency between each coding group of frequencies, which to be madeFor coding frequency corresponding to the operating parameter that gets.
For example, the terminal is air conditioner, corresponding rattle devices operating parameter includes compressor low-frequency operation, compressorHigh frequency operation, the operation of blower low-frequency operation, blower high frequency.And coding group of frequencies corresponding to blower low-frequency operation be (10KHZ,14KHZ), the coding group of frequencies of compressor low-frequency operation is (8KHZ, 10KHZ), then the intersection between two coding group of frequencies is10KHZ, therefore using 10KHZ as coding frequency corresponding to the operating parameter got.
It will be appreciated by persons skilled in the art that the system further includes mentioning to improve the accuracy rate of audio signal transmissionShow module, when between each coding group of frequencies without intersection, exportable prompt information.The prompt information can be light prompt informationAnd/or auditory tone cues information and/or text information.When prompt information is light prompt information, exporting the light prompt information can beControl instructions lamp switches to preset color, and perhaps control instructions lamp with preset frequency scintillation or lights indicator light etc..
It further, is the accuracy for improving audio signal transmission, the determination unit is also used in each coding frequencyWhen intersection is multiple coding frequencies between group, the priority of each coding frequency is determined;The processing unit is also used to will be preferentialOperating parameter corresponding coding frequency of the highest coding frequency of grade as the rattle devices.
For example, the terminal is air conditioner, corresponding rattle devices operating parameter includes compressor low-frequency operation, compressorHigh frequency operation, the operation of blower low-frequency operation, blower high frequency.And coding group of frequencies corresponding to blower low-frequency operation be (10KHZ,12KHZ, 14KHZ, 16KHZ, 18KHZ), the coding group of frequencies of compressor low-frequency operation be (8KHZ, 10KHZ, 14KHZ, 16KHZ,18KHZ), then the intersection between two coding group of frequencies is 10KHZ, 14KHZ, 16KHZ and 18KHZ, if the priority of 14KHZHighest, then using 14KHZ as coding frequency corresponding to the operating parameter got.The priority can by user or producer intoRow setting.
It will be appreciated by persons skilled in the art that improve the accuracy of audio signal transmission, the determining module 142Further include interface push unit, user between each coding group of frequencies intersection be multiple coding frequencies when, display include described inThe coding Frequency selection interface of multiple coding frequencies selects corresponding coding so that user is based on the coding Frequency selection interfaceFrequency, when receiving coding frequency selection instruction, processing unit determines the corresponding coding frequency of coding frequency selection instruction, andUsing determining coding frequency as the corresponding coding frequency of the operating parameter of the rattle devices.
Further, it is the accuracy for improving audio signal transmission, referring to Fig. 3, proposes that the present invention is based on terminal operating ringsThe audio-frequency signal coding system second embodiment in border, in the present embodiment, first coding module 143 are replaced are as follows:
Second coding module 144, for obtaining other volumes in preset coding frequency in addition to determining coding frequencyCode frequency, and the other coding frequencies that will acquire are as present encoding frequency, and using the present encoding frequency by the sourceData encoding is audio signal.
In the present embodiment, preset operating parameter only corresponds to a coding frequency, and the coding frequency and rattle devices produceThe frequency of raw noise is identical, and the second coding module is using other in addition to determining coding frequency in preset coding frequencyIt encodes frequency and the source data is encoded to audio signal, the audio signal and rattle devices for sending terminal for target terminalThe noise of generation is distinguished.For example, rattle devices are compressor, the operating parameter of compressor is low-frequency operation, and is being compressedThe frequency noise generated when machine low-frequency operation is 12KHZ, then when operating parameter is compressor low-frequency operation, corresponding coding frequencyRate is 12KHZ, if preset coding frequency is 12KHZ and 14KHZ, current coding frequency is 14KHZ, using 14KHZ'sIt encodes frequency and the source data is encoded to audio signal.
In the present embodiment, after source data being encoded to audio signal using determining coding frequency, this can directly be playedThe audio signal can also be sent to the audio signal transmission to target device preset playing device and carried out by audio signalIt plays, by the audio signal transmission to target device.
It further, is the accuracy for improving audio signal transmission, the present invention is based on the audio of terminal operating environment lettersIn number coded system second embodiment, the determining module 142 includes:
Determination unit, when for including the operating parameter of multiple rattle devices in the operating parameter got, according to defaultOperating parameter and coding frequency mapping relations, determine the corresponding coding frequency of the operating parameter of each rattle devices;
Processing unit, when for having multiple in the coding frequency got, all coding frequency conducts that will acquireCoding frequency corresponding to the operating parameter got.
For example, the terminal is air conditioner, corresponding rattle devices operating parameter includes compressor low-frequency operation, compressorHigh frequency operation, the operation of blower low-frequency operation, blower high frequency.And coding frequency corresponding to blower low-frequency operation is (8KHZ), pressureThe coding frequency of contracting machine low-frequency operation is (12KHZ), then by 8KHZ and 12KHZ, as corresponding to the operating parameter gotEncode frequency.
It will be appreciated by persons skilled in the art that improve the accuracy of audio signal transmission, the second coding module 144It is also used to when it is multiple for obtaining the preset other coding frequencies encoded in frequency in addition to determining coding frequency, determination is moreThe priority of a other coding frequencies, is encoded to audio signal for the source data using the coding frequency of highest priority.
It further, is the accuracy for improving audio signal transmission, the present invention is based on the audio of terminal operating environment lettersIn number coded system second embodiment, the audio-frequency signal coding system of the terminal running state further include:
Cue module, for exporting prompt information when the coding frequency got includes all preset coding frequencies.
The prompt information can be light prompt information and/or auditory tone cues information and/or text information.It is light in prompt informationWhen prompt information, preset color or control instructions lamp can be switched to for control instructions lamp with pre- by exporting the light prompt informationIf frequency scintillation, or light indicator light etc..
The present invention further provides a kind of audio signal encoding methods based on terminal operating environment.
It is that the present invention is based on the processes of the audio signal encoding method first embodiment of terminal operating environment referring to Fig. 4, Fig. 4Schematic diagram.
The audio signal encoding method based on terminal operating environment that the present embodiment proposes, comprising:
Step S10, when detecting audio-frequency signal coding instruction, terminal obtains source data to be encoded, and obtains defaultRattle devices operating parameter;
In the present embodiment, phonetic control command or terminal is sent to target terminal in terminal to send to target terminalAudio-frequency signal coding instruction is triggered when audio signal.The preset rattle devices can be the rattle devices of operation in terminal, such as emptyAdjust compressor and blower etc. in device that can generate the device of noise because of vibration, it can also be to generate noise in the running environment of terminalDevice such as motor etc..The source data can be that lteral data is also audio data.
When preset rattle devices are the rattle devices in terminal, terminal can detect audio-frequency signal coding instructionWhen, the current operating parameter of the rattle devices run in it is directly acquired, such as when terminal is air conditioner, the rattle devices of acquisitionOperating parameter can be compressor low-frequency operation and the operation of blower high frequency etc.;It is in terminal operating environment in preset rattle devicesRattle devices when, terminal can detect audio-frequency signal coding instruction when, to rattle devices send operating parameter acquisition instruction,So that rattle devices are when receiving operating parameter acquisition instruction, to terminal send operating parameter or rattle devices in real time orTiming sends operating parameter to terminal, and it is currently transmitted or send within a preset time interval that terminal can directly acquire terminalOperating parameter.
Step S20, the terminal are got according to the mapping relations between preset operating parameter and coding frequency, determinationThe corresponding coding frequency of operating parameter;
In the present embodiment, preset operating parameter can be corresponding with multiple coding frequencies, can also only correspond to a coding frequencyRate, the coding frequency is different from the frequency for the noise that rattle devices generate, the audio signal for sending terminal for target terminalThe noise generated with rattle devices is distinguished.For example, rattle devices are compressor, the operating parameter of compressor is low frequency fortuneRow, and the frequency noise generated in compressor low-frequency operation is 12KHZ, then when operating parameter is compressor low-frequency operation,Corresponding coding frequency is 14KHZ.
The source data is encoded to audio signal using determining coding frequency by step S30, the terminal.
In the present embodiment, after source data being encoded to audio signal using determining coding frequency, this can directly be playedThe audio signal can also be sent to the audio signal transmission to target device preset playing device and carried out by audio signalIt plays, by the audio signal transmission to target device.
The audio signal encoding method based on terminal operating environment that the present embodiment proposes, is detecting audio-frequency signal codingWhen instruction, terminal obtains the operating parameter of source data and preset rattle devices to be encoded, and is joined according to preset operationMapping relations between number and coding frequency determine the corresponding coding frequency of operating parameter got, and the terminal is using trueThe source data is encoded to audio signal by fixed coding frequency, terminal by the way of the audio for avoiding rattle devices from generating intoThe transmission of row audio signal improves audio signal transmission so that target terminal can accurately identify the audio signal of terminal transmissionAccuracy rate.
It further, is the accuracy for improving audio signal transmission, the step S20 includes:
Step S21, when the operating parameter got includes the operating parameter of multiple rattle devices, the terminal is according to pre-If operating parameter and coding group of frequencies between mapping relations, determine the corresponding coding of the operating parameter of each rattle devices frequentlyRate group;
When intersection is single encoded frequency between each coding group of frequencies, the terminal is using the coding frequency as acquisitionCoding frequency corresponding to the operating parameter arrived.
In the present embodiment, terminal can obtain the mapping between the operating parameter of noise terminal and the frequency noise of generationRelationship, and each frequency noise is compared with preset coding frequency, will in preset coding frequency except frequency noise itOuter other coding frequencies, coding group of frequencies corresponding to the operating parameter as rattle devices, generation module are generated and are savedMapping relations between operating parameter and coding group of frequencies.
Step S22, when the coding group of frequencies got has multiple, the terminal obtains to be handed between each coding group of frequenciesCollection;
Step S23, when intersection is single encoded frequency between each coding group of frequencies, the terminal is by the coding frequencyAs coding frequency corresponding to the operating parameter got.
For example, the terminal is air conditioner, corresponding rattle devices operating parameter includes compressor low-frequency operation, compressorHigh frequency operation, the operation of blower low-frequency operation, blower high frequency.And coding group of frequencies corresponding to blower low-frequency operation be (10KHZ,14KHZ), the coding group of frequencies of compressor low-frequency operation is (8KHZ, 10KHZ), then the intersection between two coding group of frequencies is10KHZ, therefore using 10KHZ as coding frequency corresponding to the operating parameter got.
It will be appreciated by persons skilled in the art that also being wrapped after step S22 to improve the accuracy rate of audio signal transmissionIt includes step: when between each coding group of frequencies without intersection, exporting prompt information.The prompt information can for light prompt information and/Or auditory tone cues information and/or text information.When prompt information is light prompt information, exporting the light prompt information can be controlIndicator light switches to preset color, and perhaps control instructions lamp with preset frequency scintillation or lights indicator light etc..
It further, is the accuracy for improving audio signal transmission, after the step S22 further include:
Step S23, when intersection is multiple coding frequencies between each coding group of frequencies, the terminal determines each codingThe priority of frequency;
Step S24, the terminal are corresponding using the coding frequency of highest priority as the operating parameter of the rattle devicesCoding frequency.
For example, the terminal is air conditioner, corresponding rattle devices operating parameter includes compressor low-frequency operation, compressorHigh frequency operation, the operation of blower low-frequency operation, blower high frequency.And coding group of frequencies corresponding to blower low-frequency operation be (10KHZ,12KHZ, 14KHZ, 16KHZ, 18KHZ), the coding group of frequencies of compressor low-frequency operation be (8KHZ, 10KHZ, 14KHZ, 16KHZ,18KHZ), then the intersection between two coding group of frequencies is 10KHZ, 14KHZ, 16KHZ and 18KHZ, if the priority of 14KHZHighest, then using 14KHZ as coding frequency corresponding to the operating parameter got.The priority can by user or producer intoRow setting.
It will be appreciated by persons skilled in the art that improve the accuracy of audio signal transmission, in each coding frequencyWhen intersection is multiple coding frequencies between group, terminal shows the coding Frequency selection interface including the multiple coding frequency, withThe coding Frequency selection interface, which is based on, for user selects corresponding coding frequency;When receiving coding frequency selection instruction,It determines the corresponding coding frequency of coding frequency selection instruction, and joins determining coding frequency as the operation of the rattle devicesThe corresponding coding frequency of number.
Further, it is the accuracy for improving audio signal transmission, referring to Fig. 5, proposes that the present invention is based on terminal operating ringsThe audio signal encoding method second embodiment in border, in the present embodiment, the step S30 replacement are as follows:
Step S40, the terminal obtain other codings frequency in preset coding frequency in addition to determining coding frequencyRate;
Step S50, other coding frequencies that the terminal will acquire use the current volume as present encoding frequencyThe source data is encoded to audio signal by code frequency.
In the present embodiment, preset operating parameter only corresponds to a coding frequency, and the coding frequency and rattle devices produceThe frequency of raw noise is identical, and terminal is using other coding frequencies in preset coding frequency in addition to determining coding frequencyThe source data is encoded to audio signal, so that target terminal makes an uproar the audio signal that terminal is sent with what rattle devices generatedSound is distinguished.For example, rattle devices are compressor, the operating parameter of compressor is low-frequency operation, and is transported in compressor low frequencyThe frequency noise generated when row is 12KHZ, then when operating parameter is compressor low-frequency operation, corresponding coding frequency is12KHZ, if preset coding frequency is 12KHZ and 14KHZ, current coding frequency is 14KHZ, using the coding of 14KHZThe source data is encoded to audio signal by frequency.
In the present embodiment, it after source data is encoded to audio signal using determining coding frequency by terminal, can directly broadcastThe audio signal is put so that by the audio signal transmission to target device, which can also be sent to preset playing deviceIt plays out, by the audio signal transmission to target device.
It further, is the accuracy for improving audio signal transmission, the present invention is based on the audio of terminal operating environment lettersIn number coded system second embodiment, the step S20 includes:
When the operating parameter got includes the operating parameter of multiple rattle devices, the terminal is according to preset operationParameter and coding frequency mapping relations, determine the corresponding coding frequency of the operating parameter of each rattle devices;
When the coding frequency got has multiple, all coding frequencies that the terminal will acquire are used as and getOperating parameter corresponding to coding frequency.
For example, the terminal is air conditioner, corresponding rattle devices operating parameter includes compressor low-frequency operation, compressorHigh frequency operation, the operation of blower low-frequency operation, blower high frequency.And coding frequency corresponding to blower low-frequency operation is (8KHZ), pressureThe coding frequency of contracting machine low-frequency operation is (12KHZ), then by 8KHZ and 12KHZ, as corresponding to the operating parameter gotEncode frequency.
It will be appreciated by persons skilled in the art that improve the accuracy of audio signal transmission, step S50 includes stepIt is rapid: when other coding frequencies in obtaining preset coding frequency in addition to determining coding frequency are multiple, to determine multipleThe priority of other coding frequencies;The source data is encoded to by audio signal using the coding frequency of highest priority.
It further, is the accuracy for improving audio signal transmission, the present invention is based on the audio of terminal operating environment lettersIn number coded system second embodiment, after the step S40, the audio signal encoding method of the terminal running state is also wrappedInclude step:
When the coding frequency got includes all preset coding frequencies, the terminal exports prompt information.
The prompt information can be light prompt information and/or auditory tone cues information and/or text information.It is light in prompt informationWhen prompt information, preset color or control instructions lamp can be switched to for control instructions lamp with pre- by exporting the light prompt informationIf frequency scintillation, or light indicator light etc..
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.