CN105280188A - 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
CN105280188A
CN105280188A CN201410309846.3A CN201410309846A CN105280188A CN 105280188 A CN105280188 A CN 105280188A CN 201410309846 A CN201410309846 A CN 201410309846A CN 105280188 A CN105280188 A CN 105280188A
Authority
CN
China
Prior art keywords
coding
frequency
operational factor
terminal
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.)
Granted
Application number
CN201410309846.3A
Other languages
Chinese (zh)
Other versions
CN105280188B (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 an audio signal encoding method based on terminal operating environments, which comprises the steps that: a terminal obtains source data to be encoded when detecting an audio signal encoding command, and obtains a preset operating parameter of a noise device; the terminal determines encoding frequency corresponding to the obtained operating parameter according to a mapping relation between the preset operating parameter and the encoding frequency; and the terminal encodes the source data into an audio signal by adopting the determined encoding frequency. The invention further discloses an audio signal encoding system based on terminal operating environments. According to the audio signal encoding method and the audio signal encoding system, the terminal transmits the audio signal by adopting a method of avoiding audio frequency generated by the noise device, so that a target terminal can identify the audio signal transmitted by the terminal accurately, and the audio signal transmission accuracy is improved.

Description

Based on audio signal encoding method and the system of terminal operating environment
Technical field
The present invention relates to audio transmission field, particularly relate to the audio signal encoding method based on terminal operating environment and system.
Background technology
Along with the development of audio communication technology, increasing terminal (as air conditioner) adopts sound to come transformation parameter and steering order, other terminal picks up this parameter and steering order based on its sound pickup device, and correspondingly operate, as adjusted its operational factor based on the parameter of picking up and steering order.
But in prior art, when source data to be passed is encoded to sound signal, often by source data waiting for transmission according to preset frequency coding be sound signal, and based on audio playing apparatus by this audio signal transmission to target terminal, but because the rattle devices (as the compressor on air conditioner and blower fan) of terminal itself can produce noise in vibration processes, other rattle devices simultaneously in environment residing for this terminal also may produce rattle devices, interference is produced to the sound signal of transmission, causes audio signal transmission accuracy rate lower.
Summary of the invention
Fundamental purpose of the present invention is to solve the lower technical matters of audio signal transmission accuracy rate.
For achieving the above object, a kind of audio signal encoding method based on terminal operating environment provided by the invention, the described audio signal encoding method based on terminal operating environment comprises the following steps:
When detecting audio-frequency signal coding instruction, terminal obtains source data to be encoded, and obtains the operational factor of the rattle devices preset;
Described terminal, according to the mapping relations between the operational factor preset and coding frequency, determines the coding frequency that the operational factor that gets is corresponding;
Described terminal adopts the coding frequency determined that described source data is encoded to sound signal.
Preferably, described terminal, according to the mapping relations between the operational factor preset and coding frequency, determines that the step of the coding frequency that the operational factor that gets is corresponding comprises:
When the operational factor got comprises the operational factor of multiple rattle devices, described terminal, according to the mapping relations between the operational factor preset and coding group of frequencies, determines the coding group of frequencies that the operational factor of each rattle devices is corresponding;
When the coding group of frequencies got has multiple, described terminal obtains between each coding group of frequencies occurs simultaneously;
Each coding group of frequencies between occur simultaneously for single encoded frequency time, described terminal using this coding frequency as the coding frequency corresponding to the operational factor got.
Preferably, when the described coding group of frequencies getting has multiple, after the step of occuring simultaneously between each coding group of frequencies that described terminal gets, described terminal, according to the mapping relations between the operational factor preset and coding frequency, determines that the step of the coding frequency that the operational factor that gets is corresponding also comprises:
When occuring simultaneously for multiple coding frequency between each coding group of frequencies, described terminal determines the priority of each coding frequency;
Described terminal using coding frequency the highest for priority as coding frequency corresponding to the operational factor of described rattle devices.
Preferably, described terminal adopts the coding frequency determined the step that described source data is encoded to sound signal to be replaced with:
Described terminal obtains other coding frequency in the coding frequency preset except the coding frequency determined;
Other acquisition is encoded frequency as present encoding frequency by described terminal, and adopts described present encoding frequency that described source data is encoded to sound signal.
Preferably, described terminal, according to the mapping relations between the operational factor preset and coding frequency, determines that the step of the coding frequency that the operational factor that gets is corresponding comprises:
When the operational factor got comprises the operational factor of multiple rattle devices, described terminal, according to the operational factor preset and coding frequency mapping relations, determines the coding frequency that the operational factor of each rattle devices is corresponding;
When the coding frequency got has multiple, described terminal using all coding frequencies of getting all as the coding frequency corresponding to the operational factor got.
Preferably, after described terminal obtains the step of other coding frequency in the coding frequency preset except the coding frequency determined, the described audio signal encoding method based on terminal running state also comprises:
When the coding frequency got comprises all default coding frequencies, described terminal exports information.
In addition, for achieving the above object, the present invention also proposes a kind of audio-frequency signal coding system based on terminal operating environment, and the described audio-frequency signal coding system based on terminal operating environment comprises:
Acquisition module, for when detecting audio-frequency signal coding instruction, terminal obtains source data to be encoded, and obtains the operational factor of rattle devices;
Determination module, for according to the mapping relations between the operational factor preset and coding frequency, determines the coding frequency that the operational factor that gets is corresponding;
First coding module, is encoded to sound signal for adopting the coding frequency determined by described source data.
Preferably, described determination module comprises:
Determining unit, during for comprising the operational factor of multiple rattle devices in the operational factor got, according to the mapping relations between the operational factor preset and coding group of frequencies, determines the coding group of frequencies that the operational factor of each rattle devices is corresponding;
Acquiring unit, during for having multiple in the coding group of frequencies got, obtaining between each coding group of frequencies and occuring simultaneously;
Processing unit, during for occuring simultaneously for single encoded frequency between each coding group of frequencies, using this coding frequency as the coding frequency corresponding to the operational factor got.
Preferably, when described determining unit also for occuring simultaneously for multiple coding frequency between each coding group of frequencies, the priority of each coding frequency is determined; Described processing unit also for using coding frequency the highest for priority as coding frequency corresponding to the operational factor of described rattle devices.
Preferably, described first coding module replaces with:
Second coding module, for obtaining other coding frequency in default coding frequency except the coding frequency determined, and other acquisition is encoded frequency as present encoding frequency, and adopt described present encoding frequency that described source data is encoded to sound signal.
Preferably, described determination module comprises:
Determining unit, during for comprising the operational factor of multiple rattle devices in the operational factor got, according to the operational factor preset and coding frequency mapping relations, determines the coding frequency that the operational factor of each rattle devices is corresponding;
Processing unit, during for having multiple in the coding frequency got, using all coding frequencies of getting all as the coding frequency corresponding to the operational factor got.
Preferably, the described audio-frequency signal coding system based on terminal running state also comprises:
Reminding module, during for comprising all default coding frequencies in the coding frequency got, exports information.
The audio signal encoding method based on terminal operating environment that the present invention proposes and system, when detecting audio-frequency signal coding instruction, terminal obtains source data to be encoded, and the operational factor of the rattle devices preset, and according to the mapping relations between the operational factor preset and coding frequency, determine the coding frequency that the operational factor that gets is corresponding, described terminal adopts the coding frequency determined that described source data is encoded to sound signal, terminal adopts the mode of the audio frequency avoiding rattle devices to produce to carry out the transmission of sound signal, make target terminal accurately can identify the sound signal that this terminal sends, improve audio signal transmission accuracy rate.
Accompanying drawing explanation
Fig. 1 is the hardware configuration schematic diagram that the present invention realizes the preferred embodiment of the terminal of the audio-frequency signal coding based on terminal operating environment;
Fig. 2 is the high-level schematic functional block diagram based on the first embodiment of the audio-frequency signal coding system of terminal operating environment in Fig. 1;
Fig. 3 is the high-level schematic functional block diagram based on the second embodiment of the audio-frequency signal coding system of terminal operating environment in Fig. 1;
Fig. 4 is the schematic flow sheet of audio signal encoding method first embodiment that the present invention is based on terminal operating environment;
Fig. 5 is the schematic flow sheet of audio signal encoding method second embodiment that the present invention is based on terminal operating environment.
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, are described further with reference to accompanying drawing.
Embodiment
Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Reference Fig. 1, Fig. 1 are the hardware configuration schematic diagram that the present invention realizes the preferred embodiment of the terminal of the audio-frequency signal coding based on terminal operating environment.
This terminal 1 comprises processing unit 11, storage unit 12, coding unit 13 and the audio-frequency signal coding system 14 based on terminal operating environment.
Described coding unit 13, under the control of processing unit 11, is encoded to sound signal by source data to be encoded.
Storage unit 12, for storing audio-frequency signal coding system 14 based on terminal operating environment and service data thereof, the mapping relations between default operational factor and coding frequency.It is emphasized that this storage unit 12 both can be an independent memory storage, also can be the general designation of multiple different memory storage, therefore not to repeat here.
This processing unit 11, for calling and performing air conditioner operational factor adjustment System 14, and when detecting audio-frequency signal coding instruction, obtain source data to be encoded, and obtain the operational factor of the rattle devices preset, call the mapping relations between the operational factor preset and coding frequency stored in storage unit 12, determine the coding frequency that the operational factor that gets is corresponding, and call coding unit 13 and adopt the coding frequency got that described source data is encoded to sound signal.This processing unit 11 can be both independent unit with storage unit 12 respectively, and also can integrate, form a controller, therefore not to repeat here.
With reference to the high-level schematic functional block diagram that Fig. 2, Fig. 2 are based on audio-frequency signal coding system first embodiment of terminal operating environment in Fig. 1.
It is emphasized that, to one skilled in the art, functional block diagram shown in Fig. 2 is only the exemplary plot of a preferred embodiment, and those skilled in the art, around the audio-frequency signal coding system 14 based on terminal operating environment shown in Fig. 2, can carry out supplementing of new functional module easily; The title of each functional module is self-defined title, only for auxiliary each program function block understanding this audio-frequency signal coding system 14 based on terminal operating environment, be not used in and limit technical scheme of the present invention, the core of technical solution of the present invention is, the function that the functional module of respective define name will be reached.
The audio-frequency signal coding system 14 based on terminal operating environment that the present embodiment proposes, comprising:
Acquisition module 141, for when detecting audio-frequency signal coding instruction, terminal obtains source data to be encoded, and obtains the operational factor of the rattle devices preset;
In the present embodiment, send phonetic control command in terminal to target terminal, or trigger audio Signal coding instruction when terminal sends sound signal to target terminal.This rattle devices preset can be the rattle devices run in terminal, as the compressor in air conditioner and blower fan etc. can produce the device of noise because of vibrations, also can be produce noise in the running environment of terminal device as motor etc.This source data can be lteral data and also can be voice data.
When the rattle devices preset is the rattle devices in terminal, acquisition module 141 can when detecting audio-frequency signal coding instruction, the operational factor that its interior rattle devices run of direct acquisition is current, such as, when terminal is air conditioner, the rattle devices operational factor of acquisition can be compressor low-frequency operation and the operation of blower fan high frequency etc.; When the rattle devices preset is the rattle devices in terminal operating environment, acquisition module 141 can when detecting audio-frequency signal coding instruction, send operational factor to rattle devices and obtain instruction, for rattle devices when receiving operational factor and obtaining instruction, operational factor is sent to terminal, or rattle devices sends operational factor to terminal in real time or regularly, operational factor that is that acquisition module 141 directly can obtain the current transmission of terminal or that send within a preset time interval.
Determination module 142, for according to the mapping relations between the operational factor preset and coding frequency, determines the coding frequency that the operational factor that gets is corresponding;
In the present embodiment, the operational factor preset may correspond to multiple coding frequency, also can an only corresponding coding frequency, this coding frequency is different from the frequency of the noise that rattle devices produces, and the noise that sound signal terminal sent for target terminal and rattle devices produce is distinguished and come.Such as, rattle devices is compressor, and the operational factor of compressor is low-frequency operation, and the frequency noise produced when compressor low-frequency operation is 12KHZ, then, when operational factor is compressor low-frequency operation, corresponding coding frequency is 14KHZ.
First coding module 143, is encoded to sound signal for adopting the coding frequency determined by described source data.
In the present embodiment, after adopting the coding frequency determined that source data is encoded to sound signal, can play-over this sound signal with by this audio signal transmission to target device, also this sound signal can be sent to default playing device play, with by this audio signal transmission to target device.
The audio-frequency signal coding system based on terminal operating environment that the present embodiment proposes, when detecting audio-frequency signal coding instruction, terminal obtains source data to be encoded, and the operational factor of the rattle devices preset, and according to the mapping relations between the operational factor preset and coding frequency, determine the coding frequency that the operational factor that gets is corresponding, described terminal adopts the coding frequency determined that described source data is encoded to sound signal, terminal adopts the mode of the audio frequency avoiding rattle devices to produce to carry out the transmission of sound signal, make target terminal accurately can identify the sound signal that this terminal sends, improve audio signal transmission accuracy rate.
Further, for improving the accuracy of audio signal transmission, described determination module 142 comprises:
Determining unit, during for comprising the operational factor of multiple rattle devices in the operational factor got, according to the mapping relations between the operational factor preset and coding group of frequencies, determines the coding group of frequencies that the operational factor of each rattle devices is corresponding;
In the present embodiment, acquisition module 142 can obtain the mapping relations between the operational factor of noise terminal and the frequency noise of generation, and each frequency noise and the coding frequency preset are compared, by other coding frequency in default coding frequency except frequency noise, as rattle devices operational factor corresponding to coding group of frequencies, generation module generate and preserve operational factor and coding group of frequencies between mapping relations.
Acquiring unit, during for having multiple in the coding group of frequencies got, obtaining between each coding group of frequencies and occuring simultaneously;
Processing unit, during for occuring simultaneously for single encoded frequency between each coding group of frequencies, using this coding frequency as the coding frequency corresponding to the operational factor got.
Such as, this terminal is air conditioner, and the rattle devices operational factor of its correspondence comprises compressor low-frequency operation, the operation of compressor high frequency, the operation of blower fan low-frequency operation, blower fan high frequency.And the coding group of frequencies corresponding to blower fan low-frequency operation is (10KHZ, 14KHZ), the coding group of frequencies of compressor low-frequency operation is (8KHZ, 10KHZ), common factor then between two coding group of frequencies is 10KHZ, therefore using 10KHZ as the coding frequency corresponding to the operational factor got.
It will be appreciated by persons skilled in the art that the accuracy rate for improving audio signal transmission, this system also comprises reminding module, for when between each coding group of frequencies, nothing is occured simultaneously, and exportable information.This information can be light information and/or auditory tone cues information and/or Word message.When information is light information, exports this light information and can be and control pilot lamp and switch to default color, or control pilot lamp with the frequency scintillation preset, or light pilot lamp etc.
Further, for improving the accuracy of audio signal transmission, when described determining unit also for occuring simultaneously for multiple coding frequency between each coding group of frequencies, determine the priority of each coding frequency; Described processing unit also for using coding frequency the highest for priority as coding frequency corresponding to the operational factor of described rattle devices.
Such as, this terminal is air conditioner, and the rattle devices operational factor of its correspondence comprises compressor low-frequency operation, the operation of compressor high frequency, the operation of blower fan low-frequency operation, blower fan high frequency.And the coding group of frequencies corresponding to blower fan low-frequency operation is (10KHZ, 12KHZ, 14KHZ, 16KHZ, 18KHZ), the coding group of frequencies of compressor low-frequency operation is (8KHZ, 10KHZ, 14KHZ, 16KHZ, 18KHZ), then the common factor between two coding group of frequencies is 10KHZ, 14KHZ, 16KHZ and 18KHZ, if the priority of 14KHZ is the highest, then using 14KHZ as the coding frequency corresponding to the operational factor got.This priority can be set by user or producer.
It will be understood by those skilled in the art that, for improving the accuracy of audio signal transmission, described determination module 142 also comprises, interface push unit, when user occurs simultaneously for multiple coding frequency between each coding group of frequencies, display comprises the coding Frequency selection interface of described multiple coding frequency, corresponding coding frequency is selected based on described coding Frequency selection interface for user, when receiving coding frequency selection instruction, processing unit determines the coding frequency that coding frequency selection instruction is corresponding, and using the coding frequency determined as coding frequency corresponding to the operational factor of described rattle devices.
Further, for improving the accuracy of audio signal transmission, with reference to Fig. 3, propose audio-frequency signal coding system second embodiment that the present invention is based on terminal operating environment, in the present embodiment, described first coding module 143 replaces with:
Second coding module 144, for obtaining other coding frequency in default coding frequency except the coding frequency determined, and other acquisition is encoded frequency as present encoding frequency, and adopt described present encoding frequency that described source data is encoded to sound signal.
In the present embodiment, the operational factor preset is a corresponding coding frequency only, this coding frequency is identical with the frequency of the noise that rattle devices produces, second coding module adopts other coding frequency in the coding frequency preset except the coding frequency determined that described source data is encoded to sound signal, and the noise that sound signal terminal sent for target terminal and rattle devices produce is distinguished and come.Such as, rattle devices is compressor, the operational factor of compressor is low-frequency operation, and the frequency noise produced when compressor low-frequency operation is 12KHZ, then when operational factor is compressor low-frequency operation, corresponding coding frequency is 12KHZ, if the coding frequency preset is 12KHZ and 14KHZ, then current coding frequency is 14KHZ, adopts the coding frequency of 14KHZ that described source data is encoded to sound signal.
In the present embodiment, after adopting the coding frequency determined that source data is encoded to sound signal, can play-over this sound signal with by this audio signal transmission to target device, also this sound signal can be sent to default playing device play, with by this audio signal transmission to target device.
Further, for improving the accuracy of audio signal transmission, in audio-frequency signal coding system second embodiment that the present invention is based on terminal operating environment, described determination module 142 comprises:
Determining unit, during for comprising the operational factor of multiple rattle devices in the operational factor got, according to the operational factor preset and coding frequency mapping relations, determines the coding frequency that the operational factor of each rattle devices is corresponding;
Processing unit, during for having multiple in the coding frequency got, using all coding frequencies of getting all as the coding frequency corresponding to the operational factor got.
Such as, this terminal is air conditioner, and the rattle devices operational factor of its correspondence comprises compressor low-frequency operation, the operation of compressor high frequency, the operation of blower fan low-frequency operation, blower fan high frequency.And the coding frequency corresponding to blower fan low-frequency operation is (8KHZ), the coding frequency of compressor low-frequency operation is (12KHZ), then by 8KHZ and 12KHZ, as the coding frequency corresponding to the operational factor got.
It will be understood by those skilled in the art that, for improving the accuracy of audio signal transmission, when second coding module 143 is also multiple for other coding frequency in the coding frequency that acquisition is default except the coding frequency determined, determine the priority of other coding frequency multiple, adopt the highest coding frequency of priority that described source data is encoded to sound signal.
Further, for improving the accuracy of audio signal transmission, in audio-frequency signal coding system second embodiment that the present invention is based on terminal operating environment, the audio-frequency signal coding system of described terminal running state also comprises:
Reminding module, during for comprising all default coding frequencies in the coding frequency got, exports information.
This information can be light information and/or auditory tone cues information and/or Word message.When information is light information, exports this light information and can be and control pilot lamp and switch to default color, or control pilot lamp with the frequency scintillation preset, or light pilot lamp etc.
The present invention further provides a kind of audio signal encoding method based on terminal operating environment.
With reference to the schematic flow sheet that Fig. 4, Fig. 4 are audio signal encoding method first embodiment that the present invention is based on terminal operating environment.
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 the operational factor of the rattle devices preset;
In the present embodiment, send phonetic control command in terminal to target terminal, or trigger audio Signal coding instruction when terminal sends sound signal to target terminal.This rattle devices preset can be the rattle devices run in terminal, as the compressor in air conditioner and blower fan etc. can produce the device of noise because of vibrations, also can be produce noise in the running environment of terminal device as motor etc.This source data can be lteral data and also can be voice data.
When the rattle devices preset is the rattle devices in terminal, terminal can when detecting audio-frequency signal coding instruction, the operational factor that its interior rattle devices run of direct acquisition is current, such as, when terminal is air conditioner, the rattle devices operational factor of acquisition can be compressor low-frequency operation and the operation of blower fan high frequency etc.; When the rattle devices preset is the rattle devices in terminal operating environment, terminal can when detecting audio-frequency signal coding instruction, send operational factor to rattle devices and obtain instruction, for rattle devices when receiving operational factor and obtaining instruction, operational factor is sent to terminal, or rattle devices sends operational factor to terminal in real time or regularly, operational factor that is that terminal directly can obtain the current transmission of terminal or that send within a preset time interval.
Step S20, described terminal, according to the mapping relations between the operational factor preset and coding frequency, determines the coding frequency that the operational factor that gets is corresponding;
In the present embodiment, the operational factor preset may correspond to multiple coding frequency, also can an only corresponding coding frequency, this coding frequency is different from the frequency of the noise that rattle devices produces, and the noise that sound signal terminal sent for target terminal and rattle devices produce is distinguished and come.Such as, rattle devices is compressor, and the operational factor of compressor is low-frequency operation, and the frequency noise produced when compressor low-frequency operation is 12KHZ, then, when operational factor is compressor low-frequency operation, corresponding coding frequency is 14KHZ.
Step S30, described terminal adopts the coding frequency determined that described source data is encoded to sound signal.
In the present embodiment, after adopting the coding frequency determined that source data is encoded to sound signal, can play-over this sound signal with by this audio signal transmission to target device, also this sound signal can be sent to default playing device play, with by this audio signal transmission to target device.
The audio signal encoding method based on terminal operating environment that the present embodiment proposes, when detecting audio-frequency signal coding instruction, terminal obtains source data to be encoded, and the operational factor of the rattle devices preset, and according to the mapping relations between the operational factor preset and coding frequency, determine the coding frequency that the operational factor that gets is corresponding, described terminal adopts the coding frequency determined that described source data is encoded to sound signal, terminal adopts the mode of the audio frequency avoiding rattle devices to produce to carry out the transmission of sound signal, make target terminal accurately can identify the sound signal that this terminal sends, improve audio signal transmission accuracy rate.
Further, for improving the accuracy of audio signal transmission, described step S20 comprises:
Step S21, when the operational factor got comprises the operational factor of multiple rattle devices, described terminal, according to the mapping relations between the operational factor preset and coding group of frequencies, determines the coding group of frequencies that the operational factor of each rattle devices is corresponding;
Each coding group of frequencies between occur simultaneously for single encoded frequency time, described terminal using this coding frequency as the coding frequency corresponding to the operational factor got.
In the present embodiment, terminal can obtain the mapping relations between the operational factor of noise terminal and the frequency noise of generation, and each frequency noise and the coding frequency preset are compared, by other coding frequency in default coding frequency except frequency noise, as rattle devices operational factor corresponding to coding group of frequencies, generation module generate and preserve operational factor and coding group of frequencies between mapping relations.
Step S22, when the coding group of frequencies got has multiple, described terminal obtains between each coding group of frequencies occurs simultaneously;
Step S23, each coding group of frequencies between occur simultaneously for single encoded frequency time, described terminal using this coding frequency as the coding frequency corresponding to the operational factor got.
Such as, this terminal is air conditioner, and the rattle devices operational factor of its correspondence comprises compressor low-frequency operation, the operation of compressor high frequency, the operation of blower fan low-frequency operation, blower fan high frequency.And the coding group of frequencies corresponding to blower fan low-frequency operation is (10KHZ, 14KHZ), the coding group of frequencies of compressor low-frequency operation is (8KHZ, 10KHZ), common factor then between two coding group of frequencies is 10KHZ, therefore using 10KHZ as the coding frequency corresponding to the operational factor got.
It will be appreciated by persons skilled in the art that the accuracy rate for improving audio signal transmission, after step S22, also comprising step: without when occuring simultaneously between each coding group of frequencies, export information.This information can be light information and/or auditory tone cues information and/or Word message.When information is light information, exports this light information and can be and control pilot lamp and switch to default color, or control pilot lamp with the frequency scintillation preset, or light pilot lamp etc.
Further, for improving the accuracy of audio signal transmission, also comprise after described step S22:
Step S23, when occuring simultaneously for multiple coding frequency between each coding group of frequencies, described terminal determines the priority of each coding frequency;
Step S24, described terminal using coding frequency the highest for priority as coding frequency corresponding to the operational factor of described rattle devices.。
Such as, this terminal is air conditioner, and the rattle devices operational factor of its correspondence comprises compressor low-frequency operation, the operation of compressor high frequency, the operation of blower fan low-frequency operation, blower fan high frequency.And the coding group of frequencies corresponding to blower fan low-frequency operation is (10KHZ, 12KHZ, 14KHZ, 16KHZ, 18KHZ), the coding group of frequencies of compressor low-frequency operation is (8KHZ, 10KHZ, 14KHZ, 16KHZ, 18KHZ), then the common factor between two coding group of frequencies is 10KHZ, 14KHZ, 16KHZ and 18KHZ, if the priority of 14KHZ is the highest, then using 14KHZ as the coding frequency corresponding to the operational factor got.This priority can be set by user or producer.
It will be understood by those skilled in the art that, for improving the accuracy of audio signal transmission, when occuring simultaneously for multiple coding frequency between each coding group of frequencies, terminal demonstration comprises the coding Frequency selection interface of described multiple coding frequency, selects corresponding coding frequency for user based on described coding Frequency selection interface; When receiving coding frequency selection instruction, the coding frequency that the frequency selection instruction of determining to encode is corresponding, and using the coding frequency determined as coding frequency corresponding to the operational factor of described rattle devices.
Further, for improving the accuracy of audio signal transmission, with reference to Fig. 5, propose audio signal encoding method second embodiment that the present invention is based on terminal operating environment, in the present embodiment, described step S30 replaces with:
Step S40, described terminal obtains other coding frequency in the coding frequency preset except the coding frequency determined;
Step S50, other acquisition is encoded frequency as present encoding frequency by described terminal, and adopts described present encoding frequency that described source data is encoded to sound signal.
In the present embodiment, the operational factor preset is a corresponding coding frequency only, this coding frequency is identical with the frequency of the noise that rattle devices produces, terminal adopts other coding frequency in the coding frequency preset except the coding frequency determined that described source data is encoded to sound signal, and the noise that sound signal terminal sent for target terminal and rattle devices produce is distinguished and come.Such as, rattle devices is compressor, the operational factor of compressor is low-frequency operation, and the frequency noise produced when compressor low-frequency operation is 12KHZ, then when operational factor is compressor low-frequency operation, corresponding coding frequency is 12KHZ, if the coding frequency preset is 12KHZ and 14KHZ, then current coding frequency is 14KHZ, adopts the coding frequency of 14KHZ that described source data is encoded to sound signal.
In the present embodiment, after terminal adopts the coding frequency determined that source data is encoded to sound signal, can play-over this sound signal with by this audio signal transmission to target device, also this sound signal can be sent to default playing device play, with by this audio signal transmission to target device.
Further, for improving the accuracy of audio signal transmission, in audio-frequency signal coding system second embodiment that the present invention is based on terminal operating environment, described step S20 comprises:
When the operational factor got comprises the operational factor of multiple rattle devices, described terminal, according to the operational factor preset and coding frequency mapping relations, determines the coding frequency that the operational factor of each rattle devices is corresponding;
When the coding frequency got has multiple, described terminal using all coding frequencies of getting all as the coding frequency corresponding to the operational factor got.
Such as, this terminal is air conditioner, and the rattle devices operational factor of its correspondence comprises compressor low-frequency operation, the operation of compressor high frequency, the operation of blower fan low-frequency operation, blower fan high frequency.And the coding frequency corresponding to blower fan low-frequency operation is (8KHZ), the coding frequency of compressor low-frequency operation is (12KHZ), then by 8KHZ and 12KHZ, as the coding frequency corresponding to the operational factor got.
It will be understood by those skilled in the art that, for improving the accuracy of audio signal transmission, step S50 comprises step: when other coding frequency in the coding frequency that acquisition is preset except the coding frequency determined is multiple, determine the priority of other coding frequency multiple; Adopt the highest coding frequency of priority that described source data is encoded to sound signal.
Further, for improving the accuracy of audio signal transmission, in audio-frequency signal coding system second embodiment that the present invention is based on terminal operating environment, after described step S40, the audio signal encoding method of described terminal running state also comprises step:
When the coding frequency got comprises all default coding frequencies, described terminal exports information.
This information can be light information and/or auditory tone cues information and/or Word message.When information is light information, exports this light information and can be and control pilot lamp and switch to default color, or control pilot lamp with the frequency scintillation preset, or light pilot lamp etc.
It should be noted that, in this article, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or system and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or system.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the system comprising this key element and also there is other identical element.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that above-described embodiment method can add required general hardware platform by software and realize, hardware can certainly be passed through, but in a lot of situation, the former is better embodiment.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in a storage medium (as ROM/RAM, magnetic disc, CD), comprising some instructions in order to make a station terminal equipment (can be mobile phone, computing machine, server, air conditioner, or the network equipment etc.) perform method described in each embodiment of the present invention.
These are only the preferred embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every utilize instructions of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (12)

1. based on an audio signal encoding method for terminal operating environment, it is characterized in that, the described audio signal encoding method based on terminal operating environment comprises the following steps:
When detecting audio-frequency signal coding instruction, terminal obtains source data to be encoded, and obtains the operational factor of the rattle devices preset;
Described terminal, according to the mapping relations between the operational factor preset and coding frequency, determines the coding frequency that the operational factor that gets is corresponding;
Described terminal adopts the coding frequency determined that described source data is encoded to sound signal.
2. as claimed in claim 1 based on the audio signal encoding method of terminal operating environment, it is characterized in that, described terminal, according to the mapping relations between the operational factor preset and coding frequency, determines that the step of the coding frequency that the operational factor that gets is corresponding comprises:
When the operational factor got comprises the operational factor of multiple rattle devices, described terminal, according to the mapping relations between the operational factor preset and coding group of frequencies, determines the coding group of frequencies that the operational factor of each rattle devices is corresponding;
When the coding group of frequencies got has multiple, described terminal obtains between each coding group of frequencies occurs simultaneously;
Each coding group of frequencies between occur simultaneously for single encoded frequency time, described terminal using this coding frequency as the coding frequency corresponding to the operational factor got.
3. as claimed in claim 2 based on the audio signal encoding method of terminal operating environment, it is characterized in that, when the described coding group of frequencies getting has multiple, after the step of occuring simultaneously between each coding group of frequencies that described terminal gets, described terminal, according to the mapping relations between the operational factor preset and coding frequency, determines that the step of the coding frequency that the operational factor that gets is corresponding also comprises:
When occuring simultaneously for multiple coding frequency between each coding group of frequencies, described terminal determines the priority of each coding frequency;
Described terminal using coding frequency the highest for priority as coding frequency corresponding to the operational factor of described rattle devices.
4., as claimed in claim 1 based on the audio signal encoding method of terminal operating environment, it is characterized in that, described terminal adopts the coding frequency determined the step that described source data is encoded to sound signal to be replaced with:
Described terminal obtains other coding frequency in the coding frequency preset except the coding frequency determined;
Other acquisition is encoded frequency as present encoding frequency by described terminal, and adopts described present encoding frequency that described source data is encoded to sound signal.
5. as claimed in claim 4 based on the audio signal encoding method of terminal operating environment, it is characterized in that, described terminal, according to the mapping relations between the operational factor preset and coding frequency, determines that the step of the coding frequency that the operational factor that gets is corresponding comprises:
When the operational factor got comprises the operational factor of multiple rattle devices, described terminal, according to the operational factor preset and coding frequency mapping relations, determines the coding frequency that the operational factor of each rattle devices is corresponding;
When the coding frequency got has multiple, described terminal using all coding frequencies of getting all as the coding frequency corresponding to the operational factor got.
6. the audio signal encoding method based on terminal operating environment as described in claim 4 or 5, it is characterized in that, after described terminal obtains the step of other coding frequency in the coding frequency preset except the coding frequency determined, the described audio signal encoding method based on terminal operating environment also comprises:
When the coding frequency got comprises all default coding frequencies, described terminal exports information.
7. based on an audio-frequency signal coding system for terminal operating environment, it is characterized in that, the described audio-frequency signal coding system based on terminal operating environment comprises:
Acquisition module, for when detecting audio-frequency signal coding instruction, terminal obtains source data to be encoded, and obtains the operational factor of rattle devices;
Determination module, for according to the mapping relations between the operational factor preset and coding frequency, determines the coding frequency that the operational factor that gets is corresponding;
First coding module, is encoded to sound signal for adopting the coding frequency determined by described source data.
8., as claimed in claim 7 based on the audio-frequency signal coding system of terminal operating environment, it is characterized in that, described determination module comprises:
Determining unit, during for comprising the operational factor of multiple rattle devices in the operational factor got, according to the mapping relations between the operational factor preset and coding group of frequencies, determines the coding group of frequencies that the operational factor of each rattle devices is corresponding;
Acquiring unit, during for having multiple in the coding group of frequencies got, obtaining between each coding group of frequencies and occuring simultaneously;
Processing unit, during for occuring simultaneously for single encoded frequency between each coding group of frequencies, using this coding frequency as the coding frequency corresponding to the operational factor got.
9. as claimed in claim 8 based on the audio-frequency signal coding system of terminal operating environment, it is characterized in that, when described determining unit also for occuring simultaneously for multiple coding frequency between each coding group of frequencies, determining the priority of each coding frequency; Described processing unit also for using coding frequency the highest for priority as coding frequency corresponding to the operational factor of described rattle devices.
10., as claimed in claim 7 based on the audio-frequency signal coding system of terminal operating environment, it is characterized in that, described first coding module replaces with:
Second coding module, for obtaining other coding frequency in default coding frequency except the coding frequency determined, and other acquisition is encoded frequency as present encoding frequency, and adopt described present encoding frequency that described source data is encoded to sound signal.
11. as claimed in claim 10 based on the audio-frequency signal coding system of terminal running state, and it is characterized in that, described determination module comprises:
Determining unit, during for comprising the operational factor of multiple rattle devices in the operational factor got, according to the operational factor preset and coding frequency mapping relations, determines the coding frequency that the operational factor of each rattle devices is corresponding;
Processing unit, during for having multiple in the coding frequency got, using all coding frequencies of getting all as the coding frequency corresponding to the operational factor got.
12. audio-frequency signal coding systems based on terminal running state as described in claim 10 or 11, it is characterized in that, the described audio-frequency signal coding system based on terminal running state also comprises:
Reminding module, during for comprising all default coding frequencies in the coding frequency got, exports information.
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 true CN105280188A (en) 2016-01-27
CN105280188B 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)

