Recording method, device, equipment and storage medium

文档序号:1467524 发布日期:2020-02-21 浏览:5次 中文

阅读说明:本技术 录音方法、装置、设备及存储介质 (Recording method, device, equipment and storage medium ) 是由 寇星 于 2019-11-18 设计创作,主要内容包括:本发明实施例公开了录音方法、装置、设备及存储介质。其中,该方法由包括至少两个音频采集设备执行,包括:获取采集到的第一声音信号,按照预设标准将第一声音信号确定为主音源;将至少两个音频采集设备中的每一个音频采集设备采集到的第二声音信号与主音源进行频谱对比,确定第二声音信号中的主信号;根据第二声音信号中的主信号在每个音频采集设备中的声音参数,确定至少两个音频采集设备中的主音频采集设备和副音频采集设备,采用主音频采集设备进行声音录制,采用副音频采集设备进行降噪处理。通过确定主音源,将语音与主音源比对得到主信号,确定音频采集设备的主副关系,从而发挥相应作用,提高对主信号判断的准确性和录音清晰度。(The embodiment of the invention discloses a recording method, a recording device, recording equipment and a recording medium. Wherein the method is performed by at least two audio capture devices, comprising: acquiring a collected first sound signal, and determining the first sound signal as a main sound source according to a preset standard; carrying out spectrum comparison on a second sound signal acquired by each of at least two audio acquisition devices and a main sound source, and determining a main signal in the second sound signal; and determining a main audio acquisition device and an auxiliary audio acquisition device of the at least two audio acquisition devices according to the sound parameters of the main signal in the second sound signal in each audio acquisition device, recording sound by adopting the main audio acquisition device, and performing noise reduction by adopting the auxiliary audio acquisition device. The main sound source is determined, the voice is compared with the main sound source to obtain the main signal, and the main-side relation of the audio acquisition equipment is determined, so that the corresponding effect is exerted, and the accuracy of judging the main signal and the recording definition are improved.)

1. A method of recording sound, the method being performed by a recording device comprising at least two audio capture devices, the method comprising:

acquiring a collected first sound signal, and determining the first sound signal as a main sound source according to a preset standard;

carrying out spectrum comparison on a second sound signal acquired by any one of at least two audio acquisition devices and the main sound source, and determining a main signal and an auxiliary signal in the second sound signal;

and determining a main audio acquisition device and an auxiliary audio acquisition device of at least two audio acquisition devices according to the sound parameters of the main signal in each audio acquisition device in the second sound signal, recording the sound of the main signal by adopting the main audio acquisition device, and performing noise reduction processing on the auxiliary signal by adopting the auxiliary audio acquisition device.

2. The method of claim 1, wherein obtaining the collected first sound signal, and determining the first sound signal as a main sound source according to a preset standard comprises:

acquiring preset voice awakening instruction content;

determining whether a first sound signal acquired by any one of at least two audio acquisition devices is matched with the voice wake-up instruction content;

and if so, determining the first sound signal as a main sound source.

3. The method of claim 1, wherein the spectrally comparing the second sound signal captured by any one of the at least two audio capture devices with the primary sound source to determine the primary signal and the secondary signal in the second sound signal comprises:

carrying out spectrum analysis on the main sound source, and recording the frequency amplitude;

and carrying out spectrum analysis on a second sound signal acquired by any one of at least two audio acquisition devices, comparing an analysis result of the second sound signal with the frequency amplitude, determining that the sound information of which the similarity with the frequency amplitude accords with a set threshold value is a main signal in the second sound signal, and determining that the sound information of which the similarity with the frequency amplitude does not accord with the set threshold value is an auxiliary signal in the second sound signal.

4. The method of claim 1, wherein the sound parameters comprise amplitude parameters; correspondingly, according to the sound parameter of the main signal in each audio acquisition device in the second sound signal, main audio acquisition device and auxiliary audio acquisition device in at least two audio acquisition devices are determined, the main audio acquisition device is adopted to record the sound of the main signal, and the auxiliary audio acquisition device is adopted to perform noise reduction processing on the auxiliary signal, including:

