CN111884729B - Recording channel selection method and device and electronic equipment - Google Patents

Recording channel selection method and device and electronic equipment Download PDF

Info

Publication number
CN111884729B
CN111884729B CN202010695717.8A CN202010695717A CN111884729B CN 111884729 B CN111884729 B CN 111884729B CN 202010695717 A CN202010695717 A CN 202010695717A CN 111884729 B CN111884729 B CN 111884729B
Authority
CN
China
Prior art keywords
recording
sound
samples
intensity
target
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
CN202010695717.8A
Other languages
Chinese (zh)
Other versions
CN111884729A (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.)
Shanghai Audio Network Technology Co ltd
Original Assignee
Shanghai Audio Network Technology 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 Shanghai Audio Network Technology Co ltd filed Critical Shanghai Audio Network Technology Co ltd
Priority to CN202010695717.8A priority Critical patent/CN111884729B/en
Publication of CN111884729A publication Critical patent/CN111884729A/en
Application granted granted Critical
Publication of CN111884729B publication Critical patent/CN111884729B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B11/00Transmission systems employing sonic, ultrasonic or infrasonic waves
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/309Measuring or estimating channel quality parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/382Monitoring; Testing of propagation channels for resource allocation, admission control or handover

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Quality & Reliability (AREA)
  • Stereophonic System (AREA)

Abstract

The invention provides a recording channel selection method, a recording channel selection device and electronic equipment, wherein the method comprises the following steps: controlling a plurality of recording channels to start recording; respectively calculating the recording initial delay values of a plurality of recording channels; respectively calculating first sound intensity values of the sound recordings of the preset frequency bands of all the channels based on the delay values; determining a target sound recording channel based on the delay value and the first sound intensity value. When receiving the recording, pass through recording delay value and the sound intensity of the target sound wave of recording to a plurality of recording channels of terminal as the screening condition, detect the performance of each recording channel to can select more suitable recording channel as the road sign recording channel of target sound wave, can prevent when the terminal has a plurality of passageways, because the recording effect difference of every passageway is big and the not good and target audio frequency that appears of the recording effect that leads to detects and the problem that the analytic success rate is low.

Description

