CN105280188B - Audio signal encoding method and system based on terminal operating environment - Google Patents

Audio signal encoding method and system based on terminal operating environment Download PDF

Info

Publication number
CN105280188B
CN105280188B CN201410309846.3A CN201410309846A CN105280188B CN 105280188 B CN105280188 B CN 105280188B CN 201410309846 A CN201410309846 A CN 201410309846A CN 105280188 B CN105280188 B CN 105280188B
Authority
CN
China
Prior art keywords
coding
frequency
terminal
operating parameter
frequencies
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
CN201410309846.3A
Other languages
Chinese (zh)
Other versions
CN105280188A (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.)
Midea Group Co Ltd
Original Assignee
Midea Group 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 Midea Group Co Ltd filed Critical Midea Group Co Ltd
Priority to CN201410309846.3A priority Critical patent/CN105280188B/en
Publication of CN105280188A publication Critical patent/CN105280188A/en
Application granted granted Critical
Publication of CN105280188B publication Critical patent/CN105280188B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The invention discloses a kind of audio signal encoding methods based on terminal operating environment, and when detecting audio-frequency signal coding instruction, terminal obtains source data to be encoded, and obtains the operating parameter of preset rattle devices;The terminal determines the corresponding coding frequency of operating parameter got according to the mapping relations between preset operating parameter and coding frequency;The source data is encoded to audio signal using determining coding frequency by the terminal.The audio-frequency signal coding system based on terminal operating environment that the invention also discloses a kind of.Terminal carries out the transmission of audio signal by the way of the audio for avoiding rattle devices from generating in the present invention, so that target terminal can accurately identify the audio signal of terminal transmission, improves audio signal transmission accuracy rate.

Description

Audio signal encoding method and system based on terminal operating environment
Technical field
The present invention relates to audio transmission fields, more particularly to the audio signal encoding method based on terminal operating environment and are System.
Background technique
With the development of audio communication technology, more and more terminals (such as air conditioner) are using sound come configured transmission and control System 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 with Control 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 transmitted It is audio signal according to preset frequency coding, and based on audio playing apparatus by the audio signal transmission to target terminal, but Since the rattle devices (compressor and blower on such as air conditioner) of terminal itself can generate noise in vibration processes, simultaneously Other rattle devices in the terminal local environment may also generate rattle devices, generate interference to the audio signal of transmission, lead Cause 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 based on terminal operating environment provided by the invention, institute State 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 dress The operating parameter set;
The terminal determines the operation ginseng got according to the mapping relations between preset operating parameter and coding frequency The 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, determination Operating 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 operation Mapping 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 acquisition Coding 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 got Between group the step of intersection after, the terminal according to preset operating parameter and coding frequency between mapping relations, determine The 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 frequency First grade;
The terminal is using the coding frequency of highest priority as the corresponding coding frequency of the operating parameter of the rattle devices Rate.
Preferably, the step of source data is encoded to audio signal using determining coding frequency by terminal replacement Are 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 frequency The source data is encoded to audio signal.
Preferably, the terminal is got according to the mapping relations between preset operating parameter and coding frequency, determination Operating 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 operation Parameter 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 get Operating parameter corresponding to coding frequency.
Preferably, the terminal obtains other coding frequencies in preset coding frequency in addition to determining coding frequency The 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 environment System, 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 obtains Take the operating parameter of rattle devices;
Determining module, for determining and getting according to the mapping relations between preset operating parameter and coding frequency The 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 default Operating parameter and coding group of frequencies between mapping relations, determine the corresponding coding frequency of the operating parameter of each rattle devices Group;
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 made For 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, really The priority of fixed each coding frequency;The processing unit is also used to fill the coding frequency of highest priority as the noise The 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 frequency Rate, and the other coding frequencies that will acquire are as present encoding frequency, and using the present encoding frequency by the source data It 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 default Operating 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 acquire Coding 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 signal When coded command, terminal obtains the operating parameter of source data and preset rattle devices to be encoded, and according to preset fortune Mapping relations between row parameter and coding frequency determine that the corresponding coding frequency of operating parameter got, the terminal are adopted The source data is encoded to audio signal with determining coding frequency, terminal uses the side for the audio for avoiding rattle devices from generating Formula carries out the transmission of audio signal, so that target terminal can accurately identify the audio signal of terminal transmission, improves audio signal Transmit accuracy rate.
Detailed description of the invention
Fig. 1 is the hardware of the preferred embodiment for the terminal that the present invention realizes the audio-frequency signal coding based on terminal operating environment Structural schematic diagram;
Fig. 2 is that the functional module of the first embodiment of the audio-frequency signal coding system based on terminal operating environment in Fig. 1 is shown It is intended to;
Fig. 3 is that the functional module of the second embodiment of the audio-frequency signal coding system based on terminal operating environment in Fig. 1 is shown It is intended to;
Fig. 4 is that the present invention is based on the flow diagrams of the audio signal encoding method first embodiment of terminal operating environment;
Fig. 5 is that the present invention is based on the flow diagrams of the audio signal encoding method second embodiment of terminal operating environment.
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 preferable implementation for the terminal that the present invention realizes the audio-frequency signal coding based on terminal operating environment The 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 environment Signal coding system 14.
The coding unit 13, under the control of processing unit 11, source data to be encoded to be encoded to audio letter Number.
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 one Individual 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 letter When number coded command, source data to be encoded is obtained, and obtain the operating parameter of preset rattle devices, calls storage unit 12 Mapping relations between the preset operating parameter and coding frequency of middle storage, determine the corresponding coding of operating parameter got Frequency, and call coding unit 13 that the source data is encoded to audio signal using the coding frequency got.The processing list Member 11 and storage unit 12 both can be individual unit respectively, also can integrate together, constituted a controller, herein not It 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. 2 Module 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 real The 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 environment 14, 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 should Each 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 invention The 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, with And 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 terminal Audio-frequency signal coding instruction is triggered when audio signal.The preset rattle devices can be the rattle devices of operation in terminal, such as empty Adjust 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 terminal Device 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 signal When 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 uproar Mixer operating parameter can be compressor low-frequency operation and the operation of blower high frequency etc.;It is terminal operating in preset rattle devices When rattle devices in environment, obtaining module 141 can send to rattle devices and run when detecting audio-frequency signal coding instruction Parameter acquisition instruction sends operating parameter to terminal, or make an uproar so that rattle devices are when receiving operating parameter acquisition instruction Mixer in real time or timing to terminal send operating parameter, obtain module 141 can directly acquire terminal it is currently transmitted or The 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 got The 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 frequency Rate, the coding frequency is different from the frequency for the noise that rattle devices generate, the audio signal for sending terminal for target terminal The noise generated with rattle devices is distinguished.For example, rattle devices are compressor, the operating parameter of compressor is low frequency fortune Row, 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 played The audio signal can also be sent to the audio signal transmission to target device preset playing device and carried out by audio signal It 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 coding When instruction, terminal obtains the operating parameter of source data and preset rattle devices to be encoded, and is joined according to preset operation Mapping relations between number and coding frequency determine the corresponding coding frequency of operating parameter got, and the terminal is using true The source data is encoded to audio signal by fixed coding frequency, terminal by the way of the audio for avoiding rattle devices from generating into The transmission of row audio signal improves audio signal transmission so that target terminal can accurately identify the audio signal of terminal transmission Accuracy 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 default Operating parameter and coding group of frequencies between mapping relations, determine the corresponding coding frequency of the operating parameter of each rattle devices Group;
In the present embodiment, obtain module 141 can obtain noise terminal operating parameter and generation frequency noise it Between mapping relations, and each frequency noise is compared with preset coding frequency, by preset coding frequency except making an uproar Other coding frequencies except voice frequency, coding group of frequencies corresponding to the operating parameter as rattle devices, generation module are raw At 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 made For 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, compressor High 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 is 10KHZ, 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 transmission Show module, when between each coding group of frequencies without intersection, exportable prompt information.The prompt information can be 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 Control 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 frequency When intersection is multiple coding frequencies between group, the priority of each coding frequency is determined;The processing unit is also used to will be preferential Operating 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, compressor High 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 14KHZ Highest, then using 14KHZ as coding frequency corresponding to the operating parameter got.The priority can by user or producer into Row setting.
It will be appreciated by persons skilled in the art that improve the accuracy of audio signal transmission, the determining module 142 Further include interface push unit, user between each coding group of frequencies intersection be multiple coding frequencies when, display include described in The coding Frequency selection interface of multiple coding frequencies selects corresponding coding so that user is based on the coding Frequency selection interface Frequency, when receiving coding frequency selection instruction, processing unit determines the corresponding coding frequency of coding frequency selection instruction, and Using 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 rings The 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 frequency Code frequency, and the other coding frequencies that will acquire are as present encoding frequency, and using the present encoding frequency by the source Data encoding is audio signal.
In the present embodiment, preset operating parameter only corresponds to a coding frequency, and the coding frequency and rattle devices produce The frequency of raw noise is identical, and the second coding module is using other in addition to determining coding frequency in preset coding frequency It encodes frequency and the source data is encoded to audio signal, the audio signal and rattle devices for sending terminal for target terminal The noise of generation is distinguished.For example, rattle devices are compressor, the operating parameter of compressor is low-frequency operation, and is being compressed The frequency noise generated when machine low-frequency operation is 12KHZ, then when operating parameter is compressor low-frequency operation, corresponding coding frequency Rate is 12KHZ, if preset coding frequency is 12KHZ and 14KHZ, current coding frequency is 14KHZ, using 14KHZ's It 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 played The audio signal can also be sent to the audio signal transmission to target device preset playing device and carried out by audio signal It 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 letters In 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 default Operating 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 acquire 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, compressor High frequency operation, the operation of blower low-frequency operation, blower high frequency.And coding frequency corresponding to blower low-frequency operation is (8KHZ), pressure The coding frequency of contracting machine low-frequency operation is (12KHZ), then by 8KHZ and 12KHZ, as corresponding to the operating parameter got Encode frequency.
It will be appreciated by persons skilled in the art that improve the accuracy of audio signal transmission, the second coding module 144 It 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 more The 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 letters In 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 information When prompt information, preset color or control instructions lamp can be switched to for control instructions lamp with pre- by exporting the light prompt information If 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. 4 Schematic 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 default Rattle devices operating parameter;
In the present embodiment, phonetic control command or terminal is sent to target terminal in terminal to send to target terminal Audio-frequency signal coding instruction is triggered when audio signal.The preset rattle devices can be the rattle devices of operation in terminal, such as empty Adjust 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 terminal Device 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 instruction When, 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 acquisition Operating parameter can be compressor low-frequency operation and the operation of blower high frequency etc.;It is in terminal operating environment in preset rattle devices Rattle 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 or Timing sends operating parameter to terminal, and it is currently transmitted or send within a preset time interval that terminal can directly acquire terminal Operating parameter.
Step S20, the terminal are got according to the mapping relations between preset operating parameter and coding frequency, determination The 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 frequency Rate, the coding frequency is different from the frequency for the noise that rattle devices generate, the audio signal for sending terminal for target terminal The noise generated with rattle devices is distinguished.For example, rattle devices are compressor, the operating parameter of compressor is low frequency fortune Row, 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 played The audio signal can also be sent to the audio signal transmission to target device preset playing device and carried out by audio signal It 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 coding When instruction, terminal obtains the operating parameter of source data and preset rattle devices to be encoded, and is joined according to preset operation Mapping relations between number and coding frequency determine the corresponding coding frequency of operating parameter got, and the terminal is using true The source data is encoded to audio signal by fixed coding frequency, terminal by the way of the audio for avoiding rattle devices from generating into The transmission of row audio signal improves audio signal transmission so that target terminal can accurately identify the audio signal of terminal transmission Accuracy 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 frequently Rate group;
When intersection is single encoded frequency between each coding group of frequencies, the terminal is using the coding frequency as acquisition Coding 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 generation Relationship, and each frequency noise is compared with preset coding frequency, will in preset coding frequency except frequency noise it Outer other coding frequencies, coding group of frequencies corresponding to the operating parameter as rattle devices, generation module are generated and are saved Mapping 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 frequencies Collection;
Step S23, when intersection is single encoded frequency between each coding group of frequencies, the terminal is by the coding frequency As 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, compressor High 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 is 10KHZ, 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 transmission It 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 control Indicator 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 coding The priority of frequency;
Step S24, the terminal are corresponding using the coding frequency of highest priority as the operating parameter of the rattle devices Coding frequency.
For example, the terminal is air conditioner, corresponding rattle devices operating parameter includes compressor low-frequency operation, compressor High 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 14KHZ Highest, then using 14KHZ as coding frequency corresponding to the operating parameter got.The priority can by user or producer into Row setting.
It will be appreciated by persons skilled in the art that improve the accuracy of audio signal transmission, in each coding frequency When intersection is multiple coding frequencies between group, terminal shows the coding Frequency selection interface including the multiple coding frequency, with The 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 devices The 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 rings The 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 frequency Rate;
Step S50, other coding frequencies that the terminal will acquire use the current volume as present encoding frequency The 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 produce The frequency of raw noise is identical, and terminal is using other coding frequencies in preset coding frequency in addition to determining coding frequency The 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 generated Sound is distinguished.For example, rattle devices are compressor, the operating parameter of compressor is low-frequency operation, and is transported in compressor low frequency The frequency noise generated when row is 12KHZ, then when operating parameter is compressor low-frequency operation, corresponding coding frequency is 12KHZ, if preset coding frequency is 12KHZ and 14KHZ, current coding frequency is 14KHZ, using the coding of 14KHZ The 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 broadcast The audio signal is put so that by the audio signal transmission to target device, which can also be sent to preset playing device It 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 letters In 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 operation Parameter 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 get Operating parameter corresponding to coding frequency.
For example, the terminal is air conditioner, corresponding rattle devices operating parameter includes compressor low-frequency operation, compressor High frequency operation, the operation of blower low-frequency operation, blower high frequency.And coding frequency corresponding to blower low-frequency operation is (8KHZ), pressure The coding frequency of contracting machine low-frequency operation is (12KHZ), then by 8KHZ and 12KHZ, as corresponding to the operating parameter got Encode frequency.
It will be appreciated by persons skilled in the art that improve the accuracy of audio signal transmission, step S50 includes step It is rapid: when other coding frequencies in obtaining preset coding frequency in addition to determining coding frequency are multiple, to determine multiple The 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 letters In number coded system second embodiment, after the step S40, the audio signal encoding method of the terminal running state is also wrapped Include 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 information When prompt information, preset color or control instructions lamp can be switched to for control instructions lamp with pre- by exporting the light prompt information If 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-row His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There 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 side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes Business 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 hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (12)

1. a kind of audio signal encoding method based on terminal operating environment, which is characterized in that described to be based on terminal operating environment Audio signal encoding method the following steps are included:
When detecting audio-frequency signal coding instruction, terminal obtains source data to be encoded, and obtains preset rattle devices Operating parameter;
The terminal determines the operating parameter pair got according to the mapping relations between preset operating parameter and coding frequency The coding frequency answered;
The source data is encoded to audio signal using determining coding frequency by the terminal, and the preset rattle devices are set It is placed in the inside of the terminal, or is set in the running environment of the terminal, the operating parameter includes compressor low frequency Operation, the operation of compressor high frequency, blower low-frequency operation and the operation of blower high frequency.
2. as described in claim 1 based on the audio signal encoding method of terminal operating environment, which is characterized in that the terminal According to the mapping relations between preset operating parameter and coding frequency, the corresponding coding frequency of operating parameter got is determined The step of include:
When the operating parameter got includes the operating parameter of multiple rattle devices, the terminal is according to preset operating parameter Mapping relations between 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 getting Coding frequency corresponding to operating parameter.
3. as claimed in claim 2 based on the audio signal encoding method of terminal operating environment, which is characterized in that described to obtain When the coding group of frequencies got has multiple, between each coding group of frequencies that the terminal is got the step of intersection after, institute Terminal is stated according to the mapping relations between preset operating parameter and coding frequency, determines the corresponding volume of operating parameter got The step of code frequency further include:
When intersection is multiple coding frequencies between each coding group of frequencies, the terminal determines the preferential of each coding frequency Grade;
The terminal is using the coding frequency of highest priority as the corresponding coding frequency of the operating parameter of the rattle devices.
4. as described in claim 1 based on the audio signal encoding method of terminal operating environment, which is characterized in that the terminal The step of source data is encoded to by audio signal using determining coding frequency replacement are 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 described as present encoding frequency Source data is encoded to audio signal.
5. as claimed in claim 4 based on the audio signal encoding method of terminal operating environment, which is characterized in that the terminal According to the mapping relations between preset operating parameter and coding frequency, the corresponding coding frequency of operating parameter got is determined The step of include:
When the operating parameter got includes the operating parameter of multiple rattle devices, the terminal is according to preset operating parameter With coding frequency mapping relations, the corresponding coding frequency of the operating parameter of each rattle devices is determined;
When the coding frequency got has multiple, all coding frequencies that the terminal will acquire are as the fortune got Coding frequency corresponding to row parameter.
6. as described in claim 4 or 5 based on the audio signal encoding method of terminal operating environment, which is characterized in that described It is described to be based on after terminal obtains the step of other coding frequencies in preset coding frequency in addition to determining coding frequency The audio signal encoding method of terminal operating environment further include:
When the coding frequency got includes all preset coding frequencies, the terminal exports prompt information.
7. a kind of audio-frequency signal coding system based on terminal operating environment, which is characterized in that described to be based on terminal operating environment Audio-frequency signal coding system include:
Module is obtained, for when detecting audio-frequency signal coding instruction, terminal to obtain source data to be encoded, and obtains and make an uproar The operating parameter of mixer;
Determining module, for determining the operation got according to the mapping relations between preset operating parameter and coding frequency The corresponding coding frequency of parameter;
First coding module, it is described preset for the source data to be encoded to audio signal using determining coding frequency Rattle devices are set to the inside of the terminal, or are set in the running environment of the terminal, and the operating parameter includes Compressor low-frequency operation, the operation of compressor high frequency, blower low-frequency operation and the operation of blower high frequency.
8. the audio-frequency signal coding system based on terminal operating environment as claimed in claim 7, which is characterized in that the determination Module includes:
Determination unit, when for including the operating parameter of multiple rattle devices in the operating parameter got, according to preset fortune Mapping relations between row parameter and coding group of frequencies, determine the corresponding coding group of frequencies of the operating parameter of each rattle devices;
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, using the coding frequency as obtaining Coding frequency corresponding to the operating parameter got.
9. the audio-frequency signal coding system based on terminal operating environment as claimed in claim 8, which is characterized in that the determination Unit is also used between each coding group of frequencies intersection when being multiple coding frequencies, determines each priority for encoding frequency; The processing unit is also used to using the coding frequency of highest priority as the corresponding coding of the operating parameter of the rattle devices Frequency.
10. the audio-frequency signal coding system based on terminal operating environment as claimed in claim 7, which is characterized in that described The replacement of one coding module are as follows:
Second coding module, for obtaining other coding frequencies in preset coding frequency in addition to determining coding frequency, And the other coding frequencies that will acquire are encoded the source data as present encoding frequency, and using the present encoding frequency For audio signal.
11. the audio-frequency signal coding system based on terminal operating environment as claimed in claim 10, which is characterized in that described true Cover half block includes:
Determination unit, when for including the operating parameter of multiple rattle devices in the operating parameter got, according to preset fortune Row 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 frequencies that will acquire are as acquisition Coding frequency corresponding to the operating parameter arrived.
12. the audio-frequency signal coding system as described in claim 10 or 11 based on terminal operating environment, which is characterized in that institute State 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.
CN201410309846.3A 2014-06-30 2014-06-30 Audio signal encoding method and system based on terminal operating environment Active CN105280188B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410309846.3A CN105280188B (en) 2014-06-30 2014-06-30 Audio signal encoding method and system based on terminal operating environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410309846.3A CN105280188B (en) 2014-06-30 2014-06-30 Audio signal encoding method and system based on terminal operating environment

Publications (2)

Publication Number Publication Date
CN105280188A CN105280188A (en) 2016-01-27
CN105280188B true CN105280188B (en) 2019-06-28

Family

ID=55149079

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410309846.3A Active CN105280188B (en) 2014-06-30 2014-06-30 Audio signal encoding method and system based on terminal operating environment

Country Status (1)

Country Link
CN (1) CN105280188B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109002275B (en) * 2018-07-03 2021-12-07 百度在线网络技术(北京)有限公司 AR background audio processing method and device, AR equipment and readable storage medium
CN109102816B (en) * 2018-08-14 2020-12-29 Oppo广东移动通信有限公司 Encoding control method and device and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1922660A (en) * 2004-02-24 2007-02-28 松下电器产业株式会社 Communication device, signal encoding/decoding method
CN103617797A (en) * 2013-12-09 2014-03-05 腾讯科技(深圳)有限公司 Voice processing method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103198834B (en) * 2012-01-04 2016-12-14 中国移动通信集团公司 A kind of acoustic signal processing method, device and terminal
KR20140046098A (en) * 2012-10-09 2014-04-18 엘지전자 주식회사 An air conditioner and a control method the same
JP6160072B2 (en) * 2012-12-06 2017-07-12 富士通株式会社 Audio signal encoding apparatus and method, audio signal transmission system and method, and audio signal decoding apparatus
CN103763433B (en) * 2013-12-31 2016-08-24 宇龙计算机通信科技(深圳)有限公司 The progress control method of terminal applies and system
CN103888708A (en) * 2014-03-26 2014-06-25 广东中核高通信息科技股份有限公司 Remote audio and video data transmission method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1922660A (en) * 2004-02-24 2007-02-28 松下电器产业株式会社 Communication device, signal encoding/decoding method
CN103617797A (en) * 2013-12-09 2014-03-05 腾讯科技(深圳)有限公司 Voice processing method and device

Also Published As

Publication number Publication date
CN105280188A (en) 2016-01-27

Similar Documents

Publication Publication Date Title
CN112863547B (en) Virtual resource transfer processing method, device, storage medium and computer equipment
CN105357604B (en) Audio playing device with Bluetooth function and audio playing method
CN104978964B (en) Phonetic control command error correction method and system
CN109473095B (en) Intelligent household control system and control method
CN109378006B (en) Cross-device voiceprint recognition method and system
CN104978957A (en) Voice control method and system based on voiceprint identification
US20090034750A1 (en) System and method to evaluate an audio configuration
CN103903606B (en) Noise control method and equipment
CN112165648B (en) Audio playing method, related device, equipment and storage medium
CN107509153A (en) Detection method, device, storage medium and the terminal of Audio Players part
CN108886653A (en) A kind of earphone sound channel control method, relevant device and system
CN103366744B (en) Based on the method and apparatus of Voice command portable terminal
CN105405441B (en) A kind of feedback method and device of voice messaging
CN101345055A (en) Speech processor and communication terminal device
US20190333514A1 (en) Method and apparatus for dialoguing based on a mood of a user
CN110097895B (en) Pure music detection method, pure music detection device and storage medium
CN110097868A (en) Play the methods, devices and systems of music
CN104092809A (en) Communication sound recording method and recorded communication sound playing method and device
CN105280188B (en) Audio signal encoding method and system based on terminal operating environment
US9779731B1 (en) Echo cancellation based on shared reference signals
CN104049869A (en) Data processing method and data processing device
US8494206B2 (en) Electronic device and method thereof
CN103677582A (en) Method for controlling electronic device, and electronic device
CN105374363B (en) Audio signal encoding method and system
CN105225661B (en) Sound control method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant