CN110189763B - Sound wave configuration method and device and terminal equipment - Google Patents

Sound wave configuration method and device and terminal equipment Download PDF

Info

Publication number
CN110189763B
CN110189763B CN201910488086.XA CN201910488086A CN110189763B CN 110189763 B CN110189763 B CN 110189763B CN 201910488086 A CN201910488086 A CN 201910488086A CN 110189763 B CN110189763 B CN 110189763B
Authority
CN
China
Prior art keywords
code word
original
frequency
original code
preset
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
CN201910488086.XA
Other languages
Chinese (zh)
Other versions
CN110189763A (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.)
TP Link Technologies Co Ltd
Original Assignee
TP Link Technologies 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 TP Link Technologies Co Ltd filed Critical TP Link Technologies Co Ltd
Priority to CN201910488086.XA priority Critical patent/CN110189763B/en
Publication of CN110189763A publication Critical patent/CN110189763A/en
Application granted granted Critical
Publication of CN110189763B publication Critical patent/CN110189763B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L21/00Speech or voice signal processing techniques to produce another audible or non-audible signal, e.g. visual or tactile, in order to modify its quality or its intelligibility
    • G10L21/02Speech enhancement, e.g. noise reduction or echo cancellation
    • G10L21/0208Noise filtering
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L21/00Speech or voice signal processing techniques to produce another audible or non-audible signal, e.g. visual or tactile, in order to modify its quality or its intelligibility
    • G10L21/02Speech enhancement, e.g. noise reduction or echo cancellation
    • G10L21/0208Noise filtering
    • G10L21/0216Noise filtering characterised by the method used for estimating noise
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L21/00Speech or voice signal processing techniques to produce another audible or non-audible signal, e.g. visual or tactile, in order to modify its quality or its intelligibility
    • G10L21/02Speech enhancement, e.g. noise reduction or echo cancellation
    • G10L21/0208Noise filtering
    • G10L2021/02082Noise filtering the noise being echo, reverberation of the speech