Cited By (2)

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

Citations (7)

* 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
CN103198834A (en) * 2012-01-04 2013-07-10 中国移动通信集团公司 Method, device and terminal for processing audio signals
CN103617797A (en) * 2013-12-09 2014-03-05 腾讯科技(深圳)有限公司 Voice processing method and device
CN103712311A (en) * 2012-10-09 2014-04-09 Lg电子株式会社 Air conditioner and control method thereof
CN103763433A (en) * 2013-12-31 2014-04-30 宇龙计算机通信科技(深圳)有限公司 Method and system for controlling operation of terminal applications
CN103854656A (en) * 2012-12-06 2014-06-11 富士通株式会社 Apparatus and method for encoding audio signal, system and method for transmitting audio signal, and apparatus for decoding audio signal
CN103888708A (en) * 2014-03-26 2014-06-25 广东中核高通信息科技股份有限公司 Remote audio and video data transmission method

Patent Citations (8)

* 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
CN103198834A (en) * 2012-01-04 2013-07-10 中国移动通信集团公司 Method, device and terminal for processing audio signals
CN103712311A (en) * 2012-10-09 2014-04-09 Lg电子株式会社 Air conditioner and control method thereof
CN103854656A (en) * 2012-12-06 2014-06-11 富士通株式会社 Apparatus and method for encoding audio signal, system and method for transmitting audio signal, and apparatus for decoding audio signal
US20140161269A1 (en) * 2012-12-06 2014-06-12 Fujitsu Limited Apparatus and method for encoding audio signal, system and method for transmitting audio signal, and apparatus for decoding audio signal
CN103617797A (en) * 2013-12-09 2014-03-05 腾讯科技(深圳)有限公司 Voice processing method and device
CN103763433A (en) * 2013-12-31 2014-04-30 宇龙计算机通信科技(深圳)有限公司 Method and system for controlling operation of terminal applications
CN103888708A (en) * 2014-03-26 2014-06-25 广东中核高通信息科技股份有限公司 Remote audio and video data transmission method

