CN116033058A - Recording method and device for cross-terminal call, electronic equipment and storage medium - Google Patents

Recording method and device for cross-terminal call, electronic equipment and storage medium Download PDF

Info

Publication number
CN116033058A
CN116033058A CN202211176107.2A CN202211176107A CN116033058A CN 116033058 A CN116033058 A CN 116033058A CN 202211176107 A CN202211176107 A CN 202211176107A CN 116033058 A CN116033058 A CN 116033058A
Authority
CN
China
Prior art keywords
electronic device
call
electronic equipment
abstraction layer
hardware abstraction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211176107.2A
Other languages
Chinese (zh)
Inventor
刘亮
刘科洋
陈光明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202211176107.2A priority Critical patent/CN116033058A/en
Publication of CN116033058A publication Critical patent/CN116033058A/en
Pending legal-status Critical Current

Links

Images

Abstract

The application discloses a recording method, a recording device, electronic equipment and a storage medium for cross-terminal conversation, and relates to the technical field of recording. The method is applied to first electronic equipment, the first electronic equipment is in communication connection with second electronic equipment, and the method comprises the following steps: under the condition that the second electronic equipment responds to the call between the first electronic equipment and the third electronic equipment, if a virtual hardware abstraction layer is created in the hardware abstraction layer of the first electronic equipment, activating the virtual hardware abstraction layer; and recording call data of the first electronic equipment and the second electronic equipment through the virtual hardware abstraction layer. The method and the device can record the cross-terminal call through the virtual hardware abstraction layer, avoid the situation that the cross-terminal call cannot be recorded due to multi-terminal interaction when the cross-terminal call is recorded, improve the efficiency of recording the cross-terminal call, and avoid the resource waste caused by recording the cross-terminal call at the same time.

Description