Landscapes

  • Engineering & Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Quality & Reliability (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Telephone Function (AREA)

Abstract

The application is applicable to the technical field of data processing, and provides a sound wave configuration method, a device and terminal equipment, wherein the method comprises the following steps: receiving and sampling the sound wave signal to obtain sampling data of the sound wave signal; performing frame processing on the sampling data of the acoustic wave signals; each set of one frame of sampled data, detecting a first frequency and a first energy value contained in the frame of sampled data; acquiring a second frequency corresponding to the first effective code word; subtracting a preset energy value from a first energy value corresponding to a first frequency which is the same as a second frequency to obtain a second energy value corresponding to the first frequency; identifying an original code word corresponding to the sampled data frame; each set is matched with a group of original code word groups, and effective code words corresponding to the original code word groups are identified according to a preset effective code word identification rule; and decoding each effective code word according to a preset decoding rule to obtain sound wave configuration information. The method and the device can solve the problems that the existing sound wave configuration method is poor in reverberation resistance and low in recognition success rate in an environment with strong echoes.

Description

Sound wave configuration method and device and terminal equipment
Technical Field
The application belongs to the technical field of data processing, and particularly relates to a sound wave configuration method and device and terminal equipment.
Background
With the development of science and technology, more and more electronic devices enter people's lives. These electronic devices need to be configured when they are used for the first time or when configuration content needs to be changed.
At present, a relatively convenient configuration mode is to configure through a smartconfig mode, but in some scenarios, for example, a mobile phone and a router are both dual-antenna, and at this time, an electronic device cannot be configured through the smartconfig mode. In this case, it is conceivable to use sound waves as carriers, encode the configuration information into sound waves of certain frequencies, play the sound waves through a speaker, and decode the sound waves after the electronic device receives the sound waves to obtain the configuration information.
Currently, these electronic devices are mainly installed indoors, and in a conventional indoor environment, walls, floors, ceilings and other objects reflect sound waves, and the reflected sound and direct sound are superposed and mixed to form reverberation, which affects the success rate of sound wave configuration.
In summary, the existing sound wave configuration method has poor reverberation resistance, and the recognition success rate is low in the environment with strong echoes.
Disclosure of Invention
In view of this, embodiments of the present application provide a sound wave configuration method, a device, and a terminal device, so as to solve the problems that an existing sound wave configuration method is poor in reverberation resistance and low in recognition success rate in an environment with strong echoes.
A first aspect of an embodiment of the present application provides an acoustic wave configuration method, including:
receiving and sampling an acoustic wave signal to obtain sampling data of the acoustic wave signal;
taking a first preset number of sampling data as a frame of sampling data, and performing frame division processing on the sampling data of the acoustic wave signals;
each set of the sampling data is similar to one frame of sampling data, and a first frequency contained in a sampling data frame and a first energy value corresponding to the first frequency are detected;
acquiring a second frequency corresponding to a first effective code word, wherein the first effective code word is an effective code word corresponding to the first x original code word groups, and x is a second preset number;
subtracting a preset energy value from a first energy value corresponding to a first frequency which is the same as the second frequency to obtain a second energy value corresponding to the first frequency;
identifying an original code word corresponding to the sampling data frame according to a second energy value corresponding to the first frequency and a corresponding relation between the frequency and the original code word;
taking a third preset number of original code words as a group of original code words, wherein each group of original code words is a group of original code word groups, and identifying effective code words corresponding to the original code word groups according to a preset effective code word identification rule;
and decoding each effective code word according to a preset decoding rule to obtain sound wave configuration information.
A second aspect of embodiments of the present application provides an acoustic wave configuration apparatus, including:
the signal sampling module is used for receiving and sampling the sound wave signal to obtain sampling data of the sound wave signal;
the data framing module is used for framing the sampling data of the sound wave signals by taking a first preset number of sampling data as one frame of sampling data;
the energy detection module is used for collecting a frame of sampling data, and detecting a first frequency contained in the sampling data frame and a first energy value corresponding to the first frequency;
the interference frequency module is used for acquiring a second frequency corresponding to a first effective code word, wherein the first effective code word is an effective code word corresponding to the first x original code word groups, and x is a second preset number;
the interference elimination module is used for subtracting a preset energy value from a first energy value corresponding to a first frequency which is the same as the second frequency to obtain a second energy value corresponding to the first frequency;
the original identification module is used for identifying an original code word corresponding to the sampling data frame according to a second energy value corresponding to the first frequency and the corresponding relation between the frequency and the original code word;
the effective identification module is used for taking a third preset number of original code words as a group of original code words, each group of original code words is similar to one group of original code word groups, and effective code words corresponding to the original code word groups are identified according to a preset effective code word identification rule;
and the information decoding module is used for decoding each effective code word according to a preset decoding rule to obtain sound wave configuration information.
A third aspect of the embodiments of the present application provides a terminal device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the method when executing the computer program.
A fourth aspect of embodiments of the present application provides a computer-readable storage medium, in which a computer program is stored, which, when executed by a processor, implements the steps of the method as described above.
Compared with the prior art, the embodiment of the application has the advantages that:
according to the sound wave configuration method, after the first frequency contained in the sampling data frame and the first energy value corresponding to the first frequency are identified, the second frequency corresponding to the first effective code word is obtained, the preset energy value is subtracted from the first energy value corresponding to the first frequency which is the same as the second frequency to obtain the second energy value corresponding to the first frequency, then the original code word corresponding to the sampling data frame is identified according to the second energy value, echo interference of the previous sound wave signal to the sound wave signal is reduced, the anti-reverberation performance is improved, the identification success rate is improved, the problem that the existing sound wave configuration method is poor in anti-reverberation performance is solved, and the identification success rate is low in the environment with strong echo.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic implementation flow chart of a sound wave configuration method provided in an embodiment of the present application;
fig. 2 is a schematic diagram of an acoustic wave configuration apparatus provided in an embodiment of the present application;
fig. 3 is a schematic diagram of a terminal device provided in an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
In order to explain the technical solution described in the present application, the following description will be given by way of specific examples.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
In addition, in the description of the present application, the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
The first embodiment is as follows:
referring to fig. 1, a sound wave configuration method provided in an embodiment of the present application is described below, where the sound wave configuration method in the embodiment of the present application includes:
s101, receiving and sampling an acoustic wave signal to obtain sampling data of the acoustic wave signal;
when the sound wave configuration is carried out, the sound wave transmitting device can transmit sound wave signals, and the sound wave configuration device receives the sound wave signals and carries out sampling to obtain sampling data corresponding to the sound wave signals.
In the practical application process, the frequency and the form of the sound wave signal can be set according to the actual situation, for example, when the sound wave configuration is performed, the encoding unit can be set to be an effective code word, and can use a section of 64ms sound wave signal to represent an effective code word, wherein the non-silent section can be 37.5ms, and the silent section can be 26.5ms, after the sound wave configuration device receives the sound wave signal, the sound wave signal can be sampled by using the sampling frequency of 16kHz, and a section of sound wave signal can sample 1024 sampling points, wherein the non-silent section comprises 600 sampling points, and the silent section comprises 424 sampling points.
In order to smooth the transition between the non-silent section and the silent section, the sound wave generating device may perform a windowing operation on the sound wave signal, for example, the sound wave signal includes 1024 sampling points, wherein 600 sampling points of the non-silent section may be added with an asymmetric window of 600 points, the 600 points are divided into three parts, namely, the first 50 points, the middle 300 points and the last 250 points, the first 50 points adopt the first half of a hanning window of 100 points, the window corresponding to the middle 300 points is set to be 1, the last 250 points adopt the second half of the hanning window of 500 points, and the windowing operation does not affect the decoding of the sound wave configuration device.
Step S102, taking a first preset number of sampling data as a frame of sampling data, and performing framing processing on the sampling data of the sound wave signals;
after sampling the acoustic wave signal, frame division processing may be performed on the sampling data, and a first preset number of sampling data may be used as one frame of sampling data, where the first preset number may be set according to an actual situation, for example, the first preset number may be set to 256, and every 256 sampling data are used as one frame of sampling data, or other first preset numbers may also be set according to a requirement.
Step S103, collecting a frame of sampling data, and detecting a first frequency contained in a sampling data frame and a first energy value corresponding to the first frequency;
after each set of one frame of sampling data, the first frequency contained in the sampling data frame and the first energy value corresponding to the first frequency may be detected, and the detection mode may be set according to an actual situation, for example, FFT (Fast Fourier transform) processing may be performed on the sampling data in the sampling data frame to obtain a frequency spectrum corresponding to the sampling data frame, and the first frequency contained in the sampling data frame and the first energy value corresponding to each first frequency may be known according to the frequency spectrum.
When the number of the frames of the sampled data is less than or greater than one, the detected sampled data may be placed in the cyclic buffer, and one frame of the sampled data is taken out from the cyclic buffer each time, and then the detection of the first frequency and the first energy value is performed.
Step S104, acquiring a second frequency corresponding to a first effective code word, wherein the first effective code word is an effective code word corresponding to the first x original code word groups, and x is a second preset number;
in order to avoid echo interference, a second frequency corresponding to a first effective code word may be obtained, where the first effective code word is an effective code word corresponding to the first x original code word groups, x is a second preset number, and a specific value of x is set according to an actual situation, for example, x may be set to 1, so as to suppress echo interference of a previous section of sound wave signal on the current section of sound wave signal.
Step S105, subtracting a preset energy value from a first energy value corresponding to a first frequency which is the same as the second frequency to obtain a second energy value corresponding to the first frequency;
subtracting a preset energy value from a first energy value corresponding to a first frequency which is the same as a second frequency, and keeping the first energy values corresponding to the other first frequencies unchanged, updating the first energy value corresponding to each first frequency to obtain a second energy value corresponding to each first frequency, for example, the first frequency includes 3000Hz and 3300Hz, and the second frequency corresponding to a previous effective code word is 3000Hz, so as to reduce echo interference of a sound wave signal corresponding to the previous effective code word, subtracting the preset energy value from the first energy value corresponding to 3000Hz in the first frequency to obtain a second energy value corresponding to 3000Hz, wherein the first energy value corresponding to 3300Hz is unchanged, and the second energy value corresponding to 3300Hz is consistent with the first energy value, thereby improving the anti-reverberation performance and the success rate of identification.
The preset energy value may be calculated according to actual conditions, for example, the preset energy value may be set as a proportional value, for example, the preset energy value may be set as 0.3 times the first energy value, and the subtraction of the preset energy value from the first energy value is equivalent to the multiplication of the first energy value by a coefficient 0.7, or the preset energy value may be set as a fixed value, and the subtraction of the preset energy value from the first energy value obtains a second energy value, and the calculation of the preset energy value may be set according to actual conditions.
Step S106, identifying an original code word corresponding to the sampling data frame according to a second energy value corresponding to the first frequency and a corresponding relation between the frequency and the original code word;
after the interference of the echo is removed, the original code word corresponding to the sampled data frame may be identified according to the second energy value corresponding to each first frequency in the sampled data frame and the corresponding relationship between the frequency and the original code word, for example, the second energy value corresponding to 3300Hz is the largest in the second energy values corresponding to each first frequency, and the original code word corresponding to 3300Hz may be obtained as "01" according to the corresponding relationship between the frequency and the original code word, so that the original code word corresponding to the sampled data frame may be determined as "01".
Step S107, using a third preset number of original code words as a group of original code words, wherein each group of original code words is similar to a group of original code word groups, and identifying effective code words corresponding to the original code word groups according to a preset effective code word identification rule;
one or more frames of sampling data may be included in the acoustic wave signal corresponding to one valid codeword, so that a third preset number of original codewords may be used as a group of original codewords, where the third preset number may be 1 or an integer greater than 1, for example, when the acoustic wave signal corresponding to one valid codeword may be sampled to 1024 sampling data, and 256 sampling data is used as one frame of sampling data, one valid codeword corresponds to 4 frames of sampling data, so that 4 original codewords may be used as a group of original codewords.
Each set is matched with one group of original code word group, and effective code words corresponding to the original code word group can be identified according to a preset effective code word identification rule.
And S108, decoding each effective code word according to a preset decoding rule to obtain sound wave configuration information.
Each effective code word represents one coding unit, and the identified effective code words can be decoded according to a preset coding rule to obtain sound wave configuration information.
The sound wave configuration information may be set according to actual situations, for example, in some embodiments, the sound wave configuration information may be in the form of "data header and version-SSID-delimiter-CRC 1-password-delimiter-CRC 2" or "data header and version-SSID-delimiter-CRC 1-password-delimiter-CRC 2-additional data length-additional data-CRC 3", the valid code words may be set to "00", "01", "10", and "11", or may also be referred to as "0", "1", "2", and "3", the data header may be set to "11-10-11-11-10-10-11", the valid code words may be identified, when the sequence is identified as "11-10-10-11-11-10-10-11", i.e. indicating that a header has been detected.
The preset encoding rule may be set in actual situations, for example, when the form of the sound wave configuration information is "data header and version-SSID-spacer-CRC 1-password-end-symbol-CRC 2", the data header may be detected in state 1; when the data head is detected, entering a state 2 from a state 1, and detecting the spacer; when the interval symbol is detected, entering a state 3, sending an effective code word between the data head and the interval symbol into the SSID, and performing CRC (cyclic redundancy check); if the verification is successful, entering a state 4, detecting the end symbol, if the verification is failed, stopping the detection; in state 4, when an end symbol is detected, state 5 is entered, and a valid codeword between CRC1 and the end symbol is entered into the cipher; and in the state 5, performing second CRC check, wherein the check is successful, the decoding is finished, the check is failed, the decoding is failed, and the detection is stopped.
The CRC check may be performed by using a simple byte bit exclusive or operation, for example, the SSID has 10 bytes, the acoustic wave transmitting device obtains an exclusive or result of the 10 bytes, records the result as byte1, and sends the result as a CRC check code of the SSID to the acoustic wave configuration device through the acoustic wave, the acoustic wave configuration device calculates, in the same manner, a CRC check code corresponding to the SSID obtained by decoding, and records the result as byte2, the acoustic wave configuration device compares whether the byte2 is consistent with the decoded byte1, if so, the check is successful, and if not, the check fails.
Further, the identifying, according to the second energy value corresponding to the first frequency and the correspondence between the frequency and the original codeword, the original codeword corresponding to the sampled data frame specifically includes:
and A1, respectively identifying the original code word corresponding to the first frequency with the largest second energy value in each preset frequency segment according to the second energy value corresponding to the first frequency and the corresponding relationship between the frequency and the original code word, and taking the original code word with the highest frequency as the original code word corresponding to the sampled data frame.
In some applications, an original codeword may correspond to a plurality of frequencies, and the frequencies are distributed in a predetermined frequency segment, for example, an original codeword "00" may correspond to 3000Hz, 4172Hz, and 5543Hz, and an original codeword "01" may correspond to 3300Hz, 4472Hz, and 5643Hz, wherein 3000Hz and 3300Hz are distributed in a frequency segment of 3000-.
After the suppression is performed on the second frequency corresponding to the last valid codeword, a certain second frequency corresponding to the last valid codeword may still have larger interference energy, so to improve the identification accuracy of the original codeword, the frequency segment may be divided to identify the original codeword, and then the original codeword with the highest identification frequency is used as the original codeword corresponding to the sample data frame, for example, in the frequency segment of 3000-4000, the second energy value corresponding to 3300Hz is the largest, and the original codeword "01" is identified, in the frequency segment of 4000-5500, the second energy value corresponding to 4472Hz is the largest, and the original codeword "01" is identified, in the frequency segment of 5500-6500, the second energy value corresponding to 5543Hz is the largest, and the original codeword "00" is identified, then the frequency of the original codeword "01" is the highest, and the "01" is used as the original codeword corresponding to the sample data frame, the identification accuracy of the original code word is improved by frequency band identification.
The number of the preset frequency segments may be selected according to an actual situation, for example, the number of the preset frequency segments may be set to 3, then one original codeword corresponds to 3 frequencies, the 3 frequencies are respectively distributed in the 3 preset frequency segments, the number of the preset frequency segments may also be set to other values according to the actual situation, and the number is not limited in this embodiment.
In the process of identifying the original codeword group, smoothing may be performed on a value of a sudden change in the original codeword group, for example, in some embodiments, the third preset number of original codewords are used as a group of original codewords, each group of original codeword groups is shared by each group of original codeword groups, and identifying, according to a preset valid codeword identification rule, a valid codeword corresponding to the original codeword group specifically includes:
b1, using a third preset number of original code words as a group of original code words, wherein each group is identical to a group of original code words, using a previous original code word of a first original code word in the original code words as a second original code word, and using a next original code word of the first original code word as a third original code word, and determining whether the first original code word is different from the second original code word and the third original code word, and the second code word is the same as the third code word;
after a group of original code words are collected, because the sampled data frames corresponding to the same section of sound wave should correspond to the same original code word, the original code words in the original code word group can be smoothed to determine a first original code word in the original code word group, a previous original code word of the first original code word is used as a second original code word, a next original code word of the first original code word is used as a third original code word, and whether the first original code word is different from the second original code word and the third original code word or not is judged, and the second original code word is the same as the third original code word.
B2, when the first original code word is different from the second original code word and the third original code word, and the second code word and the third code word are the same, changing the first original code word into an original code word consistent with the second original code word and the third original code word;
when the first original codeword is different from the second original codeword and the third original codeword, and the second original codeword and the third original codeword are the same, it indicates that the first original codeword is abnormal in identification, for example, the original codeword set may be {01, 10, 01}, since "10" is different from the previous original codeword and the next original codeword, and the previous original codeword and the next original codeword of "10" are both "01", it indicates that an abnormality occurs when "10" is identified, at this time, "10" may be changed to "01", and the original codeword set is smoothed.
And B3, identifying the effective code words corresponding to the original code word group according to a preset effective code word identification rule.
And after the original code word group is subjected to smoothing processing, identifying effective code words corresponding to the original code word group according to a preset effective code word identification rule, and improving the identification accuracy of the effective code words.
In other embodiments, the original codeword group may be smoothed by other methods, for example, when the first original codeword is different from the second original codeword and the third original codeword, the first original codeword may be processed by a smoothing method such as changing the first original codeword to an average value of original codewords before the first original codeword in the original codeword group, changing the first original codeword to an average value of original codewords after the first original codeword in the original codeword group, changing the first original codeword to an average value of original codewords except the first original codeword in the original codeword group, changing the first original codeword to the second original codeword, and changing the first original codeword to the third original codeword.
When identifying an effective codeword in an original codeword group, a preset effective codeword identification rule may be set according to an actual situation, for example, in some embodiments, identifying an effective codeword corresponding to the original codeword group according to the preset effective codeword identification rule specifically includes:
c1, judging whether N continuous same original code words exist in the original code word group, wherein N is a fourth preset number;
when the valid code words corresponding to the original code word group are identified, the preset valid code word identification rule may be set according to an actual situation, for example, it may be determined whether N consecutive identical original code words exist in the original code word group, where N is a fourth preset number.
And C2, when N continuous same original code words exist in the original code word group, taking the same original code words as effective code words corresponding to the original code word group.
When N consecutive identical original code words exist in the original code word group, the identical original code words are used as valid code words corresponding to the original code word group, for example, 4 original code words may be set as a group of original code words, N may be set to 3, and when 3 consecutive identical original code words exist in the original code word group, the identical original code words are used as valid code words corresponding to the original code word group, for example, 3 consecutive "01" exist in the original code word group {01, 10}, and "01" may be used as valid code words corresponding to the original code word group.
In other embodiments, other preset valid codeword identification rules may also be adopted, for example, an original codeword with the highest frequency of occurrence in an original codeword group may be used as a valid codeword, an original codeword at a specific position in the original codeword group may also be set as a valid codeword, and the like, and a specific setting manner of the preset valid codeword identification rule may be selected according to an actual situation.
Further, the identifying, according to the preset valid codeword identification rule, the valid codeword corresponding to the original codeword group may specifically include:
d1, judging whether the original code word group meets a preset effective code word identification rule or not;
when identifying an effective codeword corresponding to an original codeword group, it may be determined whether the original codeword group meets a preset effective codeword identification rule, for example, when N consecutive identical original codewords exist in the original codeword group, the scheme that the identical original codewords are used as effective codewords corresponding to the original codeword group may be set as the preset effective codeword identification rule, and it may be determined whether N consecutive identical original codewords exist in the original codeword group.
D2, when the original code word group meets a preset effective code word identification rule, identifying an effective code word corresponding to the original code word group;
when the original code word group meets the preset valid code word identification rule, for example, when N consecutive identical original code words exist in the original code word group, the valid code words corresponding to the original code word group are identified, and the identical original code words are used as valid code words corresponding to the original code word group.
D3, when the original code word group does not meet the preset effective code word identification rule, identifying a next original code word, copying the next original code word into the original code word group to obtain an updated original code word group, and judging whether the updated original code word group meets the preset effective code word identification rule or not;
when the original code word group does not meet the preset valid code word identification rule, a next original code word can be identified, the next original code word is copied into the original code word group to obtain an updated original code word group, and then whether the updated original code word group meets the preset valid code word identification rule or not is judged, for example, if continuous N identical original code words do not exist in {00, 01, 11} in the original code word group, the next original code word can be identified, and if the '11' is identified, the '11' is copied into the current original code word group, the updated original code word group is {00, 01, 11}, and whether continuous N identical original code words exist in the updated original code word group or not is judged.
D4, when the updated original code word group meets a preset effective code word identification rule, identifying an effective code word corresponding to the updated original code word group;
if the updated original code word group meets the preset valid code word identification rule, the valid code words corresponding to the updated original code word group are identified, for example, the updated original code word group is {00, 01, 11}, which contains 3 consecutive "11", and thus "11" can be used as the valid code words corresponding to the updated original code word group.
And D5, when the updated original code word group does not meet the preset valid code word identification rule, executing a first preset abnormal recovery operation.
If the updated original codeword set does not satisfy the preset valid codeword identification rule, which indicates that an abnormal condition occurs, a first preset abnormal recovery operation should be performed, for example, if the updated original codeword set is {00, 01, 11, 10}, and there are no consecutive N identical original codewords, the first preset abnormal recovery operation is performed.
The first preset abnormal recovery operation may be set according to an actual situation, for example, the first preset abnormal recovery operation may be set to calculate first energy values of each first frequency in a sample data frame corresponding to an original codeword group, sum the first energy values corresponding to the first frequencies corresponding to each original codeword to obtain an energy sum corresponding to each original codeword, and use the original codeword with the largest energy sum as an effective codeword corresponding to the original codeword, for example, 5 frames of sample data corresponding to the original codeword group {00, 01, 11, 10}, assuming that each original codeword corresponds to 3 frequencies, calculate to obtain the largest energy sum obtained by summing the first energy values corresponding to three first frequencies corresponding to "11" in the 5 frames of sample data, and may use "11" as the effective codeword corresponding to the original codeword group.
In other embodiments, the original codeword with the highest frequency of occurrence in the updated original codeword group may also be used as the valid codeword, and the specific content of the first preset abnormal recovery operation may be set according to an actual situation.
Further, the identifying the valid code word corresponding to the original code word group according to the preset valid code word identification rule further includes:
e1, when detecting that the continuous K effective code words are continuous and same effective code words, judging whether the set of original code word groups corresponding to the K effective code words meets a preset judgment condition;
when it is detected that K consecutive valid codewords are consecutive identical valid codewords, it may be determined whether an original codeword group corresponding to the K valid codewords meets a preset determination condition, where the preset determination condition may be set according to an actual situation, for example, in some embodiments, the preset determination condition may be determined whether (K × N + K-1) consecutive identical original codewords exist in a set of original codeword groups corresponding to the K valid codewords, where K is a positive integer, for example, when N is set to 3, if 2 consecutive valid codewords are detected as consecutive identical valid codewords, it is determined whether (2 × 3+2-1) ═ 7 identical original codewords exist in a set of original codeword groups corresponding to the 2 valid codewords.
And E2, when the original code word group corresponding to the K effective code words does not accord with the preset judgment condition, executing a second preset abnormal recovery operation.
In some embodiments, when there are no consecutive (K × N + K-1) identical original codewords in the set of original codeword groups corresponding to the K valid codewords, the second predetermined abnormal recovery operation is performed, for example, when there are no consecutive 7 identical original codewords in the set of original codeword groups corresponding to the 2 valid codewords, it indicates that a valid codeword may be identified as an identical valid codeword due to echo interference or other factors, and at this time, further determination is required.
The second predetermined abnormal recovery operation may be set according to actual conditions, for example, in some embodiments, the second predetermined abnormal recovery operation may be to identify a first original codeword group corresponding to a break of an original codeword, copy a first original codeword of a next original codeword group of the first original codeword group into the first original codeword group, and then identify a valid codeword of the updated first original codeword group, for example, it is detected that an order of the original codeword groups is {01, 10} {10, 11}, the first original codeword group and the second original codeword group both include 3 identical "10", both output valid codewords are "10", but there are no 7 consecutive "10" in the first original codeword group and the second original codeword group, a break occurs in the second original codeword group, and at this time, a first original codeword "11" of a next original codeword group of the second original codeword group may be copied into the second original codeword group In the word group, the valid code word of the updated second original code word group {10, 11} is identified, for example, the valid code word may be identified by calculating the energy sum corresponding to each original code word, and when the energy sum corresponding to "11" is detected to be the maximum, the valid code word corresponding to the second original code word group may be changed from "10" to "11".
In this embodiment, a section of sound wave including complete SSID and password information may be played in a loop, increasing the success rate of sound wave configuration.
During the loop playing, a silent segment or other sound segments may be inserted between two complete sound waves, for example, a silent segment of 1-2 seconds may be inserted between two complete sound waves in some embodiments.
Since the sound of the sound wave configuration is more abrupt, in order to improve the user experience, a leading sound may be added before the sound wave configuration, for example, a leading sound of "drop, or drip" may be added to remind the user that the sound wave configuration is about to be performed.
In addition, background music can be added to the non-decoding frequency band, for example, if the frequency band below 3000Hz is the non-decoding frequency band, the background music can be added to the frequency band below 3000Hz, which not only does not affect the decoding process of the sound wave configuration device, but also improves the user experience.
In the sound wave configuration method provided in this embodiment, after identifying the first frequency included in the sampled data frame and the first energy value corresponding to the first frequency, the second frequency corresponding to the first valid codeword is obtained, the preset energy value is subtracted from the first energy value corresponding to the first frequency that is the same as the second frequency to obtain the second energy value corresponding to the first frequency, and then the original codeword corresponding to the sampled data frame is identified according to the second energy value, so that the echo interference of the previous sound wave signal on the current sound wave signal is reduced, the anti-reverberation performance is improved, the identification success rate is improved, the problem that the existing sound wave configuration method has poor anti-reverberation performance is solved, and the identification success rate is low in an environment with strong echo.
When the original code words corresponding to the sampled data frame are identified, the original code words corresponding to each frequency band can be identified by adopting a frequency band division identification mode, the original code words with the highest identification frequency are used as the original code words corresponding to the sampled data frame, and the identification accuracy of the original code words is improved.
After a group of original code word groups are collected, whether unsmooth original code words exist in the original code word groups can be detected, the original code word groups are subjected to smoothing processing, and the identification accuracy of effective code words is improved.
When identifying the valid code words corresponding to the original code word group, it can be determined whether N consecutive identical original code words exist in the original code word group, and if so, the identical original code words are used as the valid code words corresponding to the original code word group.
When the original code word group does not have N continuous identical original code words, the next original code word can be obtained and copied into the current original code word group to obtain the updated original code word group, and the original code word group is identified again.
And when the updated original code word group does not have N continuous same original code words, executing a first preset abnormal recovery operation, and improving the identification accuracy of the effective code words.
When detecting the continuous K same effective code words, whether continuous (K x N + K-1) same original code words exist in the set of original code word groups corresponding to the K effective code words or not can be detected, if not, a second preset abnormal recovery operation can be executed, and the identification accuracy of the effective code words is improved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Example two:
in the second embodiment, an acoustic wave configuration apparatus is provided, which is only shown in relevant parts for the purpose of illustration, and as shown in fig. 2, the acoustic wave configuration apparatus includes,
the signal sampling module 201 is configured to receive an acoustic wave signal and perform sampling to obtain sampling data of the acoustic wave signal;
the data framing module 202 is configured to frame the sampling data of the acoustic wave signal by using a first preset number of sampling data as one frame of sampling data;
the energy detection module 203 is used for collecting a frame of sampled data, detecting a first frequency contained in the frame of sampled data and a first energy value corresponding to the first frequency;
an interference frequency module 204, configured to obtain a second frequency corresponding to a first valid codeword, where the first valid codeword is a valid codeword corresponding to the first x original codeword groups, and x is a second preset number;
an interference cancellation module 205, configured to subtract a preset energy value from a first energy value corresponding to a first frequency that is the same as the second frequency to obtain a second energy value corresponding to the first frequency;
an original identification module 206, configured to identify an original codeword corresponding to the sampled data frame according to a second energy value corresponding to the first frequency and a correspondence between the frequency and the original codeword;
the valid recognition module 207 is configured to use a third preset number of original code words as a group of original code words, each group of original code words is identical to a group of original code words, and recognize valid code words corresponding to the original code words according to a preset valid code word recognition rule;
and the information decoding module 208 is configured to decode each valid codeword according to a preset decoding rule to obtain sound wave configuration information.
Further, the original identification module 206 is specifically configured to respectively identify an original codeword corresponding to a first frequency with a largest second energy value in each preset frequency segment according to a second energy value corresponding to the first frequency and a corresponding relationship between a frequency and the original codeword, so as to identify an original codeword with a highest frequency as an original codeword corresponding to the sampled data frame.
Further, the effective identification module 207 specifically includes:
the judging submodule is used for judging whether the original code word group meets a preset effective code word identification rule or not;
the identification submodule is used for identifying the effective code words corresponding to the original code word group when the original code word group meets the preset effective code word identification rule;
the updating submodule is used for identifying the next original code word when the original code word group does not meet the preset effective code word identification rule, copying the next original code word into the original code word group to obtain an updated original code word group, and judging whether the updated original code word group meets the preset effective code word identification rule or not;
the satisfaction submodule is used for recognizing the effective code word corresponding to the updated original code word group when the updated original code word group meets the preset effective code word recognition rule;
and the first sub-module is used for executing a first preset abnormal recovery operation when the updated original code word group does not meet a preset effective code word identification rule.
Further, the apparatus further comprises:
the continuous code word module is used for judging whether a set of original code word groups corresponding to the K effective code words meets a preset judgment condition or not when the fact that the K effective code words are continuous and same effective code words is detected;
and the second exception module is used for executing a second preset exception recovery operation when the original code word group corresponding to the K effective code words in the set does not accord with a preset judgment condition.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.
Example three:
fig. 3 is a schematic diagram of a terminal device provided in the third embodiment of the present application. As shown in fig. 3, the terminal device 3 of this embodiment includes: a processor 30, a memory 31 and a computer program 32 stored in said memory 31 and executable on said processor 30. The processor 30, when executing the computer program 32, implements the steps in the above-described embodiment of the acoustic wave configuration method, such as the steps S101 to S108 shown in fig. 1. Alternatively, the processor 30, when executing the computer program 32, implements the functions of each module/unit in the above-mentioned device embodiments, for example, the functions of the modules 201 to 208 shown in fig. 2.
Illustratively, the computer program 32 may be partitioned into one or more modules/units that are stored in the memory 31 and executed by the processor 30 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 32 in the terminal device 3. For example, the computer program 32 may be divided into a signal sampling module, a data framing module, an energy detection module, an interference frequency module, an interference cancellation module, an original identification module, an effective identification module, and an information decoding module, and each module has the following specific functions:
the signal sampling module is used for receiving and sampling the sound wave signal to obtain sampling data of the sound wave signal;
the data framing module is used for framing the sampling data of the sound wave signals by taking a first preset number of sampling data as one frame of sampling data;
the energy detection module is used for collecting a frame of sampling data, and detecting a first frequency contained in the sampling data frame and a first energy value corresponding to the first frequency;
the interference frequency module is used for acquiring a second frequency corresponding to a first effective code word, wherein the first effective code word is an effective code word corresponding to the first x original code word groups, and x is a second preset number;
the interference elimination module is used for subtracting a preset energy value from a first energy value corresponding to a first frequency which is the same as the second frequency to obtain a second energy value corresponding to the first frequency;
the original identification module is used for identifying an original code word corresponding to the sampling data frame according to a second energy value corresponding to the first frequency and the corresponding relation between the frequency and the original code word;
the effective identification module is used for taking a third preset number of original code words as a group of original code words, each group of original code words is similar to one group of original code word groups, and effective code words corresponding to the original code word groups are identified according to a preset effective code word identification rule;
and the information decoding module is used for decoding each effective code word according to a preset decoding rule to obtain sound wave configuration information.
The terminal device 3 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal device may include, but is not limited to, a processor 30, a memory 31. It will be understood by those skilled in the art that fig. 3 is only an example of the terminal device 3, and does not constitute a limitation to the terminal device 3, and may include more or less components than those shown, or combine some components, or different components, for example, the terminal device may also include an input-output device, a network access device, a bus, etc.
The Processor 30 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 31 may be an internal storage unit of the terminal device 3, such as a hard disk or a memory of the terminal device 3. The memory 31 may also be an external storage device of the terminal device 3, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the terminal device 3. Further, the memory 31 may also include both an internal storage unit and an external storage device of the terminal device 3. The memory 31 is used for storing the computer program and other programs and data required by the terminal device. The memory 31 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A method of configuring acoustic waves, comprising:
receiving and sampling an acoustic wave signal to obtain sampling data of the acoustic wave signal;
taking a first preset number of sampling data as a frame of sampling data, and performing frame division processing on the sampling data of the acoustic wave signals;
each set of the sampling data is similar to one frame of sampling data, and a first frequency contained in a sampling data frame and a first energy value corresponding to the first frequency are detected;
acquiring a second frequency corresponding to a first effective code word, wherein the first effective code word is an effective code word corresponding to x original code word groups detected before a current sampling data frame, and x is a second preset number;
subtracting a preset energy value from a first energy value corresponding to a first frequency which is the same as the second frequency to obtain a second energy value corresponding to the first frequency;
identifying an original code word corresponding to the sampling data frame according to a second energy value corresponding to the first frequency and a corresponding relation between the frequency and the original code word;
taking a third preset number of original code words as a group of original code words, wherein each group of original code words is a group of original code word groups, and identifying effective code words corresponding to the original code word groups according to a preset effective code word identification rule;
and decoding each effective code word according to a preset decoding rule to obtain sound wave configuration information.
2. The acoustic wave configuration method according to claim 1, wherein the identifying, according to the second energy value corresponding to the first frequency and the correspondence between the frequency and the original code word, the original code word corresponding to the sampled data frame specifically includes:
and respectively identifying an original code word corresponding to a target frequency with the maximum second energy value in each preset frequency segment according to a second energy value corresponding to the first frequency and a corresponding relation between the frequency and the original code word, and taking the original code word with the highest identification frequency as the original code word corresponding to the sampled data frame, wherein the target frequency belongs to the first frequency.
3. The acoustic wave configuration method according to claim 1, wherein the identifying the valid codeword corresponding to the original codeword group according to the preset valid codeword identification rule specifically includes:
judging whether the original code word group meets a preset effective code word identification rule or not;
when the original code word group meets a preset effective code word identification rule, identifying an effective code word corresponding to the original code word group;
when the original code word group does not meet the preset valid code word identification rule, identifying a next original code word, copying the next original code word into the original code word group to obtain an updated original code word group, and judging whether the updated original code word group meets the preset valid code word identification rule or not;
when the updated original code word group meets a preset effective code word identification rule, identifying an effective code word corresponding to the updated original code word group;
and when the updated original code word group does not meet the preset effective code word identification rule, executing a first preset abnormal recovery operation.
4. The acoustic wave configuration method according to claim 1, further comprising, after the identifying the valid code word corresponding to the original code word group according to the preset valid code word identification rule:
when detecting that the continuous K effective code words are continuous and same effective code words, judging whether a set of original code word groups corresponding to the K effective code words meets a preset judgment condition;
and when the original code word group corresponding to the K effective code words does not accord with a preset judgment condition in the set, executing a second preset abnormal recovery operation.
5. An acoustic wave deployment apparatus, comprising:
the signal sampling module is used for receiving and sampling the sound wave signal to obtain sampling data of the sound wave signal;
the data framing module is used for framing the sampling data of the sound wave signals by taking a first preset number of sampling data as one frame of sampling data;
the energy detection module is used for collecting a frame of sampling data, and detecting a first frequency contained in the sampling data frame and a first energy value corresponding to the first frequency;
the interference frequency module is used for acquiring a second frequency corresponding to a first effective code word, wherein the first effective code word is an effective code word corresponding to x original code word groups detected before a current sampled data frame, and x is a second preset number;
the interference elimination module is used for subtracting a preset energy value from a first energy value corresponding to a first frequency which is the same as the second frequency to obtain a second energy value corresponding to the first frequency;
the original identification module is used for identifying an original code word corresponding to the sampling data frame according to a second energy value corresponding to the first frequency and the corresponding relation between the frequency and the original code word;
the effective identification module is used for taking a third preset number of original code words as a group of original code words, each group of original code words is similar to one group of original code word groups, and effective code words corresponding to the original code word groups are identified according to a preset effective code word identification rule;
and the information decoding module is used for decoding each effective code word according to a preset decoding rule to obtain sound wave configuration information.
6. The acoustic wave configuration device according to claim 5, wherein the original identification module is specifically configured to identify, according to a second energy value corresponding to the first frequency and a correspondence between frequencies and original code words, an original code word corresponding to a target frequency with a largest second energy value in each preset frequency segment, respectively, so as to identify an original code word with a highest frequency as the original code word corresponding to the sampled data frame, where the target frequency belongs to the first frequency.
7. The acoustic wave configuration device according to claim 5, wherein the active identification module specifically comprises:
the judging submodule is used for judging whether the original code word group meets a preset effective code word identification rule or not;
the identification submodule is used for identifying the effective code words corresponding to the original code word group when the original code word group meets the preset effective code word identification rule;
the updating submodule is used for identifying the next original code word when the original code word group does not meet the preset effective code word identification rule, copying the next original code word into the original code word group to obtain an updated original code word group, and judging whether the updated original code word group meets the preset effective code word identification rule or not;
the satisfaction submodule is used for recognizing the effective code word corresponding to the updated original code word group when the updated original code word group meets the preset effective code word recognition rule;
and the first sub-module is used for executing a first preset abnormal recovery operation when the updated original code word group does not meet a preset effective code word identification rule.
8. The acoustic wave configuration device according to claim 5, wherein said device further comprises:
the continuous code word module is used for judging whether a set of original code word groups corresponding to the K effective code words meets a preset judgment condition or not when the fact that the K effective code words are continuous and same effective code words is detected;
and the second exception module is used for executing a second preset exception recovery operation when the original code word group corresponding to the K effective code words in the set does not accord with a preset judgment condition.
9. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 4 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 4.
CN201910488086.XA 2019-06-05 2019-06-05 Sound wave configuration method and device and terminal equipment Active CN110189763B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910488086.XA CN110189763B (en) 2019-06-05 2019-06-05 Sound wave configuration method and device and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910488086.XA CN110189763B (en) 2019-06-05 2019-06-05 Sound wave configuration method and device and terminal equipment

Publications (2)

Publication Number Publication Date
CN110189763A CN110189763A (en) 2019-08-30
CN110189763B true CN110189763B (en) 2021-07-02

Family

ID=67720599

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910488086.XA Active CN110189763B (en) 2019-06-05 2019-06-05 Sound wave configuration method and device and terminal equipment

Country Status (1)

Country Link
CN (1) CN110189763B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111402917B (en) * 2020-03-13 2023-08-04 北京小米松果电子有限公司 Audio signal processing method and device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1643571A (en) * 2002-03-27 2005-07-20 艾黎弗公司 Nicrophone and voice activity detection (vad) configurations for use with communication systems
CN101843124A (en) * 2007-10-31 2010-09-22 摩托罗拉公司 Negotiation of a short range wireless communication parameters using configuration data received through RFID
CN103929767A (en) * 2014-05-04 2014-07-16 韩竹 Wireless network setting method based on sound wave or light wave communication
CN106487454A (en) * 2015-10-27 2017-03-08 上海润欣科技股份有限公司 A kind of sound wave collocation method of Internet of Things smart machine and configuration system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9264553B2 (en) * 2011-06-11 2016-02-16 Clearone Communications, Inc. Methods and apparatuses for echo cancelation with beamforming microphone arrays

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1643571A (en) * 2002-03-27 2005-07-20 艾黎弗公司 Nicrophone and voice activity detection (vad) configurations for use with communication systems
CN101843124A (en) * 2007-10-31 2010-09-22 摩托罗拉公司 Negotiation of a short range wireless communication parameters using configuration data received through RFID
CN103929767A (en) * 2014-05-04 2014-07-16 韩竹 Wireless network setting method based on sound wave or light wave communication
CN106487454A (en) * 2015-10-27 2017-03-08 上海润欣科技股份有限公司 A kind of sound wave collocation method of Internet of Things smart machine and configuration system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
常见智能硬件无线网络配置方案研究;苏神保;《智能计算机与应用》;20171231;第7卷(第6期);第87页 *

Also Published As

Publication number Publication date
CN110189763A (en) 2019-08-30

Similar Documents

Publication Publication Date Title
JP6099556B2 (en) Voice identification method and apparatus
JP5819435B2 (en) Method and apparatus for determining the location of a mobile device
JP6101196B2 (en) Voice identification method and apparatus
CN104067341A (en) Voice activity detection in presence of background noise
CN110827858B (en) Voice endpoint detection method and system
WO2017161829A1 (en) Voice signal information processing method and device
CN104103278A (en) Real time voice denoising method and device
CN109074814B (en) Noise detection method and terminal equipment
CN111883182B (en) Human voice detection method, device, equipment and storage medium
CN112309414B (en) Active noise reduction method based on audio encoding and decoding, earphone and electronic equipment
CN110111811A (en) Audio signal detection method, device and storage medium
CN110875059A (en) Method and device for judging reception end and storage device
CN110189763B (en) Sound wave configuration method and device and terminal equipment
CN108092741B (en) Communication method, terminal and communication equipment based on audio interface
CN112333608B (en) Voice data processing method and related product
CN110400573B (en) Data processing method and device
CN111343660B (en) Application program testing method and device
CN110890104B (en) Voice endpoint detection method and system
CN106910494B (en) Audio identification method and device
CN111739515B (en) Speech recognition method, equipment, electronic equipment, server and related system
WO2020186695A1 (en) Voice information batch processing method and apparatus, computer device, and storage medium
CN109446052B (en) Verification method and device for application program
CN113658581B (en) Acoustic model training method, acoustic model processing method, acoustic model training device, acoustic model processing equipment and storage medium
CN113205824B (en) Sound signal processing method, device, storage medium, chip and related equipment
CN109741756B (en) Method and system for transmitting operation signal based on USB external equipment

Legal Events

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