Cross-platform conversation and recording method and device

Through cross-platform calls and recording methods and devices, the call recording is automatically switched to the corresponding terminal device and audio data processing is performed, which solves the problem of users manually switching audio sources, and realizes stable and high-quality recording of multi-terminal devices, which is suitable for multiple devices, Multi-scenario application.

CN119254877AInactive Publication Date: 2025-01-03武汉赛思云科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411422184.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-12
Publication Date
2025-01-03
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing recording products lack deep integration of multiple call terminals, resulting in users needing to manually switch audio output and input sources, increasing the burden on office, and unable to effectively record calls or conferences of multi-end devices.

Method used

Provide a cross-platform call and recording method and device, which automatically detects the user's current call scene, switches call recording to the corresponding terminal device, and sends preprocessed audio data through the serial port protocol for automatic recording and storage, supporting multi-terminal devices recording function.

Benefits of technology

It realizes that users seamlessly switch recording channels between different audio devices, enhances recording flexibility and sound quality performance, and is suitable for remote office and conference environments with multiple devices and multiple scenes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119254877A_ABST
    Figure CN119254877A_ABST
Patent Text Reader

Abstract

The invention provides a cross-platform conversation and recording method and device, and relates to the technical field of multi-platform recording. The method comprises the following steps: acquiring a current call scene of a user in response to a call operation request of a contact on a first terminal device; automatically switching the call recording to a second terminal device corresponding to the current call scene according to the current call scene; obtaining first audio data corresponding to the second terminal equipment, and performing preprocessing operation on the first audio data to obtain preprocessed second audio data; and sending the second audio data to a preset storage device through a serial port protocol, so that the user can carry out call recording. According to the method and the device, the problems that the user needs to manually switch the output source and the input source when using different audio devices, the office burden of the user can be increased, in addition, a large number of voice communication users have recording requirements for conferences or conversations, and multi-terminal device conversations or conference recording cannot be effectively carried out in time are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of multi-platform recording technology, and in particular to a cross-platform call and recording method and device. Background Art

[0002] With the increasing demand for mobile office, many users rely on efficient collaborative operations between mobile terminals and computer terminals, especially in scenarios such as conference recording and call management.

[0003] However, the recording products currently available on the market are usually limited to providing simple device expansion functions and lack deep integration of multiple call terminals. For example, complex applications such as address book management and conference recording require users to manually switch the audio output of one call terminal to the audio output of another call terminal. For example, in a certain scenario, the user is listening to music through a computer, but a voice call is initiated on the mobile phone. At this time, the user needs to pick up the mobile phone or the headset connected to the mobile phone to answer the call. That is, in the above scenario, the audio of existing multi-terminal devices cannot be automatically switched under the same headset, resulting in the need for users to manually switch output and input sources when using different audio devices, which increases the office burden of users. In addition, a large number of voice call users have the need to record meetings or calls, and cannot record multi-terminal device calls or meetings in a timely and effective manner.

[0004] Therefore, there is an urgent need for a cross-platform calling and recording method and device. Summary of the invention

[0005] The present application provides a cross-platform call and recording method and device, which solves the problem that users need to manually switch output and input sources when using different audio devices, which increases the user's office burden. In addition, a large number of voice call users have the need to record conferences or calls, and it is impossible to record multi-terminal device calls or conferences in a timely and effective manner.

[0006] In the first aspect of the present application, a cross-platform call and recording method is provided, the method comprising: in response to a request for a call operation from a contact on a first terminal device, obtaining the user's current call scene; automatically switching the call recording to a second terminal device corresponding to the current call scene according to the current call scene; obtaining first audio data corresponding to the second terminal device to pre-process the first audio data to obtain pre-processed second audio data; and sending the second audio data to a preset storage device via a serial port protocol to facilitate the user to automatically store the call recording.

[0007] Optionally, obtaining the first audio data specifically includes: obtaining the first audio data through a preset method, wherein the preset method includes obtaining the first audio data through a sound card connection method, obtaining the first audio data through a Bluetooth connection method, and obtaining the first audio data through a 4G module.

[0008] Optionally, preprocessing the first audio data to obtain preprocessed second audio data specifically includes: performing gain amplification processing and coding format conversion processing on the first audio data to obtain second audio data subjected to gain amplification processing and coding format conversion processing.

[0009] Optionally, amplifying the first audio data specifically includes: obtaining a preset audio signal strength, where the preset audio signal strength is determined according to an ambient noise level and a source of the audio data; and amplifying the first audio data by a power amplifier.

[0010] Optionally, the first audio data is gain processed, specifically including: performing gain processing on the first audio data through an audio converter to obtain gained first audio data; determining whether the gained first audio data is greater than a preset audio quality; if the gained first audio data is greater than the preset audio quality, completing the gain processing operation.

[0011] Optionally, the first audio data is subjected to encoding format conversion processing, specifically including: obtaining a preset encoding format, the preset encoding format including MP3, AAC and WAV encoding formats; and performing encoding format conversion processing on the first audio data according to the preset encoding format.

[0012] Optionally, the current call scenario includes a first call scenario and a second call scenario. According to the current call scenario, the call recording is automatically switched to a terminal device corresponding to the current call scenario: when the call scenario is the first call scenario, the call recording is switched to a first terminal device corresponding to the first call scenario, and the terminal device corresponding to the first call scenario is a computer terminal device; when the call scenario is the second call scenario, the call recording is switched to a terminal device corresponding to the second call scenario, and the terminal device corresponding to the second call scenario is a mobile phone terminal device.

[0013] Optionally, after sending the encoded second audio data to the terminal device to facilitate the user to record the call, the method also includes: obtaining a preset storage location, which is a storage location set by the user in the terminal device; and saving the second audio data to the preset storage location.

[0014] Optionally, before responding to a user's call operation on a contact on the terminal device and obtaining the first audio data of the terminal device, the method also includes: responding to the user's Bluetooth address book management operation and local address book management operation on the contact, the Bluetooth address book management operation includes Bluetooth address book synchronization operation, contact retrieval and screening operation, and one-key dialing operation; the local address book management operation includes adding contact operation, editing contact operation, and deleting contact operation; displaying the front-end interface to the user so that the user can perform management operations and import operations according to the front-end interface.

[0015] In a second aspect of the present application, a cross-platform call and recording device is provided, the device comprising an automatic switching module, an audio data optimization module and a call recording sending module, wherein:

[0016] The automatic switching module is used to respond to the contact's call operation request on the first terminal device, obtain the user's current call scene; according to the current call scene, automatically switch the call recording to the second terminal device corresponding to the current call scene.

[0017] The audio data optimization module is used to obtain the first audio data corresponding to the second terminal device to perform a preprocessing operation on the first audio data to obtain the preprocessed second audio data.

[0018] The call recording sending module is used to send the second audio data to a preset storage device through a serial port protocol to facilitate the user to record the call.

[0019] In a third aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and the computer program is executed by a processor to perform any of the above methods.

[0020] One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:

[0021] 1. In response to a request from a contact on a first terminal device to perform a call operation, obtain the user's current call scene; according to the current call scene, automatically switch the call recording to the second terminal device corresponding to the current call scene; obtain the first audio data corresponding to the second terminal device to pre-process the first audio data to obtain the pre-processed second audio data; send the second audio data to a preset storage device through a serial port protocol to facilitate the user to record the call, thereby solving the problem that the user needs to manually switch the output and input sources when using different audio devices, affecting the user experience.

[0022] 2. By supporting the recording function of multiple terminal devices, including mobile terminals, computer terminals, tablet terminals and other devices, users can seamlessly switch recording channels between different devices to ensure stable and high-quality recording in various scenarios.

[0023] 3. Automatically obtain the user's current call scenario, and automatically switch the call recording to the terminal device corresponding to the current call scenario based on the current call scenario, thereby enhancing the flexibility, integrity and sound quality of the recording, which is particularly suitable for remote office and conference environments with multiple devices and multiple scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 It is a flowchart of a cross-platform calling and recording method provided by an embodiment of the present application;

[0025] Figure 2 A schematic diagram of a front-end interface provided in an embodiment of the present application;

[0026] Figure 3 It is a schematic diagram of the principle of a cross-platform recording device provided in an embodiment of the present application;

[0027] Figure 4 It is a module diagram of a cross-platform calling and recording device provided by an embodiment of the present application;

[0028] Explanation of the accompanying drawings: 21, first area; 22, second area; 23, third area; 24, fourth area; 25, fifth area; 26, sixth area; 27, recording case; 41, automatic switching module; 42, audio data optimization module; 43, call recording sending module. DETAILED DESCRIPTION

[0029] In order to enable technicians in this field to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments.

[0030] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to be used as limitations to the present application. As used in the specification of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include plural expressions, unless there is a clear indication to the contrary in the context. It should also be understood that the term "and / or" used in the present application refers to and includes any or all possible combinations of one or more listed items.

[0031] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.

[0032] In order to enable those skilled in the art to better understand the technical solution of the present invention, the present invention will be further described in detail below with reference to the accompanying drawings.

[0033] With the increasing demand for mobile office, many users rely on efficient collaborative operations between mobile terminals and computer terminals, especially in scenarios such as conference recording and call management.

[0034] However, the recording products currently available on the market are usually limited to providing simple device expansion functions and lack deep integration of multiple call terminals. For example, complex applications such as address book management and conference recording require users to manually switch the audio output of one call terminal to the audio output of another call terminal. For example, in a certain scenario, the user is listening to music through a computer, but a voice call is initiated on the mobile phone. At this time, the user needs to pick up the mobile phone or the headset connected to the mobile phone to answer the call. That is, in the above scenario, the audio of existing multi-terminal devices cannot be automatically switched under the same headset, resulting in the need for users to manually switch output and input sources when using different audio devices, which increases the office burden of users. In addition, a large number of voice call users have the need to record meetings or calls, and cannot record multi-terminal device calls or meetings in a timely and effective manner.

[0035] Therefore, there is an urgent need for a cross-platform calling and recording method and device.

[0036] Please refer to Figure 1 , which shows a flow chart of a cross-platform call and recording method provided in an embodiment of the present application. The method is applied to a cross-platform recording device. The flow chart mainly includes the following steps: S101 to S104.

[0037] Step S101, in response to a request from a contact on a first terminal device to perform a call operation, obtain a current call scenario of the user.

[0038] Specifically, the cross-platform recording device monitors the user's call operation by monitoring the call status of the user's terminal device in real time. That is, when the user initiates or answers a call, the cross-platform recording device captures the trigger signal of the call event, thereby interacting with the terminal device through Bluetooth or other communication protocols. Terminal devices include but are not limited to mobile terminal devices, computer terminal devices, tablet terminal devices, etc. The first terminal device is the terminal device where the user receives the call request. This application does not limit the type of the first terminal device. When the user uses a mobile terminal to make a call, the cross-platform recording device pairs with the mobile terminal through the Bluetooth protocol (such as Bluetooth 5.1).

[0039] In a possible implementation, step S101 also includes: responding to the user's Bluetooth address book management operations and local address book management operations for contacts, the Bluetooth address book management operations include Bluetooth address book synchronization operations, contact retrieval and screening operations, and one-touch dialing operations; the local address book management operations include adding contacts operations, editing contacts operations, and deleting contacts operations; and displaying the front-end interface to the user so that the user can perform management operations and import operations based on the front-end interface.

[0040] Specifically, the cross-platform recording device can provide the user with a front-end interface, in which the user can perform various management operations, including but not limited to Bluetooth address book management operations, local address book management operations, etc. Among them, the Bluetooth address book management operations include but are not limited to: Bluetooth address book synchronization operations, contact retrieval and screening operations, one-key dialing operations, etc. Bluetooth address book management operations: establish a connection with the mobile phone terminal through the Bluetooth protocol, obtain the address book data in the mobile phone terminal, and display it on the front-end interface. During the synchronization process, the cross-platform recording device will automatically check the Bluetooth connection status regularly to ensure real-time synchronization of the address book; Contact retrieval and screening operations: provide search and screening functions in the synchronized Bluetooth address book, so that users can quickly find the person they need to contact; One-key dialing operation: users can directly select contacts in the Bluetooth address book, click the dial button, initiate a dialing request through the front-end interface, and request the mobile phone to dial through the Bluetooth protocol, and finally make a call through the wired headset connected by hardware; Contact copy to local operation: users can choose to copy some or all contacts in the Bluetooth address book to the local address book for further management. This process supports batch operations and simplifies the user operation process. Local address book management operations include but are not limited to adding contacts, editing contacts, deleting contacts, etc. Contact adding operations: 1. Manual adding: Users can manually enter contact information such as name, phone number, email, etc. through the front-end interface and add them to the local address book. 2. Importing from files: Supports batch importing of contacts from files in CSV, xlsx and other formats. When importing files, the cross-platform recording device will detect duplicate contacts and prompt the user to choose to merge or skip. 3. Call logs converted to contacts: In the call logs, users can add unknown numbers as local contacts. The cross-platform recording device will automatically fill in the phone number. The user only needs to supplement the remaining information; Contact editing and management: Users can modify local contact information, including name, phone number, notes, etc.; Deleting contacts: Supports single or batch deletion of local contacts, and prompts the user to confirm before the operation to avoid accidental deletion.

[0041] Please refer to Figure 2 , which shows a schematic diagram of a front-end interface provided by an embodiment of the present application. In this interface, the first area 21 is used to display the call records between the user and each different contact, and the user can perform local address book management operations and Bluetooth address book management operations in the first area 21, the second area 22 is used to display the specific call records of a single contact, in the second area 22, the user can replay the recording of each call record, the third area 23 is used to adjust the volume of the microphone and the earphone, the fourth area 24 is used to manage the connected computer terminal, the fifth area 25 is used to associate the mobile phone terminal connected via Bluetooth, the sixth area 26 is used to call out the dialing keyboard, and the recording button 27 is used to start recording during a call.

[0042] Step S102: automatically switch the call recording to the second terminal device corresponding to the current call scenario according to the current call scenario.

[0043] Specifically, the cross-platform recording device can also automatically switch the recording channel according to the user's call scenario, that is, automatically switch the monitoring and recording channels between Bluetooth and the computer sound card. At this time, the second terminal device is the terminal device on which the user is finally recording the call. Since the device on which the user receives the call request and the device on which the user finally records the call can be the same terminal device, the first terminal device and the second terminal device can also be the same terminal device. The cross-platform recording device automatically obtains the user's current call scenario, and according to the current call scenario, automatically switches the call recording to the terminal device corresponding to the current call scenario: when the call scenario is the first call scenario, the call recording is switched to the terminal device corresponding to the first call scenario, and the terminal device corresponding to the first call scenario is a computer terminal device; when the call scenario is the second call scenario, the call recording is switched to the terminal device corresponding to the second call scenario, and the terminal device corresponding to the second call scenario is a mobile phone terminal device. The following will be explained using three actual scenarios as examples: Scenario 1: When a user is playing music through a computer terminal and then receives an incoming call from a mobile terminal, the cross-platform recording device detects the incoming call signal from Bluetooth (mobile terminal) and automatically switches from the computer sound card to the Bluetooth (mobile terminal) audio channel. The headset automatically switches to the mobile terminal call audio. The user can answer the call through the headset. If the user clicks to answer the call on the desktop, the cross-platform recording device will automatically start recording the call audio. Scenario 2: The user is playing music through a mobile terminal and an online meeting is initiated on the computer terminal. At this time, the cross-platform recording device detects that the computer terminal has started the meeting software and needs to start recording. The cross-platform recording device automatically switches from Bluetooth (mobile terminal) to the computer sound card and prepares to record the meeting audio. The headset switches to the computer terminal audio. The user can hear the audio content of the online meeting through the headset and the recording confirmation pop-up window pops up on the computer terminal. The user can manually click "Start Recording" and the meeting audio starts to be recorded. Scenario 3: The user's computer terminal is playing audio or holding an online meeting, and the mobile terminal has music or notification sounds. At this time, the cross-platform recording device will prioritize the recording channel based on the user's current activity scenario. If the online meeting on the computer terminal is marked as a priority task, the recording channel will remain on the computer sound card. If the mobile terminal receives an incoming call or other higher priority notifications, it will automatically switch to Bluetooth (mobile terminal) for recording. The cross-platform recording device automatically adjusts the headphone output according to the channel priority to ensure that the user always monitors the important sound source. In addition, users can also manually adjust the recording channel. Users can view the current recording channel (Bluetooth or computer sound card) in the front-end interface and manually switch channels. The manual switching function allows users to select the priority recording source in complex scenarios to avoid conflicts between automatic switching and user intentions.

[0044] In a possible implementation, step S102 further includes: acquiring a call mode corresponding to the terminal device; if it is confirmed that the call mode is a SIM card dialing mode, recording the call through a 4G LTE network.

[0045] Specifically, the cross-platform recording device also supports multi-SIM card call recording: when the user enables the SIM card dialing mode, makes a call through the device, and chooses to initiate a call through the 4G network, the 4G phone module takes over the call signal, and the call is made based on the stable connection of the 4G LTE network, and the cross-platform recording device can switch different SIM cards for different scenarios as needed. The user's voice input is processed by the microphone, DSP, PA and ADC, and then transmitted to the MCU through the I2S interface, and finally transmitted by the MCU to the SIM card module for communication. The other party's voice signal is received through the SIM card module, processed by the MCU, and transmitted to the headphone output module, so that the user can clearly hear the other party's voice.

[0046] Step S103: Acquire the first audio data corresponding to the second terminal device to perform a preprocessing operation on the first audio data to obtain preprocessed second audio data.

[0047] Specifically, the cross-platform recording device can obtain the first audio data in a preset manner, and the first audio data includes microphone audio data and speaker audio data, wherein the preset manner includes but is not limited to: 1. When the second terminal device is a computer terminal device, the first audio data is obtained through a sound card connection method: when the user conducts an online meeting or a VoIP call through a computer terminal, the cross-platform recording device can capture the first audio data through the sound card of the computer terminal. At this time, the cross-platform recording device will monitor audio-related operations through real-time communication with the computer terminal, and the operations include but are not limited to: starting online meeting software, accessing voice calls, etc. By real-time monitoring the audio input channel of the computer terminal, the cross-platform recording device can immediately obtain and process the first audio data when the user starts a call; 2. When the second terminal When the device is a mobile terminal device, the first audio data is obtained through a Bluetooth connection: the establishment of a Bluetooth connection ensures real-time communication between the user's mobile terminal and the cross-platform recording device, especially the transmission of the first audio data. At the same time, the cross-platform recording device will continue to check the connection status of Bluetooth to ensure the stable reception of the first audio data. Afterwards, when the call starts, the cross-platform recording device will obtain the first audio data of the microphone from the mobile terminal through the Bluetooth protocol. The audio signal captured by the microphone is the first audio data, which will be transmitted to the system for subsequent processing; 3. When the second terminal device is a cross-platform recording device, the first audio data is obtained through the 4G module; at this time, the call mode is the SIM card dialing mode, and the call is recorded through the 4G LTE network. The 4G phone module takes over the call signal, and the call is made based on the stable connection of the 4G LTE network, and the cross-platform recording device can switch different SIM cards for different scenarios as needed. The first audio data is pre-processed, that is, the first audio data is subjected to gain amplification processing and coding format conversion processing to obtain the second audio data subjected to gain amplification processing and coding format conversion processing. The first audio data is the original audio data that has not been processed. Among them, the first audio data is gain processed: a preset audio signal strength is obtained, and the preset audio signal strength is determined according to the ambient noise level and the source of the audio data. Regarding the ambient noise level: the cross-platform recording device obtains the noise of the surrounding environment in real time, and adjusts the preset audio signal strength according to the noise level. For example, in an environment with high noise, the preset audio signal strength will be set higher, and in an environment with low noise, the preset audio signal strength will be set lower, so as to ensure that the user's voice can be clearly recorded without being drowned out by background noise; regarding the source of the audio data: if the first audio data comes from different terminal devices, the cross-platform recording device will set different preset audio signal strengths based on the characteristics of the terminal devices to adapt to data from these different sources.In addition, the cross-platform recording device amplifies the first audio data through a power amplifier, and the audio signal strength of the amplified first audio data is consistent with the preset audio signal strength. At this time, the cross-platform recording device will calculate the required gain value according to the strength of the input first audio data. The size of the gain value determines the amplification factor of the power amplifier to ensure that the output audio signal is consistent with the preset signal strength. Amplify the first audio data: perform gain processing on the first audio data through an audio converter to obtain the first audio data after gain; determine whether the first audio data after gain is greater than the preset audio quality. The preset audio quality standard can be set according to but not limited to the following indicators: 1. Signal strength: The cross-platform recording device will check whether the first signal strength after gain meets the preset requirements to ensure that the audio signal is within an acceptable range. 2. Signal-to-noise ratio: In order to ensure the clarity of the recording, the cross-platform recording device will evaluate the signal-to-noise ratio of the first audio data after gain. If the noise level of the signal is low and the voice is clear, it means that the gain processing is successful. 3. Audio distortion: The cross-platform recording device determines whether there is distortion or clipping by comparing the original signal and the signal after gain. If the audio signal is distorted due to excessive gain processing, the cross-platform recording device will further adjust the gain value. If the first audio data after gain is greater than the preset audio quality, the gain operation of the first audio data is completed.

[0048] In a possible implementation, step S103 further includes: obtaining a preset encoding format, where the preset encoding format includes MP3, AAC and WAV encoding formats; and performing encoding format conversion processing on the first audio data according to the preset encoding format.

[0049] Specifically, after completing the gain and amplification processing of the first audio data, the cross-platform recording device transmits the second audio data to the micro-control unit through the I2S interface. The I2S interface is a common standard for audio signal transmission, which can ensure that high-fidelity audio data is transmitted from the audio converter to the micro-control unit, which is convenient for subsequent encoding and processing. In the micro-control unit, the second audio data will be temporarily cached and wait for encoding processing. The cross-platform recording device will first determine the required preset encoding format according to the user's settings or predefined parameters. Common audio encoding formats include MP3, AAC, WAV, OPUS, etc., each format has different compression rates, sound quality performance and storage efficiency. The cross-platform recording device will select the most suitable encoding format according to the recording requirements, for example: high-fidelity recording: if the user wants to retain high-quality audio, the micro-control unit selects the lossless compression WAV format or the low-compression AAC format; storage optimization: for scenarios that need to save storage space, high-compression formats such as OPUS or MP3 are more suitable. After determining the preset encoding format, the micro-control unit will perform audio encoding on the second audio data. The core task of the encoding process is to convert audio data from the original uncompressed format (such as linear PCM) to the target preset encoding format (such as MP3 or OPUS). During the encoding process, the microcontroller unit reduces the size of the audio file through an audio compression algorithm. Audio encoding usually involves removing some redundant sound information while retaining key information that the human ear can perceive. The specific compression rate and quality are adjusted according to user settings. Among them, lossy encoding: such as MP3, AAC and other encoding formats will remove less important sound details through lossy compression technology to reduce the file size; lossless encoding: such as FLAC or WAV encoding will not lose any audio information, but the file size is larger. During the encoding process, the microcontroller unit will also process the audio data according to the preset sampling rate and bit depth. The sampling rate determines the number of audio samples collected per second, while the bit depth determines the accuracy of each audio sample. The microcontroller unit can adjust these two parameters according to user needs, for example: High-quality recording: For recordings that require high-fidelity sound quality, the microcontroller unit will select a higher sampling rate (such as 44.1kHz or 48kHz) and a higher bit depth (such as 16 bits or 24 bits); Storage optimized recording: When storage space is limited, the microcontroller unit can choose a lower sampling rate (such as 8kHz or 16kHz) and a lower bit depth to reduce the file size. During the encoding process, the microcontroller unit can also perform some additional processing on the second audio data, such as noise suppression, echo cancellation, or dynamic range compression, to further optimize the audio quality. These processes are automatically enabled according to different scenarios. For example, in a conference call, the microcontroller unit can start echo cancellation to improve voice clarity.

[0050] Step S104, sending the second audio data to a preset storage device via a serial port protocol, so that the user can record the call.

[0051] Specifically, after the microcontroller unit completes the encoding process of the second audio data, the cross-platform recording device needs to send the second audio data to the user's preset storage device, which is a storage device pre-set by the user. The preset storage device can be a computer device, a mobile phone device, a tablet device, a cross-platform recording device, etc., and needs to be set according to the actual needs of the user. This application does not limit the type of the preset storage device. In addition, the cross-platform recording device obtains a preset storage location in the preset storage device, which is a storage location set by the user in the terminal device, and saves the second audio data to the preset storage location.

[0052] Please refer to Figure 3 , which shows a schematic diagram of the principle of a cross-platform recording device provided by an embodiment of the present application, in Figure 3In the cross-platform recording device, the cross-platform recording device includes a microphone, a DSP (digital signal processor), a PA (power amplifier), a DAC (digital-to-analog converter), an ADC (analog-to-digital converter), an MCU (microcontroller unit), a microcontroller unit, a headset, a 4G phone module, Bluetooth, and a sound card. Pairing and connecting with the mobile terminal via Bluetooth ensures that the data channel is stable. The audio data of the mobile terminal is transmitted to the MCU via Bluetooth (I2S protocol). When the user initiates a call or conference on the mobile terminal, the microphone audio data of the mobile terminal is sent to the MCU via the Bluetooth module. The MCU receives the audio data via the I2S Slave and controls the transmission of the audio data to the DAC for decoding and output. After the audio data enters the MCU, the ADC can collect the audio signal and save the audio data to the preset storage location via USB-C according to the settings of the cross-platform recording device. The cross-platform recording device can store the recording file to the user-specified location through software control. The MCU monitors the microphone content in real time by inserting headphones. The audio data is converted by the ADC and output to Bluetooth through the MCU, and then transmitted to the mobile terminal. The microphone (MIC) sends the analog signal to the DSP through the audio input. The DSP is used to receive the analog audio signal from the microphone. PA performs gain and amplification on the analog signal to ensure that the signal strength is suitable for subsequent processing steps. The signal is further gain processed by ADC to ensure the quality of the analog signal. The enhanced analog signal is converted into a digital signal by ADC. The signal is transmitted to the MCU control chip through the I2S interface. The MCU receives the digital signal and encodes it into OPUS format. The conversion sampling rate is pre-set by the cross-platform recording device (16 bits / 16kHz). The MCU processes the audio data internally and stores the data to the specified computer path through USB-C according to the cross-platform recording device settings. During the recording process, the audio signal can be noise-suppressed or the audio gain adjusted by software to ensure the recording quality. The MCU monitors the microphone content in real time by inserting headphones. The audio data is converted by ADC and output to the Bluetooth module through the MCU, and then transmitted to the mobile phone.

[0053] The present application adopts the above method to obtain the user's current call scene in response to the contact's request for a call operation on the first terminal device; automatically switch the call recording to the second terminal device corresponding to the current call scene according to the current call scene; obtain the first audio data corresponding to the second terminal device to pre-process the first audio data to obtain the pre-processed second audio data; send the second audio data to a preset storage device through the serial port protocol to facilitate the user to record the call, thereby solving the problem that the user needs to manually switch the output and input sources when using different audio devices, affecting the user experience.

[0054] Please refer to Figure 4, which shows a module schematic diagram of a cross-platform call and recording device provided in an embodiment of the present application, the device is a cross-platform recording device, and the device includes an automatic switching module 41, an audio data optimization module 42 and a call recording sending module 43, wherein,

[0055] The automatic switching module 41 is used to respond to the contact's call operation request on the first terminal device, obtain the user's current call scene; and automatically switch the call recording to the second terminal device corresponding to the current call scene according to the current call scene.

[0056] The audio data optimization module 42 is used to obtain the first audio data corresponding to the second terminal device, so as to perform a preprocessing operation on the first audio data to obtain the preprocessed second audio data.

[0057] The call recording sending module 43 is used to send the second audio data to a preset storage device through a serial port protocol, so that the user can record the call.

[0058] In a possible implementation, the audio data optimization module 42 is used to obtain the first audio data, specifically including: obtaining the first audio data through a preset method, wherein the preset method includes obtaining the first audio data through a sound card connection method, obtaining the first audio data through a Bluetooth connection method, and obtaining the first audio data through a 4G module.

[0059] In one possible implementation, the audio data optimization module 42 is used to obtain preprocessed second audio data by performing a preprocessing operation on the first audio data, specifically including: performing gain amplification processing and coding format conversion processing on the first audio data to obtain second audio data that has undergone gain amplification processing and coding format conversion processing.

[0060] In a possible implementation, the audio data optimization module 42 is used to amplify the first audio data, specifically including: obtaining a preset audio signal strength, where the preset audio signal strength is determined based on the ambient noise level and the audio data source; and amplifying the first audio data through a power amplifier.

[0061] In one possible implementation, the audio data optimization module 42 is used to perform gain processing on the first audio data, specifically including: performing gain processing on the first audio data through an audio converter to obtain gained first audio data; determining whether the gained first audio data is greater than a preset audio quality; if the gained first audio data is greater than the preset audio quality, completing the gain processing operation.

[0062] In a possible implementation, the audio data optimization module 42 is used to perform coding format conversion processing on the first audio data, specifically including: obtaining a preset coding format, the preset coding format includes MP3, AAC and WAV coding formats; and performing coding format conversion processing on the first audio data according to the preset coding format.

[0063] In a possible implementation, the current call scenario includes a first call scenario and a second call scenario, and the automatic switching module 41 is used to automatically switch the call recording to the terminal device corresponding to the current call scenario according to the current call scenario: when the call scenario is the first call scenario, the call recording is switched to the first terminal device corresponding to the first call scenario, and the terminal device corresponding to the first call scenario is a computer terminal device; when the call scenario is the second call scenario, the call recording is switched to the terminal device corresponding to the second call scenario, and the terminal device corresponding to the second call scenario is a mobile phone terminal device.

[0064] In a possible implementation, the call recording sending module 43 is used to send the encoded second audio data to the terminal device to facilitate the user to record the call. The method also includes: obtaining a preset storage location, which is a storage location set by the user in the terminal device; and saving the second audio data to the preset storage location.

[0065] In one possible implementation, the audio data optimization module 42 is used to obtain the first audio data of the terminal device in response to the user's call operation on the terminal device for the contact, and the method also includes: responding to the user's Bluetooth address book management operation and local address book management operation for the contact, the Bluetooth address book management operation includes Bluetooth address book synchronization operation, contact retrieval and screening operation and one-key dialing operation; the local address book management operation includes adding contact operation, editing contact operation and deleting contact operation; displaying the front-end interface to the user so that the user can perform management operations and import operations according to the front-end interface.

[0066] It should be noted that: when the device provided in the above embodiment realizes its function, only the division of the above functional modules is used as an example. In actual application, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0067] The present application also provides a computer-readable storage medium, which stores instructions. When executed by one or more processors, the electronic device executes one or more of the methods described in the above embodiments.

[0068] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0069] In the several embodiments provided in this application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.

[0070] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0071] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0072] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, a cross-platform recording device or a network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned memory includes: various media that can store program codes, such as USB flash drives, mobile hard drives, magnetic disks or optical disks.

[0073] The above are only exemplary embodiments disclosed in this application, and the scope of the disclosure of this application cannot be limited by this. That is, any equivalent changes and modifications made according to the teachings disclosed in this application are still within the scope of the disclosure of this application. After considering the disclosure of the specification and the truth of practice, those skilled in the art will easily think of other implementation schemes disclosed in this application.

[0074] This application is intended to cover any modifications, uses or adaptive changes disclosed in this application, which follow the general principles disclosed in this application and include common knowledge or customary technical means in the technical field not recorded in this application.

Claims

1. A cross-platform calling and recording method, characterized in that: The method comprises: In response to a request from a contact on the first terminal device to perform a call operation, obtaining a current call scenario of the user; According to the current call scenario, automatically switching the call recording to the second terminal device corresponding to the current call scenario; Acquire first audio data corresponding to the second terminal device to perform a preprocessing operation on the first audio data to obtain preprocessed second audio data; The second audio data is sent to the preset storage device via a serial port protocol, so that the user can record the call.

2. The method according to claim 1, characterized in that Acquiring the first audio data specifically includes: The first audio data is obtained through a preset method, wherein the preset method includes obtaining the first audio data through a sound card connection method, obtaining the first audio data through a Bluetooth connection method, and obtaining the first audio data through a 4G module.

3. The method according to claim 1, characterized in that The method of performing a preprocessing operation on the first audio data to obtain preprocessed second audio data specifically includes: The first audio data is subjected to gain amplification processing and coding format conversion processing to obtain the second audio data subjected to the gain amplification processing and coding format conversion processing.

4. The method according to claim 3, characterized in that The amplifying process is performed on the first audio data, specifically comprising: Obtaining a preset audio signal strength, where the preset audio signal strength is determined based on an ambient noise level and a source of audio data; The first audio data is amplified by a power amplifier.

5. The method according to claim 3, characterized in that: Performing gain processing on the first audio data specifically includes: Performing the gain processing on the first audio data through an audio converter to obtain the first audio data after gain; Determining whether the first audio data after gain is greater than a preset audio quality; If the first audio data after gain is greater than the preset audio quality, the gain processing operation is completed.

6. The method according to claim 3, characterized in that The first audio data is converted into a coding format, specifically comprising: Obtain a preset encoding format, wherein the preset encoding format includes MP3, AAC and WAV encoding formats; The first audio data is subjected to the encoding format conversion processing according to the preset encoding format.

7. The method according to claim 1, characterized in that The current call scenario includes a first call scenario and a second call scenario. According to the current call scenario, the call recording is automatically switched to a terminal device corresponding to the current call scenario: When the call scenario is the first call scenario, the call recording is switched to a terminal device corresponding to the first call scenario, and the terminal device corresponding to the first call scenario is a computer terminal device; When the call scenario is the second call scenario, the call recording is switched to a terminal device corresponding to the second call scenario, and the terminal device corresponding to the second call scenario is a mobile phone terminal device.

8. The method according to claim 1, characterized in that The sending the second audio data to the preset storage device through the serial port protocol so as to facilitate the user to record the call specifically includes: Obtaining a preset storage location, where the preset storage location is a storage location set by the user in the preset storage device; The second audio data is saved to the preset storage location.

9. The method according to claim 1, characterized in that: The method further includes, before obtaining the current call scenario of the user in response to the request of the contact to perform a call operation on the first terminal device, the method further includes: In response to the user's Bluetooth address book management operation and local address book management operation for the contact, the Bluetooth address book management operation includes a Bluetooth address book synchronization operation, a contact search and screening operation, and a one-touch dialing operation; the local address book management operation includes an add contact operation, an edit contact operation, and a delete contact operation; A front-end interface is displayed to the user so that the user can perform the management operation and the import operation according to the front-end interface.

10. A cross-platform calling and recording device, characterized in that: The device includes an audio data automatic switching module, an audio data optimization module and a call recording sending module, wherein: The automatic switching module is used to respond to a request from a contact on the first terminal device to perform a call operation, obtain the current call scene of the user; and automatically switch the call recording to the second terminal device corresponding to the current call scene according to the current call scene; The audio data optimization module is used to obtain the first audio data corresponding to the second terminal device, so as to perform a preprocessing operation on the first audio data to obtain the preprocessed second audio data; The call recording sending module is used to send the second audio data to the preset storage device through the serial port protocol, so that the user can record the call.