Recording channel selection method and device and electronic equipment
Technical Field
The invention relates to the field of intelligent application, in particular to a recording channel selection method and device and electronic equipment.
Background
The sound wave communication is realized by playing audio containing information by using a sending end, collecting the audio by using a receiving end and analyzing sent data to carry out communication. At present, technologies based on sound wave communication have been widely applied, such as advertisement push, information broadcast, and the like, data to be transmitted is carried in a target sound wave, the target sound wave is recorded by a receiving end, and the sound wave is analyzed to obtain target data. In order to widely popularize the technology, a plurality of terminals with recording functions in daily life can be used for recording the target sound wave, and the target sound wave is analyzed after the target sound wave is detected.
However, when the target sound wave is not successfully detected during recording of the audio, or when the target sound wave is analyzed after recording of the audio, the target sound wave may be unsuccessfully analyzed.
Disclosure of Invention
The problem that the success rate of detection or analysis of sound wave communication recording is low in the prior art is solved.
According to a first aspect, the present invention provides a recording channel selection method, including: controlling a plurality of recording channels to start recording; respectively calculating the recording initial delay values of a plurality of recording channels; respectively calculating first sound intensity values of the sound recordings of the preset frequency bands of all the channels based on the delay values; determining a target sound recording channel based on the delay value and the first sound intensity value.
Optionally, the calculating the recording start delay values of the plurality of recording channels respectively includes: performing at least two times of first sampling on the sound record at a preset frequency, wherein the number of sound record samples of each time of first sampling is multiple; respectively calculating second sound intensity of at least part of the first sampled recording samples; the delay value is determined based on a difference in second sound intensities of the first samples at different times.
Optionally, the respectively calculating the second sound intensities of at least some of the acquired sound recording samples includes: performing Fourier transform on the recording sample; and calculating the low-frequency sound intensity in the transformed recording sample as the second sound intensity.
Optionally, the calculating the low-frequency sound intensity in the transformed sound recording sample as the second sound intensity includes: selecting first N sound recording samples of the first sample, wherein N is an integer greater than or equal to 1; and calculating the low-frequency sound intensity in the transformed recording samples of the first N recording samples as the second sound intensity.
Optionally, the determining the delay value based on the difference of the second sound intensities acquired at different times comprises: sequentially comparing whether the difference value of the second sound intensity of the sound samples of the adjacent two times of first sampling is greater than the preset intensity; and when the difference is greater than the preset intensity, taking the time difference from the moment of starting the recording to the moment of collecting the sound sample with the difference greater than the preset intensity in the last first sampling as the delay value.
Optionally, the calculating the first sound intensity values of the sound recordings of the preset frequency bands of the respective channels respectively based on the delay values includes: determining a target recording start time based on the delay value; performing second sampling on the target recording from the starting moment of the target recording to obtain a plurality of target recording samples; and calculating the average sound intensity of the preset frequency band in M target recording samples as a first sound intensity, wherein M is an integer greater than or equal to 1.
Optionally, the calculating the average sound intensity of the M target sound recording samples as the first sound intensity includes: performing a Fourier transform on the target sound sample; selecting M target recording samples from the X-th target recording sample (continuously or discontinuously) in the plurality of converted target recording samples; calculating the preliminary average sound intensity of the preset frequency band in the M target recording samples; repeatedly performing Fourier transform on the target sound samples for a preset time, selecting M target sound samples from the X-th target sound sample (continuously or discontinuously) in the transformed target sound samples, and calculating the initial average sound intensity of the preset frequency band in the M target sound samples to obtain a plurality of initial average sound intensities; the average value of the plurality of preliminary average sound intensities is taken as the average sound intensity.
Optionally, the determining a recording channel based on the delay value and the first sound intensity value comprises: and selecting the channel with the minimum delay value and the maximum first sound intensity as the target recording channel.
According to a second aspect, an embodiment of the present invention provides a recording channel selection apparatus, including: the starting module is used for controlling the plurality of recording channels to start recording; the first calculation module is used for calculating the recording starting delay values of the plurality of recording channels respectively; the second calculation module is used for calculating first sound intensity values of the sound recordings of the preset frequency bands of all the channels respectively based on the delay values; a selection module to determine a recording channel based on the delay value and the first sound intensity value
According to a third aspect, embodiments of the present invention provide an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to cause the at least one processor to perform the recording channel selection method as described in any of the first aspect above.
According to a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, in which computer instructions are stored, the computer instructions being configured to cause a computer to execute the recording channel selection method described in any one of the first aspect.
The invention has the following beneficial effects:
when receiving the recording, pass through recording delay value and the sound intensity of the target sound wave of recording to a plurality of recording channels of terminal as the screening condition, detect the performance of each recording channel to can select more suitable recording channel as the road sign recording channel of target sound wave, can prevent when the terminal has a plurality of passageways, because the recording effect difference of every passageway is big and the not good and target audio frequency that appears of the recording effect that leads to detects and the problem that the analytic success rate is low.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a recording channel selection method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating a recording channel selection method according to another embodiment of the present invention;
FIG. 3 is a schematic diagram of a recording channel selection apparatus according to another embodiment of the present invention;
fig. 4 is a schematic diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
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 embodiment of the invention provides a recording channel selection method, which is implemented based on sound wave communication, and specifically can be used for selecting a recording channel of a user terminal, such as an intelligent terminal like a mobile phone, a tablet personal computer, and an intelligent wearable device, and also can be used for selecting a recording channel of other devices with a recording function. After recording the audio information, the same user terminal transmits the audio information to the background server, the server can analyze the audio information to obtain transmission data, an application program or a small program can be installed on the user terminal, a recording channel of the user terminal can be called to receive the audio information after a user opens a reference program, and the audio information can be actively sent out by the user terminal to be identified by other people. Taking the application program controlling the recording channel to start the recording function as an example, the inventor finds that a phenomenon that the detection of the target sound wave is unsuccessful or a phenomenon that the connection and the disconnection are failed may occur. The inventor researches and discovers that a general terminal with a recording function may have a plurality of recording channels, for example, a mobile phone has 2-5 recording channels, which respectively correspond to a built-in microphone, an external microphone, a wireless bluetooth microphone, a special microphone for enhancing human voice and several recording channels of an original signal microphone, however, the recording effect of each channel is very different, the recording capability of each channel for audio with specific frequency is different, and the recording delay is different, even under different environments, the performance of each recording channel is different, if recording is performed, if not selected, the detection success rate or the analysis success rate may be directly affected.
Based on this, before recording, each recording channel needs to be detected, and the recording channel selection method in the present application may detect each recording channel based on the application program being run for the first time, as shown in fig. 1, the recording channel selection method may specifically include the following steps:
and S10, controlling a plurality of recording channels to start recording. As an exemplary embodiment, the recording channel may be opened to record the target audio based on the installed application, or the invoked applet. In this embodiment, the start time of starting the recording channel may be recorded.
And S20, respectively calculating the recording start delay values of the plurality of recording channels. As an exemplary embodiment, when the recording channels are turned on, it is detected whether the audio information recorded in each channel includes a target audio or whether to start receiving sound, so as to calculate a delay value for each recording channel to record the target sound.
And S30, respectively calculating first sound intensity values of the sound recordings of the preset frequency bands of all the sound recording channels based on the delay values. After the recording delay values of the recording channels are calculated, the time point at which the channels start to receive the sound may be determined, and the time point at which the channels start to receive the sound is taken as a starting point, and the sound intensity, for example, the sound decibel value, of the recording in the preset frequency band in each recording channel is calculated, where the recording in the preset frequency band may be the target sound wave.
And S40, determining a target sound recording channel based on the delay value and the first sound intensity value. As an exemplary embodiment, after obtaining the recording delay values of the channels and the first sound intensity value of the recording of the preset frequency band, the recording channel with the lowest recording delay value and the largest first sound intensity may be used as the target recording channel, and when analyzing the target sound wave, only the audio recorded by the target recording channel is analyzed. And selecting the channel with the minimum delay value and the maximum first sound intensity as the target recording channel.
When receiving the recording, pass through recording delay value and the sound intensity of the target sound wave of recording to a plurality of recording channels of terminal as the screening condition, detect the performance of each recording channel to can select more suitable recording channel as the road sign recording channel of target sound wave, can prevent when the terminal has a plurality of passageways, because the recording effect difference of every passageway is big and the not good and target audio frequency that appears of the recording effect that leads to detects and the problem that the analytic success rate is low.
As an exemplary embodiment, when calculating the recording delay value, it may be determined whether to start taking over the recording signal based on the detected change of the sound intensity of each recording channel, and in particular, referring to fig. 2, the method for calculating the recording delay value may include the following steps:
s21, performing at least two times of first sampling on the sound record at a preset frequency, wherein the number of sound record samples of each time of first sampling is multiple. As an exemplary embodiment, the sampling may be performed at a sampling frequency of 48K, although it will be understood by those skilled in the art that sampling may also be performed at a higher or lower sampling frequency. The recording is taken a predetermined number of samples at a predetermined frequency starting at the time the recording channel is initiated, for example, 1024 samples may be taken at a sampling frequency of 48K, or other more or less samples. In this embodiment, a plurality of consecutive samplings may be performed, and the number of samples sampled at each time may be the same or different.
And S22, respectively calculating second sound intensity of at least part of the sound recording samples in the first sampled sound recording samples. As an exemplary embodiment, a part of the sound recording samples may be selected from the sound recording script of each first sampling, or all the sound recording samples may be selected, fourier transform is performed on the selected sound recording samples, and the sound intensity of the changed sound recording samples is calculated. As an exemplary embodiment, the samples selected may be the first N sound recording samples of the first sample, where N is an integer greater than or equal to 1, and the samples after the 1 st to 10 th transformation may be selected to calculate the decibel number of the low frequency part sound.
And S23, determining the delay value based on the difference value of the second sound intensity of the first samples at different times. For example, whether the difference of the second sound intensities of the sound samples of the two adjacent first samples is greater than the preset intensity may be compared in sequence or at intervals; and when the difference is greater than the preset intensity, taking the time difference from the moment of starting the recording to the moment of collecting the sound sample with the difference greater than the preset intensity in the last first sampling as the delay value. And when the intensity is less than the preset intensity, continuing the comparison. For example, the second sound intensity calculated after the first sampling is performed for the first time is compared with the second sound intensity calculated after the second sampling is performed for the second time, and when the second sound intensity is greater than the preset value, the time difference between the sampling time of the current sample in the second sampling and the start time of the recording channel is used as the delay value. In this embodiment, the time of the last sampling may be used as the time of starting recording, and the time difference between the time of starting recording and the time of starting the recording channel may be used as the delay value.
The calculation of the delay value is explained in detail below with a specific example.
(1) 1024 recorded samples (21.3333 ms for 48000 samples) were taken and fourier transformed.
(2) And taking the 1 st to 10 th transformed samples to calculate the sound decibel value of the low-frequency part.
(3) And (3) repeating the step (1) at least once, comparing the difference of the decibel values of the two times of sampling, if the difference is greater than the preset decibel value, considering that the recording signal is received from the sample acquisition moment when the difference in the last sampling is greater than the preset value, and recording the recording signal as a delay value. For example, the time of the last sampling may be used as the time of starting recording, and the time difference between the time of starting recording and the time of starting the recording channel may be used as the delay value. For example, when the decibel value difference is greater than the preset decibel value by the sampling time a, the time a × 21.33333 ms is taken as the time when the recording starts to be received.
As an exemplary embodiment, after determining each channel delay value, the average value of the recording intensities at the preset frequency may be calculated as the first recording intensity value for a selected part of the recording samples subjected to hough transform, starting at the time when the recording is received by each recording channel. Specifically, the receiving start time of the target recording is determined based on the delay value; performing second sampling on the target recording from the starting moment of the target recording to obtain a plurality of target recording samples; and calculating the average sound intensity of the preset frequency band in M target recording samples as a first sound intensity, wherein M is an integer greater than or equal to 1. For example, M target recording samples may be selected (continuously or discontinuously) from the X-th target recording sample in the multiple target recording samples after fourier transform when calculating the average sound intensity of the preset frequency band; calculating the preliminary average sound intensity of the preset frequency band in the M target recording samples; repeatedly performing Fourier transform on the target sound samples for a preset time, selecting M target sound samples from the X-th target sound sample (continuously or discontinuously) in the transformed target sound samples, and calculating the initial average sound intensity of the preset frequency band in the M target sound samples to obtain a plurality of initial average sound intensities; the average value of the plurality of preliminary average sound intensities is taken as the average sound intensity. Illustratively, the steps of calculating the recording decibel averages from 18K to 20K from 384 th to 426 th in the FFT-transformed samples are repeated a plurality of times, and the average sound intensity value is obtained by accumulating the recording decibel averages from 18K to 20K from 384 th to 426 th in the FFT-transformed samples.
An embodiment of the present invention provides a recording channel selection apparatus, as shown in fig. 2, the apparatus may include: the starting module 10 is used for controlling a plurality of recording channels to start recording; a first calculating module 20, configured to calculate recording start delay values of a plurality of recording channels respectively; the second calculating module 20 is configured to calculate first sound intensity values of the sound recordings in the preset frequency bands of the channels respectively based on the delay values; a selection module 40 for determining a recording channel based on the delay value and the first sound intensity value.
An embodiment of the present invention provides an electronic device, as shown in fig. 4, the electronic device includes one or more processors 41 and a memory 42, and one processor 43 is taken as an example in fig. 4.
The controller may further include: an input device 43 and an output device 44.
The processor 41, the memory 42, the input device 43 and the output device 44 may be connected by a bus or other means, and fig. 4 illustrates the connection by a bus as an example.
The processor 41 may be a Central Processing Unit (CPU). The processor 41 may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or combinations thereof. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 42, which is a non-transitory computer readable storage medium, can be used for storing non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the control methods in the embodiments of the present application. The processor 41 executes various functional applications of the server and data processing by running non-transitory software programs, instructions and modules stored in the memory 42, namely, implements the recording channel selection method of the above-described method embodiment.
The memory 42 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of a processing device operated by the server, and the like. Further, the memory 42 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 42 may optionally include memory located remotely from processor 41, which may be connected to a network connection device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 43 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the processing device of the server. The output device 44 may include a display device such as a display screen.
One or more modules are stored in the memory 42 and, when executed by the one or more processors 41, perform the method as shown in fig. 1 or 2.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and the 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 modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods of the various embodiments or some parts of the embodiments.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and the 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 modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods of the various embodiments or some parts of the embodiments.
Finally, the principle and the implementation of the present invention are explained by applying the specific embodiments in the present invention, and the above description of the embodiments is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (6)