according to the amplitude parameter of the main signal in the second sound signal in each audio acquisition device, determining the audio acquisition device which acquires the amplitude parameter of the main signal in the second sound signal and accords with a preset rule as a main audio acquisition device, and determining the audio acquisition device which does not accord with the preset rule as an auxiliary audio acquisition device;

the main audio acquisition equipment is adopted to record the sound of the main signal, the auxiliary audio acquisition equipment is adopted to perform noise reduction processing on the auxiliary signal, the main signal is corrected through the auxiliary signal to obtain a corrected signal, and the corrected signal is used as a recording signal.

5. The method of claim 4, wherein after performing sound recording using the primary audio capture device and performing noise reduction using a secondary audio capture device, the method further comprises:

if the amplitude parameter of the main signal in the sound information collected by the auxiliary audio collecting device accords with a preset rule and the amplitude parameter of the main signal in the sound information collected by the main audio collecting device does not accord with the preset rule in the sound recording process, determining the main audio collecting device from the original auxiliary audio collecting device and switching the original main audio collecting device into the auxiliary audio collecting device.

6. The method of claim 4, wherein the modifying the main signal by the auxiliary signal to obtain a modified signal, and using the modified signal as the recording signal comprises:

according to the auxiliary signal collected by the auxiliary audio acquisition equipment, carrying out phase reversal processing on the sound phase of the auxiliary signal to obtain a phase reversal signal of the auxiliary signal;

and offsetting a second sound signal in the main audio acquisition equipment according to the inverted signal of the auxiliary audio acquisition equipment to obtain the correction signal.

7. An apparatus for recording, the apparatus being configured to include at least two audio capture devices, the apparatus comprising:

the main sound source determining module is used for acquiring the acquired first sound signal and determining the first sound signal as a main sound source according to a preset standard;

the main signal determining module is used for comparing a second sound signal acquired by any one of the at least two audio acquisition devices with the main sound source in a frequency spectrum manner, and determining a main signal and an auxiliary signal in the second sound signal;

and the audio acquisition equipment determining module is used for determining main audio acquisition equipment and auxiliary audio acquisition equipment in at least two audio acquisition equipment according to the sound parameters of the main signal in the second sound signal in each audio acquisition equipment, recording the sound of the main signal by adopting the main audio acquisition equipment, and performing noise reduction processing on the auxiliary signal by adopting the auxiliary audio acquisition equipment.

8. The apparatus of claim 7, wherein the dominant audio source determination module is specifically configured to:

acquiring preset voice awakening instruction content;

determining whether a first sound signal acquired by any one of at least two audio acquisition devices is matched with the voice wake-up instruction content;

and if so, determining the first sound signal as a main sound source.

9. Computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the recording method as claimed in any one of claims 1 to 6 when executing the program.

10. A storage medium containing computer-executable instructions for performing the sound recording method of any one of claims 1-6 when executed by a computer processor.

Technical Field

The present invention relates to signal processing technologies, and in particular, to a recording method, an apparatus, a device, and a storage medium.

Background

Recording and videotaping are gradually known by consumers as a necessary function of modern mobile terminals. However, in the process of recording audio and video, many noises are usually accompanied, and clear sound cannot be transmitted.

Currently, for the recording function of a mobile terminal, a method of a single audio acquisition device or a method of a dual audio acquisition device are generally adopted for recording. The single audio acquisition equipment has a single sound channel when recording, and records the voice and the background sound simultaneously; the dual-audio acquisition equipment can reduce noise during recording, but the main audio acquisition equipment and the auxiliary audio acquisition equipment are already appointed before recording, the appointed main audio acquisition equipment carries out transmission, and the auxiliary audio acquisition equipment carries out noise reduction.

