WO2020118560A1 - Recording method and apparatus, electronic device and computer readable storage medium - Google Patents

Recording method and apparatus, electronic device and computer readable storage medium Download PDF

Info

Publication number
WO2020118560A1
WO2020118560A1 PCT/CN2018/120601 CN2018120601W WO2020118560A1 WO 2020118560 A1 WO2020118560 A1 WO 2020118560A1 CN 2018120601 W CN2018120601 W CN 2018120601W WO 2020118560 A1 WO2020118560 A1 WO 2020118560A1
Authority
WO
WIPO (PCT)
Prior art keywords
recording
audio signal
audio
mode
signal
Prior art date
Application number
PCT/CN2018/120601
Other languages
French (fr)
Chinese (zh)
Inventor
李亚军
Original Assignee
深圳市欢太科技有限公司
Oppo广东移动通信有限公司
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 深圳市欢太科技有限公司, Oppo广东移动通信有限公司 filed Critical 深圳市欢太科技有限公司
Priority to PCT/CN2018/120601 priority Critical patent/WO2020118560A1/en
Priority to CN201880098671.2A priority patent/CN112997144A/en
Publication of WO2020118560A1 publication Critical patent/WO2020118560A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output

Definitions

  • the present application relates to the field of communication technology, and in particular, to a recording method, device, electronic device, and computer-readable storage medium.
  • smart mobile terminals have become the most commonly used electronic devices for many users, such as smart phones, tablet panels, and PDA (Personal Digital Assistant) and other electronic devices are widely used.
  • PDA Personal Digital Assistant
  • mobile phone recording function more and more people use mobile phone recording function to record.
  • users will record some interference information when recording, and the recording effect is poor, which seriously affects the user experience.
  • An embodiment of the present application provides a recording method, including:
  • the recording mode includes a screen recording mode and a non-screen recording mode
  • the audio processing mode includes a voiceprint processing mode and a sound source processing mode
  • An embodiment of the present application provides a recording device, including:
  • An acquisition module for receiving a recording instruction, recording according to the recording instruction, and acquiring an audio signal during the recording process
  • a switching module for switching audio signal processing strategies according to a recording mode includes a screen recording mode and a non-screen recording mode;
  • a processing module configured to filter the audio signal according to the audio signal processing strategy to obtain a recording signal
  • the storage module is used for storing the recorded signal.
  • An embodiment of the present application further provides an electronic device, including a memory and a processor, where a computer program is stored in the memory, wherein when the computer program is executed by the processor, the processor is caused to execute:
  • the recording mode includes a screen recording mode and a non-screen recording mode
  • the audio processing mode includes a voiceprint processing mode and a sound source processing mode
  • Embodiments of the present application also provide a computer non-volatile readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of processing the application program as described above are realized.
  • the audio processing mode is switched according to the recording mode, the audio processing mode includes a voiceprint processing mode and a sound source processing mode; and the audio signal is processed according to the audio processing mode To obtain a recording signal; storing the recording signal improves the recording quality.
  • FIG. 1 is a flowchart of a recording method provided by an embodiment
  • FIG. 2 is a flowchart of a recording method when the recording mode is a non-screen recording mode according to an embodiment
  • FIG. 3 is a flowchart of marking a recording signal provided by an embodiment
  • FIG. 4 is a flowchart of a recording method when the recording mode is the screen recording mode provided by an embodiment
  • FIG. 5 is a flowchart of adding background sound to a recording signal provided by an embodiment
  • FIG. 6 is a schematic structural diagram of a recording device provided by an embodiment
  • FIG. 7 is a schematic diagram of the internal structure of an electronic device in an embodiment
  • FIG. 8 is a block diagram of a partial structure of an electronic device related to a computer device provided by an embodiment of the present application.
  • an embodiment of the present application provides a recording method, which is applied to an electronic device.
  • the method includes:
  • the electronic device may be any electronic device such as a mobile terminal, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), an in-vehicle computer, a wearable device, and the like.
  • a mobile terminal such as a mobile terminal, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), an in-vehicle computer, a wearable device, and the like.
  • the recording instruction may be to click the icon of the recording application on the display interface of the electronic device.
  • the electronic device obtains an instruction to enter the recording function by default, and displays the application interface of the recording program on the display interface.
  • the recording instruction may also be operation information of sliding and/or touching on the screen of the electronic device, for example, on the display interface, the recording application is opened by sliding a circle on the interface.
  • the instruction to enter the recording function may also be preset shortcut key information. For example, when the volume button is pressed long, the recording application program is entered to start the recording function.
  • the instruction to enter the recording function may also be voice control information, etc. For example, when the microphone receives voice information such as "start recording” or "turn on the recorder", it enters the recording function.
  • the above is only an example of the recording instruction, and the specific form of the recording instruction is not limited in this embodiment, as long as the electronic device can enter the recording function.
  • the electronic device After the electronic device receives the recording instruction, it enters the recording function and acquires the audio signal during the recording process.
  • S120 Obtain the recording mode of the electronic device, where the recording mode includes a screen recording mode and a non-screen recording mode;
  • the electronic device After entering the recording function, the electronic device obtains the current recording mode of the electronic device, specifically, identifies whether the electronic device is currently in the screen recording mode. If the received recording command is a screen recording command, the electronic device is currently in the screen recording mode; if the received recording command is a normal recording command, that is, a recording command in a non-screen recording mode, the electronic device is currently in a non-screen recording mode .
  • Screen recording (SR) technology is usually used to record and save the content displayed on the screen interface for a period of time, for example, the user's operation process on the screen interface or the video content played on the screen interface, etc. Record and save.
  • the audio processing mode includes a voiceprint processing mode and a sound source processing mode
  • the corresponding audio processing mode is switched according to the recording mode, and the audio signal acquired during the recording process is processed according to the switched audio processing mode to Get the recording signal.
  • Voiceprint features are acoustic features related to the anatomical structure of human pronunciation mechanisms, such as frequency spectrum, cepstrum, formants, pitch, reflection coefficient, nasal sounds, deep breath sounds, hoarse sounds, laughter, etc. Since each person's pronunciation organs are different, the audio signals corresponding to different speakers can be accurately identified by identifying the voiceprint features of the audio signal. Therefore, by identifying the voice of the target object through the voiceprint feature, it is possible to record only the voice of the specific target object.
  • the method before matching the voiceprint feature of the audio signal with the voiceprint feature in the voiceprint feature model library, the method further includes establishing a voiceprint feature model library. Specifically, the voice samples of the target object are pre-recorded, and the voiceprint features of each sample are extracted to establish a voiceprint feature model library. Match the acquired voiceprint features of the audio signal with the voiceprint features stored in the voiceprint feature model library. If the matching is successful, the audio signal corresponding to the voiceprint feature is saved as a recording signal; if the matching is not successful, the audio signal corresponding to the voiceprint feature is discarded.
  • the parameters of the voiceprint feature mainly include parameters such as volume, tone, and timbre. Therefore, when determining whether the multiple voiceprint features of the acquired audio signal match the voiceprint features stored in the voiceprint feature model library, the electronic device may make a determination based on the above-mentioned several parameters. The following describes the determination method in detail.
  • the tone indicates the level of the sound (treble, bass), determined by "frequency", the higher the frequency the higher the tone, the lower the frequency the lower the tone.
  • the timbre also known as timbre, has different characteristics due to the characteristics of different object materials, and everyone's timbre is also different. Because each person's voiceprint features have their own characteristics, the audio signal can be accurately filtered using tones and timbre, which can improve the recording quality.
  • S330 Mark the identified recording signals with the same voiceprint characteristics at the starting time.
  • the voiceprint features contained in the recording signal can be identified, and the same voiceprint features can be marked with the same identifier, so that the user can distinguish different speakers when viewing the recording, It enables users to find the designated speaker faster.
  • the mark may include a start mark and an end mark. The start mark is used to mark the moment when a speaker starts speaking, and the end mark is used to mark the moment when the speaker ends speaking, so that different speeches can be more accurately distinguished.
  • S410 Acquire a sound source characteristic of the audio signal, and obtain a playback source of the audio signal according to the sound source characteristic;
  • step S420 Determine whether the playback source belongs to the inside of the electronic device. If yes, perform step S430; if not, perform step S440;
  • the recording mode includes a screen recording mode and a non-screen recording mode , Switching the audio processing mode according to the recording mode, the audio processing mode includes a voiceprint processing mode and a sound source processing mode, the audio signal is processed according to the audio processing mode to obtain a recording signal, and the recording signal Stored to improve the recording quality.
  • differential processing is performed on the audio signal corresponding to the playback source through a differential processing circuit to eliminate audio output from the electronic device;
  • the audio signal corresponding to the playback source is saved as a recording signal.
  • the speaker's voice is differentially processed with the audio played inside the electronic device to eliminate the audio output from the electronic device, obtain pure speaker's voice, and save the differentially processed audio signal as a recording signal .
  • the audio signal that does not conform to the target object is filtered by acquiring the voiceprint feature of the audio signal, and then the audio signal is processed differentially to eliminate the audio played inside the electronic device, and the filtered audio signal is used as the recording signal Save, improve the recording quality.
  • the method may record background sound according to the scene information of the electronic device, including:
  • a trigger link of at least one piece of audio data may be displayed on the recording interface for the user to select and output one piece of audio data as the background sound of the recording signal;
  • the background sound triggering operation can be a background sound trigger button.
  • the background sound button can be a physical button (Home button, volume adjustment key, power button, etc.) and a virtual button (that is, a background sound trigger is added to the recording interface point). Further, when it is detected that the user triggers the background sound playback operation during recording, at least one relevant trigger link of audio data is displayed on the recording interface for the user to select and output one of the audio data as the background sound of the recording signal.
  • the scene information may be determined according to one or more of the current location, time, third-party application information, scene mode, and user-defined information; the scene information may include waiting scenes, traffic jam scenes, and karaoke Any combination of one or more of the scene, the subway ride scene and the birthday song scene.
  • related trigger links of different audio data are configured for multiple scene information in advance, and the user can select matching audio data from multiple audio data as background sound of the recording signal in different scenes.
  • the first obtaining module 61 is configured to receive a recording instruction, perform recording according to the recording instruction, and obtain audio signals during the recording process;
  • the electronic device may be any electronic device such as a mobile terminal, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), an in-vehicle computer, and a wearable device.
  • a mobile terminal such as a mobile terminal, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), an in-vehicle computer, and a wearable device.
  • PDA Personal Digital Assistant
  • POS Point of Sales
  • an in-vehicle computer such as a wearable device.
  • the recording instruction may be to click the icon of the recording application on the display interface of the electronic device. For example, when an operation of clicking the screen is received in the icon area of the recording application, the instruction to enter the recording function is obtained by default, and the display interface displays the application interface of the recording program.
  • the recording instruction may also be operation information of sliding and/or touching on the screen of the electronic device, for example, on the display interface, the recording application is opened by sliding a circle on the interface.
  • the instruction to enter the recording function may also be preset shortcut key information. For example, when the volume button is pressed long, the recording application program is entered to start the recording function.
  • the instruction to enter the recording function may also be voice control information, etc. For example, when the microphone receives voice information such as "start recording” or "turn on the recorder", it enters the recording function.
  • the above is only an example of the recording instruction, and the specific form of the recording instruction is not limited in this embodiment, as long as the electronic device can enter the recording function.
  • the second obtaining module 62 is configured to obtain a recording mode of the electronic device, the recording mode includes a screen recording mode and a non-screen recording mode;
  • the second obtaining module 62 obtains the current recording mode of the electronic device, specifically, identifies whether the electronic device is currently in the screen recording mode. If the received recording command is a screen recording command, the electronic device is currently in the screen recording mode; if the received recording command is a normal recording command, that is, a recording command in a non-screen recording mode, the electronic device is currently in a non-screen recording mode .
  • the processing module 64 is configured to process the audio signal according to the audio processing mode to obtain a recording signal
  • Voiceprint is the sound wave spectrum carrying verbal information displayed by electroacoustic instruments.
  • the generation of human language is a complex physiological and physical process between the human language center and the pronunciation organs.
  • the vocal organs used by everyone in speech: the tongue, teeth, throat, lungs, and nasal cavity vary greatly in size and shape, so The sound wave spectrum of any two people is different.
  • Voiceprint features are acoustic features related to the anatomical structure of human pronunciation mechanisms, such as frequency spectrum, cepstrum, formants, pitch, reflection coefficient, nasal sounds, deep breath sounds, hoarse sounds, laughter, etc. Since each person's pronunciation organs are different, the audio signals corresponding to different speakers can be accurately identified by identifying the voiceprint features of the audio signal. Therefore, by identifying the voice of the target object through the voiceprint feature, it is possible to record only the voice of the specific target object.
  • the method before matching the voiceprint feature of the audio signal with the voiceprint feature in the voiceprint feature model library, the method further includes establishing a voiceprint feature model library. Specifically, the voice samples of the target object are pre-recorded, and the voiceprint features of each sample are extracted to establish a voiceprint feature model library. Match the acquired voiceprint features of the audio signal with the voiceprint features stored in the voiceprint feature model library. If the matching is successful, the audio signal corresponding to the voiceprint feature is saved as a recording signal; if the matching is not successful, the audio signal corresponding to the voiceprint feature is discarded.
  • the voiceprint features of user A, user B, and user C are stored in the voiceprint feature model library.
  • the acquired voiceprint features of the audio signal for example, user A's voiceprint features
  • the voiceprint feature model library has the voiceprint feature of user A
  • the match is successful, and it is determined that user A belongs to the target object, and then the audio signal corresponding to the voiceprint feature of user A is saved as a recording signal; if the acquired audio signal
  • the voiceprint feature of user D is user D.
  • the matching because there is no voiceprint feature of user D in the voiceprint feature model library, the matching fails, and the audio signal corresponding to the voiceprint feature of user D is discarded.
  • the parameters of the voiceprint feature mainly include parameters such as volume, tone, and timbre. Therefore, when determining whether the multiple voiceprint features of the acquired audio signal match the voiceprint features stored in the voiceprint feature model library, the electronic device may make a determination based on the above-mentioned several parameters. The following describes the determination method in detail.
  • the voiceprint features contained in the recording signal can be identified, and the same voiceprint features can be marked with the same identifier, so that the user can distinguish different speakers when viewing the recording, It enables users to find the designated speaker faster.
  • the mark may include a start mark and an end mark. The start mark is used to mark the moment when a speaker starts speaking, and the end mark is used to mark the moment when the speaker ends speaking, so that different speeches can be more accurately distinguished.
  • the sound source characteristics of the audio signal are acquired, and the sound source characteristics may be the playback source of the audio signal, and the playback source may be the earphone, speaker, earpiece, etc. of the electronic device It can also be a device external to the electronic device, such as surrounding human voices, ambient sounds, etc. Filter the audio signal according to the playback source of the audio signal to filter out the audio signal corresponding to the internal source of the electronic device, and only save the audio signal corresponding to the internal source of the electronic device as a recording signal, thereby improving recording quality.
  • the storage module 65 is configured to store the recorded signal.
  • the audio signal corresponding to the playback source is saved as a recording signal.
  • the speaker's voice is differentially processed with the audio played inside the electronic device to eliminate the audio output from the electronic device, obtain pure speaker's voice, and save the differentially processed audio signal as a recording signal .
  • the device 60 further includes a background sound setting module (not shown in the figure), which is specifically used for:
  • the electronic device includes: a radio frequency (Radio Frequency) circuit 810, a memory 820, an input unit 830, a display unit 840, a sensor 850, an audio circuit 860, a wireless fidelity (WiFi) module 870, a processor 880, and power supply 890 and other components.
  • a radio frequency (Radio Frequency) circuit 810 the electronic device includes: a radio frequency (Radio Frequency) circuit 810, a memory 820, an input unit 830, a display unit 840, a sensor 850, an audio circuit 860, a wireless fidelity (WiFi) module 870, a processor 880, and power supply 890 and other components.
  • WiFi wireless fidelity
  • the input unit 830 may be used to receive input numeric or character information, and generate key signal input related to user settings and function control of the electronic device 800.
  • the input unit 830 may include a touch panel 831 and other input devices 832.
  • the touch panel 831 also known as a touch screen, can collect user's touch operations on or near it (such as the user using any finger, stylus, or any other suitable object or accessory on or near the touch panel 831 Operation), and drive the corresponding connection device according to the preset program.
  • the touch panel 831 may include a touch detection device and a touch controller.
  • the audio circuit 860, the speaker 861, and the microphone 862 may provide an audio interface between the user and the electronic device.
  • the audio circuit 860 can transmit the received electrical signal converted to electrical signals to the speaker 861, which converts the speaker 861 into a sound signal for output; on the other hand, the microphone 862 converts the collected sound signal into an electrical signal, which is converted by the audio circuit 860 After receiving, it is converted into audio data, and then processed by the audio data output processor 880, and then sent to another electronic device via the RF circuit 810, or the audio data is output to the memory 820 for subsequent processing.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

A recording method, comprising: receiving a recording instruction, recording according to the recording instruction, and obtaining an audio signal during the recording process (S110); obtaining recording modes of an electronic device, the recording modes comprising a screen recording mode and a non-screen recording mode (S120); switching audio processing modes according to the recording modes, the audio processing modes comprising a voiceprint processing mode and a sound source processing mode (S130); processing the audio signal according to the audio processing modes so as to obtain a recording signal (S140); and storing the recording signal (S150). Correspondingly, also provided are a recording apparatus, an electronic device, and a readable storage medium, which improve the recording quality.

Description

一种录音方法、装置、电子设备和计算机可读存储介质Recording method, device, electronic equipment and computer readable storage medium 技术领域Technical field
本申请涉及通信技术领域,特别是涉及一种录音方法、装置、电子设备和计算机可读存储介质。The present application relates to the field of communication technology, and in particular, to a recording method, device, electronic device, and computer-readable storage medium.
背景技术Background technique
随着互联网的飞速发展,智能移动终端已经成为许多用户最常用的电子设备,例如智能手机、平板电板和PDA(Personal Digital Assistant,掌上电脑)等电子设备被广泛使用。随着手机录音功能的普及,越来越多的人使用手机录音功能进行录音。但是,用户在录音时会录入一些干扰信息,录制效果较差,严重影响用户体验。With the rapid development of the Internet, smart mobile terminals have become the most commonly used electronic devices for many users, such as smart phones, tablet panels, and PDA (Personal Digital Assistant) and other electronic devices are widely used. With the popularization of mobile phone recording function, more and more people use mobile phone recording function to record. However, users will record some interference information when recording, and the recording effect is poor, which seriously affects the user experience.
发明内容Summary of the invention
基于此,有必要提供一种能够提升录音质量的录音方法。Based on this, it is necessary to provide a recording method that can improve the recording quality.
本申请实施例提供一种录音方法,包括:An embodiment of the present application provides a recording method, including:
接收录音指令,根据所述录音指令进行录音,并在录音过程中获取音频信号;Receiving a recording instruction, recording according to the recording instruction, and acquiring audio signals during the recording process;
获取所述电子设备的录音模式,所述录音模式包括屏幕录制模式和非屏幕录制模式;Acquiring a recording mode of the electronic device, the recording mode includes a screen recording mode and a non-screen recording mode;
根据所述录音模式切换音频处理模式,所述音频处理模式包括声纹处理模式和声源处理模式;Switching an audio processing mode according to the recording mode, the audio processing mode includes a voiceprint processing mode and a sound source processing mode;
根据所述音频处理模式对所述音频信号进行处理,以获取录音信号;Processing the audio signal according to the audio processing mode to obtain a recording signal;
将所述录音信号进行存储。Store the recorded signal.
本申请实施例提供一种录音装置,包括:An embodiment of the present application provides a recording device, including:
获取模块,用于接收录音指令,根据所述录音指令进行录音,并在录音过程中获取音频信号;An acquisition module, for receiving a recording instruction, recording according to the recording instruction, and acquiring an audio signal during the recording process;
切换模块,用于根据录音模式切换音频信号处理策略,所述录音模式包括屏幕录制模式和非屏幕录制模式;A switching module for switching audio signal processing strategies according to a recording mode, the recording mode includes a screen recording mode and a non-screen recording mode;
处理模块,用于根据所述音频信号处理策略对所述音频信号进行过滤处理,以获取录音信号;A processing module, configured to filter the audio signal according to the audio signal processing strategy to obtain a recording signal;
存储模块,用于将所述录音信号进行存储。The storage module is used for storing the recorded signal.
本申请实施例还提供一种电子设备,包括存储器及处理器,所述存储器 中储存有计算机程序,其特征在于,所述计算机程序被所述处理器执行时,使得所述处理器执行:An embodiment of the present application further provides an electronic device, including a memory and a processor, where a computer program is stored in the memory, wherein when the computer program is executed by the processor, the processor is caused to execute:
接收录音指令,根据所述录音指令进行录音,并在录音过程中获取音频信号;Receiving a recording instruction, recording according to the recording instruction, and acquiring audio signals during the recording process;
获取所述电子设备的录音模式,所述录音模式包括屏幕录制模式和非屏幕录制模式;Acquiring a recording mode of the electronic device, the recording mode includes a screen recording mode and a non-screen recording mode;
根据所述录音模式切换音频处理模式,所述音频处理模式包括声纹处理模式和声源处理模式;Switching an audio processing mode according to the recording mode, the audio processing mode includes a voiceprint processing mode and a sound source processing mode;
根据所述音频处理模式对所述音频信号进行处理,以获取录音信号;Processing the audio signal according to the audio processing mode to obtain a recording signal;
将所述录音信号进行存储。Store the recorded signal.
本申请实施例还提供一种计算机非易失性可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上述的对应用程序进行处理的步骤。Embodiments of the present application also provide a computer non-volatile readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of processing the application program as described above are realized.
电子设备和计算机可读存储介质在实现上述方法时,根据录音模式切换音频处理模式,所述音频处理模式包括声纹处理模式和声源处理模式;并根据音频处理模式对所述音频信号进行处理,以获取录音信号;将所述录音信号进行存储,提升了录音质量。When the above method is implemented by the electronic device and the computer-readable storage medium, the audio processing mode is switched according to the recording mode, the audio processing mode includes a voiceprint processing mode and a sound source processing mode; and the audio signal is processed according to the audio processing mode To obtain a recording signal; storing the recording signal improves the recording quality.
附图说明BRIEF DESCRIPTION
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他实施例的附图。In order to more clearly explain the embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings required in the embodiments or the description of the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, without paying any creative labor, drawings of other embodiments can be obtained based on these drawings.
图1为一实施例提供的录音方法的流程图;1 is a flowchart of a recording method provided by an embodiment;
图2为一实施例提供的当录音模式为非屏幕录制模式时,录音方法的流程图;2 is a flowchart of a recording method when the recording mode is a non-screen recording mode according to an embodiment;
图3为一实施例提供的对录音信号进行标记的流程图;FIG. 3 is a flowchart of marking a recording signal provided by an embodiment;
图4为一实施例提供的当录音模式为屏幕录制模式时,录音方法的流程图;4 is a flowchart of a recording method when the recording mode is the screen recording mode provided by an embodiment;
图5为一实施例提供的在录音信号中添加背景音的流程图;5 is a flowchart of adding background sound to a recording signal provided by an embodiment;
图6为一实施例提供的录音装置的结构示意图;6 is a schematic structural diagram of a recording device provided by an embodiment;
图7为一实施例中电子设备的内部结构示意图;7 is a schematic diagram of the internal structure of an electronic device in an embodiment;
图8为与本申请实施例提供的计算机设备相关的电子设备的部分结构的 框图。8 is a block diagram of a partial structure of an electronic device related to a computer device provided by an embodiment of the present application.
具体实施方式detailed description
为了便于理解本发明,下面将参照相关附图对本发明进行更全面的描述。附图中给出了本发明的较佳实施例。但是,本发明可以以许多不同的形式来实现,并不限于本文所描述的实施例。相反地,提供这些实施例的目的是使对本发明的公开内容的理解更加透彻全面。In order to facilitate understanding of the present invention, the present invention will be described more fully below with reference to related drawings. The drawings show preferred embodiments of the invention. However, the present invention can be implemented in many different forms, and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present invention more thorough and comprehensive.
如图1所示,本申请实施例提供了一种录音方法,应用于电子设备,该方法包括:As shown in FIG. 1, an embodiment of the present application provides a recording method, which is applied to an electronic device. The method includes:
S110、接收录音指令,根据录音指令进行录音,并在录音过程中获取音频信号;S110. Receive a recording instruction, record according to the recording instruction, and acquire an audio signal during the recording process;
本申请实施例中,电子设备可以为移动终端、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑、穿戴式设备等任意电子设备。In the embodiment of the present application, the electronic device may be any electronic device such as a mobile terminal, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), an in-vehicle computer, a wearable device, and the like.
在一个实施例中,录音指令可以是在电子设备的显示界面上点击录音应用程序的图标。例如,在录音应用程序图标区域接收到点击屏幕的操作时,电子设备默认获取进入录音功能的指令,在显示界面显示录音程序的应用界面。录音指令还可以是在电子设备的屏幕上滑动和/或触碰的操作信息,例如,在显示界面上,通过在界面上画圆的滑动方式打开录音应用程序。进入录音功能的指令还可以是预设的快捷按键信息,例如,长按音量按键时,进入录音应用程序,开启录音功能。进入录音功能的指令还可以是语音控制信息等,例如,在话筒接收到“开始录音”或“打开录音机”等语音信息时,进入录音功能。In one embodiment, the recording instruction may be to click the icon of the recording application on the display interface of the electronic device. For example, when an operation of clicking the screen is received in the icon area of the recording application, the electronic device obtains an instruction to enter the recording function by default, and displays the application interface of the recording program on the display interface. The recording instruction may also be operation information of sliding and/or touching on the screen of the electronic device, for example, on the display interface, the recording application is opened by sliding a circle on the interface. The instruction to enter the recording function may also be preset shortcut key information. For example, when the volume button is pressed long, the recording application program is entered to start the recording function. The instruction to enter the recording function may also be voice control information, etc. For example, when the microphone receives voice information such as "start recording" or "turn on the recorder", it enters the recording function.
需要说明的是,以上仅是录音指令的举例,录音指令的具体形式本实施例不做限制,只要能使电子设备进入录音功能即可。It should be noted that the above is only an example of the recording instruction, and the specific form of the recording instruction is not limited in this embodiment, as long as the electronic device can enter the recording function.
在电子设备接收到录音指令后进入录音功能,并在录音过程中获取音频信号。After the electronic device receives the recording instruction, it enters the recording function and acquires the audio signal during the recording process.
S120、获取电子设备的录音模式,所述录音模式包括屏幕录制模式和非屏幕录制模式;S120: Obtain the recording mode of the electronic device, where the recording mode includes a screen recording mode and a non-screen recording mode;
电子设备在进入录音功能后,获取电子设备当前的录音模式,具体地,识别电子设备当前是否处于屏幕录制模式。若接收到的录音指令为屏幕录制指令,则电子设备当前处于屏幕录制模式;若接收到的录音指令为普通录音指令,即非屏幕录制模式下的录音指令,则电子设备当前处于非屏幕录制模 式。After entering the recording function, the electronic device obtains the current recording mode of the electronic device, specifically, identifies whether the electronic device is currently in the screen recording mode. If the received recording command is a screen recording command, the electronic device is currently in the screen recording mode; if the received recording command is a normal recording command, that is, a recording command in a non-screen recording mode, the electronic device is currently in a non-screen recording mode .
屏幕录制(Screen Record,SR)技术通常是用于将屏幕界面上显示的一段时间内的内容进行记录和保存,例如,对用户在屏幕界面上的操作过程或者在屏幕界面上播放的视频内容等进行记录和保存。Screen recording (SR) technology is usually used to record and save the content displayed on the screen interface for a period of time, for example, the user's operation process on the screen interface or the video content played on the screen interface, etc. Record and save.
S130、根据所述录音模式切换音频处理模式,所述音频处理模式包括声纹处理模式和声源处理模式;S130. Switch an audio processing mode according to the recording mode, the audio processing mode includes a voiceprint processing mode and a sound source processing mode;
本申请实施例中,在获取到电子设备当前的录音模式后,会根据所述录音模式切换相应的音频处理模式,并根据切换的音频处理模式对在录音过程中获取的音频信号进行处理,以获取录音信号。In the embodiment of the present application, after acquiring the current recording mode of the electronic device, the corresponding audio processing mode is switched according to the recording mode, and the audio signal acquired during the recording process is processed according to the switched audio processing mode to Get the recording signal.
具体地,当获取到的录音模式为非屏幕录制模式时,将所述音频信号处理模式切换至声纹处理模式;当获取到的录音模式为屏幕录制模式,则将所述音频信号处理模式切换至声源处理模式。Specifically, when the acquired recording mode is a non-screen recording mode, the audio signal processing mode is switched to a voiceprint processing mode; when the acquired recording mode is a screen recording mode, the audio signal processing mode is switched To sound source processing mode.
S140、根据所述音频处理模式对所述音频信号进行处理,以获取录音信号;S140. Process the audio signal according to the audio processing mode to obtain a recording signal;
在一个实施例中,如图2所示,当录音模式为非屏幕录制模式时,根据切换的声纹处理模式对所述音频信号进行过滤处理,以获取录音信号,具体为:In one embodiment, as shown in FIG. 2, when the recording mode is a non-screen recording mode, the audio signal is filtered according to the switched voiceprint processing mode to obtain the recording signal, specifically:
S210、对音频信号进行声纹特征解析,以获取所述音频信号的声纹特征;S210. Analyze the voiceprint feature of the audio signal to obtain the voiceprint feature of the audio signal;
声纹(Voiceprint),是用电声学仪器显示的携带言语信息的声波频谱。人类语言的产生是人体语言中枢与发音器官之间一个复杂的生理物理过程,每个人在讲话时使用的发声器官:舌、牙齿、喉头、肺、鼻腔在尺寸和形态方面的差异很大,所以任何两个人的声波频谱都有差异。Voiceprint (Voiceprint) is the sound wave spectrum carrying verbal information displayed by electroacoustic instruments. The generation of human language is a complex physiological and physical process between the human language center and the pronunciation organs. The vocal organs used by everyone in speech: the tongue, teeth, throat, lungs, and nasal cavity vary greatly in size and shape, so The sound wave spectrum of any two people is different.
声纹特征是与人类的发音机制的解剖学结构有关的声学特征,如频谱、倒频谱、共振峰、基音、反射系数、鼻音、带深呼吸音、沙哑音、笑声等。由于每个人的发音器官都不尽相同,通过识别音频信号的声纹特征可以准确辨认不同的说话人对应的音频信号。因此,通过声纹特征来识别目标对象的声音,可以实现只对特定目标对象的声音进行录制。Voiceprint features are acoustic features related to the anatomical structure of human pronunciation mechanisms, such as frequency spectrum, cepstrum, formants, pitch, reflection coefficient, nasal sounds, deep breath sounds, hoarse sounds, laughter, etc. Since each person's pronunciation organs are different, the audio signals corresponding to different speakers can be accurately identified by identifying the voiceprint features of the audio signal. Therefore, by identifying the voice of the target object through the voiceprint feature, it is possible to record only the voice of the specific target object.
S220、将所述音频信号的声纹特征与声纹特征模型库中的声纹特征进行匹配。S220. Match the voiceprint feature of the audio signal with the voiceprint feature in the voiceprint feature model library.
在一个实施例中,将音频信号的声纹特征与声纹特征模型库中的声纹特征进行匹配前,还包括建立声纹特征模型库。具体地,预先录入目标对象的声音样本,提取每个样本的声纹特征,以建立声纹特征模型库。将获取到的音频信号的声纹特征与声纹特征模型库中存储的声纹特征进行匹配。若匹配 成功,则将声纹特征对应的音频信号保存为录音信号;若匹配不成功,则将声纹特征对应的音频信号丢弃。In one embodiment, before matching the voiceprint feature of the audio signal with the voiceprint feature in the voiceprint feature model library, the method further includes establishing a voiceprint feature model library. Specifically, the voice samples of the target object are pre-recorded, and the voiceprint features of each sample are extracted to establish a voiceprint feature model library. Match the acquired voiceprint features of the audio signal with the voiceprint features stored in the voiceprint feature model library. If the matching is successful, the audio signal corresponding to the voiceprint feature is saved as a recording signal; if the matching is not successful, the audio signal corresponding to the voiceprint feature is discarded.
例如,声纹特征模型库中存储的是用户A、用户B、用户C三者的声纹特征。在匹配声纹特征时,将获取到的音频信号的声纹特征(例如用户A的声纹特征)与声纹特征模型库中存储的声纹特征进行匹配。由于声纹特征模型库中有用户A的声纹特征,因此匹配成功判断出用户A属于目标对象,则将用户A的声纹特征对应的音频信号保存为录音信号;若获取到的音频信号的声纹特征为用户D,在匹配的过程中,由于声纹特征模型库中没有用户D的声纹特征,因此匹配失败,将用户D的声纹特征对应的音频信号丢弃。For example, the voiceprint features of user A, user B, and user C are stored in the voiceprint feature model library. When matching the voiceprint features, the acquired voiceprint features of the audio signal (for example, user A's voiceprint features) are matched with the voiceprint features stored in the voiceprint feature model library. Since the voiceprint feature model library contains the voiceprint feature of user A, if the match is successful and it is determined that user A belongs to the target object, the audio signal corresponding to the voiceprint feature of user A is saved as a recording signal; if the acquired audio signal has The voiceprint feature is user D. During the matching process, since there is no voiceprint feature of user D in the voiceprint feature model library, the matching fails, and the audio signal corresponding to the voiceprint feature of user D is discarded.
进一步的,由于声纹特征的参数主要包括音量、音调、音色等参数。因此,电子设备在判定获取到音频信号的多个声纹特征是否与声纹特征模型库中存储的声纹特征匹配时,可以以上述几个参数为基础进行判定。下面对判定方式进行具体的介绍。Further, the parameters of the voiceprint feature mainly include parameters such as volume, tone, and timbre. Therefore, when determining whether the multiple voiceprint features of the acquired audio signal match the voiceprint features stored in the voiceprint feature model library, the electronic device may make a determination based on the above-mentioned several parameters. The following describes the determination method in detail.
例如利用音调和音色来匹配声纹特征时,仅将音频信号的某个声纹特征的音调和音色和特征模型库中的声纹特征的音调和音色进行匹配,以此来判断声纹特征是否和特征模型库中的声纹特征一致。若是,则表示该声纹特征属于目标对象的声纹特征,则将所述声纹特征对应的音频信号保存为录音信号;若否,则表示该声纹特征不属于目标对象的声纹特征,则将所述声纹特征对应的音频信号丢弃。For example, when using the tone and timbre to match the voiceprint feature, only the tone and timbre of a certain voiceprint feature of the audio signal and the tone and timbre of the voiceprint feature in the feature model library are matched to determine whether the voiceprint feature is It is consistent with the voiceprint feature in the feature model library. If yes, it means that the voiceprint feature belongs to the target object's voiceprint feature, then the audio signal corresponding to the voiceprint feature is saved as a recording signal; if not, it means that the voiceprint feature does not belong to the target object's voiceprint feature, Then, the audio signal corresponding to the voiceprint feature is discarded.
具体来说,音调表示声音的高低(高音、低音),由“频率”决定,频率越高音调越高,频率越低音调越低。每个用户具有自身特有的音调。而音色又称音品,因不同物体材料的特性而具有不同特性,每个人的音色也是不同的。由于每个人的声纹特征具有各自的特征,因此,利用音调和音色可以对音频信号进行精确地过滤处理,从而可以提升录音质量。Specifically, the tone indicates the level of the sound (treble, bass), determined by "frequency", the higher the frequency the higher the tone, the lower the frequency the lower the tone. Each user has its own unique tone. The timbre, also known as timbre, has different characteristics due to the characteristics of different object materials, and everyone's timbre is also different. Because each person's voiceprint features have their own characteristics, the audio signal can be accurately filtered using tones and timbre, which can improve the recording quality.
在一个实施例中,如图3所示,将所述音频信号的声纹特征与声纹特征模型库中的声纹特征进行匹配后,还包括:In one embodiment, as shown in FIG. 3, after matching the voiceprint feature of the audio signal with the voiceprint feature in the voiceprint feature model library, the method further includes:
S310、识别所述录音信号中具有相同声纹特征的录音信号;S310. Identify the recording signals with the same voiceprint characteristics among the recording signals;
S320、在相同声纹特征的录音信号中,读取每个所述声纹特征对应录音信号的起始时刻;S320. In a recording signal with the same voiceprint feature, read the start time of each of the voiceprint features corresponding to the recording signal;
S330、将识别出的具有相同声纹特征的录音信号进行起始时刻标记。S330: Mark the identified recording signals with the same voiceprint characteristics at the starting time.
本申请实施例中,可以在获取到录音信号后,识别录音信号中包含的声纹特征,并对相同的声纹特征标记相同的标识,从而方便用户在查看录音时可以区分不同的说话者,使用户更快的查找到指定的说话者。其中,所述标 识可以包括开始标识和结束标识,开始标识用于标记某一说话者开始说话的时刻,结束标识用于标记该说话者结束说话的时刻,从而可以更精确地区分出不同的说话者。In the embodiment of the present application, after acquiring the recording signal, the voiceprint features contained in the recording signal can be identified, and the same voiceprint features can be marked with the same identifier, so that the user can distinguish different speakers when viewing the recording, It enables users to find the designated speaker faster. Wherein, the mark may include a start mark and an end mark. The start mark is used to mark the moment when a speaker starts speaking, and the end mark is used to mark the moment when the speaker ends speaking, so that different speeches can be more accurately distinguished. By.
在一个实施例中,如图4所示,当录音模式为屏幕录制模式时,根据切换的声源处理模式对所述音频信号进行过滤处理,以获取录音信号,具体为:In one embodiment, as shown in FIG. 4, when the recording mode is the screen recording mode, the audio signal is filtered according to the switched sound source processing mode to obtain the recording signal, specifically:
S410、获取所述音频信号的声源特征,并根据所述声源特征获取所述音频信号的播放源;S410: Acquire a sound source characteristic of the audio signal, and obtain a playback source of the audio signal according to the sound source characteristic;
S420、判断所述播放源是否属于所述电子设备内部,若是,则执行步骤S430;若否,则执行步骤S440;S420. Determine whether the playback source belongs to the inside of the electronic device. If yes, perform step S430; if not, perform step S440;
S430、将所述播放源对应的所述音频信号保存为录音信号;S430. Save the audio signal corresponding to the playback source as a recording signal;
S440、将所述播放源对应的所述音频信号进行丢弃。S440. Discard the audio signal corresponding to the playback source.
具体地,若确定当前录音模式为屏幕录制模式,则获取获取所述音频信号的声源特征,声源特征可以是音频信号的播放源,播放源可以是该电子设备的耳机、扬声器、听筒等,也可以是电子设备外部的设备,例如周围人声,环境声音等。根据音频信号的播放源对所述音频信号进行过滤处理,以滤除掉播放源属于电子设备内部对应的音频信号,仅将播放源属于电子设备内部对应的音频信号保存为录音信号,从而提升录音质量。Specifically, if it is determined that the current recording mode is the screen recording mode, the sound source characteristics of the audio signal are obtained. The sound source characteristics may be a playback source of the audio signal, and the playback source may be a headset, a speaker, an earpiece of the electronic device, etc. It can also be a device external to the electronic device, such as surrounding human voices, ambient sounds, etc. Filter the audio signal according to the playback source of the audio signal to filter out the audio signal corresponding to the internal source of the electronic device, and only save the audio signal corresponding to the internal source of the electronic device as a recording signal, thereby improving recording quality.
S150、将所述录音信号进行存储。S150. Store the recording signal.
将过滤处理后的音频信号作为录音信号进行存储。Store the filtered audio signal as a recording signal.
本申请实施例中,通过接收录音指令,根据所述录音指令进行录音,并在录音过程中获取音频信号,获取所述电子设备的录音模式,所述录音模式包括屏幕录制模式和非屏幕录制模式,根据所述录音模式切换音频处理模式,所述音频处理模式包括声纹处理模式和声源处理模式,根据所述音频处理模式对所述音频信号进行处理,以获取录音信号,并将录音信号进行存储,提升了录音质量。In the embodiment of the present application, by receiving a recording instruction, recording according to the recording instruction, and acquiring an audio signal during the recording process to obtain a recording mode of the electronic device, the recording mode includes a screen recording mode and a non-screen recording mode , Switching the audio processing mode according to the recording mode, the audio processing mode includes a voiceprint processing mode and a sound source processing mode, the audio signal is processed according to the audio processing mode to obtain a recording signal, and the recording signal Stored to improve the recording quality.
在一个实施例中,根据所述声纹处理模式对所述音频信号进行过滤处理,以获取录音信号,还包括:In one embodiment, filtering the audio signal according to the voiceprint processing mode to obtain the recording signal further includes:
获取所述音频信号的声源特征;Acquiring the sound source characteristics of the audio signal;
根据所述声源特征对所述音频信号作差分处理,以消除所述电子设备内输出的音频;Performing differential processing on the audio signal according to the characteristics of the sound source to eliminate the audio output in the electronic device;
具体地,根据声源特征获取所述音频信号的播放源,判断所述播放源是否属于所述电子设备内部;Specifically, acquiring the playback source of the audio signal according to the characteristics of the sound source, and determining whether the playback source belongs to the inside of the electronic device;
若是,则通过差分处理电路对所述播放源对应的所述音频信号作差分处 理,以消除所述电子设备内输出的音频;If so, differential processing is performed on the audio signal corresponding to the playback source through a differential processing circuit to eliminate audio output from the electronic device;
若否,则将所述播放源对应的所述音频信号保存为录音信号。If not, the audio signal corresponding to the playback source is saved as a recording signal.
在一个实施例中,将说话者声音与电子设备内部播放的音频做差分处理,以消除电子设备内输出的音频,获取纯净的说话者声音,并将经过差分处理后的音频信号保存为录音信号。In one embodiment, the speaker's voice is differentially processed with the audio played inside the electronic device to eliminate the audio output from the electronic device, obtain pure speaker's voice, and save the differentially processed audio signal as a recording signal .
本申请实施例,通过获取音频信号的声纹特征过滤掉与目标对象不符合的音频信号,然后通过对音频信号作差分处理,消除电子设备内部播放的音频,将过滤后的音频信号作为录音信号进行保存,提升了录音质量。In the embodiment of the present application, the audio signal that does not conform to the target object is filtered by acquiring the voiceprint feature of the audio signal, and then the audio signal is processed differentially to eliminate the audio played inside the electronic device, and the filtered audio signal is used as the recording signal Save, improve the recording quality.
在一个实施例中,如图5所示,所述方法可以根据电子设备的场景信息录制背景音,包括:In one embodiment, as shown in FIG. 5, the method may record background sound according to the scene information of the electronic device, including:
S510,在录音过程中,获取所述电子设备的场景信息;S510. Acquire scene information of the electronic device during the recording process;
S520,根据所述场景信息,播放并录制与所述场景信息相匹配的背景音。S520: Play and record a background sound matching the scene information according to the scene information.
具体地,当检测到用户在录音过程中触发播放背景音操作时,可以在录音界面上显示至少一段音频数据的触发链接,以供用户选择输出其中一段音频数据作为所述录音信号的背景音;Specifically, when it is detected that the user triggers the background sound playback operation during the recording process, a trigger link of at least one piece of audio data may be displayed on the recording interface for the user to select and output one piece of audio data as the background sound of the recording signal;
播放所述背景音,并将所述背景音与所述录音信号一并录制。Play the background sound, and record the background sound together with the recording signal.
其中,触发播放背景音操作可以是触发播放背景音按钮,背景音按钮可以为物理按键(Home键、音量大小调节键、电源键等)以及虚拟按键(即在录音界面上添加有播放背景音触发点)。进一步地,当检测到用户在录音过程中触发播放背景音操作,在录音界面上显示至少一段音频数据的相关触发链接,以供用户选择输出其中一种音频数据作为所述录音信号的背景音。The background sound triggering operation can be a background sound trigger button. The background sound button can be a physical button (Home button, volume adjustment key, power button, etc.) and a virtual button (that is, a background sound trigger is added to the recording interface point). Further, when it is detected that the user triggers the background sound playback operation during recording, at least one relevant trigger link of audio data is displayed on the recording interface for the user to select and output one of the audio data as the background sound of the recording signal.
在本实施例中,场景信息可以根据当前位置、时间、第三方应用信息、情景模式和用户自定义信息中的一种或多种而确定;场景信息可以包括候机场景、堵车场景、K歌场景、搭乘地铁场景和唱生日歌场景中的一种或多种任意组合。本实施例中预先为多个场景信息配置不同的音频数据的相关触发链接,用户可以在不同的场景下从多个音频数据中选择匹配的音频数据作为录音信号的背景音。In this embodiment, the scene information may be determined according to one or more of the current location, time, third-party application information, scene mode, and user-defined information; the scene information may include waiting scenes, traffic jam scenes, and karaoke Any combination of one or more of the scene, the subway ride scene and the birthday song scene. In this embodiment, related trigger links of different audio data are configured for multiple scene information in advance, and the user can select matching audio data from multiple audio data as background sound of the recording signal in different scenes.
在本实施例中,还可以根据环境音、背景音、录音音量的大小比例,调整背景音的音量大小。例如,当环境音大于背景音以及录音音量时,调大背景音的音量,使得背景音音量大于环境音量;反之,调大或调小背景音音量,使得背景音音量大于环境音音量、小于录音音量。In this embodiment, the volume of the background sound can also be adjusted according to the ratio of the size of the ambient sound, background sound, and recording volume. For example, when the ambient sound is greater than the background sound and the recording volume, increase the background sound volume so that the background sound volume is greater than the ambient volume; otherwise, increase or decrease the background sound volume so that the background sound volume is greater than the ambient sound volume and less than the recording volume volume.
本申请实施例中,通过在录音过程中,获取所述电子设备的场景信息;根据所述场景信息,播放并录制与所述场景信息相匹配的背景音作为录音信 号,可以提升用户体验。In the embodiment of the present application, by acquiring scene information of the electronic device during the recording process; according to the scene information, playing and recording a background sound matching the scene information as a recording signal can improve the user experience.
如图6所示,本申请实施例提供了一种录音装置60,该装置包括:As shown in FIG. 6, an embodiment of the present application provides a recording device 60, which includes:
第一获取模块61,用于接收录音指令,根据所述录音指令进行录音,并在录音过程中获取音频信号;The first obtaining module 61 is configured to receive a recording instruction, perform recording according to the recording instruction, and obtain audio signals during the recording process;
电子设备可以为移动终端、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑、穿戴式设备等任意电子设备。The electronic device may be any electronic device such as a mobile terminal, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), an in-vehicle computer, and a wearable device.
在一个实施例中,录音指令可以是在电子设备的显示界面上点击录音应用程序的图标。例如,在录音应用程序图标区域接收到点击屏幕的操作时,默认获取进入录音功能的指令,显示界面展示录音程序的应用界面。录音指令还可以是在电子设备的屏幕上滑动和/或触碰的操作信息,例如,在显示界面上,通过在界面上画圆的滑动方式打开录音应用程序。进入录音功能的指令还可以是预设的快捷按键信息,例如,长按音量按键时,进入录音应用程序,开启录音功能。进入录音功能的指令还可以是语音控制信息等,例如,在话筒接收到“开始录音”或“打开录音机”等语音信息时,进入录音功能。In one embodiment, the recording instruction may be to click the icon of the recording application on the display interface of the electronic device. For example, when an operation of clicking the screen is received in the icon area of the recording application, the instruction to enter the recording function is obtained by default, and the display interface displays the application interface of the recording program. The recording instruction may also be operation information of sliding and/or touching on the screen of the electronic device, for example, on the display interface, the recording application is opened by sliding a circle on the interface. The instruction to enter the recording function may also be preset shortcut key information. For example, when the volume button is pressed long, the recording application program is entered to start the recording function. The instruction to enter the recording function may also be voice control information, etc. For example, when the microphone receives voice information such as "start recording" or "turn on the recorder", it enters the recording function.
需要说明的是,以上仅是录音指令的举例,录音指令的具体形式本实施例不做限制,只要能使电子设备进入录音功能即可。It should be noted that the above is only an example of the recording instruction, and the specific form of the recording instruction is not limited in this embodiment, as long as the electronic device can enter the recording function.
在电子设备接收到录音指令后,会进入录音功能,第一获取模块61在录音过程中获取音频信号。After the electronic device receives the recording instruction, it will enter the recording function, and the first acquisition module 61 acquires the audio signal during the recording process.
第二获取模块62,用于获取所述电子设备的录音模式,所述录音模式包括屏幕录制模式和非屏幕录制模式;The second obtaining module 62 is configured to obtain a recording mode of the electronic device, the recording mode includes a screen recording mode and a non-screen recording mode;
电子设备在进入录音功能后,第二获取模块62获取电子设备当前的录音模式,具体地,识别电子设备当前是否处于屏幕录制模式。若接收到的录音指令为屏幕录制指令,则电子设备当前处于屏幕录制模式;若接收到的录音指令为普通录音指令,即非屏幕录制模式下的录音指令,则电子设备当前处于非屏幕录制模式。After the electronic device enters the recording function, the second obtaining module 62 obtains the current recording mode of the electronic device, specifically, identifies whether the electronic device is currently in the screen recording mode. If the received recording command is a screen recording command, the electronic device is currently in the screen recording mode; if the received recording command is a normal recording command, that is, a recording command in a non-screen recording mode, the electronic device is currently in a non-screen recording mode .
屏幕录制(Screen Record,SR)技术通常是用于将屏幕界面上显示的一段时间内的内容进行记录和保存,例如,对用户在屏幕界面上的操作过程或者在屏幕界面上播放的视频内容等进行记录和保存。Screen recording (SR) technology is usually used to record and save the content displayed on the screen interface for a period of time, for example, the user's operation process on the screen interface or the video content played on the screen interface, etc. Record and save.
切换模块63,用于根据所述录音模式切换音频处理模式,所述音频处理模式包括声纹处理模式和声源处理模式;A switching module 63, configured to switch an audio processing mode according to the recording mode, the audio processing mode includes a voiceprint processing mode and a sound source processing mode;
本申请实施例中,在第二获取模块62获取到所述电子设备当前的录音模式后,切换模块63会根据所述录音模式切换相应的音频处理模式,并根据切 换的音频处理模式对在录音过程中获取的音频信号进行处理,以获取录音信号。In the embodiment of the present application, after the second acquisition module 62 acquires the current recording mode of the electronic device, the switching module 63 will switch the corresponding audio processing mode according to the recording mode, and record the current recording according to the switched audio processing mode. The audio signal acquired in the process is processed to obtain the recording signal.
具体地,当获取到的录音模式为非屏幕录制模式时,切换模块63将所述音频信号处理模式切换至声纹处理模式;当获取到的录音模式为屏幕录制模式,切换模块63则将所述音频信号处理模式切换至声源处理模式。Specifically, when the acquired recording mode is a non-screen recording mode, the switching module 63 switches the audio signal processing mode to the voiceprint processing mode; when the acquired recording mode is a screen recording mode, the switching module 63 switches The audio signal processing mode is switched to the sound source processing mode.
处理模块64,用于根据所述音频处理模式对所述音频信号进行处理,以获取录音信号;The processing module 64 is configured to process the audio signal according to the audio processing mode to obtain a recording signal;
在一个实施例中,当录音模式为非屏幕录制模式时,处理模块64根据切换模块63切换的声纹处理模式对所述音频信号进行过滤处理,以获取录音信号,具体为:In one embodiment, when the recording mode is a non-screen recording mode, the processing module 64 performs filtering processing on the audio signal according to the voiceprint processing mode switched by the switching module 63 to obtain the recording signal, specifically:
对音频信号进行声纹特征解析,以获取所述音频信号的声纹特征;Analyzing the voiceprint characteristics of the audio signal to obtain the voiceprint characteristics of the audio signal;
声纹(Voiceprint),是用电声学仪器显示的携带言语信息的声波频谱。人类语言的产生是人体语言中枢与发音器官之间一个复杂的生理物理过程,每个人在讲话时使用的发声器官:舌、牙齿、喉头、肺、鼻腔在尺寸和形态方面的差异很大,所以任何两个人的声波频谱都有差异。Voiceprint (Voiceprint) is the sound wave spectrum carrying verbal information displayed by electroacoustic instruments. The generation of human language is a complex physiological and physical process between the human language center and the pronunciation organs. The vocal organs used by everyone in speech: the tongue, teeth, throat, lungs, and nasal cavity vary greatly in size and shape, so The sound wave spectrum of any two people is different.
声纹特征是与人类的发音机制的解剖学结构有关的声学特征,如频谱、倒频谱、共振峰、基音、反射系数、鼻音、带深呼吸音、沙哑音、笑声等。由于每个人的发音器官都不尽相同,通过识别音频信号的声纹特征可以准确辨认不同的说话人对应的音频信号。因此,通过声纹特征来识别目标对象的声音,可以实现只对特定目标对象的声音进行录制。Voiceprint features are acoustic features related to the anatomical structure of human pronunciation mechanisms, such as frequency spectrum, cepstrum, formants, pitch, reflection coefficient, nasal sounds, deep breath sounds, hoarse sounds, laughter, etc. Since each person's pronunciation organs are different, the audio signals corresponding to different speakers can be accurately identified by identifying the voiceprint features of the audio signal. Therefore, by identifying the voice of the target object through the voiceprint feature, it is possible to record only the voice of the specific target object.
在获取到音频信号的声纹特征后,处理模块64将音频信号的声纹特征与声纹特征模型库中的声纹特征进行匹配;After acquiring the voiceprint features of the audio signal, the processing module 64 matches the voiceprint features of the audio signal with the voiceprint features in the voiceprint feature model library;
在一个实施例中,将音频信号的声纹特征与声纹特征模型库中的声纹特征进行匹配前,还包括建立声纹特征模型库。具体地,预先录入目标对象的声音样本,提取每个样本的声纹特征,以建立声纹特征模型库。将获取到的音频信号的声纹特征与声纹特征模型库中存储的声纹特征进行匹配。若匹配成功,则将声纹特征对应的音频信号保存为录音信号;若匹配不成功,则将声纹特征对应的音频信号丢弃。In one embodiment, before matching the voiceprint feature of the audio signal with the voiceprint feature in the voiceprint feature model library, the method further includes establishing a voiceprint feature model library. Specifically, the voice samples of the target object are pre-recorded, and the voiceprint features of each sample are extracted to establish a voiceprint feature model library. Match the acquired voiceprint features of the audio signal with the voiceprint features stored in the voiceprint feature model library. If the matching is successful, the audio signal corresponding to the voiceprint feature is saved as a recording signal; if the matching is not successful, the audio signal corresponding to the voiceprint feature is discarded.
例如,声纹特征模型库中存储的是用户A、用户B、用户C三者的声纹特征。在匹配声纹特征时,将获取到的音频信号的声纹特征(例如用户A的声纹特征)与声纹特征模型库中存储的声纹特征进行匹配。由于声纹特征模型库中有用户A的声纹特征,因此匹配成功,判断出用户A属于目标对象,则将用户A的声纹特征对应的音频信号保存为录音信号;若获取到的音频信号的 声纹特征为用户D,在匹配的过程中,由于声纹特征模型库中没有用户D的声纹特征,因此匹配失败,将用户D的声纹特征对应的音频信号丢弃。For example, the voiceprint features of user A, user B, and user C are stored in the voiceprint feature model library. When matching the voiceprint features, the acquired voiceprint features of the audio signal (for example, user A's voiceprint features) are matched with the voiceprint features stored in the voiceprint feature model library. Since the voiceprint feature model library has the voiceprint feature of user A, the match is successful, and it is determined that user A belongs to the target object, and then the audio signal corresponding to the voiceprint feature of user A is saved as a recording signal; if the acquired audio signal The voiceprint feature of user D is user D. During the matching process, because there is no voiceprint feature of user D in the voiceprint feature model library, the matching fails, and the audio signal corresponding to the voiceprint feature of user D is discarded.
进一步的,由于声纹特征的参数主要包括音量、音调、音色等参数。因此,电子设备在判定获取到音频信号的多个声纹特征是否与声纹特征模型库中存储的声纹特征匹配时,可以以上述几个参数为基础进行判定。下面对判定方式进行具体的介绍。Further, the parameters of the voiceprint feature mainly include parameters such as volume, tone, and timbre. Therefore, when determining whether the multiple voiceprint features of the acquired audio signal match the voiceprint features stored in the voiceprint feature model library, the electronic device may make a determination based on the above-mentioned several parameters. The following describes the determination method in detail.
例如利用音调和音色来匹配声纹特征时,仅将音频信号的某个声纹特征的音调和音色和特征模型库中的声纹特征的音调和音色进行匹配,以此来判断声纹特征是否和特征模型库中的声纹特征一致。若是,则表示该声纹特征属于目标对象的声纹特征,则将所述声纹特征对应的音频信号保存为录音信号;若否,则表示该声纹特征不属于目标对象的声纹特征,则将所述声纹特征对应的音频信号丢弃。For example, when using the tone and timbre to match the voiceprint feature, only the tone and timbre of a certain voiceprint feature of the audio signal and the tone and timbre of the voiceprint feature in the feature model library are matched to determine whether the voiceprint feature is It is consistent with the voiceprint feature in the feature model library. If yes, it means that the voiceprint feature belongs to the target object's voiceprint feature, then the audio signal corresponding to the voiceprint feature is saved as a recording signal; if not, it means that the voiceprint feature does not belong to the target object's voiceprint feature, Then, the audio signal corresponding to the voiceprint feature is discarded.
具体来说,音调表示声音的高低(高音、低音),由“频率”决定,频率越高音调越高,频率越低音调越低。每个用户具有自身特有的音调。而音色又称音品,因不同物体材料的特性而具有不同特性,每个人的音色也是不同的。由于每个人的声纹特征具有各自的特征,因此,利用音调和音色可以对音频信号进行精确地过滤处理,从而可以提升录音质量。Specifically, the tone indicates the level of the sound (treble, bass), determined by "frequency", the higher the frequency the higher the tone, the lower the frequency the lower the tone. Each user has its own unique tone. The timbre, also known as timbre, has different characteristics due to the characteristics of different object materials, and everyone's timbre is also different. Because each person's voiceprint features have their own characteristics, the audio signal can be accurately filtered using tones and timbre, which can improve the recording quality.
在一个实施例中,装置60还包括标记模块(图中未示出),具体用于:In one embodiment, the device 60 further includes a marking module (not shown in the figure), which is specifically used for:
识别所述录音信号中具有相同声纹特征的录音信号;Identify the recording signals with the same voiceprint characteristics among the recording signals;
在相同声纹特征的录音信号中,读取每个所述声纹特征对应录音信号的起始时刻;In a recording signal with the same voiceprint feature, read the start time of the recording signal corresponding to each of the voiceprint features;
将识别出的具有相同声纹特征的录音信号进行起始时刻标记。Mark the identified recording signals with the same voiceprint characteristics as the start time.
本申请实施例中,可以在获取到录音信号后,识别录音信号中包含的声纹特征,并对相同的声纹特征标记相同的标识,从而方便用户在查看录音时可以区分不同的说话者,使用户更快的查找到指定的说话者。其中,所述标识可以包括开始标识和结束标识,开始标识用于标记某一说话者开始说话的时刻,结束标识用于标记该说话者结束说话的时刻,从而可以更精确地区分出不同的说话者。In the embodiment of the present application, after acquiring the recording signal, the voiceprint features contained in the recording signal can be identified, and the same voiceprint features can be marked with the same identifier, so that the user can distinguish different speakers when viewing the recording, It enables users to find the designated speaker faster. Wherein, the mark may include a start mark and an end mark. The start mark is used to mark the moment when a speaker starts speaking, and the end mark is used to mark the moment when the speaker ends speaking, so that different speeches can be more accurately distinguished. By.
在一个实施例中,当录音模式为屏幕录制模式时,处理模块64根据切换模块63切换的声源处理模式对所述音频信号进行过滤处理,以获取录音信号,具体为:In one embodiment, when the recording mode is the screen recording mode, the processing module 64 performs filtering processing on the audio signal according to the sound source processing mode switched by the switching module 63 to obtain the recording signal, specifically:
获取所述音频信号的声源特征,并根据所述声源特征获取所述音频信号的播放源;Acquiring the sound source characteristics of the audio signal, and acquiring the playback source of the audio signal according to the sound source characteristics;
判断所述播放源是否属于所述电子设备内部;Determine whether the playback source belongs to the electronic device;
若是,则将所述播放源对应的所述音频信号保存为录音信号;If yes, save the audio signal corresponding to the playback source as a recording signal;
若否,则将所述播放源对应的所述音频信号进行丢弃。If not, the audio signal corresponding to the playback source is discarded.
具体地,若确定当前录音模式为屏幕录制模式,则获取获取所述音频信号的声源特征,声源特征可以是音频信号的播放源,播放源可以是该电子设备的耳机、扬声器、听筒等,也可以是电子设备外部的设备,例如周围人声,环境声音等。根据音频信号的播放源对所述音频信号进行过滤处理,以滤除掉播放源属于电子设备内部对应的音频信号,仅将播放源属于电子设备内部对应的音频信号保存为录音信号,从而提升录音质量。Specifically, if it is determined that the current recording mode is the screen recording mode, the sound source characteristics of the audio signal are acquired, and the sound source characteristics may be the playback source of the audio signal, and the playback source may be the earphone, speaker, earpiece, etc. of the electronic device It can also be a device external to the electronic device, such as surrounding human voices, ambient sounds, etc. Filter the audio signal according to the playback source of the audio signal to filter out the audio signal corresponding to the internal source of the electronic device, and only save the audio signal corresponding to the internal source of the electronic device as a recording signal, thereby improving recording quality.
存储模块65,用于将所述录音信号进行存储。The storage module 65 is configured to store the recorded signal.
存储模块65将经过声纹模式处理或声源模式处理后的音频信号作为录音信号进行存储。The storage module 65 stores the audio signal processed by the voiceprint mode or the sound source mode as a recording signal.
本申请实施例中,第一获取模块61通过接收录音指令,根据所述录音指令进行录音,并在录音过程中获取音频信号;第二获取模块62获取所述电子设备的录音模式,所述录音模式包括屏幕录制模式和非屏幕录制模式,切换模块63根据所述录音模式切换音频处理模式,所述音频处理模式包括声纹处理模式和声源处理模式;处理模块64根据所述音频处理模式对所述音频信号进行处理,以获取录音信号;存储模块65将录音信号进行存储,提升了录音质量。In the embodiment of the present application, the first acquisition module 61 receives the recording instruction, performs recording according to the recording instruction, and acquires audio signals during the recording process; the second acquisition module 62 acquires the recording mode of the electronic device, the recording The modes include a screen recording mode and a non-screen recording mode, and the switching module 63 switches the audio processing mode according to the recording mode, and the audio processing mode includes a voiceprint processing mode and a sound source processing mode; the processing module 64 matches the audio processing mode The audio signal is processed to obtain the recording signal; the storage module 65 stores the recording signal to improve the recording quality.
在一个实施例中,装置60还包括差分电路(图中未示出),用于对所述播放源对应的所述音频信号作差分处理,以消除所述电子设备内输出的音频,具体为:In one embodiment, the device 60 further includes a differential circuit (not shown in the figure) for performing differential processing on the audio signal corresponding to the playback source to eliminate the audio output from the electronic device, specifically :
获取所述音频信号的声源特征;Acquiring the sound source characteristics of the audio signal;
根据所述声源特征对所述音频信号作差分处理,以消除所述电子设备内输出的音频;Performing differential processing on the audio signal according to the characteristics of the sound source to eliminate the audio output in the electronic device;
具体地,根据声源特征获取所述音频信号的播放源,判断所述播放源是否属于所述电子设备内部;Specifically, acquiring the playback source of the audio signal according to the characteristics of the sound source, and determining whether the playback source belongs to the inside of the electronic device;
若是,则通过差分处理电路对所述播放源对应的所述音频信号作差分处理,以消除所述电子设备内输出的音频;If yes, differential processing is performed on the audio signal corresponding to the playback source through a differential processing circuit to eliminate audio output from the electronic device;
若否,则将所述播放源对应的所述音频信号保存为录音信号。If not, the audio signal corresponding to the playback source is saved as a recording signal.
在一个实施例中,将说话者声音与电子设备内部播放的音频做差分处理,以消除电子设备内输出的音频,获取纯净的说话者声音,并将经过差分处理后的音频信号保存为录音信号。In one embodiment, the speaker's voice is differentially processed with the audio played inside the electronic device to eliminate the audio output from the electronic device, obtain pure speaker's voice, and save the differentially processed audio signal as a recording signal .
本申请实施例,通过获取音频信号的声纹特征过滤掉与目标对象不符合的音频信号,然后通过对音频信号作差分处理,消除电子设备内部播放的音频,将过滤后的音频信号作为录音信号进行保存,提升了录音质量。In the embodiment of the present application, the audio signal that does not conform to the target object is filtered by acquiring the voiceprint feature of the audio signal, and then the audio signal is processed differentially to eliminate the audio played inside the electronic device, and the filtered audio signal is used as the recording signal Save, improve the recording quality.
在一个实施例中,装置60还包括背景音设置模块(图中未示出),具体用于:In one embodiment, the device 60 further includes a background sound setting module (not shown in the figure), which is specifically used for:
在录音过程中,获取所述电子设备的场景信息;During recording, obtain scene information of the electronic device;
根据所述场景信息,播放并录制与所述场景信息相匹配的背景音。According to the scene information, play and record the background sound matching the scene information.
具体地,当检测到用户在录音过程中触发播放背景音操作时,可以在录音界面上显示至少一段音频数据的触发链接,以供用户选择输出其中一段音频数据作为所述录音信号的背景音;Specifically, when it is detected that the user triggers the background sound playback operation during the recording process, a trigger link of at least one piece of audio data may be displayed on the recording interface for the user to select and output one piece of audio data as the background sound of the recording signal;
播放所述背景音,并将所述背景音与所述录音信号一并录制。Play the background sound, and record the background sound together with the recording signal.
其中,触发播放背景音操作可以是触发播放背景音按钮,背景音按钮可以为物理按键(Home键、音量大小调节键、电源键等)以及虚拟按键(即在录音界面上添加有播放背景音触发点)。进一步地,当检测到用户在录音过程中触发播放背景音操作,在录音界面上显示至少一段音频数据的相关触发链接,以供用户选择输出其中一种音频数据作为所述录音信号的背景音。The background sound triggering operation can be a background sound trigger button. The background sound button can be a physical button (Home button, volume adjustment key, power button, etc.) and a virtual button (that is, a background sound trigger is added to the recording interface point). Further, when it is detected that the user triggers the background sound playback operation during recording, at least one relevant trigger link of audio data is displayed on the recording interface for the user to select and output one of the audio data as the background sound of the recording signal.
在本实施例中,场景信息可以根据当前位置、时间、第三方应用信息、情景模式和用户自定义信息中的一种或多种而确定;场景信息可以包括候机场景、堵车场景、K歌场景、搭乘地铁场景和唱生日歌场景中的一种或多种任意组合。本实施例中预先为多个场景信息配置不同的音频数据的相关触发链接,用户可以在不同的场景下从多个音频数据中选择匹配的音频数据作为录音信号的背景音。In this embodiment, the scene information may be determined according to one or more of the current location, time, third-party application information, scene mode, and user-defined information; the scene information may include waiting scenes, traffic jam scenes, and karaoke Any combination of one or more of the scene, the subway ride scene and the birthday song scene. In this embodiment, related trigger links of different audio data are configured for multiple scene information in advance, and the user can select matching audio data from multiple audio data as background sound of the recording signal in different scenes.
在本实施例中,还可以根据环境音、背景音、录音音量的大小比例,调整背景音的音量大小。例如,当环境音大于背景音以及录音音量时,调大背景音的音量,使得背景音音量大于环境音量;反之,调大或调小背景音音量,使得背景音音量大于环境音音量、小于录音音量。In this embodiment, the volume of the background sound can also be adjusted according to the ratio of the size of the ambient sound, background sound, and recording volume. For example, when the ambient sound is greater than the background sound and the recording volume, increase the background sound volume so that the background sound volume is greater than the ambient volume; otherwise, increase or decrease the background sound volume so that the background sound volume is greater than the ambient sound volume and less than the recording volume volume.
本申请实施例中,通过背景音设置模块在录音过程中获取所述电子设备的场景信息;并根据所述场景信息,播放并录制与所述场景信息相匹配的背景音作为录音信号,可以提升用户体验。In the embodiment of the present application, the background sound setting module acquires scene information of the electronic device during recording; and according to the scene information, plays and records background sound matching the scene information as a recording signal, which can be improved user experience.
图7为一实施例中电子设备的内部结构示意图。如图7所示,该电子设备包括通过系统总线连接的处理器、非易失性存储介质、内存储器和网络接口、声音采集装置、扬声器、显示屏和输入装置。其中,终端的非易失性存储介质存储有操作系统和计算机可读指令。该计算机可读指令被处理器执行时以 实现一种电子设备的对应用程序进行处理的方法。该处理器用于提供计算和控制能力,支撑整个电子设备的运行。电子设备中的内存储器为非易失性存储介质中的计算机可读指令的运行提供环境。电子设备的显示屏可以是液晶显示屏或者电子墨水显示屏等,输入装置可以是显示屏上覆盖的触摸层,也可以是电子设备外壳上设置的按键、轨迹球或触控板,也可以是外接的键盘、触控板或鼠标等。该电子设备可以是手机、平板电脑或者个人数字助理或穿戴式设备等。本领域技术人员可以理解,图7中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的电子设备的限定,具体的电子设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。7 is a schematic diagram of an internal structure of an electronic device in an embodiment. As shown in FIG. 7, the electronic device includes a processor connected through a system bus, a non-volatile storage medium, an internal memory and a network interface, a sound collection device, a speaker, a display screen, and an input device. Among them, the non-volatile storage medium of the terminal stores an operating system and computer-readable instructions. When the computer readable instructions are executed by the processor, a method for processing an application program of an electronic device is realized. The processor is used to provide computing and control capabilities to support the operation of the entire electronic device. The internal memory in the electronic device provides an environment for the execution of computer-readable instructions in the non-volatile storage medium. The display screen of the electronic device may be a liquid crystal display screen or an electronic ink display screen, etc. The input device may be a touch layer covered on the display screen, or a button, a trackball or a touch pad provided on the casing of the electronic device, or it may be External keyboard, touchpad or mouse, etc. The electronic device may be a mobile phone, a tablet computer, a personal digital assistant or a wearable device. Those skilled in the art may understand that the structure shown in FIG. 7 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the electronic device to which the solution of the present application is applied. The specific electronic device may It includes more or fewer components than shown in the figure, or some components are combined, or have a different component arrangement.
其中,上述提及的录音方法具体可以为:Among them, the above-mentioned recording method may specifically be:
接收录音指令,根据所述录音指令进行录音,并在录音过程中获取音频信号;Receiving a recording instruction, recording according to the recording instruction, and acquiring audio signals during the recording process;
获取所述电子设备的录音模式,所述录音模式包括屏幕录制模式和非屏幕录制模式;Acquiring a recording mode of the electronic device, the recording mode includes a screen recording mode and a non-screen recording mode;
根据所述录音模式切换音频处理模式,所述音频处理模式包括声纹处理模式和声源处理模式;Switching an audio processing mode according to the recording mode, the audio processing mode includes a voiceprint processing mode and a sound source processing mode;
根据所述音频处理模式对所述音频信号进行处理,以获取录音信号;Processing the audio signal according to the audio processing mode to obtain a recording signal;
将所述录音信号进行存储。Store the recorded signal.
此外,本申请实施例还提供了一种计算机非易失性可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上述对应用程序进行处理的步骤。In addition, the embodiments of the present application also provide a computer non-volatile readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of processing the application program as described above are realized.
本发明实施例还提供了一种计算机设备。如图8所示,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本发明实施例方法部分。该计算机设备可以为包括电子设备、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑、穿戴式设备等任意终端设备,以计算机设备为电子设备为例:An embodiment of the present invention also provides a computer device. As shown in FIG. 8, for ease of description, only parts related to the embodiments of the present invention are shown. For specific technical details not disclosed, please refer to the method part of the embodiments of the present invention. The computer device may be any terminal device including an electronic device, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), an in-vehicle computer, a wearable device, etc. The computer device is an electronic device For example:
图8为与本发明实施例提供的计算机设备相关的电子设备的部分结构的框图。参考图8,电子设备包括:射频(Radio Frequency,RF)电路810、存储器820、输入单元830、显示单元840、传感器850、音频电路860、无线保真(wireless fidelity,WiFi)模块870、处理器880、以及电源890等部件。本领域技术人员可以理解,图8所示的电子设备结构并不构成对 电子设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。8 is a block diagram of a partial structure of an electronic device related to a computer device provided by an embodiment of the present invention. 8, the electronic device includes: a radio frequency (Radio Frequency) circuit 810, a memory 820, an input unit 830, a display unit 840, a sensor 850, an audio circuit 860, a wireless fidelity (WiFi) module 870, a processor 880, and power supply 890 and other components. Those skilled in the art may understand that the structure of the electronic device shown in FIG. 8 does not constitute a limitation on the electronic device, and may include more or less components than those illustrated, or combine some components, or arrange different components.
其中,RF电路810可用于收发信息或通话过程中,信号的接收和发送,可将基站的下行信息接收后,给处理器880处理;也可以将上行的数据发送给基站。通常,RF电路包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路810还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE))、电子邮件、短消息服务(Short Messaging Service,SMS)等。Among them, the RF circuit 810 can be used to receive and send signals during the sending and receiving of information or during a call. It can receive the downlink information of the base station and process it to the processor 880; it can also send the uplink data to the base station. Generally, RF circuits include but are not limited to antennas, at least one amplifier, transceiver, coupler, low noise amplifier (Low Noise Amplifier, LNA), duplexer, and so on. In addition, the RF circuit 810 can also communicate with other devices through a wireless communication network. The above wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile (GSM), General Packet Radio Service (GPRS), and Code Division Multiple Access (Code Division) Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), e-mail, Short Message Service (SMS), etc.
存储器820可用于存储软件程序以及模块,处理器880通过运行存储在存储器820的软件程序以及模块,从而执行电子设备的各种功能应用以及数据处理。存储器820可主要包括程序存储区和数据存储区,其中,程序存储区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能的应用程序、图像播放功能的应用程序等)等;数据存储区可存储根据电子设备的使用所创建的数据(比如音频数据、通讯录等)等。此外,存储器820可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 820 may be used to store software programs and modules. The processor 880 executes various functional applications and data processing of the electronic device by running the software programs and modules stored in the memory 820. The memory 820 may mainly include a program storage area and a data storage area, where the program storage area may store an operating system and at least one function-required application program (such as a sound playback function application program, an image playback function application program, etc.), etc.; The data storage area can store data (such as audio data, address book, etc.) created according to the use of electronic devices. In addition, the memory 820 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
输入单元830可用于接收输入的数字或字符信息,以及产生与电子设备800的用户设置以及功能控制有关的键信号输入。具体地,输入单元830可包括触控面板831以及其他输入设备832。触控面板831,也可称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板831上或在触控面板831附近的操作),并根据预先设定的程式驱动相应的连接装置。在一个实施例中,触控面板831可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器880,并能接收处理器880发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板831。除了触控面板831,输入单元830还可以包括其他输入设备832。具 体地,其他输入设备832可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)等中的一种或多种。The input unit 830 may be used to receive input numeric or character information, and generate key signal input related to user settings and function control of the electronic device 800. Specifically, the input unit 830 may include a touch panel 831 and other input devices 832. The touch panel 831, also known as a touch screen, can collect user's touch operations on or near it (such as the user using any finger, stylus, or any other suitable object or accessory on or near the touch panel 831 Operation), and drive the corresponding connection device according to the preset program. In one embodiment, the touch panel 831 may include a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into contact coordinates, and then sends To the processor 880, and can receive the command sent by the processor 880 and execute it. In addition, the touch panel 831 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 831, the input unit 830 may also include other input devices 832. Specifically, other input devices 832 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.).
显示单元840可用于显示由用户输入的信息或提供给用户的信息以及电子设备的各种菜单。显示单元840可包括显示面板841。在一个实施例中,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板841。在一个实施例中,触控面板831可覆盖显示面板841,当触控面板831检测到在其上或附近的触摸操作后,传送给处理器880以确定触摸事件的类型,随后处理器880根据触摸事件的类型在显示面板841上提供相应的视觉输出。虽然在图8中,触控面板831与显示面板841是作为两个独立的部件来实现电子设备的输入和输入功能,但是在某些实施例中,可以将触控面板831与显示面板841集成而实现电子设备的输入和输出功能。The display unit 840 may be used to display information input by the user or information provided to the user and various menus of the electronic device. The display unit 840 may include a display panel 841. In one embodiment, the display panel 841 may be configured in the form of a liquid crystal display (Liquid Crystal) (LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like. In one embodiment, the touch panel 831 may cover the display panel 841, and when the touch panel 831 detects a touch operation on or near it, it is transmitted to the processor 880 to determine the type of touch event, and then the processor 880 according to The type of touch event provides a corresponding visual output on the display panel 841. Although in FIG. 8, the touch panel 831 and the display panel 841 are implemented as two independent components to realize the input and input functions of the electronic device, in some embodiments, the touch panel 831 and the display panel 841 may be integrated And realize the input and output functions of electronic equipment.
电子设备800还可包括至少一种传感器850,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板841的亮度,接近传感器可在电子设备移动到耳边时,关闭显示面板841和/或背光。运动传感器可包括加速度传感器,通过加速度传感器可检测各个方向上加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态的应用(比如横竖屏切换)、振动识别相关功能(比如计步器、敲击)等;此外,电子设备还可配置陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器等。The electronic device 800 may further include at least one sensor 850, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 841 according to the brightness of the ambient light, and the proximity sensor may close the display panel 841 and the electronic device when moving to the ear /Or backlight. The motion sensor may include an acceleration sensor. The acceleration sensor can detect the magnitude of acceleration in various directions, and can detect the magnitude and direction of gravity when at rest. It can be used for applications that recognize the posture of electronic devices (such as horizontal and vertical screen switching), and vibration recognition related functions ( For example, pedometer, percussion, etc.; in addition, electronic devices can also be equipped with other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc.
音频电路860、扬声器861和传声器862可提供用户与电子设备之间的音频接口。音频电路860可将接收到的音频数据转换后的电信号,传输到扬声器861,由扬声器861转换为声音信号输出;另一方面,传声器862将收集的声音信号转换为电信号,由音频电路860接收后转换为音频数据,再将音频数据输出处理器880处理后,经RF电路810可以发送给另一电子设备,或者将音频数据输出至存储器820以便后续处理。The audio circuit 860, the speaker 861, and the microphone 862 may provide an audio interface between the user and the electronic device. The audio circuit 860 can transmit the received electrical signal converted to electrical signals to the speaker 861, which converts the speaker 861 into a sound signal for output; on the other hand, the microphone 862 converts the collected sound signal into an electrical signal, which is converted by the audio circuit 860 After receiving, it is converted into audio data, and then processed by the audio data output processor 880, and then sent to another electronic device via the RF circuit 810, or the audio data is output to the memory 820 for subsequent processing.
WiFi属于短距离无线传输技术,电子设备通过WiFi模块870可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图8示出了WiFi模块870,但是可以理解的是,其并不属于电子设备800的必须构成,可以根据需要而省略。WiFi is a short-distance wireless transmission technology. Electronic devices can help users send and receive emails, browse web pages, and access streaming media through the WiFi module 870. It provides users with wireless broadband Internet access. Although FIG. 8 shows the WiFi module 870, it can be understood that it is not a necessary component of the electronic device 800, and may be omitted as needed.
处理器880是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器820内的软件程序和/ 或模块,以及调用存储在存储器820内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。在一个实施例中,处理器880可包括一个或多个处理单元。在一个实施例中,处理器880可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等;调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器880中。The processor 880 is a control center of the electronic device, connects various parts of the entire electronic device by using various interfaces and lines, runs or executes software programs and/or modules stored in the memory 820, and calls data stored in the memory 820 , Perform various functions of electronic devices and process data, so as to monitor the electronic devices as a whole. In one embodiment, the processor 880 may include one or more processing units. In one embodiment, the processor 880 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, user interface, application programs, and the like; the modem processor mainly processes wireless communication. It can be understood that the above-mentioned modem processor may not be integrated into the processor 880.
电子设备800还包括给各个部件供电的电源890(比如电池),优选的,电源可以通过电源管理系统与处理器880逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The electronic device 800 further includes a power supply 890 (such as a battery) that supplies power to various components. Preferably, the power supply can be logically connected to the processor 880 through the power management system, so as to realize functions such as charging, discharging, and power management through the power management system. .
在一个实施例中,电子设备800还可以包括摄像头、蓝牙模块等。In one embodiment, the electronic device 800 may further include a camera, a Bluetooth module, and the like.
在本发明实施例中,该计算机设备所包括的处理器880执行存储在存储器上的计算机程序时实现上述各实施例的方法。In the embodiments of the present invention, the processor 880 included in the computer device implements the methods of the foregoing embodiments when executing the computer program stored on the memory.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一非易失性计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等。本发明实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时上述各实施例的方法。Those of ordinary skill in the art may understand that all or part of the processes in the method of the above embodiments may be completed by instructing relevant hardware through a computer program, and the program may be stored in a non-volatile computer-readable storage medium In this case, when the program is executed, it may include the flow of the above method embodiments. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), etc. An embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the methods of the foregoing embodiments.
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above-mentioned embodiments can be arbitrarily combined. To simplify the description, all possible combinations of the technical features in the above-mentioned embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, All should be considered within the scope of this description.
以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several embodiments of the present invention, and their descriptions are more specific and detailed, but they should not be construed as limiting the scope of the invention patent. It should be noted that, for a person of ordinary skill in the art, without departing from the concept of the present invention, several modifications and improvements can also be made, which all fall within the protection scope of the present invention. Therefore, the protection scope of the invention patent shall be subject to the appended claims.

Claims (12)

  1. 一种录音方法,应用于电子设备,其特征在于,包括:A recording method, applied to electronic equipment, characterized by including:
    接收录音指令,根据所述录音指令进行录音,并在录音过程中获取音频信号;Receiving a recording instruction, recording according to the recording instruction, and acquiring audio signals during the recording process;
    获取所述电子设备的录音模式,所述录音模式包括屏幕录制模式和非屏幕录制模式;Acquiring a recording mode of the electronic device, the recording mode includes a screen recording mode and a non-screen recording mode;
    根据所述录音模式切换音频处理模式,所述音频处理模式包括声纹处理模式和声源处理模式;Switching an audio processing mode according to the recording mode, the audio processing mode includes a voiceprint processing mode and a sound source processing mode;
    根据所述音频处理模式对所述音频信号进行处理,以获取录音信号;Processing the audio signal according to the audio processing mode to obtain a recording signal;
    将所述录音信号进行存储。Store the recorded signal.
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述录音模式切换音频处理模式,并根据所述音频处理模式对所述音频信号进行处理,以获取录音信号,包括:The method according to claim 1, wherein the switching the audio processing mode according to the recording mode and processing the audio signal according to the audio processing mode to obtain the recording signal includes:
    若确定所述录音模式为非屏幕录制模式,则将所述音频信号处理模式切换至所述声纹处理模式,根据所述声纹处理模式对所述音频信号进行过滤处理,以获取录音信号;If it is determined that the recording mode is a non-screen recording mode, the audio signal processing mode is switched to the voiceprint processing mode, and the audio signal is filtered according to the voiceprint processing mode to obtain the recording signal;
    若确定所述录音模式为屏幕录制模式,则将所述音频信号处理模式切换至所述声源处理模式,根据所述声源处理模式对所述音频信号进行过滤处理,以获取录音信号。If it is determined that the recording mode is the screen recording mode, the audio signal processing mode is switched to the sound source processing mode, and the audio signal is filtered according to the sound source processing mode to obtain the recording signal.
  3. 根据权利要求2所述的方法,其特征在于,所述根据声纹处理模式对所述音频信号进行过滤处理,以获取录音信号,包括:The method according to claim 2, wherein the filtering the audio signal according to the voiceprint processing mode to obtain the recording signal includes:
    对所述音频信号进行声纹特征解析,以获取所述音频信号的声纹特征;Analyzing voiceprint features of the audio signal to obtain voiceprint features of the audio signal;
    将所述音频信号的声纹特征与声纹特征模型库中的声纹特征进行匹配;Matching the voiceprint feature of the audio signal with the voiceprint feature in the voiceprint feature model library;
    若匹配成功,则将所述声纹特征对应的音频信号保存为录音信号;If the matching is successful, the audio signal corresponding to the voiceprint feature is saved as a recording signal;
    若匹配不成功,则将所述声纹特征对应的音频信号丢弃。If the matching is unsuccessful, the audio signal corresponding to the voiceprint feature is discarded.
  4. 根据权利要求3所述的方法,其特征在于,在所述将所述音频信号的声纹特征与声纹特征模型库中的声纹特征进行匹配后,还包括:The method according to claim 3, wherein after matching the voiceprint feature of the audio signal with the voiceprint feature in the voiceprint feature model library, further comprising:
    识别所述录音信号中具有相同声纹特征的录音信号;Identify the recording signals with the same voiceprint characteristics among the recording signals;
    在相同声纹特征的录音信号中,读取每个所述声纹特征对应录音信号的起始时刻;In a recording signal with the same voiceprint feature, read the start time of the recording signal corresponding to each of the voiceprint features;
    将识别出的具有相同声纹特征的录音信号进行起始时刻标记。Mark the identified recording signals with the same voiceprint characteristics as the start time.
  5. 根据权利要求2所述的方法,其特征在于,所述根据所述声纹处理模式对所述音频信号进行过滤处理,以获取录音信号,还包括:The method according to claim 2, wherein the filtering the audio signal according to the voiceprint processing mode to obtain the recording signal further comprises:
    获取所述音频信号的声源特征;Acquiring the sound source characteristics of the audio signal;
    根据所述声源特征对所述音频信号作差分处理,以消除所述电子设备内输出的音频;Performing differential processing on the audio signal according to the characteristics of the sound source to eliminate the audio output in the electronic device;
    将经过差分处理后的音频信号保存为录音信号。Save the audio signal after differential processing as a recording signal.
  6. 根据权利要求5所述的方法,其特征在于,所述根据所述声源特征对所述音频信号作差分处理,以消除所述电子设备内输出的音频,包括:The method according to claim 5, wherein the differentially processing the audio signal according to the characteristics of the sound source to eliminate the audio output in the electronic device includes:
    根据所述声源特征获取所述音频信号的播放源,判断所述播放源是否属于所述电子设备内部;Acquiring a playback source of the audio signal according to the characteristics of the sound source, and determining whether the playback source belongs to the inside of the electronic device;
    若是,则通过差分处理电路对所述播放源对应的所述音频信号作差分处理,以消除所述电子设备内输出的音频;If yes, differential processing is performed on the audio signal corresponding to the playback source through a differential processing circuit to eliminate audio output from the electronic device;
    若否,则将所述播放源对应的所述音频信号保存为录音信号。If not, the audio signal corresponding to the playback source is saved as a recording signal.
  7. 根据权利要求2所述的方法,其特征在于,所述根据所述声源处理模式对所述音频信号进行过滤处理,以获取录音信号,包括:The method according to claim 2, wherein the filtering the audio signal according to the sound source processing mode to obtain the recording signal includes:
    获取所述音频信号的声源特征,并根据所述声源特征获取所述音频信号的播放源;Acquiring the sound source characteristics of the audio signal, and acquiring the playback source of the audio signal according to the sound source characteristics;
    判断所述播放源是否属于所述电子设备内部;Determine whether the playback source belongs to the electronic device;
    若是,则将所述播放源对应的所述音频信号保存为录音信号;If yes, save the audio signal corresponding to the playback source as a recording signal;
    若否,则将所述播放源对应的所述音频信号进行丢弃。If not, the audio signal corresponding to the playback source is discarded.
  8. 根据权利要求7所述的方法,其特征在于,所述方法还包括:The method according to claim 7, wherein the method further comprises:
    在录音过程中,获取所述电子设备的场景信息;During recording, obtain scene information of the electronic device;
    根据所述场景信息,播放并录制与所述场景信息相匹配的背景音。According to the scene information, play and record the background sound matching the scene information.
  9. 根据权利要求8所述的方法,其特征在于,所述根据所述场景信息,播放并录制与所述场景信息相匹配的背景音,包括:The method according to claim 8, wherein the playing and recording the background sound matching the scene information according to the scene information comprises:
    当检测到用户在录音过程中触发播放背景音操作时,在录音界面上显示至少一段音频数据的触发链接,以供用户选择输出其中一段音频数据作为所 述录音信号的背景音;When it is detected that the user triggers the background sound playback operation during the recording process, a trigger link of at least one piece of audio data is displayed on the recording interface for the user to select and output one piece of audio data as the background sound of the recording signal;
    播放所述背景音,并将所述背景音与所述录音信号一并录制。Play the background sound, and record the background sound together with the recording signal.
  10. 一种录音装置,其特征在于,包括:A recording device is characterized by comprising:
    第一获取模块,用于接收录音指令,根据所述录音指令进行录音,并在录音过程中获取音频信号;The first acquisition module is used to receive a recording instruction, perform recording according to the recording instruction, and obtain an audio signal during the recording process;
    第二获取模块,用于获取所述电子设备的录音模式,所述录音模式包括屏幕录制模式和非屏幕录制模式;A second obtaining module, configured to obtain a recording mode of the electronic device, the recording mode includes a screen recording mode and a non-screen recording mode;
    切换模块,用于根据所述录音模式切换音频处理模式,所述音频处理模式包括声纹处理模式和声源处理模式;A switching module, configured to switch an audio processing mode according to the recording mode, the audio processing mode includes a voiceprint processing mode and a sound source processing mode;
    处理模块,用于根据所述音频处理模式对所述音频信号进行处理,以获取录音信号;A processing module, configured to process the audio signal according to the audio processing mode to obtain a recording signal;
    存储模块,用于将所述录音信号进行存储。The storage module is used for storing the recorded signal.
  11. 一种电子设备,包括存储器及处理器,所述存储器中储存有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如权利要求1至9中任一项所述的录音方法的步骤。An electronic device includes a memory and a processor, and a computer program is stored in the memory, and when the computer program is executed by the processor, the processor is executed as described in any one of claims 1 to 9. Of the recording method.
  12. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至9中任一项所述的方法的步骤。A computer-readable storage medium on which a computer program is stored, characterized in that when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are realized.
PCT/CN2018/120601 2018-12-12 2018-12-12 Recording method and apparatus, electronic device and computer readable storage medium WO2020118560A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2018/120601 WO2020118560A1 (en) 2018-12-12 2018-12-12 Recording method and apparatus, electronic device and computer readable storage medium
CN201880098671.2A CN112997144A (en) 2018-12-12 2018-12-12 Recording method, recording device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/120601 WO2020118560A1 (en) 2018-12-12 2018-12-12 Recording method and apparatus, electronic device and computer readable storage medium

Publications (1)

Publication Number Publication Date
WO2020118560A1 true WO2020118560A1 (en) 2020-06-18

Family

ID=71075862

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/120601 WO2020118560A1 (en) 2018-12-12 2018-12-12 Recording method and apparatus, electronic device and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN112997144A (en)
WO (1) WO2020118560A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113676591A (en) * 2021-08-11 2021-11-19 维沃移动通信(杭州)有限公司 Recording method and device
CN113571101B (en) * 2021-09-10 2022-09-20 深圳市升迈电子有限公司 Intelligent recording method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090317063A1 (en) * 2008-06-20 2009-12-24 Sony Computer Entertainment Inc. Screen Recording Device, Screen Recording Method, And Information Storage Medium
CN104159177A (en) * 2014-07-16 2014-11-19 浙江航天长峰科技发展有限公司 Audio recording system and method based on screencast
CN104991754A (en) * 2015-06-29 2015-10-21 小米科技有限责任公司 Recording method and apparatus
CN108737884A (en) * 2018-05-31 2018-11-02 腾讯科技(深圳)有限公司 A kind of content recordal method and its equipment, storage medium, electronic equipment
CN108769784A (en) * 2018-06-28 2018-11-06 努比亚技术有限公司 screen recording method, mobile terminal and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106504781A (en) * 2016-10-26 2017-03-15 努比亚技术有限公司 The method and device of audio frequency process
CN106843683A (en) * 2017-01-03 2017-06-13 奇酷互联网络科技(深圳)有限公司 Record screen method, device and terminal device
CN108257605B (en) * 2018-02-01 2021-05-04 Oppo广东移动通信有限公司 Multi-channel recording method and device and electronic equipment
CN108538320B (en) * 2018-03-30 2020-09-11 Oppo广东移动通信有限公司 Recording control method and device, readable storage medium and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090317063A1 (en) * 2008-06-20 2009-12-24 Sony Computer Entertainment Inc. Screen Recording Device, Screen Recording Method, And Information Storage Medium
CN104159177A (en) * 2014-07-16 2014-11-19 浙江航天长峰科技发展有限公司 Audio recording system and method based on screencast
CN104991754A (en) * 2015-06-29 2015-10-21 小米科技有限责任公司 Recording method and apparatus
CN108737884A (en) * 2018-05-31 2018-11-02 腾讯科技(深圳)有限公司 A kind of content recordal method and its equipment, storage medium, electronic equipment
CN108769784A (en) * 2018-06-28 2018-11-06 努比亚技术有限公司 screen recording method, mobile terminal and storage medium

Also Published As

Publication number Publication date
CN112997144A (en) 2021-06-18

Similar Documents

Publication Publication Date Title
US10964300B2 (en) Audio signal processing method and apparatus, and storage medium thereof
US10649720B2 (en) Sound effect configuration method and system and related device
US9685161B2 (en) Method for updating voiceprint feature model and terminal
US10628119B2 (en) Sound effect processing method and mobile terminal
US20190146750A1 (en) Audio stream processing method, mobile terminal and storage medium
WO2019057202A1 (en) Special effect synchronization method and apparatus, and mobile terminal
WO2018223837A1 (en) Music playing method and related product
CN110568926B (en) Sound signal processing method and terminal equipment
WO2017215660A1 (en) Scene sound effect control method, and electronic device
CN107886969B (en) Audio playing method and audio playing device
CN110830368B (en) Instant messaging message sending method and electronic equipment
CN108712566A (en) A kind of voice assistant awakening method and mobile terminal
WO2017215661A1 (en) Scenario-based sound effect control method and electronic device
CN110225195B (en) Voice communication method and terminal
CN106506437B (en) Audio data processing method and device
WO2017215511A1 (en) Control method of scene sound effect and related products
CN111370018A (en) Audio data processing method, electronic device and medium
CN109582817A (en) A kind of song recommendations method, terminal and computer readable storage medium
WO2020228226A1 (en) Instrumental music detection method and apparatus, and storage medium
CN106973168A (en) Speech playing method, device and computer equipment
WO2020118560A1 (en) Recording method and apparatus, electronic device and computer readable storage medium
WO2017215615A1 (en) Sound effect processing method and mobile terminal
WO2017215662A1 (en) Sound effect adjustment method and terminal
WO2017124876A1 (en) Voice playing method and device
CN111416955B (en) Video call method and electronic equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18943210

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 22.10.2021)

122 Ep: pct application non-entry in european phase

Ref document number: 18943210

Country of ref document: EP

Kind code of ref document: A1