1. A method for selecting a recording channel, comprising:
controlling a plurality of recording channels to start recording;
respectively calculating the recording initial delay values of a plurality of recording channels;
respectively calculating first sound intensity values of the sound recordings of the preset frequency bands of all the channels based on the delay values;
determining a target sound recording channel based on the delay value and the first sound intensity value;
the calculating the recording start delay values of the plurality of recording channels respectively comprises:
performing at least two times of first sampling on the sound record at a preset frequency, wherein the number of sound record samples of each time of first sampling is multiple;
respectively calculating second sound intensity of at least part of the first sampled recording samples;
determining the delay value based on a difference of second sound intensities of different times of the first samples;
the respectively calculating the second sound intensity of at least part of the collected sound recording samples comprises:
performing Fourier transform on the recording sample;
calculating the low-frequency sound intensity in the transformed recording sample as the second sound intensity;
the computing the low frequency sound intensity in the transformed recording sample as the second sound intensity comprises:
selecting first N sound recording samples of the first sample, wherein N is an integer greater than or equal to 1;
calculating the low-frequency sound intensity in the transformed recording samples of the first N recording samples as the second sound intensity;
the determining the delay value based on the difference of the second sound intensities acquired at different times comprises:
sequentially comparing whether the difference value of the second sound intensity of the sound samples of the adjacent two times of first sampling is greater than the preset intensity;
and when the difference is greater than the preset intensity, taking the time difference from the moment of starting the recording to the moment of collecting the sound sample with the difference greater than the preset intensity in the last first sampling as the delay value.
2. The method for selecting a recording channel of claim 1, wherein the calculating the first sound intensity values of the recordings in the predetermined frequency bands of the respective channels based on the delay values comprises:
determining a target recording start time based on the delay value;
performing second sampling on the target recording from the starting moment of the target recording to obtain a plurality of target recording samples;
and calculating the average sound intensity of the preset frequency band in M target recording samples as a first sound intensity, wherein M is an integer greater than or equal to 1.
3. The method of claim 2, wherein the calculating the average sound intensity of the M target sound recording samples as the first sound intensity comprises:
performing Fourier transform on the target sound sample;
continuously or discontinuously selecting M target recording samples from the X-th target recording sample in the plurality of converted target recording samples;
calculating the preliminary average sound intensity of the preset frequency band in the M target recording samples;
repeatedly performing Fourier transform on the target sound samples for a preset time, continuously or discontinuously selecting M target sound samples from the X-th target sound sample in the plurality of converted target sound samples, and calculating the preliminary average sound intensity of the preset frequency band in the M target sound samples to obtain a plurality of preliminary average sound intensities;
the average value of the plurality of preliminary average sound intensities is taken as the average sound intensity.
4. The method of claim 1, wherein the determining a recording channel based on the delay value and the first sound intensity value comprises:
and selecting the channel with the minimum delay value and the maximum first sound intensity as the target recording channel.
5. A recording channel selection apparatus, comprising:
the starting module is used for controlling the plurality of recording channels to start recording;
the first calculation module is used for calculating the recording starting delay values of the plurality of recording channels respectively;
the second calculation module is used for calculating first sound intensity values of the sound recordings of the preset frequency bands of all the channels respectively based on the delay values;
a selection module to determine a recording channel based on the delay value and the first sound intensity value;
the calculating the recording start delay values of the plurality of recording channels respectively comprises: performing at least two times of first sampling on the sound record at a preset frequency, wherein the number of sound record samples of each time of first sampling is multiple; respectively calculating second sound intensity of at least part of the first sampled recording samples; determining the delay value based on a difference of second sound intensities of different times of the first samples;
the respectively calculating the second sound intensity of at least part of the collected sound recording samples comprises: performing Fourier transform on the recording sample; calculating the low-frequency sound intensity in the transformed recording sample as the second sound intensity;
the computing the low frequency sound intensity in the transformed recording sample as the second sound intensity comprises: selecting first N sound recording samples of the first sample, wherein N is an integer greater than or equal to 1; calculating the low-frequency sound intensity in the transformed recording samples of the first N recording samples as the second sound intensity;
the determining the delay value based on the difference of the second sound intensities acquired at different times comprises: sequentially comparing whether the difference value of the second sound intensity of the sound samples of the adjacent two times of first sampling is greater than the preset intensity; and when the difference is greater than the preset intensity, taking the time difference from the moment of starting the recording to the moment of collecting the sound sample with the difference greater than the preset intensity in the last first sampling as the delay value.
6. An electronic device, comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to cause the at least one processor to perform the recording channel selection method of any one of claims 1-4.
CN202010695717.8A 2020-07-17 2020-07-17 Recording channel selection method and device and electronic equipment Active CN111884729B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010695717.8A CN111884729B (en) 2020-07-17 2020-07-17 Recording channel selection method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010695717.8A CN111884729B (en) 2020-07-17 2020-07-17 Recording channel selection method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN111884729A CN111884729A (en) 2020-11-03
CN111884729B true CN111884729B (en) 2022-03-01

