CN112002345B - Recording detection method and device suitable for sound waves - Google Patents
Recording detection method and device suitable for sound waves Download PDFInfo
- Publication number
- CN112002345B CN112002345B CN202010818770.2A CN202010818770A CN112002345B CN 112002345 B CN112002345 B CN 112002345B CN 202010818770 A CN202010818770 A CN 202010818770A CN 112002345 B CN112002345 B CN 112002345B
- Authority
- CN
- China
- Prior art keywords
- recording
- sound
- sample
- preset
- decibel
- 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
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 35
- 238000006243 chemical reaction Methods 0.000 claims abstract description 33
- 238000012545 processing Methods 0.000 claims abstract description 25
- 238000004422 calculation algorithm Methods 0.000 claims abstract description 13
- 230000008859 change Effects 0.000 claims abstract description 4
- 238000000034 method Methods 0.000 claims description 21
- 230000009466 transformation Effects 0.000 claims description 14
- 238000005070 sampling Methods 0.000 claims description 11
- 230000001131 transforming effect Effects 0.000 claims description 9
- 238000004590 computer program Methods 0.000 claims description 8
- 238000013139 quantization Methods 0.000 claims description 8
- 238000004364 calculation method Methods 0.000 claims description 6
- 230000008569 process Effects 0.000 description 7
- 238000004891 communication Methods 0.000 description 3
- 230000004044 response Effects 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L25/00—Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
- G10L25/48—Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use
- G10L25/51—Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use for comparison or discrimination
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L25/00—Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
- G10L25/78—Detection of presence or absence of voice signals
Landscapes
- Engineering & Computer Science (AREA)
- Computational Linguistics (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)
- Signal Processing For Digital Recording And Reproducing (AREA)
- Measurement Of Mechanical Vibrations Or Ultrasonic Waves (AREA)
Abstract
The invention provides a recording detection device suitable for sound waves, which comprises: the system comprises a sample acquisition module, a sound acquisition module and a sound processing module, wherein the sample acquisition module is used for randomly acquiring a plurality of sound recording samples acquired by sound recording equipment, and each sound recording sample comprises a section of sound wave; the change module is used for respectively converting the plurality of sound recording samples based on an FFT algorithm to generate conversion samples, wherein each sound recording sample corresponds to one conversion sample; the system comprises a respective acquisition module, a data processing module and a data processing module, wherein the respective acquisition module is used for acquiring decibel values of sound waves in a low-frequency region in a conversion sample; the secondary acquisition module is used for repeating the steps, acquiring the decibel value of the sound wave in the low-frequency region in the conversion sample again, and comparing the decibel values acquired twice; and the control module is used for controlling the recording equipment to start recording if the decibel values obtained twice are compared and then are larger than a preset value. The recording detection method and the recording detection device are suitable for sound waves, can automatically detect and match the best recording parameters on a mobile phone, and ensure the success rate of ultrasonic detection. And the uploaded recording is only 6KB after the SDK is optimized, so that the network bandwidth is greatly saved, and the recording quality and the detection success rate are ensured to the greatest extent.
Description
Technical Field
The invention relates to acoustics and detection technologies, in particular to a recording detection method and device suitable for sound waves.
Background
Sound Wave (Sound Wave or Acoustic Wave) is the transmission form of Sound, and current technical schemes such as Sound Wave detection, recording are all more mature. In the prior art, a step of sound wave detection is performed before sound wave recording is performed, and recording is started after the sound wave is larger than a preset decibel, but the sound wave detection time in the prior art is long, and is about 2 seconds, so that the recording delay is long, the reaction is slow, and the identification rate is poor.
Disclosure of Invention
The embodiment of the invention provides a recording detection method and device suitable for sound waves, which have the advantages of short recording delay, quick response and high recognition rate.
In a first aspect of the embodiments of the present invention, a recording detection method suitable for sound waves is provided, including:
randomly acquiring a plurality of recording samples acquired by a recording device, wherein each recording sample comprises a section of sound wave;
respectively transforming the plurality of sound recording samples based on an FFT algorithm to generate transformed samples, wherein each sound recording sample corresponds to one transformed sample;
acquiring decibel values of sound waves in a low-frequency area in a conversion sample;
repeating the steps, obtaining the decibel value of the sound wave in the low-frequency area in the conversion sample again, and comparing the decibel values obtained twice;
and if the decibel values obtained twice are compared to be larger than a preset value, controlling the recording equipment to start recording.
Optionally, in a possible implementation manner of the first aspect, if the decibel values obtained twice are greater than a preset value after being compared, controlling the recording device to start recording includes:
the time of randomly acquiring a plurality of recording samples collected by the recording equipment is taken as the starting time, and the time of controlling the recording equipment to start recording is taken as the current time;
and setting the time periods of the starting time and the current time as delay time values.
Optionally, in a possible implementation manner of the first aspect, after the step of setting the time periods of the start time and the current time as the delay time values, the method further includes:
acquiring all moments which simultaneously meet a preset time range and a preset decibel range in a transformation sample and decibel values corresponding to the moments;
and calculating the average value of the decibels at all the moments which simultaneously meet the preset time range and the preset decibel range to obtain the average decibel value.
Optionally, in a possible implementation manner of the first aspect, the transforming the plurality of sound recording samples based on an FFT algorithm respectively to generate transformed samples, where each sound recording sample corresponds to one transformed sample includes:
performing FFT (fast Fourier transform) conversion of a first preset point number on the recording samples, and performing 0 complementing treatment if the recording length is not enough than the first preset point number;
performing FFT inverse transformation of a third preset point on the FFT transformation result of the second preset point from the preset starting point
Copying a fourth preset point number from the inverse transformation result of the third preset point number as a result of the next processing;
traversing the re-sampled data points, determining a maximum value and a minimum value, calculating an average value and an interval range, and dividing the interval range by 256 to obtain a conversion factor;
and traversing the data points again, and carrying out 8BIT quantization on the original value of the sound recording sampling, wherein the quantization value is an 8BIT result.
In one embodiment, 65536 point FFT is performed on the recorded samples;
and if the length of the recording sample is less than 65536 points, performing 0 complementing processing on the recording sample.
Optionally, in a possible implementation manner of the first aspect, the record samples are subjected to 65536 point FFT, and the recording length is not sufficient for 65536 points, and 0 is complemented
The FFT result of 4096 points in total from 24064 points is performed with the inverse FFT conversion of 8192 points
Copying 5512 points (original 44100 samples) or 6000 points (original 48000 samples) from the reverse transformation result of 8192 points as the result of the next processing
Traversing the re-sampled data points, determining the maximum value and the minimum value, calculating the average value (average value) and the interval range, and dividing the interval range by 256 to obtain a conversion factor (factor)
The data point is traversed again, and the original value (raw value) is subjected to 8BIT quantization, and the quantized value is 8BIT value = (raw value-average value)/factor.
In a second aspect of the embodiments of the present invention, there is provided a recording detection apparatus suitable for sound waves, including:
the system comprises a sample acquisition module, a sound acquisition module and a sound processing module, wherein the sample acquisition module is used for randomly acquiring a plurality of sound recording samples acquired by sound recording equipment, and each sound recording sample comprises a section of sound wave;
the change module is used for respectively converting the plurality of sound recording samples based on an FFT algorithm to generate conversion samples, wherein each sound recording sample corresponds to one conversion sample;
the system comprises a respective acquisition module, a data processing module and a data processing module, wherein the respective acquisition module is used for acquiring decibel values of sound waves in a low-frequency region in a conversion sample;
the secondary acquisition module is used for repeating the steps, acquiring the decibel value of the sound wave in the low-frequency region in the conversion sample again, and comparing the decibel values acquired twice;
and the control module is used for controlling the recording equipment to start recording if the decibel values obtained twice are compared and then are larger than a preset value.
Optionally, in a possible implementation manner of the second aspect, the control module includes:
the delay calculation module is used for taking the time of randomly acquiring a plurality of recording samples acquired by the recording equipment as the starting time and taking the time of controlling the recording equipment to start recording as the current time;
and setting the time periods of the starting time and the current time as delay time values.
Optionally, in a possible implementation manner of the second aspect, the method further includes:
the deleting and selecting module is used for acquiring all moments which simultaneously meet a preset time range and a preset decibel range in the conversion sample and decibel values corresponding to the moments;
and the average value calculation module is used for calculating the average value of the decibels at all the moments meeting the preset time range and the preset decibel range simultaneously to obtain an average decibel value.
Optionally, in a possible implementation manner of the second aspect, the transforming the plurality of sound recording samples based on an FFT algorithm respectively to generate transformed samples, where each sound recording sample corresponds to one transformed sample includes:
performing 65536-point FFT on the sound recording samples;
and if the length of the recording sample is less than 65536 points, performing 0 complementing processing on the recording sample.
A fourth aspect of the embodiments of the present invention provides a readable storage medium, in which a computer program is stored, and the computer program is used for implementing the method according to the first aspect of the present invention and various possible designs of the first aspect of the present invention when the computer program is executed by a processor.
The recording detection method and the recording detection device suitable for the sound waves can automatically detect and match the optimal recording parameters on a mobile phone, and ensure the success rate of ultrasonic detection. And the uploaded recording is only 6KB after the SDK is optimized, so that the network bandwidth is greatly saved, and the recording quality and the detection success rate are ensured to the greatest extent.
Drawings
FIG. 1 is a flow chart of a first embodiment of a method for detecting a recorded sound adapted for use with sound waves;
fig. 2 is a configuration diagram of a first embodiment of a recording detection apparatus applied to an acoustic wave.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein.
It should be understood that, in various embodiments of the present invention, the sequence numbers of the processes do not mean the execution sequence, and the execution sequence of the processes should be determined by the functions and the internal logic of the processes, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
It should be understood that in the present application, "comprising" and "having" and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be understood that, in the present invention, "a plurality" means two or more. "and/or" is merely an association describing an associated object, meaning that three relationships may exist, for example, and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "comprises A, B and C" and "comprises A, B, C" means that all three of A, B, C comprise, "comprises A, B or C" means that one of A, B, C comprises, "comprises A, B and/or C" means that any 1 or any 2 or 3 of A, B, C comprises.
It should be understood that in the present invention, "B corresponding to a", "a corresponds to B", or "B corresponds to a" means that B is associated with a, and B can be determined from a. Determining B from a does not mean determining B from a alone, but may be determined from a and/or other information. And the matching of A and B means that the similarity of A and B is greater than or equal to a preset threshold value.
As used herein, "if" may be interpreted as "at … …" or "when … …" or "in response to a determination" or "in response to a detection", depending on the context.
The technical solution of the present invention will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
The invention provides a recording detection method suitable for sound waves, which is a flow chart shown in figure 1 and comprises the following steps:
s110, randomly acquiring a plurality of sound recording samples collected by the sound recording equipment, wherein each sound recording sample comprises a section of sound wave. Of these, 1024 sound recording samples can be taken (21.3333 milliseconds at 48000 samples).
And S120, respectively transforming the plurality of sound recording samples based on an FFT algorithm to generate transformed samples, wherein each sound recording sample corresponds to one transformed sample.
And S130, acquiring decibel values of the sound waves in the low-frequency region in the conversion sample. And (3) calculating the decibel number of the sound of the low-frequency part by taking the 1 st to 10 th transformed samples, wherein the low-frequency signal is intersected with the high-frequency signal and is easier to obtain and obtain.
And S140, repeating the steps, obtaining the decibel value of the sound wave in the low-frequency region in the conversion sample again, and comparing the decibel values obtained twice. In this step, the difference in decibel values between the two samplings is compared at least once.
S150, if the decibel values obtained in the two times are compared and then are larger than a preset value, controlling the recording equipment to start recording. The preset value may be 1 db, and if it is greater than 1 db, it is considered that the recording signal is received from the time (N x 21.333333) ms.
Optionally, in a possible implementation manner of the first aspect, if the decibel values obtained twice are greater than a preset value after being compared, controlling the recording device to start recording includes:
the time of randomly acquiring a plurality of recording samples collected by the recording equipment is taken as the starting time, and the time of controlling the recording equipment to start recording is taken as the current time;
and setting the time periods of the starting time and the current time as delay time values. Through the above steps, the delay value can be obtained.
Optionally, in a possible implementation manner of the first aspect, after the step of setting the time periods of the start time and the current time as the delay time values, the method further includes:
all moments which simultaneously meet a preset time range and a preset decibel range in the transformation sample and decibel values corresponding to the moments are obtained. The preset time range is 384 ms to 426 ms, and the preset decibel range is 18K to 20K.
And calculating the average value of the decibels at all the moments which simultaneously meet the preset time range and the preset decibel range to obtain the average decibel value.
Optionally, in a possible implementation manner of the first aspect, the transforming the plurality of sound recording samples based on an FFT algorithm respectively to generate transformed samples, where each sound recording sample corresponds to one transformed sample includes:
performing FFT conversion on the number of points of the sound recording samples, which is greater than the sampling frequency of the sound recording samples;
and if the length of the recording sample is not enough to the point which is greater than the sampling time frequency, performing 0 complementing processing on the recording sample.
In one embodiment, 65536 point FFT is performed on the recorded samples;
and if the length of the recording sample is less than 65536 points, performing 0 complementing processing on the recording sample.
Optionally, in a possible implementation manner of the first aspect, a 65536-point FFT transform is performed on the record samples, and 0 is complemented if the record length is not sufficient for 65536 points;
the FFT result of 4096 points in total from 24064 points is subjected to the inverse FFT at 8192 points.
5512 points (original 44100 samples) or 6000 points (original 48000 samples) are copied from the reverse transformation result of 8192 points as the result of the next processing.
Traversing the re-sampled data points, determining the maximum value and the minimum value, calculating the average value (average value) and the interval range, and dividing the interval range by 256 to obtain a conversion factor (factor)
The data point is traversed again, and 8BIT quantization is performed on the original value (raw value), and the quantized value is 8BIT value = (raw value-average value)/factor record average value, factor, and 8BIT quantized result for uploading to the server.
The size of the uploaded sound recording files is optimized, the WAV format sound recording files with 48000Hz sampling rate need 96KB, and the MP3 sound recording files need 50-60 KB. The uploading record after the new SDK is optimized is only 6KB, so that the network bandwidth is greatly saved, and the recording quality and the detection success rate are ensured to the maximum extent.
In a second aspect of the embodiments of the present invention, as shown in fig. 2, there is provided a recording detection apparatus suitable for sound waves, including:
the system comprises a sample acquisition module, a sound acquisition module and a sound processing module, wherein the sample acquisition module is used for randomly acquiring a plurality of sound recording samples acquired by sound recording equipment, and each sound recording sample comprises a section of sound wave;
the change module is used for respectively converting the plurality of sound recording samples based on an FFT algorithm to generate conversion samples, wherein each sound recording sample corresponds to one conversion sample;
the system comprises a respective acquisition module, a data processing module and a data processing module, wherein the respective acquisition module is used for acquiring decibel values of sound waves in a low-frequency region in a conversion sample;
the secondary acquisition module is used for repeating the steps, acquiring the decibel value of the sound wave in the low-frequency region in the conversion sample again, and comparing the decibel values acquired twice;
and the control module is used for controlling the recording equipment to start recording if the decibel values obtained twice are compared and then are larger than a preset value.
Optionally, in a possible implementation manner of the second aspect, the control module includes:
the delay calculation module is used for taking the time of randomly acquiring a plurality of recording samples acquired by the recording equipment as the starting time and taking the time of controlling the recording equipment to start recording as the current time;
and setting the time periods of the starting time and the current time as delay time values.
Optionally, in a possible implementation manner of the second aspect, the method further includes:
the deleting and selecting module is used for acquiring all moments which simultaneously meet a preset time range and a preset decibel range in the conversion sample and decibel values corresponding to the moments;
and the average value calculation module is used for calculating the average value of the decibels at all the moments meeting the preset time range and the preset decibel range simultaneously to obtain an average decibel value.
Optionally, in a possible implementation manner of the second aspect, the transforming the plurality of sound recording samples based on an FFT algorithm respectively to generate transformed samples, where each sound recording sample corresponds to one transformed sample includes:
performing 65536-point FFT on the sound recording samples;
and if the length of the recording sample is less than 65536 points, performing 0 complementing processing on the recording sample.
A fourth aspect of the embodiments of the present invention provides a readable storage medium, in which a computer program is stored, and the computer program is used for implementing the method according to the first aspect of the present invention and various possible designs of the first aspect of the present invention when the computer program is executed by a processor.
The recording detection method and the recording detection device suitable for the sound waves can automatically detect and match the optimal recording parameters on a mobile phone, and ensure the success rate of ultrasonic detection. And the uploaded recording is only 6KB after the SDK is optimized, so that the network bandwidth is greatly saved, and the recording quality and the detection success rate are ensured to the greatest extent.
The readable storage medium may be a computer storage medium or a communication medium. Communication media includes any medium that facilitates transfer of a computer program from one place to another. Computer storage media may be any available media that can be accessed by a general purpose or special purpose computer. For example, a readable storage medium is coupled to the processor such that the processor can read information from, and write information to, the readable storage medium. Of course, the readable storage medium may also be an integral part of the processor. The processor and the readable storage medium may reside in an Application Specific Integrated Circuits (ASIC). Additionally, the ASIC may reside in user equipment. Of course, the processor and the readable storage medium may also reside as discrete components in a communication device. The readable storage medium may be a read-only memory (ROM), a random-access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
The present invention also provides a program product comprising execution instructions stored in a readable storage medium. The at least one processor of the device may read the execution instructions from the readable storage medium, and the execution of the execution instructions by the at least one processor causes the device to implement the methods provided by the various embodiments described above.
In the above embodiments of the terminal or the server, it should be understood that the Processor may be a Central Processing Unit (CPU), other general-purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.
Claims (9)
1. A method for detecting a recorded sound adapted for use with sound waves, comprising:
randomly acquiring a plurality of recording samples acquired by a recording device, wherein each recording sample comprises a section of sound wave;
respectively transforming the plurality of sound recording samples based on an FFT algorithm to generate transformed samples, wherein each sound recording sample corresponds to one transformed sample;
acquiring decibel values of sound waves in a low-frequency area in a conversion sample;
repeating the steps, obtaining the decibel value of the sound wave in the low-frequency area in the conversion sample again, comparing the decibel values obtained twice, and comparing the difference of the decibel values obtained twice;
if the difference of the decibel values obtained twice is larger than a preset value, controlling the recording equipment to start recording;
performing FFT (fast Fourier transform) conversion of a first preset point number on the recording samples, and performing 0 complementing treatment if the recording length is not enough than the first preset point number;
performing FFT inverse transformation of a third preset point number on the FFT transformation result of the second preset point number from the preset starting point;
copying a fourth preset point number from the inverse transformation result of the third preset point number as a result of the next processing;
traversing the re-sampled data points, determining a maximum value and a minimum value, calculating an average value and an interval range, and dividing the interval range by 256 to obtain a conversion factor;
and traversing the data points again, and carrying out 8BIT quantization on the original value of the sound recording sampling, wherein the quantization value is an 8BIT result.
2. The audio recording detection method according to claim 1,
if the decibel values obtained twice are compared and then are larger than a preset value, controlling the recording equipment to start recording comprises the following steps:
the time of randomly acquiring a plurality of recording samples collected by the recording equipment is taken as the starting time, and the time of controlling the recording equipment to start recording is taken as the current time;
and setting the time periods of the starting time and the current time as delay time values.
3. The audio recording detection method according to claim 2,
after the step of setting the time periods of the starting time and the current time as the delay time values, the method further comprises the following steps:
acquiring all moments which simultaneously meet a preset time range and a preset decibel range in a transformation sample and decibel values corresponding to the moments;
and calculating the average value of the decibels at all the moments which simultaneously meet the preset time range and the preset decibel range to obtain the average decibel value.
4. The audio recording detection method according to claim 1,
transforming the plurality of sound recording samples based on an FFT algorithm respectively to generate transformed samples, wherein each sound recording sample corresponds to one transformed sample and comprises the following steps:
performing FFT conversion on the number of points of the sound recording samples, which is greater than the sampling frequency of the sound recording samples;
and if the length of the recording sample is not enough to the point which is greater than the sampling time frequency, performing 0 complementing processing on the recording sample.
5. A recording detection apparatus adapted for use with sound waves, comprising:
the system comprises a sample acquisition module, a sound acquisition module and a sound processing module, wherein the sample acquisition module is used for randomly acquiring a plurality of sound recording samples acquired by sound recording equipment, and each sound recording sample comprises a section of sound wave;
the change module is used for respectively converting the plurality of sound recording samples based on an FFT algorithm to generate conversion samples, wherein each sound recording sample corresponds to one conversion sample;
the system comprises a respective acquisition module, a data processing module and a data processing module, wherein the respective acquisition module is used for acquiring decibel values of sound waves in a low-frequency region in a conversion sample;
the secondary acquisition module is used for repeating the steps, acquiring the decibel value of the sound wave in the low-frequency region in the conversion sample again, comparing the decibel values acquired twice, and comparing the difference of the decibel values sampled twice;
the control module is used for controlling the recording equipment to start recording if the difference between the decibel values obtained twice is greater than a preset value;
performing FFT (fast Fourier transform) conversion of a first preset point number on the recording samples, and performing 0 complementing treatment if the recording length is not enough than the first preset point number;
performing FFT inverse transformation of a third preset point number on the FFT transformation result of the second preset point number from the preset starting point;
copying a fourth preset point number from the inverse transformation result of the third preset point number as a result of the next processing;
traversing the re-sampled data points, determining a maximum value and a minimum value, calculating an average value and an interval range, and dividing the interval range by 256 to obtain a conversion factor;
and traversing the data points again, and carrying out 8BIT quantization on the original value of the sound recording sampling, wherein the quantization value is an 8BIT result.
6. The recording detection apparatus of claim 5,
the control module includes:
the delay calculation module is used for taking the time of randomly acquiring a plurality of recording samples acquired by the recording equipment as the starting time and taking the time of controlling the recording equipment to start recording as the current time;
and setting the time periods of the starting time and the current time as delay time values.
7. The recording detection apparatus of claim 6,
further comprising:
the deleting and selecting module is used for acquiring all moments which simultaneously meet a preset time range and a preset decibel range in the conversion sample and decibel values corresponding to the moments;
and the average value calculation module is used for calculating the average value of the decibels at all the moments meeting the preset time range and the preset decibel range simultaneously to obtain an average decibel value.
8. The recording detection apparatus of claim 5,
transforming the plurality of sound recording samples based on an FFT algorithm respectively to generate transformed samples, wherein each sound recording sample corresponds to one transformed sample and comprises the following steps:
performing FFT conversion on the number of points of the sound recording samples, which is greater than the sampling frequency of the sound recording samples;
and if the length of the recording sample is not enough to the point which is greater than the sampling time frequency, performing 0 complementing processing on the recording sample.
9. A readable storage medium, in which a computer program is stored which, when being executed by a processor, is adapted to carry out the method of any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010818770.2A CN112002345B (en) | 2020-08-14 | 2020-08-14 | Recording detection method and device suitable for sound waves |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010818770.2A CN112002345B (en) | 2020-08-14 | 2020-08-14 | Recording detection method and device suitable for sound waves |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112002345A CN112002345A (en) | 2020-11-27 |
CN112002345B true CN112002345B (en) | 2021-10-15 |
Family
ID=73472405
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010818770.2A Active CN112002345B (en) | 2020-08-14 | 2020-08-14 | Recording detection method and device suitable for sound waves |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112002345B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113314156B (en) * | 2021-05-19 | 2022-12-06 | 北京明略软件系统有限公司 | Method and device for controlling recording of recording equipment, electronic equipment and readable storage medium |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH04195000A (en) * | 1990-11-27 | 1992-07-14 | Canon Inc | Information processing method and device |
CN105609118B (en) * | 2015-12-30 | 2020-02-07 | 生迪智慧科技有限公司 | Voice detection method and device |
CN107920310A (en) * | 2017-11-14 | 2018-04-17 | 维沃移动通信有限公司 | A kind of method and mobile terminal of multi-microphone recording |
WO2020173562A1 (en) * | 2019-02-27 | 2020-09-03 | The Provost, Fellows, Foundation Scholars, & The Other Members Of Board, Of The College Of The Holy & Undiv. Trinity Of Queen Elizabeth Near Dublin | System for wireless and passive monitoring of strain during manufacturing processes |
-
2020
- 2020-08-14 CN CN202010818770.2A patent/CN112002345B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN112002345A (en) | 2020-11-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100930060B1 (en) | Recording medium on which a signal detecting method, apparatus and program for executing the method are recorded | |
EP0897574A1 (en) | A noisy speech parameter enhancement method and apparatus | |
JP2006079079A (en) | Distributed speech recognition system and its method | |
CN110111811B (en) | Audio signal detection method, device and storage medium | |
CN113674763B (en) | Method, system, device and storage medium for identifying whistle by utilizing line spectrum characteristics | |
WO2019232826A1 (en) | I-vector extraction method, speaker recognition method and apparatus, device, and medium | |
CN112002345B (en) | Recording detection method and device suitable for sound waves | |
KR100930061B1 (en) | Signal detection method and apparatus | |
CN112151055B (en) | Audio processing method and device | |
CN113593604B (en) | Method, device and storage medium for detecting audio quality | |
CN108053834B (en) | Audio data processing method, device, terminal and system | |
US20060178881A1 (en) | Method and apparatus for detecting voice region | |
CN105791602B (en) | Sound quality testing method and system | |
CN117095698A (en) | Alarm sound identification method and device, electronic equipment and storage medium | |
CN110689898A (en) | Compression method and system for audio signal of live pig | |
JP2002041098A (en) | Frequency thinning device, frequency thinning method and recording medium | |
CN112802453B (en) | Fast adaptive prediction voice fitting method, system, terminal and storage medium | |
JP2002049397A (en) | Digital signal processing method, learning method, and their apparatus, and program storage media therefor | |
CN111081264B (en) | Voice signal processing method, device, equipment and storage medium | |
RU2436173C1 (en) | Method of detecting pauses in speech signals and device for realising said method | |
JP4538705B2 (en) | Digital signal processing method, learning method and apparatus, and program storage medium | |
KR101741141B1 (en) | Apparatus for suppressing noise and method thereof | |
CN111629108A (en) | Real-time identification method of call result | |
US9361905B2 (en) | Voice data playback speed conversion method and voice data playback speed conversion device | |
CN115938382B (en) | Noise reduction control method, device, equipment and storage medium |
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 |