Recording method and device and storage medium
Through the connection between terminal devices and audio synthesis technology, the problem that the terminal and terminal peripherals cannot record at the same time is solved, high-quality audio recording is achieved, and the user experience is enhanced.
Patent Information
- Application Number
- CN202310301135.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-24
- Publication Date
- 2024-09-24
AI Technical Summary
Existing technology cannot achieve simultaneous recording of terminals and terminal peripherals, resulting in the inability to accurately record conference content or user speech in some application scenarios.
Through the connection between the first device and the second device, record in response to the recording instruction, and synthesize the recorded audio into the target audio, including obtaining and converting the timestamp, sampling rate, bit width and frame length of the audio, and extracting key information To determine the noise reduction mode and achieve simultaneous recording of the terminal and terminal peripherals.
It achieves target audio with a clear sense of space and distinct layers, enhances the user experience, and can accurately record meeting content and user speeches at the same time.
Smart Images

Figure CN118694459A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of terminal technology, and in particular to a recording method, device and storage medium. Background Art
[0002] In the related art, terminals such as mobile phones can support recording using various audio peripherals, such as using a Bluetooth headset connected to the terminal. On the other hand, some terminals can also support the solution of setting two microphones in the terminal and using the two microphones to record at the same time. However, these solutions only support recording using a single device type, and cannot achieve simultaneous recording of the terminal and the terminal peripheral. Summary of the invention
[0003] In order to overcome the problems existing in the related art, the present disclosure provides a recording method, device and storage medium.
[0004] According to a first aspect of an embodiment of the present disclosure, a recording method is provided. The method is performed by a first device, the first device is connected to a second device, and the method includes:
[0005] In response to receiving the first recording instruction, recording to obtain the first audio;
[0006] receiving a second audio signal sent by the second device;
[0007] synthesizing the first audio and the second audio to obtain a target audio;
[0008] The first recording instruction is generated in response to the first device receiving a recording operation from a user, or is generated in response to the first device receiving first control information sent by a second user device, and the first control information is generated by the second device in response to the second device receiving a recording operation from a user.
[0009] In one implementation, both the first audio and the second audio include a timestamp; and synthesizing the first audio and the second audio to obtain the target audio includes:
[0010] Respectively obtain timestamps of the first audio and the second audio;
[0011] The first audio and the second audio having the same timestamp are synthesized to obtain the target audio.
[0012] In one implementation, synthesizing the first audio and the second audio to obtain the target audio includes:
[0013] Acquire voice information of the first audio and the second audio, wherein the voice information includes at least one of the following: sampling rate, bit width, and frame length;
[0014] Converting the voice information of the first audio and / or the second audio to obtain the first audio and the second audio having the same target voice information;
[0015] The target audio is obtained by synthesizing the first audio and the second audio having the same target voice information.
[0016] In one embodiment, the method further comprises:
[0017] Extracting key information from the target audio, and determining a noise reduction mode according to the key information;
[0018] The target audio is subjected to noise reduction processing based on the noise reduction mode.
[0019] In one implementation, determining the noise reduction mode according to the key information includes:
[0020] In response to extracting the key information, determining that the noise reduction mode is a first noise reduction mode;
[0021] In response to not extracting the key information, determining that the noise reduction mode is a second noise reduction mode;
[0022] The noise reduction depth of the first noise reduction mode is less than the noise reduction depth of the second noise reduction mode.
[0023] According to a second aspect of an embodiment of the present disclosure, a recording method is provided. The method is performed by a second device, the second device is connected to a first device, and the method includes:
[0024] In response to receiving the second recording instruction, recording to obtain a second audio;
[0025] Sending the second audio to the first device, so that the first device synthesizes the first audio recorded by the first device and the second audio to obtain the target audio;
[0026] The second recording instruction is generated in response to the second device receiving a recording operation from a user, or is generated in response to the second device receiving second control information sent by a first user device, and the second control information is generated by the first device in response to the first device receiving a recording operation from a user.
[0027] According to a third aspect of an embodiment of the present disclosure, a recording device is provided, the device is located in a first device, the first device is connected to a second device, and the device includes:
[0028] a processing unit, the processing unit being configured to, in response to receiving a first recording instruction, record and obtain a first audio;
[0029] a communication unit, wherein the communication unit is configured to receive a second audio signal sent by the second device;
[0030] The processing unit is further configured to synthesize the first audio and the second audio to obtain a target audio;
[0031] The first recording instruction is generated in response to the first device receiving a recording operation from a user, or is generated in response to the first device receiving first control information sent by a second user device, and the first control information is generated by the second device in response to the second device receiving a recording operation from a user.
[0032] In one implementation, both the first audio and the second audio include a timestamp; and synthesizing the first audio and the second audio to obtain the target audio includes:
[0033] Respectively obtain timestamps of the first audio and the second audio;
[0034] The first audio and the second audio having the same timestamp are synthesized to obtain the target audio.
[0035] In one implementation, synthesizing the first audio and the second audio to obtain the target audio includes:
[0036] Acquire voice information of the first audio and the second audio, wherein the voice information includes at least one of the following: sampling rate, bit width, and frame length;
[0037] Converting the voice information of the first audio and / or the second audio to obtain the first audio and the second audio having the same target voice information;
[0038] The target audio is obtained by synthesizing the first audio and the second audio having the same target voice information.
[0039] In one implementation, the processing unit is further configured to:
[0040] Extracting key information from the target audio, and determining a noise reduction mode according to the key information;
[0041] The target audio is subjected to noise reduction processing based on the noise reduction mode.
[0042] In one implementation, determining the noise reduction mode according to the key information includes:
[0043] In response to extracting the key information, determining that the noise reduction mode is a first noise reduction mode;
[0044] In response to not extracting the key information, determining that the noise reduction mode is a second noise reduction mode;
[0045] The noise reduction depth of the first noise reduction mode is less than the noise reduction depth of the second noise reduction mode.
[0046] According to a fourth aspect of an embodiment of the present disclosure, a recording device is provided, the device is located in a second device, the second device is connected to a first device, and the device includes:
[0047] a processing unit, the processing unit being configured to, in response to receiving a second recording instruction, record and obtain a second audio;
[0048] a communication unit, wherein the communication unit is configured to send the second audio to the first device, so that the first device synthesizes the first audio and the second audio to obtain a target audio;
[0049] The second recording instruction is generated in response to the second device receiving a recording operation from a user, or is generated in response to the second device receiving second control information sent by a first user device, and the second control information is generated by the first device in response to the first device receiving a recording operation from a user.
[0050] According to a fifth aspect of an embodiment of the present disclosure, a recording system is provided, including:
[0051] A first device and a second device, the first device being connected to the second device;
[0052] In response to receiving the first recording instruction, the first device records the first audio, and in response to receiving the second recording instruction, the second device records the second audio;
[0053] The first device receives the second audio, and synthesizes the first audio and the second audio to obtain a target audio;
[0054] The first recording instruction is generated in response to the first device receiving a recording operation of a user, or is generated in response to the first device receiving first control information sent by a second user device, and the first control information is generated by the second device in response to the second device receiving a recording operation of a user;
[0055] The second recording instruction is generated in response to the second device receiving a recording operation from a user, or is generated in response to the second device receiving second control information sent by a first user device, and the second control information is generated by the first device in response to the first device receiving a recording operation from a user.
[0056] According to a sixth aspect of an embodiment of the present disclosure, there is provided a recording device, including:
[0057] processor;
[0058] a memory for storing processor-executable instructions;
[0059] The processor is configured to: execute the method as described in the first aspect or any embodiment of the first aspect.
[0060] According to a seventh aspect of an embodiment of the present disclosure, a recording device is provided, including:
[0061] processor;
[0062] a memory for storing processor-executable instructions;
[0063] Wherein, the processor is configured to: execute the method as described in the second aspect.
[0064] According to an eighth aspect of an embodiment of the present disclosure, a storage medium is provided, in which instructions are stored. When the instructions in the storage medium are executed by a processor of a device, the device is enabled to execute a method as described in the first aspect or any embodiment of the first aspect.
[0065] According to a ninth aspect of an embodiment of the present disclosure, a storage medium is provided, in which instructions are stored. When the instructions in the storage medium are executed by a processor of a device, the device is enabled to execute the method described in the second aspect.
[0066] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: recording is performed by the first device upon receiving a first recording instruction, and the first recording instruction may be generated in response to the first device receiving a recording operation of a user, or in response to receiving first control information sent by a second user device, thereby achieving simultaneous recording of the first device and the second device, and being able to obtain target audio with a clear sense of space and distinct layers, thereby enhancing the user experience.
[0067] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0069] Figure 1 The figure is a flow chart of a recording method according to an exemplary embodiment.
[0070] Figure 2 The invention is a flowchart of a method for synthesizing a first audio and a second audio to obtain a target audio according to an exemplary embodiment.
[0071] Figure 3The invention is a flowchart of a method for synthesizing a first audio and a second audio to obtain a target audio according to an exemplary embodiment.
[0072] Figure 4 The figure is a flow chart of a recording method according to an exemplary embodiment.
[0073] Figure 5 The invention is a flow chart showing a method for determining a noise reduction mode according to key information according to an exemplary embodiment.
[0074] Figure 6 The figure is a flow chart of a recording method according to an exemplary embodiment.
[0075] Figure 7 It is a schematic diagram showing a recording process according to an exemplary embodiment.
[0076] Figure 8 is a schematic diagram showing a noise reduction process for identifying key information according to an exemplary embodiment.
[0077] Fig. 9 The diagram is a schematic diagram showing a process of processing audio according to an exemplary embodiment.
[0078] Fig.10 The invention is a block diagram of a recording device according to an exemplary embodiment.
[0079] Fig.11 The invention is a block diagram of a recording device according to an exemplary embodiment.
[0080] Fig.12 The invention is a block diagram of a recording system according to an exemplary embodiment.
[0081] Fig.13 The invention is a block diagram of a device for recording audio according to an exemplary embodiment.
[0082] Fig.14 The invention is a block diagram of a device for recording audio according to an exemplary embodiment. DETAILED DESCRIPTION
[0083] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present disclosure.
[0084] As mentioned above, the related technology only supports recording using a single device type, such as using a terminal alone for recording, or using a terminal peripheral alone for recording, and it is impossible to achieve simultaneous recording of the terminal and the terminal peripheral.
[0085] In some application scenarios, for example, when a user attends a meeting, the mobile phone is placed on the seat, and the user is wearing a Bluetooth headset in front of the conference room display screen. If there is a certain distance between the user's seat and the display screen, if the user needs to record the current meeting content, he can only use the Bluetooth headset to record, or only use the terminal to record. When using the Bluetooth headset to record, the speech of other people around the seat may not be accurately recorded; when only using the terminal to record, the user's own speech may not be accurately recorded.
[0086] In view of this, the present disclosure proposes a recording method, in which the terminal records and sends a first control information to a terminal peripheral when receiving a first recording instruction, and controls the terminal peripheral to record simultaneously, or the terminal peripheral records and sends a second control information to the terminal when receiving a second recording instruction, and controls the terminal to record simultaneously, thereby realizing simultaneous recording of the terminal and the terminal peripheral, and thus being able to obtain target audio with a clear sense of space and distinct layers, thereby enhancing the user experience.
[0087] Figure 1 is a flow chart of a recording method according to an exemplary embodiment. Figure 1 As shown, the method is executed by a first device, the first device is connected to a second device, and the method includes the following steps.
[0088] In step S11, in response to receiving a first recording instruction, a first audio is recorded.
[0089] In step S12, a second audio signal sent by a second device is received.
[0090] In step S13, the first audio and the second audio are synthesized to obtain the target audio.
[0091] The first recording instruction is generated in response to the first device receiving a recording operation from a user, or is generated in response to the first device receiving first control information sent by a second user device, and the first control information is generated by the second device in response to the second device receiving a recording operation from a user.
[0092] In the embodiments of the present disclosure, the first device may be a terminal, wherein the terminal may be, for example, a laptop computer, a tablet computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra mobile personal computer (UMPC), a netbook, a mobile terminal or a personal digital assistant (PDA), and other mobile electronic devices, or may be, for example, a network attached storage (NAS), a personal computer (PC), a television (TV), an ATM or an automatic machine, and the embodiments of the present disclosure do not make specific limitations.
[0093] In the embodiment of the present disclosure, the second device may be a terminal peripheral device, wherein the terminal peripheral device may be a headset, or other device. The first device is connected to the second device. The first device and the second device may be connected via a wired connection or a wireless connection, including but not limited to a Bluetooth connection, a WIFI connection, and a Near Field Communication (NFC) connection.
[0094] In the embodiment of the present disclosure, the distance between the first device and the second device may be greater than the first distance threshold to ensure that the first audio recorded by the first device is not completely the same as the second audio recorded by the second device. The value of the first distance threshold may be set according to actual needs and is not limited here.
[0095] In an embodiment of the present disclosure, a first device may receive a first recording instruction. In one example, the first recording instruction may be generated by a user operating the first device, for example, the user operates the first device through touch, voice control, or other means to generate the first recording instruction. In another example, the first recording instruction may also be automatically triggered by the first device in response to a preset condition being met. The preset condition may be a preset time condition being met, a sound signal being detected, etc.
[0096] In the disclosed embodiment, in response to receiving the first recording instruction, the first device may record the first audio. Further, in response to receiving the first recording instruction, the first device may also send second control information to the second device to trigger the second device to record the second audio.
[0097] In the disclosed embodiment, the second device may also receive the second recording instruction and then send the first control information to the first device. In response to receiving the first control information, the first device records the first audio. The second recording instruction may be generated by the user operating the second device, for example, the user operates the second device through touch, voice control or other means to generate the second recording instruction. In another example, the second recording instruction may also be automatically triggered by the second device in response to meeting a preset condition. The preset condition may be meeting a preset time condition, detecting a sound signal, etc. In response to receiving the second recording instruction, the second device may also record the second audio.
[0098] In the embodiment of the present disclosure, the first device may receive the second audio sent by the second device, and synthesize the first audio and the second audio to obtain the target audio.
[0099] By adopting the technical solution of the embodiment of the present disclosure, the first device records the audio when receiving the first recording instruction. The first recording instruction may be generated in response to the first device receiving the recording operation of the user, or in response to receiving the first control information sent by the second user device, thereby achieving simultaneous recording of the first device and the second device, and obtaining target audio with clear spatial sense and distinct layers, thereby enhancing the user experience.
[0100] In the embodiment of the present disclosure, both the first audio and the second audio include a timestamp. Figure 2 is a flow chart showing a method for synthesizing a first audio and a second audio to obtain a target audio according to an exemplary embodiment. Figure 2 As shown, the method includes the following steps.
[0101] In step S21, the timestamps of the first audio and the second audio are respectively obtained.
[0102] In step S22, the first audio and the second audio having the same timestamp are synthesized to obtain the target audio.
[0103] In the disclosed embodiment, the second device may be a terminal peripheral, which usually has a small storage space and a weak data processing capability. Therefore, the second audio recorded by the second device may be transmitted to the first device, and the first device may synthesize the first audio and the second audio. The first audio may include a plurality of audio data frames, each of which includes a timestamp. Similarly, the second audio may also include a plurality of audio data frames, each of which includes a timestamp. The timestamps of the first audio and the second audio are obtained respectively, and then the first audio and the second audio having the same timestamp are synthesized to obtain the target audio, so that the first audio and the second audio are synchronized in time in the synthesized target audio.
[0104] Figure 3 is a flow chart showing a method for synthesizing a first audio and a second audio to obtain a target audio according to an exemplary embodiment. Figure 3 As shown, the method includes the following steps.
[0105] In step S31, voice information of the first audio and the second audio is acquired.
[0106] The voice information includes at least one of the following: sampling rate, bit width, and frame length.
[0107] In step S32, the voice information of the first audio and / or the second audio is converted to obtain the first audio and the second audio having the same target voice information.
[0108] In step S33, the first audio and the second audio having the same target voice information are synthesized to obtain the target audio.
[0109] In the disclosed embodiment, the first audio recorded by the first device and the second audio recorded by the second device may have different sampling rates, bit widths and / or frame lengths. Alternatively, the first audio recorded by the first device and the second audio recorded by the second device may have the same sampling rate, bit width and / or frame length, but different from the target voice information. Therefore, it is necessary to convert the voice information of the first audio and the second audio into target voice information. Among them, the target voice information may include sampling rate, bit width and / or frame length, which may be pre-set information or default information. In an example, if the target voice information pre-set by the user includes a sampling rate of 48 kilohertz (kHZ), and the sampling rate of the first audio is 48kHZ, and the sampling rate of the second audio is 96kHZ, it is necessary to convert the sampling rate of the second audio to 48kHZ, and then synthesize the first audio and the second audio to obtain the target audio.
[0110] Figure 4 is a flowchart of a recording method according to an exemplary embodiment, wherein steps S41 to S43 are Figure 1 Steps S11 to S13 in the illustrated embodiment are the same and will not be described in detail herein. Figure 4 As shown, the method also includes the following steps.
[0111] In step S44, key information in the target audio is extracted, and a noise reduction mode is determined according to the key information.
[0112] In step S45, noise reduction processing is performed on the target audio based on the noise reduction mode.
[0113] In an embodiment of the present disclosure, the first device may perform noise reduction processing on the synthesized target audio. In the related art, a single noise reduction mode is usually used to perform noise reduction processing on the target audio, for example, a single noise reduction depth is used to perform noise reduction processing on the target audio. This may result in the erroneous filtering out of some useful information. In view of this, in an embodiment of the present disclosure, key information in the target audio is first extracted, a noise reduction mode is determined based on the key information, and noise reduction processing is performed on the target audio based on the determined noise reduction mode, which can avoid the loss of useful information caused by excessive noise reduction.
[0114] In the embodiment of the present disclosure, extracting key information from the target audio can be achieved by using audio processing technology in the related art, for example, using Qualcomm's Sync Module chip. By extracting key information from the synthesized target audio, the embodiment of the present disclosure can simultaneously obtain key information from the first audio and key information from the second audio, so that no useful audio information at the first device and the second device is missed.
[0115] Figure 5 FIG. 1 is a flow chart showing a method for determining a noise reduction mode according to key information according to an exemplary embodiment. Figure 5 As shown, the method includes the following steps.
[0116] In step S51, in response to extracting the key information, the noise reduction mode is determined to be the first noise reduction mode.
[0117] In step S52, in response to the key information not being extracted, the noise reduction mode is determined to be the second noise reduction mode.
[0118] The noise reduction depth of the first noise reduction mode is less than the noise reduction depth of the second noise reduction mode.
[0119] In the embodiment of the present disclosure, in response to extracting key information, the noise reduction mode can be determined to be the first noise reduction mode with a smaller noise reduction depth. At this time, when the first device performs noise reduction processing on the target audio, the noise reduction effect is reduced, and the key information will not be filtered out. On the other hand, in response to not extracting key information, the noise reduction mode can be determined to be the second noise reduction mode with a greater noise reduction depth. At this time, when the first device performs noise reduction processing on the target audio, the noise reduction effect is higher, so as to bring a better noise reduction experience to the user.
[0120] Furthermore, the user can provide feedback after listening to the target audio. For example, if the user listens to part of the target audio processed with the first noise reduction mode and provides feedback that the part does not include the key information needed by the user, the first device can re-process the target audio with noise reduction and process the part with the second noise reduction mode. On the other hand, if the user listens to another part of the target audio processed with the first noise reduction mode and provides feedback that the part includes content that the user is interested in but the content cannot be heard clearly, the first device can also re-process the target audio with noise reduction and process the other part with the first noise reduction mode.
[0121] In the disclosed embodiment, the target audio after noise reduction may also be subjected to audio channel mixing processing so that the processed target audio can be played in the format required by the user.
[0122] Figure 6 is a flow chart of a recording method according to an exemplary embodiment. Figure 6 As shown, the method is executed by the second device, the second device is connected to the first device, and the method includes the following steps.
[0123] In step S61, in response to receiving the second recording instruction, the second audio is recorded.
[0124] In step S62, the second audio is sent to the first device, so that the first device synthesizes the first audio recorded by the first device and the second audio to obtain the target audio.
[0125] The second recording instruction is generated in response to the second device receiving a recording operation from a user, or is generated in response to the second device receiving second control information sent by a first user device, and the second control information is generated by the first device in response to the first device receiving a recording operation from a user.
[0126] In the disclosed embodiment, the first device may be a terminal, and the second device may be a terminal peripheral. The first device and the second device may be connected via a wired connection or a wireless connection, including but not limited to a Bluetooth connection, a WIFI connection, and a Near Field Communication (NFC) connection.
[0127] In the embodiment of the present disclosure, the distance between the first device and the second device may be greater than the first distance threshold to ensure that the first audio recorded by the first device is not completely the same as the second audio recorded by the second device. The value of the first distance threshold may be set according to actual needs and is not limited here.
[0128] In an embodiment of the present disclosure, the second device may receive a second recording instruction. In one example, the second recording instruction may be generated by a user operating the second device, for example, the user operates the second device through touch, voice control, or other means to generate the second recording instruction. In another example, the second recording instruction may also be automatically triggered by the second device in response to satisfying a preset condition. The preset condition may be satisfying a preset time condition, detecting a sound signal, etc.
[0129] In the disclosed embodiment, in response to receiving the second recording instruction, the second device may record the second audio. Further, in response to receiving the second recording instruction, the second device may also send the first control information to the first device to trigger the first device to record the first audio.
[0130] In the disclosed embodiment, the first device may also receive the first recording instruction and then send the second control information to the second device. In response to receiving the second control information, the second device records the second audio. The first recording instruction may be generated by the user operating the first device, for example, the user operates the first device through touch, voice control or other means to generate the first recording instruction. In another example, the first recording instruction may also be automatically triggered by the first device in response to meeting a preset condition. The preset condition may be meeting a preset time condition, detecting a sound signal, etc. In response to receiving the first recording instruction, the first device may also record the first audio.
[0131] In the embodiment of the present disclosure, the second device may send the second audio to the first device, so that the first device synthesizes the first audio and the second audio to obtain the target audio.
[0132] By adopting the technical solution of the embodiment of the present disclosure, the second device records the audio when receiving the second recording instruction. The second recording instruction may be generated in response to the second device receiving the user's recording operation, or generated in response to the second device receiving the second control information sent by the first user device, thereby achieving simultaneous recording of the first device and the second device, and obtaining target audio with clear spatial sense and distinct layers, thereby enhancing the user experience.
[0133] Figure 7It is a schematic diagram of a recording process according to an exemplary embodiment, wherein the first device may be a mobile phone, the second device may be a headset, and the mobile phone and the headset are connected via Bluetooth and placed at a predetermined position. The mobile phone and the headset are placed at a predetermined position, which means that the distance between the mobile phone and the headset can be greater than a first distance threshold, so as to ensure that the first audio obtained by the mobile phone recording and the second audio obtained by the headset recording are not completely the same. The value of the first distance threshold can be set according to actual needs and is not limited here. When the mobile phone starts recording, the recording module is triggered and connected to the control module of the Bluetooth headset. After the control module of the Bluetooth headset receives the second control information, the recording module of the Bluetooth headset is triggered to record synchronously, and the second audio obtained by the recording is stored, and / or the second audio is transmitted to the adaptive digital signal processing module in the mobile phone system framework. The adaptive digital signal processing module combines the audio frames respectively obtained by the mobile phone and the headset into a frame of multi-channel audio data according to the timestamp to obtain the target multi-channel audio file.
[0134] Figure 8 It is a schematic diagram of a noise reduction process for identifying key information according to an exemplary embodiment, wherein the first device may be a mobile phone, the second device may be a headset, and the mobile phone and the headset are connected via Bluetooth and placed in a predetermined position. First, audio data may be acquired through the microphones of the mobile phone and the headset, and the voice information of the audio data may be stored as metadata, and the voice information may include sampling rate, bit width and / or frame length, etc. The target voice information may be predefined and synchronized to the headset, or the metadata of the mobile phone may be directly synchronized to the headset. The voice recognition module receives the audio synthesized from the audio collected by the mobile phone and the audio collected by the headset with the same voice information, and identifies the key information therein. When the key information is identified, the noise reduction effect is adjusted. At the same time, user feedback is received to adjust the noise reduction mode.
[0135] Fig. 9 is a schematic diagram showing a process of processing audio according to an exemplary embodiment, wherein the first device may be a mobile phone, the second device may be a headset, the mobile phone and the headset are connected via Bluetooth and placed at a predetermined position. Fig. 9 As shown, two audios are collected by the microphone of the mobile phone and the microphone of the headset respectively. Based on the target voice information, the sampling rate, bit width and / or frame length of the two audios are converted to obtain the synthesized target audio. Then, the noise reduction mode is determined based on the key information extraction module, and the target audio is subjected to noise reduction processing. Finally, the target audio after noise reduction is subjected to audio channel mixing processing to obtain the output audio that can be played in the format required by the user.
[0136] Based on the same concept, the embodiment of the present disclosure also provides a recording device.
[0137] It is understandable that in order to realize the above functions, the recording device provided by the embodiment of the present disclosure includes hardware structures and / or software modules corresponding to the execution of each function. In combination with the units and algorithm steps of each example disclosed in the embodiment of the present disclosure, the embodiment of the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the technical solution of the embodiment of the present disclosure.
[0138] Fig.10 is a block diagram of a recording device according to an exemplary embodiment. Fig.10 The apparatus 100 is located in a first device. In an example, the apparatus 100 may be the first device. Further, the apparatus 100 includes a processing unit 110 and a communication unit 120 .
[0139] The processing unit 110 is configured to, in response to receiving a first recording instruction, record and obtain a first audio;
[0140] The communication unit 120 is configured to receive a second audio signal sent by a second device.
[0141] The processing unit is also configured to synthesize the first audio and the second audio to obtain the target audio.
[0142] The first recording instruction is generated in response to the first device receiving a recording operation from a user, or is generated in response to the first device receiving first control information sent by a second user device, and the first control information is generated by the second device in response to the second device receiving a recording operation from a user.
[0143] In the implementation of the present disclosure, both the first audio and the second audio include timestamps; synthesizing the first audio and the second audio to obtain the target audio includes: respectively obtaining the timestamps of the first audio and the second audio; synthesizing the first audio and the second audio having the same timestamp to obtain the target audio.
[0144] In the implementation of the present disclosure, the first audio and the second audio are synthesized to obtain the target audio, including: obtaining voice information of the first audio and the second audio, the voice information including at least one of the following: sampling rate, bit width, frame length; converting the voice information of the first audio and / or the second audio to obtain the first audio and the second audio having the same target voice information; synthesizing the first audio and the second audio having the same target voice information to obtain the target audio.
[0145] In the implementation of the present disclosure, the processing unit is further configured to: extract key information from the target audio, determine the noise reduction mode according to the key information; and perform noise reduction processing on the target audio based on the noise reduction mode.
[0146] In the implementation of the present disclosure, the noise reduction mode is determined according to the key information, including: in response to extracting the key information, determining the noise reduction mode to be the first noise reduction mode; in response to not extracting the key information, determining the noise reduction mode to be the second noise reduction mode; wherein the noise reduction depth of the first noise reduction mode is less than the noise reduction depth of the second noise reduction mode.
[0147] By adopting the technical solution of the embodiment of the present disclosure, the first device records the audio when receiving the first recording instruction. The first recording instruction may be generated in response to the first device receiving the recording operation of the user, or in response to receiving the first control information sent by the second user device, thereby achieving simultaneous recording of the first device and the second device, and obtaining target audio with clear spatial sense and distinct layers, thereby enhancing the user experience.
[0148] Fig.11 is a block diagram of a recording device according to an exemplary embodiment. Fig.11 The apparatus 200 is located in the second device. In one example, the apparatus 200 may be the second device. Further, the apparatus 200 includes a processing unit 210 and a communication unit 220 .
[0149] The processing unit 210 is configured to record a second audio in response to receiving a second recording instruction.
[0150] The communication unit 220 is configured to send the second audio to the first device, so that the first device synthesizes the first audio and the second audio to obtain the target audio.
[0151] The second recording instruction is generated in response to the second device receiving a recording operation from a user, or is generated in response to the second device receiving second control information sent by a first user device, and the second control information is generated by the first device in response to the first device receiving a recording operation from a user.
[0152] By adopting the technical solution of the embodiment of the present disclosure, the second device records the audio when receiving the second recording instruction. The second recording instruction may be generated in response to the second device receiving the user's recording operation, or generated in response to the second device receiving the second control information sent by the first user device, thereby achieving simultaneous recording of the first device and the second device, and obtaining target audio with clear spatial sense and distinct layers, thereby enhancing the user experience.
[0153] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0154] Fig.12 FIG. 1 is a block diagram of a recording system according to an exemplary embodiment. Fig.12 As shown, the recording system 300 includes a first device and a second device, and the first device is connected to the second device. The first device and the second device can be connected by wired connection or wireless connection, including but not limited to Bluetooth connection, WIFI connection, and Near Field Communication (NFC) connection.
[0155] In an embodiment of the present disclosure, a first device records a first audio in response to receiving a first recording instruction, and a second device records a second audio in response to receiving a second recording instruction; the first device receives the second audio, and synthesizes the first audio and the second audio to obtain a target audio; wherein the first recording instruction is generated in response to the first device receiving a recording operation from a user, or is generated in response to the first device receiving first control information sent by a second user device, and the first control information is generated by the second device in response to the second device receiving a recording operation from the user; the second recording instruction is generated in response to the second device receiving a recording operation from the user, or is generated in response to the second device receiving second control information sent by the first user device, and the second control information is generated by the first device in response to the first device receiving a recording operation from the user.
[0156] Among them, the first device has the function of implementing the first device in each of the above embodiments, and the second device has the function of implementing the first device in each of the above embodiments, which will not be described in detail here.
[0157] Fig.13 4 is a block diagram of an apparatus 400 for recording according to an exemplary embodiment. For example, the apparatus 400 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0158] Reference Fig.13 , the device 400 may include one or more of the following components: a processing component 402 , a memory 404 , a power component 406 , a multimedia component 408 , an audio component 410 , an input / output (I / O) interface 412 , a sensor component 414 , and a communication component 416 .
[0159] The processing component 402 generally controls the overall operation of the device 400, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 402 may include one or more modules to facilitate the interaction between the processing component 402 and other components. For example, the processing component 402 may include a multimedia module to facilitate the interaction between the multimedia component 408 and the processing component 402.
[0160] The memory 404 is configured to store various types of data to support operations on the device 400. Examples of such data include instructions for any application or method operating on the device 400, contact data, phone book data, messages, pictures, videos, etc. The memory 404 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0161] The power component 406 provides power to the various components of the device 400. The power component 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 400.
[0162] The multimedia component 408 includes a screen that provides an output interface between the device 400 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 408 includes a front camera and / or a rear camera. When the device 400 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0163] The audio component 410 is configured to output and / or input audio signals. For example, the audio component 410 includes a microphone (MIC), and when the device 400 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 404 or sent via the communication component 416. In some embodiments, the audio component 410 also includes a speaker for outputting audio signals.
[0164] I / O interface 412 provides an interface between processing component 402 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0165] The sensor assembly 414 includes one or more sensors for providing various aspects of the status assessment of the device 400. For example, the sensor assembly 414 can detect the open / closed state of the device 400, the relative positioning of components, such as the display and keypad of the device 400, and the sensor assembly 414 can also detect the position change of the device 400 or a component of the device 400, the presence or absence of user contact with the device 400, the orientation or acceleration / deceleration of the device 400, and the temperature change of the device 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 414 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0166] The communication component 416 is configured to facilitate wired or wireless communication between the device 400 and other devices. The device 400 can access a wireless network based on a communication standard, such as WiFi, 2G or 4G, or a combination thereof. In an exemplary embodiment, the communication component 416 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0167] In an exemplary embodiment, the apparatus 400 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above method.
[0168] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 404 including instructions, and the instructions can be executed by a processor 420 of the device 400 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0169] Fig.14 is a block diagram of a device 500 for communication according to an exemplary embodiment. For example, the device 500 may be provided as a server. Fig.14 The apparatus 500 includes a processing component 522, which further includes one or more processors, and a memory resource represented by a memory 532 for storing instructions executable by the processing component 522, such as an application. The application stored in the memory 532 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 522 is configured to execute the instructions to perform the above-mentioned recording method.
[0170] The device 500 may also include a power supply component 526 configured to perform power management of the device 500, a wired or wireless network interface 550 configured to connect the device 500 to a network, and an input / output (I / O) interface 558. The device 500 may operate based on an operating system stored in the memory 532, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, or the like.
[0171] It is to be understood that in the present disclosure, "plurality" refers to two or more than two, and other quantifiers are similar. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. The singular forms "a", "the" and "the" are also intended to include plural forms, unless the context clearly indicates other meanings.
[0172] It is further understood that the terms "first", "second", etc. are used to describe various information, but such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other, and do not indicate a specific order or degree of importance. In fact, the expressions "first", "second", etc. can be used interchangeably. For example, without departing from the scope of the present disclosure, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as the first information.
[0173] It can be further understood that, unless otherwise specified, “connection” includes a direct connection without other components between the two, and also includes an indirect connection with other components between the two.
[0174] It is further understood that, although the operations are described in a specific order in the drawings in the embodiments of the present disclosure, it should not be understood as requiring the operations to be performed in the specific order shown or in a serial order, or requiring the execution of all the operations shown to obtain the desired results. In certain environments, multitasking and parallel processing may be advantageous.
[0175] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any modifications, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure.
[0176] It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the scope of the appended claims.
Claims
1. A recording method, characterized in that: The method is performed by a first device, the first device is connected to a second device, and the method includes: In response to receiving the first recording instruction, recording to obtain the first audio; receiving a second audio signal sent by the second device; synthesizing the first audio and the second audio to obtain a target audio; The first recording instruction is generated in response to the first device receiving a recording operation from a user, or is generated in response to the first device receiving first control information sent by a second user device, and the first control information is generated by the second device in response to the second device receiving a recording operation from a user.
2. The method according to claim 1, characterized in that: The first audio and the second audio both include a timestamp; and synthesizing the first audio and the second audio to obtain a target audio includes: Respectively obtain timestamps of the first audio and the second audio; The first audio and the second audio having the same timestamp are synthesized to obtain the target audio.
3. The method according to claim 1, characterized in that: The synthesizing the first audio and the second audio to obtain the target audio includes: Acquire voice information of the first audio and the second audio, wherein the voice information includes at least one of the following: sampling rate, bit width, and frame length; Converting the voice information of the first audio and / or the second audio to obtain the first audio and the second audio having the same target voice information; The target audio is obtained by synthesizing the first audio and the second audio having the same target voice information.
4. The method according to claim 3, characterized in that The method further comprises: Extracting key information from the target audio, and determining a noise reduction mode according to the key information; The target audio is subjected to noise reduction processing based on the noise reduction mode.
5. The method according to claim 4, characterized in that The determining of the noise reduction mode according to the key information includes: In response to extracting the key information, determining that the noise reduction mode is a first noise reduction mode; In response to not extracting the key information, determining that the noise reduction mode is a second noise reduction mode; The noise reduction depth of the first noise reduction mode is less than the noise reduction depth of the second noise reduction mode.
6. A recording method, characterized in that: The method is performed by a second device, the second device is connected to the first device, and the method includes: In response to receiving the second recording instruction, recording to obtain a second audio; Sending the second audio to the first device, so that the first device synthesizes the first audio recorded by the first device and the second audio to obtain the target audio; The second recording instruction is generated in response to the second device receiving a recording operation from a user, or is generated in response to the second device receiving second control information sent by a first user device, and the second control information is generated by the first device in response to the first device receiving a recording operation from a user.
7. A recording device, characterized in that: The apparatus is located in a first device, the first device is connected to a second device, and the apparatus includes: a processing unit, the processing unit being configured to, in response to receiving a first recording instruction, record and obtain a first audio; a communication unit, wherein the communication unit is configured to receive a second audio signal sent by the second device; The processing unit is further configured to synthesize the first audio and the second audio to obtain a target audio; The first recording instruction is generated in response to the first device receiving a recording operation from a user, or is generated in response to the first device receiving first control information sent by a second user device, and the first control information is generated by the second device in response to the second device receiving a recording operation from a user.
8. The device according to claim 7, characterized in that The first audio and the second audio both include a timestamp; and synthesizing the first audio and the second audio to obtain a target audio includes: Respectively obtain timestamps of the first audio and the second audio; The first audio and the second audio having the same timestamp are synthesized to obtain the target audio.
9. The device according to claim 7, characterized in that The synthesizing the first audio and the second audio to obtain the target audio includes: Acquire voice information of the first audio and the second audio, wherein the voice information includes at least one of the following: sampling rate, bit width, and frame length; Converting the voice information of the first audio and / or the second audio to obtain the first audio and the second audio having the same target voice information; The target audio is obtained by synthesizing the first audio and the second audio having the same target voice information.
10. The device according to claim 9, characterized in that The processing unit is further configured to: Extracting key information from the target audio, and determining a noise reduction mode according to the key information; The target audio is subjected to noise reduction processing based on the noise reduction mode.
11. The device according to claim 10, characterized in that The determining of the noise reduction mode according to the key information includes: In response to extracting the key information, determining that the noise reduction mode is a first noise reduction mode; In response to not extracting the key information, determining that the noise reduction mode is a second noise reduction mode; The noise reduction depth of the first noise reduction mode is less than the noise reduction depth of the second noise reduction mode.
12. A recording device, characterized in that: The apparatus is located in a second device, the second device is connected to the first device, and the apparatus includes: a processing unit, the processing unit being configured to, in response to receiving a second recording instruction, record and obtain a second audio; a communication unit, wherein the communication unit is configured to send the second audio to the first device, so that the first device synthesizes the first audio and the second audio to obtain a target audio; The second recording instruction is generated in response to the second device receiving a recording operation from a user, or is generated in response to the second device receiving second control information sent by a first user device, and the second control information is generated by the first device in response to the first device receiving a recording operation from a user.
13. A recording system, characterized in that: include: A first device and a second device, the first device being connected to the second device; In response to receiving the first recording instruction, the first device records the first audio, and in response to receiving the second recording instruction, the second device records the second audio; The first device receives the second audio, and synthesizes the first audio and the second audio to obtain a target audio; The first recording instruction is generated in response to the first device receiving a recording operation of a user, or is generated in response to the first device receiving first control information sent by a second user device, and the first control information is generated by the second device in response to the second device receiving a recording operation of a user; The second recording instruction is generated in response to the second device receiving a recording operation from a user, or is generated in response to the second device receiving second control information sent by a first user device, and the second control information is generated by the first device in response to the first device receiving a recording operation from a user.
14. A recording device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to: execute the method as described in any one of claims 1-6.
15. A storage medium, characterized in that: The storage medium stores instructions, and when the instructions in the storage medium are executed by a processor of a device, the device is enabled to execute the method according to any one of claims 1 to 6.