Family

ID=73154869

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010695717.8A Active CN111884729B (en) 2020-07-17 2020-07-17 Recording channel selection method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111884729B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101682366A (en) * 2007-06-08 2010-03-24 索尼株式会社 Sound signal processor and delay time setting method
CN102595004A (en) * 2011-12-21 2012-07-18 上海会畅通讯科技发展有限公司 Recording method and device for conference call
JP2012253804A (en) * 2011-05-12 2012-12-20 Sharp Corp Output system and display system
CN108053834A (en) * 2017-12-05 2018-05-18 北京声智科技有限公司 audio data processing method, device, terminal and system
CN108257605A (en) * 2018-02-01 2018-07-06 广东欧珀移动通信有限公司 Multichannel recording method, apparatus and electronic equipment
CN109451417A (en) * 2018-11-29 2019-03-08 欧阳院红 Multichannel audio processing method and system
CN111147655A (en) * 2018-11-02 2020-05-12 北京微播视界科技有限公司 Model generation method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107071127A (en) * 2017-04-28 2017-08-18 维沃移动通信有限公司 A kind of way of recording and mobile terminal
CN107360387A (en) * 2017-07-13 2017-11-17 广东小天才科技有限公司 The method, apparatus and terminal device of a kind of video record
CN111045633A (en) * 2018-10-12 2020-04-21 北京微播视界科技有限公司 Method and apparatus for detecting loudness of audio signal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101682366A (en) * 2007-06-08 2010-03-24 索尼株式会社 Sound signal processor and delay time setting method
JP2012253804A (en) * 2011-05-12 2012-12-20 Sharp Corp Output system and display system
CN102595004A (en) * 2011-12-21 2012-07-18 上海会畅通讯科技发展有限公司 Recording method and device for conference call
CN108053834A (en) * 2017-12-05 2018-05-18 北京声智科技有限公司 audio data processing method, device, terminal and system
CN108257605A (en) * 2018-02-01 2018-07-06 广东欧珀移动通信有限公司 Multichannel recording method, apparatus and electronic equipment
CN111147655A (en) * 2018-11-02 2020-05-12 北京微播视界科技有限公司 Model generation method and device
CN109451417A (en) * 2018-11-29 2019-03-08 欧阳院红 Multichannel audio processing method and system

Also Published As

Publication number Publication date
CN111884729A (en) 2020-11-03

Similar Documents

Publication Publication Date Title
CN110600059B (en) Acoustic event detection method and device, electronic equipment and storage medium
US11282514B2 (en) Method and apparatus for recognizing voice
CN110290280B (en) Terminal state identification method and device and storage medium
CN102214464A (en) Transient state detecting method of audio signals and duration adjusting method based on same
CN108877783A (en) The method and apparatus for determining the audio types of audio data
CN110688518A (en) Rhythm point determining method, device, equipment and storage medium
CN112399247A (en) Audio processing method, audio processing device and readable storage medium
CN112185424A (en) Voice file cutting and restoring method, device, equipment and storage medium
CN110324566B (en) Method, device and equipment for testing sound delay in video conference
CN109309763B (en) Voiceprint-based outbound detection method and system
CN110148426B (en) Howling detection method and equipment, storage medium and electronic equipment thereof
WO2024099359A1 (en) Voice detection method and apparatus, electronic device and storage medium
CN112562727B (en) Audio scene classification method, device and equipment applied to audio monitoring
CN111884729B (en) Recording channel selection method and device and electronic equipment
CN112423019B (en) Method and device for adjusting audio playing speed, electronic equipment and storage medium
CN111341333B (en) Noise detection method, noise detection device, medium, and electronic apparatus
CN112687293B (en) Intelligent agent training method and system based on machine learning and data mining
CN107154996B (en) Incoming call interception method and device, storage medium and terminal
CN111028860B (en) Audio data processing method and device, computer equipment and storage medium
CN104581538A (en) Noise eliminating method and device
CN112002339B (en) Speech noise reduction method and device, computer-readable storage medium and electronic device
CN111477248B (en) Audio noise detection method and device
CN112291421B (en) Single-pass detection method and device based on voice communication, storage medium and electronic equipment
CN107564534A (en) Audio quality authentication method and device
CN111444384B (en) Audio key point determining 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