Recording method and device for cross-terminal call, electronic equipment and storage medium
Technical Field
The present application relates to the field of recording technologies, and in particular, to a method, an apparatus, an electronic device, and a storage medium for recording a cross-terminal call.
Background
With the development of electronic technology and mobile internet, a user or a household may simultaneously have a plurality of electronic devices, such as a mobile phone, a notebook computer, a tablet computer, and an intelligent home device. At present, a plurality of electronic devices can be mutually matched to realize interaction coordination among devices, so that continuous service experience is provided for users. But recording call data between cross-device calls between multiple electronic devices is inefficient. When multiple devices perform cross-device call, how to improve the recording efficiency of call data is a problem to be solved.
Disclosure of Invention
In view of the above problems, the present application proposes a recording method, apparatus, electronic device, and storage medium for cross-terminal call, so as to solve the above problems.
In a first aspect, an embodiment of the present application provides a recording method for cross-terminal call, which is applied to a first electronic device, where the first electronic device is communicatively connected to a second electronic device, and the method includes: under the condition that the second electronic equipment responds to the call between the first electronic equipment and the third electronic equipment, if a virtual hardware abstraction layer is created in the hardware abstraction layer of the first electronic equipment, activating the virtual hardware abstraction layer; and recording call data of the first electronic equipment and the second electronic equipment through the virtual hardware abstraction layer.
In a second aspect, an embodiment of the present application provides a recording apparatus for cross-terminal call, which is applied to a first electronic device, where the first electronic device is communicatively connected to a second electronic device, and the apparatus includes: the activation module is used for activating the virtual hardware abstraction layer if the virtual hardware abstraction layer is created in the hardware abstraction layer of the first electronic device under the condition that the second electronic device responds to the call between the first electronic device and the third electronic device; and the recording module is used for recording the call data of the first electronic equipment and the second electronic equipment through the virtual hardware abstraction layer.
In a third aspect, embodiments of the present application provide an electronic device comprising a memory coupled to a processor and a processor, the memory storing instructions that when executed by the processor perform the above-described method.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium having program code stored therein, the program code being callable by a processor to perform the above method.
According to the recording method, the recording device, the electronic equipment and the storage medium for the cross-terminal call, the first electronic equipment is in communication connection with the second electronic equipment, when the second electronic equipment responds to the call between the first electronic equipment and the third electronic equipment and is switched to the call between the second electronic equipment and the third electronic equipment, the first electronic equipment activates the virtual abstract layer when detecting that the virtual hardware abstract layer is created in the first electronic equipment, and the call data of the first electronic equipment and the second electronic equipment are recorded through the virtual abstract layer, so that the recording of the cross-terminal call is realized. The method and the device can record the cross-terminal call through the virtual hardware abstraction layer, avoid the situation that the cross-terminal call cannot be recorded due to multi-terminal interaction when the cross-terminal call is recorded, improve the efficiency of recording the cross-terminal call, and avoid the resource waste caused by recording the cross-terminal call at the same time.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic application scenario of a recording method of cross-terminal call according to an embodiment of the present application;
fig. 2 is a flow chart illustrating a recording method of a cross-terminal call according to an embodiment of the present application;
fig. 3 is a flow chart illustrating a recording method of a cross-terminal call according to another embodiment of the present application;
fig. 4 is a flowchart illustrating step S240 of the recording method of the cross-terminal call shown in fig. 3;
fig. 5 is a flow chart illustrating a recording method of a cross-terminal call according to still another embodiment of the present application;
fig. 6 is a flowchart illustrating a recording method of a cross-terminal call according to another embodiment;
FIG. 7 is a block diagram of a recording device for cross-terminal calls according to an embodiment of the present disclosure;
fig. 8 is a block diagram of a first electronic device according to an embodiment of the present application for executing a recording method of a cross-terminal call according to an embodiment of the present application;
fig. 9 shows a storage unit for storing or carrying program codes for implementing a recording method of a cross-terminal call according to an embodiment of the present application.
Detailed Description
In order to better understand the embodiments of the present application, the following description will clearly and completely describe the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. The components of the embodiments of the present application, which are generally described and illustrated in the figures herein, may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, as provided in the accompanying drawings, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, are intended to be within the scope of the present application.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only to distinguish the description, and are not to be construed as indicating or implying relative importance.
At present, in the process of using cross-terminal call, call downlink data in the current call of the mobile phone is required to be recorded and transmitted to a PC terminal or a tablet for playing, meanwhile call uplink data of the PC terminal or the tablet microphone is recorded and transmitted to the mobile phone, and then the mobile phone writes the call downlink data into uplink data of a communication modulation regulator (namely a communication Modem) and transmits the call downlink data to equipment of a call counterpart by the communication Modem. At this time, if the call needs to be recorded, the mobile phone stores the call uplink data and the call downlink data in the communication Modem respectively, and forms a recording file.
However, the Android system is currently shown that the mobile phone end and the PC end or the tablet end can record the same call data, and the customization requirement is not met, namely, one end only carries out communication data transmission, and the other end records the communication data. To support this, there are three schemes currently:
The Android provides an AudioPatch scheme, and a call Modem downlink device and a Remote sub mix (software HAL) device provided by an Android system are connected, so that downlink data are directly output to the Remote sub mix device, and in a cross-terminal call, a call transfer module of a mobile phone terminal obtains call downlink data from the Remote sub mix device, and the communication Modem downlink device is not required to be opened for recording call data.
2. The reason why the demand is not supported at present is that two paths of communication modems are opened simultaneously, only one PCM driving node is actually available, and the result is always recorded with the same data, so that a plurality of PCM driving modes can be added into the bottom layer of the Android system, one of the PCM driving modes is used for providing and acquiring downlink data, and the other PCM driving mode is used for acquiring uplink and downlink data.
From the supporting situation of the current friend Shang Hua, the high-pass platform machine mainly uses a scheme of multiple PCM driving nodes, so that record files can be stored in the cross-terminal conversation process.
3. The cross-terminal recording can be carried out through the recording application at the mobile phone terminal, the recording application is changed from calling the system recording to calling the call transfer module to store the recording file, and the communication Modem is called through the call transfer module to record the downlink data.
The first method and the second method are realized by depending on chip manufacturers, and the recording efficiency of the two schemes is low and the realization complexity is high. In addition, the call data recorded by the first method has larger delay time which is 100-200ms longer than the call downlink data recorded directly by the communication Modem. In the third method, the system call recording application changes the existing logic, and the third party recording application is not supported to record the cross-terminal call data.
In order to solve the problems, the inventor discovers through long-term research and proposes a recording method, a recording device, an electronic device and a storage medium for cross-terminal call, which are provided by the embodiment of the application, through communication connection based on a first electronic device and a second electronic device, and when the second electronic device responds to switching a call between the first electronic device and a third electronic device into a call between the second electronic device and the third electronic device, the first electronic device activates a virtual hardware abstraction layer when detecting that the virtual hardware abstraction layer is created in the first electronic device, and records call data of the first electronic device and the second electronic device through the virtual abstraction layer, so that the cross-terminal call is recorded. The specific recording method of the cross-terminal call is described in detail in the following embodiments.
Referring to fig. 1, fig. 1 shows an application environment schematic diagram of a recording method for cross-terminal call, which can be used in the embodiment of the present application. As shown in fig. 1, the application scenario may include a first electronic device 100, a second electronic device 200, and a third electronic device 300. The first electronic device 100 may be a smart phone as shown in fig. 1, however, the first electronic device 100 may also be other devices with a call function, for example, a smart wearable watch, a car phone, etc., which is not limited herein. The second electronic device 200 may be a smart phone, a tablet computer, a smart watch, a notebook computer, etc. The third electronic device 300 may also be a smart phone as shown in fig. 1, or other device with call functionality. In this application scenario, optionally, the first electronic device 100 and the third electronic device 300 each include a SIM card capable of performing a communication function, and the second electronic device 200 may include a SIM card capable of performing a communication function, or may not include a SIM card capable of performing a communication function, which may be set according to actual needs, and is not specifically limited herein. The first electronic device 100 may serve as a providing device for cross-terminal communication, and transfer the communication to the second electronic device 200. Optionally, the first electronic device 100 may also serve as a device for providing a display interface, and the display interface of the first electronic device 100 may be projected onto the second electronic device 200 for display.
In some embodiments, the first electronic device 100 is communicatively connected to the second electronic device 200 to complete the cross-terminal conversation. For example, the first electronic device 100 and the second electronic device 200 may establish an end-to-end network connection (i.e., a P2P network connection) through a communication manner such as bluetooth or Zigbee, webRTC, wiFi direct connection, and communicate through the established network connection. Alternatively, the first electronic device 100 and the second electronic device 200 may establish a connection through a wireless projection protocol and transmit data through a WLAN. Of course, the communication manner between the first electronic device 100 and the second electronic device 200 may not be limited.
Referring to fig. 2, fig. 2 shows a timing chart of a recording method of a cross-terminal call according to an embodiment of the present application. In a specific embodiment, the recording method of the cross-terminal call can be applied to the recording apparatus 400 of the cross-terminal call shown in fig. 7 and the first electronic device 100 (fig. 8) configured with the recording 400 of the cross-terminal call. The method is applied to a first electronic device, the first electronic device is in communication connection with a second electronic device, the flow shown in fig. 2 will be described in detail, and the recording method of the cross-terminal call specifically may include steps S110 to S120.
Step S110: and under the condition that the second electronic equipment responds to the call between the first electronic equipment and the third electronic equipment, if a virtual hardware abstraction layer is created in the hardware abstraction layer of the first electronic equipment, activating the virtual hardware abstraction layer.
In one mode, if the second electronic device responds to the cross-terminal call operation in the call process of the first electronic device and the third electronic device, a cross-terminal call instruction is sent to the first terminal, the first terminal detects whether a virtual hardware abstraction layer is created in the first terminal based on the cross-terminal call instruction, and when the virtual hardware abstraction layer exists, the virtual hardware abstraction layer is activated. Optionally, the virtual hardware abstraction layer resides in a hardware abstraction layer of the first electronic device.
Optionally, the first electronic device transfers the current call of the first electronic device to the second device according to the received cross-terminal call instruction, and at this time, the call between the first electronic device and the third electronic device is switched to the call between the second electronic device and the third electronic device. The cross-end call is simply to switch the current call between different electronic devices, but the SIM card or account number for communication is not changed. For example, if both the first electronic device and the second electronic device are SIM cards, the SIM card of the first electronic device is denoted as a, the SIM card of the second electronic device is denoted as B, and the SIM card of the third electronic device is denoted as C; when the call between the first electronic device and the third electronic device is switched to the call between the second electronic device and the third electronic device, the communication between A and C is not switched to the communication between B and C.
As another way, the cross-terminal call operation may be an operation on the first electronic device, and when the first electronic device and the third electronic device are in a call, the second electronic device transfers the current call between the first electronic device and the third electronic device to the present device based on the cross-terminal call operation of the first electronic device, so as to continue the communication. Optionally, when the call between the first electronic device and the third electronic device is transferred to the third electronic device, the first electronic device may not display the call between the SIM card or the account number corresponding to the third electronic device currently, or may continue to display the call, may be set according to actual needs, and is not limited again.
As one way, activating the virtual hardware abstraction layer may be registering the virtual hardware abstraction layer in a system device management of the first device, the virtual hardware abstraction layer being activated by the system device management of the first device.
Alternatively, the virtual hardware abstraction layer may be activated by sending a driving instruction or an activation request to the virtual hardware abstraction layer by a driver of the first electronic device, the driving instruction or the activation request being used by the virtual hardware abstraction layer.
Step S120: and recording call data of the first electronic equipment and the second electronic equipment through the virtual hardware abstraction layer.
As a method, the virtual hardware abstraction layer acquires the call downlink data of the first electronic device and the call uplink data of the second electronic device respectively, and then stores the call uplink data and the call downlink data in the virtual hardware abstraction layer.
In one way, when the second electronic device responds to the cross-terminal call, the first electronic device defaults to record call data of the cross-terminal call. Optionally, when the second electronic device responds to the cross-terminal call, the first electronic device activates and starts the virtual hardware abstraction layer to record call data of the cross-terminal call.
As another way, when the second electronic device or the first electronic device records the cross-terminal call through the recording client (for example, clicking a recording key of the call interface), the first electronic device generates a recording starting instruction, invokes an audio service module of the first electronic device and an audio service class in an audio library, issues the recording starting instruction to a virtual hardware abstraction layer of the first device, and the virtual hardware abstraction layer records the cross-terminal call through the audio service class of the first electronic device and the audio service class in the audio library.
Optionally, after receiving the instruction for starting the recording, the virtual hardware abstraction layer designates to acquire the first call audio data of the first electronic device and designates to receive the second call audio data of the second electronic device. And then, the first electronic equipment acquires the first call audio data and the second call data from the call transfer module, and mixes the first call audio data and the second call data to obtain mixed call data. The virtual hardware abstract layer acquires the call data after the sound mixing and stores the call data after the sound mixing. Optionally, the virtual hardware abstraction layer may further send the recording data to the recording client via an audio service class of the first electronic device.
Optionally, based on an operation of the second electronic device to obtain call data (for example, a play call recording operation), sending an instruction for obtaining call data to the first electronic device, and according to the instruction for obtaining call data, the first electronic device sends call data stored in the virtual hardware abstraction layer to the second electronic device based on a communication connection between the first electronic device and the second electronic device.
As one way, the virtual hardware abstraction layer may upload the recorded call data to the cloud server or the local data of the first electronic device. Optionally, if the call data is uploaded to the cloud server, the user may initiate a request for obtaining the call data through the second electronic device, where the request includes a call time, a SIM card number for performing a call, an account number, and the like, and the cloud server sends the corresponding call data to the second electronic device according to the request. Optionally, when the call record is stored, the call record of the first electronic device may be obtained, the call data and the call record are stored in association, and when the user searches for the call record, the audio in the call data may be downloaded and/or played in the call record. Optionally, when the first electronic device or the second electronic device plays the audio data in the call data, the SIM card number of the third electronic device or the account number of the third electronic device is correspondingly displayed.
In some embodiments, the first electronic device may be communicatively coupled to the second electronic device by: the first electronic equipment is in communication connection with the second electronic equipment, and an interface of the first electronic equipment is projected on the second electronic equipment for display; and/or the first electronic equipment is in communication connection with the second electronic equipment, and the first electronic equipment and the second electronic equipment are logged in the same account.
As one way, the first electronic device may be communicatively connected to the second electronic device by a short-range wireless communication connection, for example, the first electronic device may be communicatively connected to the second electronic device by bluetooth, zigbee, webRTC, wiFi, NFC, or the like. When the second electronic device displays the interface of the first electronic device through projection, the second electronic device can perform cross-terminal conversation according to the operation of answering or dialing the call of the display interface.
In one mode, when the first electronic device is in communication connection with the second electronic device and the first electronic device and the second electronic device log in the same account, the first electronic device and the second electronic device can share data through the same account, at this time, if the first electronic device is called, the first electronic device and the second electronic device are displayed at the same time, and a user can select an operation of turning on the second electronic device to realize cross-terminal call.
In the embodiment of the application, the first electronic device is in communication connection with the second electronic device, when the second electronic device responds to switching the call between the first electronic device and the third electronic device to the call between the second electronic device and the third electronic device, the first electronic device activates the virtual abstract layer when detecting that the virtual hardware abstract layer is created in the first electronic device, and records call data of the first electronic device and the second electronic device through the virtual abstract layer, so that the recording of the cross-terminal call is realized. The method and the device can record the cross-terminal call through the virtual hardware abstraction layer, avoid the situation that the cross-terminal call cannot be recorded due to multi-terminal interaction when the cross-terminal call is recorded, improve the efficiency of recording the cross-terminal call, and avoid the resource waste caused by recording the cross-terminal call at the same time.
Referring to fig. 3, fig. 3 shows a timing chart of a recording method of a cross-terminal call according to an embodiment of the present application. In a specific embodiment, the recording method of the cross-terminal call can be applied to the recording apparatus 400 of the cross-terminal call shown in fig. 7 and the first electronic device 100 (fig. 8) configured with the recording 400 of the cross-terminal call. The method is applied to a first electronic device, the first electronic device is in communication connection with a second electronic device, the flow shown in fig. 3 will be described in detail, and the recording method of the cross-terminal call specifically may include steps S210 to S250.
Step S210: and under the condition that the second electronic equipment responds to the call between the first electronic equipment and the third electronic equipment, if a virtual hardware abstraction layer is created in the hardware abstraction layer of the first electronic equipment, activating the virtual hardware abstraction layer.
The specific description of step S210 is referred to step S110, and will not be repeated here.
Step S220: and acquiring call uplink data acquired by the second electronic equipment and transmitted to the first electronic equipment.
As a way, when the call between the first electronic device and the third electronic device is switched to the call between the second electronic device and the third electronic device, the audio service module in the second electronic device collects the audio at the microphone, and transmits the collected audio to the first electronic device through the communication connection with the first electronic device, optionally, the audio can be transmitted to the call transfer module of the first electronic device, and the call transfer module sends the audio collected by the second electronic device to the virtual hardware abstraction layer. The call uplink data refer to data that the second electronic device sends audio collected by the second electronic device at the microphone to the third electronic device through the base station, and it can be understood that the call uplink data of the second electronic device refer to audio data played by the audio service module of the third electronic device through the speaker.
Step S230: and acquiring call downlink data transmitted to the first electronic equipment by the third electronic equipment through the communication modem of the first electronic equipment.
A modem is a short term of a Modulator (Demodulator) and a Demodulator (Demodulator), and is an electronic device capable of realizing a modulation and demodulation function required for communication. The digital signal generated by a serial port of an electronic device can be modulated into an analog signal which can be transmitted through a telephone line at a transmitting end; at the receiving end, the modem converts the analog signal input into the electronic device into a corresponding digital signal, which is sent to the electronic device interface. In general, modems are often used to exchange data and programs with other electronic devices, and to access online information service programs, etc., to enable information interaction between the different devices.
As one way, when switching the call between the first electronic device and the third electronic device to the call between the second electronic device and the third electronic device, the audio service module in the first electronic device transmits the audio received from the base station to the communication modem, and transmits the audio data to the virtual hardware abstraction layer. The call downlink data of the first electronic device refers to data that the third electronic device sends audio collected by the third electronic device at the microphone to the communication modem of the first electronic device through the base station, and it can be understood that the call downlink data of the first electronic device refers to audio data played by the audio service module of the first electronic device through the speaker.
Step S240: and mixing the call uplink data and the call downlink data to obtain target call data.
As one aspect, the audio mixing process for the call uplink data and the call downlink data is an audio process for combining the call uplink data and the call downlink data into a session.
As a way, before the voice mixing processing is performed on the uplink call data and the downlink call data, the noise removing processing can be performed on the uplink call data and the downlink call data, so that the target call data is ensured to be clearer.
In some embodiments, as shown in fig. 4, step S240 includes:
step S241: and acquiring a first timestamp corresponding to the call uplink data.
As one way, when the call uplink data is collected, the corresponding first timestamp is collected at the same time. Optionally, a plurality of uplink data sets for calls may be preset, the audio data of each uplink speech segment for calls and the first time stamp corresponding to the audio data of each uplink speech segment for calls are stored in a unique uplink data set for calls, and the uplink data sets for calls are ordered according to the first time stamp of each uplink speech segment for calls and the time sequence corresponding to each first time stamp.
Step S242: and acquiring a second time stamp corresponding to the call downlink data.
As one way, when the call downlink data is collected, the corresponding second timestamp is collected at the same time. Optionally, a plurality of downlink data sets for the call may be preset, the audio data of each downlink voice segment for the call and the second time stamp corresponding to the audio data of each downlink voice segment for the call are stored in the unique downlink data set for the call, and the downlink data sets for the call are ordered according to the second time stamp of each downlink voice segment for the call and the time sequence corresponding to each second time stamp.
Step S243: and mixing the uplink call data and the downlink call data based on the first timestamp and the second timestamp, and obtaining target call data.
As a way, the call uplink data and the call downlink data can be spliced and integrated according to the time sequence corresponding to the first time stamp and the second time stamp, so that the call uplink data and the call downlink data are subjected to audio mixing processing, and the target call data are obtained.
Step S250: writing the target call data into the virtual hardware abstraction layer, and storing the target call data through the virtual hardware abstraction layer.
As a method, the target call data can be temporarily stored in the virtual hardware abstraction layer, the target call data can be sent to the first electronic device and/or the second electronic device after the end of the cross-terminal call by temporarily storing in the virtual hardware abstraction layer, the user can record according to the target call data in the first electronic device or the second electronic device in time,
as another method, the storage duration of the target call data by the virtual hardware abstraction layer can be preset, when the storage duration of the target call data is longer than the first time threshold, prompt information is generated to prompt a user that the target call data is about to be deleted, the user can process the target fairy tale data according to the prompt information, when the storage duration is not less than the second time threshold, the target call data is prevented from being deleted, and optionally, the prompt information can be a text popup prompt or a voice prompt, can be set according to actual needs, and is not specifically limited again.
In this embodiment, after the voice mixing processing is performed on the call uplink data and the call uplink data by the virtual hardware abstraction layer, the target call data is obtained, and the target call data is stored, so that recording of call data of the cross-terminal call can be achieved, and further efficiency of recording of the cross-terminal call is improved.
Referring to fig. 5, fig. 5 shows a timing chart of a recording method of a cross-terminal call according to an embodiment of the present application. In a specific embodiment, the recording method of the cross-terminal call can be applied to the recording apparatus 400 of the cross-terminal call shown in fig. 7 and the first electronic device 100 (fig. 8) configured with the recording 400 of the cross-terminal call. The method is applied to a first electronic device, the first electronic device is in communication connection with a second electronic device, and the detailed description will be given below with respect to the flow shown in fig. 5, and the recording method of the cross-terminal call may specifically include steps S310 to S340.
Step S310: and under the condition that the second electronic equipment responds to the call between the first electronic equipment and the third electronic equipment, if a virtual hardware abstraction layer is created in the hardware abstraction layer of the first electronic equipment, activating the virtual hardware abstraction layer.
Step S320: and recording call data of the first electronic equipment and the second electronic equipment through the virtual hardware abstraction layer.
The specific description of step S310 to step S320 refer to step S110 to step S120, and are not described herein.
Step S330: and closing the virtual hardware abstraction layer under the condition of switching from responding to the conversation between the first electronic device and the third electronic device through the second electronic device to responding to the conversation between the first electronic device and the third electronic device through the first electronic device.
In order to avoid the low recording efficiency caused by the recording of the virtual hardware abstraction layer in the recording process of the first electronic device, the virtual hardware abstraction layer can be closed, and the communication modem in the first electronic device can be used for recording directly.
Step S340: and recording call data of the first electronic equipment and the second electronic equipment through a communication modem of the first electronic equipment.
As one way, the first electronic device may record the call uplink data and the call downlink data of the first electronic device through a communication Modem (hereinafter referred to as a communication Modem). Optionally, the first electronic device responds to the call recovery operation to generate a call instruction, and according to the call instruction, invokes an audio service module of the first electronic device, the audio service module of the first electronic device collects call uplink data received by a microphone of the first electronic device and sends the call uplink data to a communication Modem of the first electronic device, and the communication Modem of the first electronic device mixes the call uplink data with call downlink data sent by the received third electronic device to obtain call data after call recovery, and stores the call data after call recovery.
Optionally, when the current call is switched from the call between the second electronic device and the third electronic device to the call between the first electronic device and the third electronic device, the virtual hardware abstraction layer sends the target call data to the communication Modem of the first electronic device, and the communication Modem of the first electronic device performs splicing and integration on the target communication data and the call data after the call is restored to obtain complete call data, and stores the complete call data. Optionally, the communication Modem may further upload the complete call data to the cloud server through the account registered by the first electronic device.
In this embodiment, when the first electronic device resumes the call, the call data is recorded by the communication modulation regulator of the first electronic device, so as to improve the efficiency of recording the call data after resuming the call.
In some embodiments, the recording method of the cross-terminal call further includes: under the condition that the second electronic equipment responds to the conversation between the first electronic equipment and the third electronic equipment, if a virtual hardware abstraction layer is not created in the hardware abstraction layer of the first electronic equipment, recording conversation data of the first electronic equipment and the second electronic equipment through a communication modem of the first electronic equipment; or under the condition that the second electronic equipment responds to the call between the first electronic equipment and the third electronic equipment, if a virtual hardware abstraction layer is not created in the hardware abstraction layer of the first electronic equipment, outputting prompt information, wherein the prompt information is used for prompting that the call between the second electronic equipment and the third electronic equipment is responded to the call between the first electronic equipment and the third electronic equipment through the second electronic equipment is switched from the call between the first electronic equipment and the third electronic equipment through the first electronic equipment.
As a way, if the first electronic device responds to the operation of cross-terminal call but detects that the first electronic device does not create the virtual hardware abstraction layer or that the virtual hardware abstraction of the first electronic device is not activated successfully, the first electronic device starts the communication Modem, and the communication Modem records the target call data of the call. Optionally, the call transfer module of the first electronic device receives call uplink data sent by the second electronic device, and sends the call uplink data to the communication Modem of the first electronic device, the communication Modem of the first electronic device receives call downlink data transmitted by the third electronic device, and then the communication Modem of the first electronic device performs audio mixing processing on the call uplink data and the call downlink data, so as to obtain target call data, and stores the target call data.
As another way, when the first electronic device responds to the operation of cross-terminal call but detects that the first electronic device does not create a virtual hardware abstraction layer or the virtual hardware abstraction of the first electronic device is not activated successfully, the first electronic device outputs prompt information, and the user can select to resume the call according to the prompt information and record call data of the call through a communication Modem of the first electronic device; or the user can continue to communicate with the third electronic device through the second electronic device according to the prompt, but the user can record the communication data of the communication by using the recording client side in the other electronic devices.
Referring to fig. 6, fig. 6 shows a timing chart of a recording method of a cross-terminal call according to an embodiment of the present application. In a specific embodiment, the recording method of the cross-terminal call can be applied to the recording apparatus 400 of the cross-terminal call shown in fig. 7 and the electronic device 500 (fig. 8) configured with the recording 400 of the cross-terminal call. The method is applied to a first electronic device, the first electronic device is in communication connection with a second electronic device, and the detailed description will be given below with respect to the flow shown in fig. 6, and the recording method of the cross-terminal call may specifically include steps S410 to S430.
Step S410: and under the condition that the second electronic equipment responds to the call between the first electronic equipment and the third electronic equipment, if a virtual hardware abstraction layer is created in the hardware abstraction layer of the first electronic equipment, a recording instruction is received, wherein the recording instruction is generated when the first electronic equipment or the second electronic equipment detects a target operation.
As one way, the recording instruction may be an instruction generated by the first electronic device in response to the recording operation, or may be an instruction transmitted to the first electronic device by the second electronic device in response to the recording operation. Optionally, the recording operation may be a touch operation based on a recording control in the call interface, or may be a touch operation through a recording control in the recording client in the first electronic device or the second electronic device.
Alternatively, the recording instruction may be an instruction generated by the first electronic device or the second electronic device based on a voice instruction of "recording the current call".
Step S420: and responding to the recording instruction, and activating the virtual hardware abstraction layer.
As one way, the first electronic device activating the virtual hardware abstraction layer in response to the recording instruction may register the virtual hardware abstraction layer in a system device management of the first device according to the recording instruction, and activate the virtual hardware abstraction layer through the system device management of the first device.
Alternatively, the first electronic device responds to the sound recording instruction by sending a driving instruction or an activation request for driving the virtual hardware abstraction layer to the virtual hardware abstraction layer by a driving program of the first electronic device, and the virtual hardware abstraction layer is activated according to the driving instruction or the activation request.
Step S430: and recording call data of the first electronic equipment and the second electronic equipment through the virtual hardware abstraction layer.
The specific description of step S430 refers to step S120, and is not repeated here.
In this embodiment, the virtual hardware abstraction layer is activated by the recording instruction by generating the recording instruction, so that the virtual hardware abstraction layer is used when the virtual hardware abstraction layer is required to be used, thereby saving resources.
Referring to fig. 7, fig. 7 is a block diagram illustrating a recording apparatus for cross-terminal call according to an embodiment of the present application. The recording device 400 for cross-terminal call is applied to the first electronic device, and the first electronic device is in communication connection with the second electronic device. The following will describe the block diagram shown in fig. 7, where the recording apparatus 400 for cross-terminal call includes: an activation module 410 and a first recording module 420, wherein:
an activation module 410, configured to activate a virtual hardware abstraction layer if the virtual hardware abstraction layer is created in the hardware abstraction layer of the first electronic device in a case that the second electronic device responds to a call between the first electronic device and a third electronic device; the first recording module 420 is configured to record call data of the first electronic device and the second electronic device through the virtual hardware abstraction layer.
In some embodiments, the first recording module 420 includes: the first acquisition sub-module is used for acquiring call uplink data acquired by the second electronic equipment and transmitted to the first electronic equipment; the second acquisition sub-module is used for acquiring call downlink data transmitted to the first electronic equipment by the third electronic equipment through the communication modem of the first electronic equipment; the target call data determining sub-module is used for carrying out audio mixing processing on the call uplink data and the call downlink data to obtain target call data; and the recording sub-module is used for writing the target call data into the virtual hardware abstraction layer and storing the target call data through the virtual hardware abstraction layer.
In some embodiments, the target call data determination submodule includes: the first timestamp acquisition unit is used for acquiring a first timestamp corresponding to the call uplink data; the second timestamp acquisition unit is used for acquiring a second timestamp corresponding to the call downlink data; and the mixing processing unit is used for mixing the call uplink data and the call downlink data based on the first timestamp and the second timestamp, and obtaining target call data.
In some embodiments, the recording apparatus 400 for cross-end call further includes: a call switching module, configured to close the virtual hardware abstraction layer when switching from responding to a call between the first electronic device and a third electronic device through the second electronic device to responding to a call between the first electronic device and the third electronic device through the first electronic device; and the second recording module is used for recording call data of the first electronic equipment and the second electronic equipment through the communication modem of the first electronic equipment.
In some embodiments, the recording apparatus 400 for cross-end call further includes: the third recording module is used for recording call data of the first electronic device and the second electronic device through the communication modem of the first electronic device if a virtual hardware abstraction layer is not created in the hardware abstraction layer of the first electronic device under the condition that the second electronic device responds to the call of the first electronic device and the third electronic device; or the prompting module is used for outputting prompting information if a virtual hardware abstraction layer is not created in the hardware abstraction layer of the first electronic device under the condition that the second electronic device responds to the conversation between the first electronic device and the third electronic device, wherein the prompting information is used for prompting switching from responding to the conversation between the first electronic device and the third electronic device by the second electronic device to responding to the conversation between the first electronic device and the third electronic device by the first electronic device.
In some embodiments, the activation module 410 includes: the recording instruction receiving sub-module is used for receiving a recording instruction, wherein the recording instruction is generated when the first electronic device or the second electronic device detects a target operation; and the activating sub-module is used for responding to the recording instruction and activating the virtual hardware abstraction layer.
In some embodiments, the first electronic device is communicatively connected to a second electronic device, comprising: the first electronic equipment is in communication connection with the second electronic equipment, and an interface of the first electronic equipment is projected on the second electronic equipment for display; and/or the first electronic equipment is in communication connection with the second electronic equipment, and the first electronic equipment and the second electronic equipment are logged in the same account.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the apparatus and modules described above may refer to the corresponding process in the foregoing method embodiment, which is not repeated herein.
In several embodiments provided herein, the coupling of the modules to each other may be electrical, mechanical, or other.
In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module. The integrated modules may be implemented in hardware or in software functional modules.
Referring to fig. 8, a block diagram of a first electronic device 100 according to an embodiment of the present application is shown. The first electronic device 100 may be an electronic device capable of running an application program, such as a smart phone, a tablet computer, an electronic book, etc. The electronic device 100 in this application may include one or more of the following components: processor 130, memory 140, and one or more application programs, wherein the one or more application programs may be stored in memory 140 and configured to be executed by the one or more processors 130, the one or more program(s) configured to perform the method as described in the foregoing method embodiments.
Wherein the processor 130 may include one or more processing cores. The processor 130 utilizes various interfaces and lines to connect various portions of the overall first electronic device 100, perform various functions of the first electronic device 100, and process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 140, and invoking data stored in the memory 140. Alternatively, the processor 130 may be implemented in hardware in at least one of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 130 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), a graphics processor (Graphics Processing Unit, GPU), and a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for being responsible for rendering and drawing the content to be displayed; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 130 and may be implemented solely by a single communication chip.
The Memory 140 may include a random access Memory (Random Access Memory, RAM) or a Read-Only Memory (Read-Only Memory). Memory 140 may be used to store instructions, programs, code sets, or instruction sets. The memory 140 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described below, etc. The storage data area may also store data created by the first electronic device 100 in use (e.g., phonebook, audiovisual data, chat log data), and so forth.
Referring to fig. 9, a block diagram of a computer readable storage medium according to an embodiment of the present application is shown. The computer readable medium 600 has stored therein program code which can be invoked by a processor to perform the methods described in the method embodiments described above.
The computer readable storage medium 600 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 600 comprises a non-volatile computer readable medium (non-transitory computer-readable storage medium). The computer readable storage medium 600 has storage space for program code 610 that performs any of the method steps described above. The program code can be read from or written to one or more computer program products. Program code 610 may be compressed, for example, in a suitable form.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and are not limiting thereof; although the present application has been described in detail with reference to the foregoing embodiments, one of ordinary skill in the art will appreciate that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not drive the essence of the corresponding technical solutions to depart from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (10)