Cited By (2)

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

Also Published As

Publication number Publication date
CN105280188B (en) 2019-06-28

Similar Documents

Publication Publication Date Title
CN104978957A (en) Voice control method and system based on voiceprint identification
US10410651B2 (en) De-reverberation control method and device of sound producing equipment
CN103299366B (en) Devices for encoding and detecting a watermarked signal
KR20190024762A (en) Music Recommendation Method, Apparatus, Device and Storage Media
CN108469109A (en) Detection method, device, system, air conditioner and the storage medium of unit exception
CN108564966B (en) Voice test method and device with storage function
CN105741840B (en) Voice control method and device
JP2019204074A (en) Speech dialogue method, apparatus and system
CN104978958A (en) Voice control method and system
CN104978964A (en) Voice control instruction error correction method and system
CN104575503A (en) Speech recognition method and device
CN109195090B (en) Method and system for testing electroacoustic parameters of microphone in product
CN112165648B (en) Audio playing method, related device, equipment and storage medium
CN103299364B (en) Devices for encoding and decoding a watermarked signal
CN103886861A (en) Method for controlling electronic equipment and electronic equipment
CN103299365A (en) Devices for adaptively encoding and decoding a watermarked signal
CN104978956A (en) Voice control method and system
CN103929692B (en) Audio information processing method and electronic equipment
CN108495248A (en) Localization method, device, audio-frequence player device and storage medium
CN109510636A (en) Receive test method, device, medium and the equipment of FM signal function
CN104777894A (en) Information processing method and wearable electronic equipment
CN103823655A (en) Audio output method, electronic equipment and first audio output device
CN105280188A (en) Audio signal encoding method and system based on terminal operating environment
CN103095916A (en) Incidence prompt method and user terminal
CN111385726B (en) Audio test system, method and computer readable storage medium

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