The equipment of the single audio acquisition equipment cannot distinguish the dual channels and cannot perform noise reduction; the main and auxiliary audio acquisition equipment in the dual-audio acquisition equipment is specified, when a user records a sound, the main and auxiliary audio acquisition equipment is far away, when the auxiliary audio acquisition equipment is close, only background sound is recorded, the voice of the user is removed as noise, the noise reduction effect is poor, the judgment on a main signal is inaccurate, and the recording definition is low.

Disclosure of Invention

The embodiment of the invention provides a recording method, a device, equipment and a storage medium, which are used for confirming a main signal according to a frequency spectrum during recording, confirming main and auxiliary audio acquisition equipment according to sound parameters, and respectively carrying out recording and denoising by the main and auxiliary audio acquisition equipment, thereby achieving the effect of accurately judging the main signal and improving the recording definition.

In one embodiment, an embodiment of the present invention provides a recording method, which is performed by at least two audio acquisition devices, and includes:

acquiring a collected first sound signal, and determining the first sound signal as a main sound source according to a preset standard;

carrying out spectrum comparison on a second sound signal acquired by any one of at least two audio acquisition devices and the main sound source, and determining a main signal and an auxiliary signal in the second sound signal;

and determining a main audio acquisition device and an auxiliary audio acquisition device of at least two audio acquisition devices according to the sound parameters of the main signal in each audio acquisition device in the second sound signal, recording the sound of the main signal by adopting the main audio acquisition device, and performing noise reduction processing on the auxiliary signal by adopting the auxiliary audio acquisition device.

Optionally, the acquiring a first collected sound signal, and determining the first sound signal as a main sound source according to a preset standard includes:

acquiring preset voice awakening instruction content;

determining whether a first sound signal acquired by any one of at least two audio acquisition devices is matched with the voice wake-up instruction content;

and if so, determining the first sound signal as a main sound source.

Optionally, performing spectrum comparison on a second sound signal acquired by any one of the at least two audio acquisition devices and the main sound source, and determining a main signal and an auxiliary signal in the second sound signal, includes:

carrying out spectrum analysis on the main sound source, and recording the frequency amplitude;

and carrying out spectrum analysis on a second sound signal acquired by any one of at least two audio acquisition devices, comparing an analysis result of the second sound signal with the frequency amplitude, determining that the sound information of which the similarity with the frequency amplitude accords with a set threshold value is a main signal in the second sound signal, and determining that the sound information of which the similarity with the frequency amplitude does not accord with the set threshold value is an auxiliary signal in the second sound signal.

Optionally, the sound parameter includes an amplitude parameter; correspondingly, according to the sound parameter of the main signal in each audio acquisition device in the second sound signal, main audio acquisition device and auxiliary audio acquisition device in at least two audio acquisition devices are determined, the main audio acquisition device is adopted to record the sound of the main signal, and the auxiliary audio acquisition device is adopted to perform noise reduction processing on the auxiliary signal, including:

according to the amplitude parameter of the main signal in the second sound signal in each audio acquisition device, determining the audio acquisition device which acquires the amplitude parameter of the main signal in the second sound signal and accords with a preset rule as a main audio acquisition device, and determining the audio acquisition device which does not accord with the preset rule as an auxiliary audio acquisition device;

the main audio acquisition equipment is adopted to record the sound of the main signal, the auxiliary audio acquisition equipment is adopted to perform noise reduction processing on the auxiliary signal, the main signal is corrected through the auxiliary signal to obtain a corrected signal, and the corrected signal is used as a recording signal.

Optionally, after the main audio collecting device is used for recording sound and the auxiliary audio collecting device is used for performing noise reduction processing, the method further includes:

if the amplitude parameter of the main signal in the sound information collected by the auxiliary audio collecting device accords with a preset rule and the amplitude parameter of the main signal in the sound information collected by the main audio collecting device does not accord with the preset rule in the sound recording process, determining the main audio collecting device from the original auxiliary audio collecting device and switching the original main audio collecting device into the auxiliary audio collecting device.

Optionally, the modifying the main signal by the auxiliary signal to obtain a modified signal, and using the modified signal as a recording signal includes:

according to the auxiliary signal collected by the auxiliary audio acquisition equipment, carrying out phase reversal processing on the sound phase of the auxiliary signal to obtain a phase reversal signal of the auxiliary signal;

and offsetting a second sound signal in the main audio acquisition equipment according to the inverted signal of the auxiliary audio acquisition equipment to obtain the correction signal.

In an embodiment, an embodiment of the present invention further provides a recording apparatus configured to include at least two audio capturing devices, where the apparatus includes:

the main sound source determining module is used for acquiring the acquired first sound signal and determining the first sound signal as a main sound source according to a preset standard;

the main signal determining module is used for carrying out spectrum comparison on a second sound signal acquired by each of at least two audio acquisition devices and the main sound source and determining a main signal and an auxiliary signal in the second sound signal;

and the audio acquisition equipment determining module is used for determining main audio acquisition equipment and auxiliary audio acquisition equipment in at least two audio acquisition equipment according to the sound parameters of the main signal in the second sound signal in each audio acquisition equipment, recording the sound of the main signal by adopting the main audio acquisition equipment, and performing noise reduction processing on the auxiliary signal by adopting the auxiliary audio acquisition equipment.

Optionally, the dominant sound source determining module is specifically configured to:

acquiring preset voice awakening instruction content;

determining whether a first sound signal acquired by any one of at least two audio acquisition devices is matched with the voice wake-up instruction content;

and if so, determining the first sound signal as a main sound source.

Optionally, the main signal determining module is specifically configured to:

carrying out spectrum analysis on the main sound source, and recording the frequency amplitude;

and carrying out spectrum analysis on a second sound signal acquired by each of at least two audio acquisition devices, comparing an analysis result of the second sound signal with the frequency amplitude, determining that the sound information of which the similarity with the frequency amplitude accords with a set threshold is a main signal in the second sound signal, and determining that the sound information of which the similarity with the frequency amplitude does not accord with the set threshold is an auxiliary signal in the second sound signal.

In an embodiment, an embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the recording method according to any embodiment of the present invention.

In one embodiment, the embodiment of the present invention further provides a storage medium containing computer-executable instructions, which are used for executing the sound recording method according to any embodiment of the present invention when executed by a computer processor.

According to the embodiment of the invention, the recording function is started by detecting whether the voice awakening instruction is consistent with the preset instruction, and the sound with the successfully started recording function is used as the main sound source. In the recording process, sound consistent with the frequency spectrum of the main sound source is recorded. And determining the main audio acquisition equipment and the auxiliary audio acquisition equipment according to the distance between the sound and the audio acquisition equipment, and carrying out voice transmission by the main audio acquisition equipment and denoising by the auxiliary audio acquisition equipment. The main and auxiliary audio acquisition equipment is confirmed according to the sound parameters, the problem of unclear recording caused by fixation of the main and auxiliary audio acquisition equipment is solved, the recording content is accurately judged, and the recording quality is improved.

Drawings

FIG. 1 is a flowchart illustrating a recording method according to an embodiment of the present invention;

FIG. 2 is a flowchart illustrating a recording method according to a second embodiment of the present invention;

FIG. 3 is a flowchart illustrating a recording method according to a second embodiment of the present invention;

fig. 4 is a block diagram of a recording apparatus according to a second embodiment of the present invention;

fig. 5 is a block diagram of a recording apparatus according to a third embodiment of the present invention;

fig. 6 is a schematic structural diagram of a computer device in the fourth embodiment of the present invention.

Detailed Description

The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.

22页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:采用加权叠加合成波束的语音降噪方法及装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!