1. The recording method of the cross-terminal call is characterized by being applied to first electronic equipment, wherein the first electronic equipment is in communication connection with second electronic equipment, and the method comprises the following steps:
under the condition that the second electronic equipment responds to the call between the first electronic equipment and the third electronic equipment, if a virtual hardware abstraction layer is created in the hardware abstraction layer of the first electronic equipment, activating the virtual hardware abstraction layer;
and recording call data of the first electronic equipment and the second electronic equipment through the virtual hardware abstraction layer.
2. The method of claim 1, wherein recording call data of the first electronic device and the second electronic device through the virtual hardware abstraction layer comprises:
Acquiring call uplink data acquired by the second electronic equipment and transmitted to the first electronic equipment;
acquiring call downlink data transmitted to the first electronic equipment by the third electronic equipment through a communication modem of the first electronic equipment;
mixing the call uplink data and the call downlink data to obtain target call data;
writing the target call data into the virtual hardware abstraction layer, and storing the target call data through the virtual hardware abstraction layer.
3. The method according to claim 2, wherein the step of performing audio mixing processing on the call uplink data and the call downlink data to obtain target call data includes:
acquiring a first timestamp corresponding to the call uplink data;
acquiring a second timestamp corresponding to the call downlink data;
and mixing the uplink call data and the downlink call data based on the first timestamp and the second timestamp, and obtaining target call data.
4. The method of claim 1, wherein after recording call data of the first electronic device and the second electronic device through the virtual hardware abstraction layer, further comprising:
Closing the virtual hardware abstraction layer under the condition of switching from responding to the conversation between the first electronic device and the third electronic device through the second electronic device to responding to the conversation between the first electronic device and the third electronic device through the first electronic device;
and recording call data of the first electronic equipment and the second electronic equipment through a communication modem of the first electronic equipment.
5. The method according to any one of claims 1-4, further comprising:
under the condition that the second electronic equipment responds to the conversation between the first electronic equipment and the third electronic equipment, if a virtual hardware abstraction layer is not created in the hardware abstraction layer of the first electronic equipment, recording conversation data of the first electronic equipment and the second electronic equipment through a communication modem of the first electronic equipment; or alternatively
And under the condition that the second electronic equipment responds to the call between the first electronic equipment and the third electronic equipment, if a virtual hardware abstraction layer is not created in the hardware abstraction layer of the first electronic equipment, outputting prompt information, wherein the prompt information is used for prompting that the call between the first electronic equipment and the third electronic equipment is responded by the second electronic equipment is switched from the call between the first electronic equipment and the third electronic equipment by the first electronic equipment.
6. The method of any of claims 1-4, wherein the activating the virtual hardware abstraction layer comprises:
receiving a sound recording instruction, wherein the sound recording instruction is generated when the first electronic device or the second electronic device detects a target operation;
and responding to the recording instruction, and activating the virtual hardware abstraction layer.
7. The method of any of claims 1-4, wherein the first electronic device is communicatively coupled to a second electronic device, comprising:
the first electronic equipment is in communication connection with the second electronic equipment, and an interface of the first electronic equipment is projected on the second electronic equipment for display; and/or
The first electronic device is in communication connection with the second electronic device, and the first electronic device and the second electronic device are logged in the same account.
8. A recording apparatus for cross-terminal conversation, the recording apparatus being applied to a first electronic device, the first electronic device being communicatively connected to a second electronic device, the apparatus comprising:
the activation module is used for activating the virtual hardware abstraction layer if the virtual hardware abstraction layer is created in the hardware abstraction layer of the first electronic device under the condition that the second electronic device responds to the call between the first electronic device and the third electronic device;
And the recording module is used for recording the call data of the first electronic equipment and the second electronic equipment through the virtual hardware abstraction layer.
9. An electronic device comprising a memory and a processor, the memory coupled to the processor, the memory storing instructions that when executed by the processor perform the method of any of claims 1-7.
10. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a program code, which is callable by a processor for executing the method according to any one of claims 1-7.
CN202211176107.2A 2022-09-26 2022-09-26 Recording method and device for cross-terminal call, electronic equipment and storage medium Pending CN116033058A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211176107.2A CN116033058A (en) 2022-09-26 2022-09-26 Recording method and device for cross-terminal call, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211176107.2A CN116033058A (en) 2022-09-26 2022-09-26 Recording method and device for cross-terminal call, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116033058A true CN116033058A (en) 2023-04-28

Family

ID=86080209

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211176107.2A Pending CN116033058A (en) 2022-09-26 2022-09-26 Recording method and device for cross-terminal call, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116033058A (en)

Similar Documents

Publication Publication Date Title
US9986045B2 (en) Shareable applications on telecommunications devices
US8929887B2 (en) Shared book reading
US20170034149A1 (en) Intelligent Communications Method, Terminal, and System
CN102880514B (en) A kind of method and apparatus of invokes application
CN102981613B (en) terminal and terminal control method
CN105407369A (en) Web application based terminal communication method and device
CN115643359B (en) Enhanced video call method and system and electronic equipment
CN104584490A (en) Data transmitting method and device
CN104202714A (en) Mobile terminal near field communication method and system for heterogeneous operating system
CN104168559A (en) Method, device and system for updating address book
CN104052801B (en) A kind of information processing method and electronic equipment
CN103237050A (en) Method and system for intelligent voice interaction
CN112689012A (en) Cross-network proxy communication method and device
CN107077378B (en) Communication method, device, electronic equipment and program product
EP3664423B1 (en) Incoming call voice calling method and terminal
CN116033058A (en) Recording method and device for cross-terminal call, electronic equipment and storage medium
CN113014544B (en) Method and device for establishing centerless media link based on webRtc
CN105391702A (en) Audio/video communication method, terminal, server and platform
CN107911538A (en) A kind of call handling method, mobile terminal and storage medium
CN115802516A (en) Wi-Fi direct communication method and device
CN102868837A (en) Conference call control system and conference call control method
CN105763722B (en) Mobile terminal and its method for upgrading system
CN112995674B (en) Media information transmission method, system and storage medium
WO2016154788A1 (en) Mobile terminal, base station, system and method for operating application
CN106385496B (en) Method and device for establishing a communication connection

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination