WO2023071540A1 - Recording synchronization method based on distributed call, and electronic device and readable storage medium - Google Patents

Recording synchronization method based on distributed call, and electronic device and readable storage medium Download PDF

Info

Publication number
WO2023071540A1
WO2023071540A1 PCT/CN2022/117356 CN2022117356W WO2023071540A1 WO 2023071540 A1 WO2023071540 A1 WO 2023071540A1 CN 2022117356 W CN2022117356 W CN 2022117356W WO 2023071540 A1 WO2023071540 A1 WO 2023071540A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
recording
interface
function
call
Prior art date
Application number
PCT/CN2022/117356
Other languages
French (fr)
Chinese (zh)
Inventor
王雪
尹杰
张鑫
Original Assignee
荣耀终端有限公司
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 荣耀终端有限公司 filed Critical 荣耀终端有限公司
Publication of WO2023071540A1 publication Critical patent/WO2023071540A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/64Automatic arrangements for answering calls; Automatic arrangements for recording messages for absent subscribers; Arrangements for recording conversations
    • H04M1/65Recording arrangements for recording a message from the calling party
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M3/00Automatic or semi-automatic exchanges
    • H04M3/42Systems providing special services or facilities to subscribers
    • H04M3/58Arrangements for transferring received calls from one subscriber to another; Arrangements affording interim conversations between either the calling or the called party and a third party
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/16Communication-related supplementary services, e.g. call-transfer or call-hold
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Definitions

  • the invention relates to the field of electronic technology, in particular to a synchronization method based on distributed call recording, electronic equipment and a readable storage medium.
  • the received party can be multiple electronic devices associated based on a trust ring, and multiple electronic devices can also receive the incoming call event at the same time, Incoming call resonance occurs.
  • users can realize the transfer of operator calls between different devices within the near field based on the trust ring.
  • the recording function enabled on the electronic device on the receiving side of the call cannot be transferred, thereby affecting the user's experience.
  • the present invention provides a method for synchronizing call recording based on distributed, electronic equipment, and a computer-readable storage medium to solve the problem of realizing synchronous recording in a distributed call scenario to improve user experience.
  • Some embodiments of the present application provide a synchronization method based on distributed call recording.
  • the following describes the present application from various aspects, and the implementation manners and beneficial effects of the following aspects can be referred to each other.
  • the present invention provides a synchronization method based on distributed call recording, which is applied to a system including a first electronic device and a second electronic device, wherein the first electronic device and the second electronic device are in the same local area network, and the first
  • the electronic device is a device with a telephone call function
  • the method includes: the first electronic device receives an incoming call event from a calling party; the first electronic device notifies the second electronic device of the incoming call event, and the second electronic device connects to the incoming call event; When the call is hung up, the first electronic device displays a reminder of the recording file, wherein the recording file includes a downstream audio stream from the calling party and an upstream audio stream collected by the second electronic device.
  • the method for synchronizing call recording in the embodiment of the present application can realize that when an incoming call resonates, as an electronic device capable of making a phone call, whether or not the recording function is turned on, the recording file can be obtained.
  • the first electronic device displays a reminder of the recording file, including: recording the downstream audio stream from the caller by the first electronic device and the upstream audio stream collected by the second electronic device, and when the call is hung up, synthesize the downstream audio stream and the upstream audio stream into a first file, and prompt to save the first recording file.
  • the first electronic device displays a first recording prompt on the interface, where the first recording prompt includes at least the first recording duration;
  • the second electronic device displays a second recording prompt on the interface, and the second recording prompt includes the first recording duration and information on recording audio on the first electronic device.
  • the system determines that the automatic recording function is enabled for the first electronic device and synchronizes the recording capability of the first electronic device to the second electronic device , and the recording duration can be displayed on the second electronic device, as well as the audio recording information on the second electronic device, so that the user can feel that the second electronic device also has the function of recording, which is convenient for the user to understand the recording situation and facilitate the recording of important calls Save, improve the user experience.
  • the first electronic device displays a reminder of the recording file, including: The second electronic device records the downstream audio stream from the calling party and the upstream audio stream collected by the second electronic device, and when the call is hung up, the second electronic device combines the downstream audio stream from the calling party with the collected upstream audio stream to generate a second recording file; the second electronic device sends the second recording file to the first electronic device, so that the first electronic device receives a prompt to save the second recording file.
  • the recording file can be obtained through the second electronic device.
  • the second electronic device displays a third recording prompt on the interface, and the third recording prompt includes at least the second recording duration; the first electronic device The device displays a fourth recording prompt on the interface, and the fourth recording prompt includes information about the second recording duration and audio recording on the second electronic device.
  • the recording duration and the audio recording time on the second electronic device can be displayed on the first electronic device. Information, so that the user can feel that the first electronic device also has a recording function, which is convenient for the user to understand the recording situation, and at the same time, facilitates the storage of important call recordings, and improves the user experience.
  • the second electronic device when the call is hung up, saves the second recording file to the local storage.
  • the second electronic device sends the second recording file to the first electronic device, including: the second electronic device outputs a prompt interface, and the prompt interface includes whether to synchronize the second recording file to Confirmation information of the first electronic device; when the second electronic device receives the user's operation of confirming and saving on the prompt interface, it sends the second recording file to the first electronic device.
  • This method is beneficial for the user to choose whether to save the second recording file to the second electronic device according to actual needs.
  • the recording function when the recording function is not enabled on the first electronic device and the recording function is enabled on the second electronic device, when the second electronic device receives a call event, the first electronic device The recording button on the interface cannot be clicked to take effect. Further, the effective recording of the second electronic device is ensured.
  • enabling the recording function of the second electronic device enables the automatic recording function for the second electronic device, or enables the recording function enabled by the user through the recording key on the second electronic device.
  • the recording function when the recording function is not enabled on the first electronic device and the recording function is enabled on the second electronic device, when the first electronic device or the second electronic device exits the local area network, the incoming call event
  • the connection flow from the second electronic device is transferred to the first electronic device; the second electronic device terminates the current recording, and saves the second recording file, so that the file can be saved in time.
  • the second electronic device sends the current recording information to the cloud, so as to complete the recording of the upstream audio stream and the downstream audio stream of the incoming call event streamed to the first electronic device through the cloud, and save them.
  • This method can be implemented in the first electronic device. After the local area network of the device and the second electronic device is disconnected, if the incoming call event is transferred from the second electronic device to the first electronic device, it can ensure that the recording continues to be recorded by the cloud to ensure that a complete call recording file is recorded.
  • the recording function of the second electronic device when the recording function is enabled on the first electronic device, the recording function of the second electronic device is disabled, and the recording button on the interface of the second electronic device cannot be clicked to take effect. Further, it is ensured that the recording of the first electronic device can be performed effectively.
  • enabling the recording function of the first electronic device means that the first electronic device is set to an automatic recording function, or the user activates the recording function through a recording key on the first electronic device.
  • the first electronic device and the second electronic device receive the incoming call event of the calling party, and respectively inquire whether they have enabled the recording function, and synchronize the query results.
  • the system determines that the recording function is enabled for the first electronic device; when the recording function is not enabled for the first electronic device and the recording function is enabled for the second electronic device, the system determines that the recording function is enabled for the second electronic device Condition.
  • the method is convenient for the first electronic device and the second electronic device to confirm synchronously that the recording function is turned on, and facilitates synchronization of recording capabilities.
  • the first electronic device includes a first distributed frame
  • the second electronic device includes a second distributed frame
  • the first electronic device and the second electronic device simultaneously receive an incoming call from a calling party
  • the event includes: the first electronic device communicates with the second distributed frame of the second electronic device through the first distributed framework, so that the first electronic device and the second electronic device receive the incoming call event of the calling party synchronously.
  • sending the second recording file to the first electronic device includes: the second electronic device synchronizing the second recording file to the first electronic device of the first electronic device through the second distributed framework.
  • a distribution framework for sending the second recording file to the first electronic device includes: the second electronic device synchronizing the second recording file to the first electronic device of the first electronic device through the second distributed framework.
  • the present invention provides a synchronization system based on distributed call recording, including: a first electronic device and a second electronic device, wherein the first electronic device and the second electronic device are in the same local area network, and the first electronic device is
  • the method includes: the first electronic device is used to receive an incoming call event from a calling party; the first electronic device is used to notify the second electronic device of the incoming call event, and the second electronic device connects to the incoming call event;
  • the first electronic device is used to display a prompt of a recording file, wherein the recording file includes a downstream audio stream from the calling party and an upstream audio stream collected by the second electronic device.
  • the method for synchronizing call recording in the embodiment of the present application can realize that when an incoming call resonates, as an electronic device capable of making a phone call, whether or not the recording function is turned on, the recording file can be obtained.
  • the first electronic device when the recording function is enabled on the first electronic device, the first electronic device is used to record the downstream audio stream from the calling party and the upstream audio stream collected by the second electronic device, And when the call is hung up, synthesize the downlink audio stream and the uplink audio stream into the first file, and use it as a reminder to save the first recording file.
  • the first electronic device is configured to display a first recording prompt on the interface, wherein the first recording prompt includes at least the first recording duration ;
  • the second electronic device is used to display a second recording prompt on the interface, and the second recording prompt includes the first recording duration and information on recording audio on the first electronic device.
  • the system determines that the automatic recording function is enabled for the first electronic device and synchronizes the recording capability of the first electronic device to the second electronic device , and the recording duration can be displayed on the second electronic device, as well as the audio recording information on the second electronic device, so that the user can feel that the second electronic device also has the function of recording, which is convenient for the user to understand the recording situation and facilitate the recording of important calls Save, improve the user experience.
  • the second electronic device when the recording function is not enabled on the first electronic device and the recording function is enabled on the second electronic device, the second electronic device is used to record the downstream audio stream and The upstream audio stream collected by the second electronic device, and when the call is hung up, the second electronic device is used to combine the downstream audio stream from the calling party and the collected upstream audio stream into a second recording file; the second electronic device It is used for sending the second recording file to the first electronic device, so that the first electronic device receives a prompt to save the second recording file.
  • the recording file can be obtained through the second electronic device.
  • the second electronic device is configured to display a third recording prompt on the interface, and the third recording prompt includes at least the second recording duration;
  • An electronic device is used to display a fourth recording prompt on the interface, and the fourth recording prompt includes information about the second recording duration and audio recording on the second electronic device.
  • the recording duration and the audio recording time on the second electronic device can be displayed on the first electronic device. Information, so that the user can feel that the first electronic device also has a recording function, which is convenient for the user to understand the recording situation, and at the same time, facilitates the storage of important call recordings, and improves the user experience.
  • the second electronic device when the call is hung up, is configured to save the second recording file to the local storage.
  • the second electronic device sends the second recording file to the first electronic device, including: the second electronic device is used to output a prompt interface, and the prompt interface includes whether to send the second recording file Synchronize to the confirmation information of the first electronic device; when the second electronic device receives the user's operation of confirming and saving on the prompt interface, it sends the second recording file to the first electronic device.
  • This method is beneficial for the user to choose whether to save the second recording file to the second electronic device according to actual needs.
  • the recording function when the recording function is not enabled on the first electronic device and the recording function is enabled on the second electronic device, when the second electronic device receives an incoming call event, the first electronic device The recording button on the control interface cannot be clicked to take effect. Further, the effective recording of the second electronic device is ensured.
  • enabling the recording function of the second electronic device enables the automatic recording function for the second electronic device, or enables the recording function enabled by the user through the recording key on the second electronic device.
  • the second electronic device when the recording function is not enabled on the first electronic device and the recording function is enabled on the second electronic device, when the first electronic device or the second electronic device exits the local area network, the second electronic device The electronic device is used to transfer incoming call events to the first electronic device for connection; the second electronic device is used to terminate the current recording and save the second recording file, so that the file can be saved in time.
  • the second electronic device is used to send the current recording information to the cloud, so as to complete the recording of the upstream audio stream and the downstream audio stream of the incoming call event streamed to the first electronic device through the cloud, and save them.
  • This method can be realized in the first After the local area network of the first electronic device and the second electronic device is disconnected, if the incoming call event is transferred from the second electronic device to the first electronic device, it can ensure that the recording continues to be recorded by the cloud to ensure that a complete call recording is recorded document.
  • the second electronic device when the recording function is enabled on the first electronic device, the second electronic device is used to control the recording function to be turned off, and the recording button on the control interface of the second electronic device cannot Click to take effect. Further, it is ensured that the recording of the first electronic device can be performed effectively.
  • enabling the recording function of the first electronic device means that the first electronic device is set to an automatic recording function, or the user activates the recording function through a recording key on the first electronic device.
  • the first electronic device and the second electronic device receive an incoming call event from the calling party, and are used to inquire whether they have enabled the recording function, and synchronize the query results.
  • the system determines that the recording function is enabled for the first electronic device; when the recording function is not enabled for the first electronic device and the recording function is enabled for the second electronic device, the system determines that the recording function is enabled for the second electronic device Case.
  • the method is convenient for the first electronic device and the second electronic device to confirm synchronously that the recording function is turned on, and facilitates synchronization of recording capabilities.
  • the first electronic device includes a first distributed framework
  • the second electronic device includes a second distributed framework
  • the first electronic device is configured to use the first distributed framework and the second
  • the second distribution framework of the electronic devices communicates so that the first electronic device and the second electronic device receive the incoming call event of the calling party synchronously.
  • the second electronic device is used to synchronize the second recording file to the first distribution framework of the first electronic device through the second distribution framework, so that the second recording file can be sent to to the first electronic device.
  • the present application also provides an electronic device, including:
  • memory to store instructions for execution by one or more processors of the device
  • the processor is configured to execute instructions, so that the electronic device executes the method executed by the first electronic device or the method executed by the second electronic device in the embodiment of the first aspect above.
  • the present application provides a computer-readable storage medium.
  • the computer-readable storage medium stores a computer program.
  • the computer program When the computer program is run by an electronic device, the electronic device executes the first electronic device in the embodiment of the first aspect. method or a method executed by the second electronic device.
  • the present application discloses a computer program product containing instructions. When it is run on a computer, it causes the computer to execute the method executed by the first electronic device or the method executed by the second electronic device in the embodiment of the first aspect. method.
  • FIG. 1a is a scene diagram of a distributed architecture of a calling system according to an embodiment of the present application
  • FIG. 1b is another scene diagram of the distributed architecture of the calling system according to an embodiment of the present application.
  • FIG. 2a is a schematic structural diagram of a first electronic device according to an embodiment of the present application.
  • FIG. 2b is a block diagram of the software structure of the first electronic device according to an embodiment of the present application.
  • Fig. 2c is a schematic diagram of the hardware structure of the second electronic device according to an embodiment of the present application
  • Fig. 3a is an interactive flow chart based on a distributed call recording synchronization method in a scenario of an embodiment of the present application
  • FIG. 3b is an incoming call prompt interface of a mobile phone and a tablet computer according to an embodiment of the present application
  • Fig. 4 is a schematic diagram of the interface after the mobile phone is connected to the phone according to an embodiment of the present application
  • FIG. 5 is a schematic diagram of the interface after the tablet computer connects to the phone according to an embodiment of the present application
  • Fig. 6 is an interactive flow chart based on the distributed call recording synchronization method under another scenario of an embodiment of the present application
  • FIG. 7 is a schematic diagram of the interface after the mobile phone is connected to the phone according to an embodiment of the present application.
  • Fig. 8 is a schematic diagram of the interface of the tablet computer connected to the phone according to an embodiment of the present application.
  • Fig. 9a is a schematic diagram of the interface when the automatic recording function is enabled on the tablet computer according to an embodiment of the present application.
  • FIG. 9b is a schematic diagram of the interface in the case where the recording function is manually enabled on the tablet computer according to an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • Fig. 11 is a block diagram of a system-on-a-chip according to some embodiments of the present application.
  • FIG. 1a schematically shows a scene diagram of a distributed architecture of a calling system according to an embodiment of the present application.
  • the scene diagram includes a calling device 101 and a called device, wherein the called device may include at least one first electronic device and at least one second electronic device capable of implementing mobile data communication with the calling device 101 .
  • the first electronic device is an electronic device with a telephone call function.
  • it may be a mobile call capability realized through a base station, such as making and receiving calls, or an IP call capability realized through a cellular network, such as WeChat voice etc.
  • the mobile phone 102 and the tablet computer 103, and the mobile phone 102 and the tablet computer 103 are in-field connections, wherein the in-field connections may be network connections in the same local area network, or Bluetooth connections.
  • the calling device 101 initiates a phone call to multiple called devices
  • the mobile phone 102 and the tablet computer 103 in the called device can simultaneously output a prompt of an incoming call event (resonance of an incoming call).
  • the mobile phone 102 and the tablet computer 103 that receive the incoming call signal confirm whether themselves have the state information of opening the automatic recording function, for example, open the state information of the automatic recording or not open the recording, and synchronize the state information with each other, and determine the recording on the mobile phone 102 Or record on the tablet 103 .
  • the mobile phone 102 turns on the automatic recording function
  • no matter whether the tablet computer 103 turns on the automatic recording function then the mobile phone 102 or the tablet computer 103 is determined to be the mobile phone with the automatic recording function turned on.
  • the mobile phone 102 or the tablet computer determines that the recording function is enabled on the tablet computer.
  • the mobile phone 102 when the mobile phone 102 turns on the recording function, no matter the incoming call event is connected by the mobile phone 102 or the tablet computer 103, that is, the call, the mobile phone 102 will record the downstream audio stream from the caller's device, and record The upstream audio stream collected by the mobile phone 102 or the tablet computer 103 .
  • the mobile phone 102 When the call is hung up, the mobile phone 102 synthesizes the uplink audio stream and the downlink audio stream into a recording file and saves it in the local memory.
  • the tablet computer 103 connects the incoming call time, during the recording process, information such as the recording duration can be displayed on the interface of the mobile phone 102, and information such as the recording duration and the recording of the mobile phone can be displayed on the interface of the tablet computer 103, and the user can According to the content displayed on the interface, you can know the recording duration and the device currently recording.
  • the tablet computer 103 When the mobile phone 102 does not open the recording function, and the tablet computer opens the recording function, if the user uses the tablet computer 103 to connect to the incoming call event, that is, the conversation, then the tablet computer 103 records the downstream audio stream from the mobile phone and is collected by the tablet computer. upstream audio stream. When the call is hung up, the tablet computer 103 synthesizes the upstream audio stream and the downstream audio stream into a recording file, and saves it in the memory of the tablet computer 103 . In addition, the tablet computer 103 displays recording prompt information such as the recording duration on the interface, and the mobile phone 102 displays the recording duration and the recording prompt information that the tablet computer is recording on the interface. device of. Moreover, the embodiment of the present application can realize how to display the recording function of the call interface synchronously and how to save the recording files in the near-field range when the operator's call is transferred between different devices in the context of distributed calls. Save important recording data.
  • the mobile phone is used as the first electronic device
  • the tablet computer is used as the second electronic device for illustration.
  • the first electronic device may also be a tablet computer or a notebook computer with mobile communication capabilities, or a wearable electronic device such as a watch.
  • the second electronic device may also be an electronic device with mobile communication capabilities, or an electronic device without mobile communication capabilities, but capable of communicating with the first electronic device through network data, for example, a mobile phone, a tablet computer, a notebook computer, a super Mobile personal computer, personal digital assistant (personal digital assistant, PDA), TV, or wearable electronic devices such as watches, wristbands, etc.
  • PDA personal digital assistant
  • the incoming call resonance can be sent by the server to the mobile phone and the tablet computer at the same time to realize the incoming call resonance of the mobile phone and the tablet computer.
  • FIG. 1b schematically shows another scene diagram of the distributed architecture of the calling system according to the embodiment of the present application.
  • the server 106 can send an incoming call signal to the mobile phone 104, and the mobile phone 104 and the watch 105 can be connected wirelessly, such as Bluetooth, and the mobile phone 104 can send an incoming call signal to the watch 105 through Bluetooth, so that the mobile phone 104 and the watch 105 realize Incoming call resonance.
  • the mobile phone and watch enable the recording function on different devices.
  • the process of call recording and file saving is as described above, and will not be described here.
  • the following describes the synchronization method based on distributed call recording in the embodiment of the present application in combination with the specific structures of the first electronic device and the second electronic device.
  • FIG. 2a shows a schematic structural diagram of a first electronic device according to an embodiment of the present application.
  • the first electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus) , USB) connector 130, charging management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100 .
  • the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components.
  • the illustrated components can be realized in hardware, software or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processing unit
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller video codec
  • digital signal processor digital signal processor
  • baseband processor baseband processor
  • neural network processor neural-network processing unit
  • the processor 110 can generate an operation control signal according to the instruction opcode and the timing signal, and complete the control of fetching and executing the instruction.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is a cache memory.
  • the memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
  • processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transmitter (universal asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input and output (general-purpose input/output, GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input and output
  • subscriber identity module subscriber identity module
  • the I2C interface is a bidirectional synchronous serial bus, including a serial data line (serial data line, SDA) and a serial clock line (derail clock line, SCL).
  • processor 110 may include multiple sets of I2C buses.
  • the processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flashlight, the camera 193 and the like through different I2C bus interfaces.
  • the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to realize the touch function of the electronic device 100 .
  • the I2S interface can be used for audio communication.
  • processor 110 may include multiple sets of I2S buses.
  • the processor 110 may be coupled to the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 .
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface, so as to realize the function of answering calls through the Bluetooth headset.
  • the PCM interface can also be used for audio communication, sampling, quantizing and encoding the analog signal.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 can transmit the acquired downlink audio stream data and uplink audio stream data to an electronic device wirelessly connected to the first electronic device through the wireless communication module 160, so that the recorded audio stream can be saved.
  • the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • a UART interface is generally used to connect the processor 110 and the wireless communication module 160 .
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to realize the Bluetooth function.
  • the audio module 170 can transmit the audio signal to the wireless communication module 160 through the UART interface, so as to realize the function of obtaining the downstream audio stream through the electronic device connected with Bluetooth.
  • the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 .
  • MIPI interface includes camera serial interface (camera serial interface, CSI), display serial interface (display serial interface, DSI), etc.
  • the processor 110 communicates with the camera 193 through the CSI interface to realize the shooting function of the electronic device 100 .
  • the processor 110 communicates with the display screen 194 through the DSI interface to realize the display function of the electronic device 100 .
  • recording information can be displayed, for example, recording information such as recording duration and/or the name of the device being recorded.
  • the interface connection relationship between the modules shown in the embodiment of the present invention is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 .
  • the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
  • the wireless communication function of the electronic device 100 can be realized by the antenna 1 , the antenna 2 , the mobile communication module 150 , the wireless communication module 160 , a modem processor, a baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 may be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
  • Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on the electronic device 100 .
  • the mobile communication module 150 can be used to realize the transmission of call data between two electronic devices.
  • the party device transmits uplink audio stream data.
  • the wireless communication module 160 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wireless Fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite, etc. applied on the electronic device 100.
  • WLAN wireless local area networks
  • System global navigation satellite system, GNSS
  • frequency modulation frequency modulation, FM
  • near field communication technology near field communication, NFC
  • infrared technology infrared, IR
  • the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the electronic device 100 can realize the connection with the local area network of another electronic device through the wireless communication module 160 .
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC , FM, and/or IR techniques, etc.
  • GSM global system for mobile communications
  • GPRS general packet radio service
  • code division multiple access code division multiple access
  • CDMA broadband Code division multiple access
  • WCDMA wideband code division multiple access
  • time division code division multiple access time-division code division multiple access
  • LTE long term evolution
  • BT GNSS
  • WLAN NFC
  • FM FM
  • IR techniques etc.
  • the GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a Beidou navigation satellite system (beidou navigation satellite system, BDS), a quasi-zenith satellite system (quasi -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • Beidou navigation satellite system beidou navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • the display screen 194 is used to display images, videos and the like.
  • the display screen 194 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc.
  • the electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.
  • the display screen can display an incoming call reminder interface and an interface with recording information displayed after the incoming call is connected.
  • a recording button can be displayed. The user can click the recording button to manually start the recording function, and can also display the recording duration, recording time, and recording time. Device name and other recording information, so that the user can control the recording function according to the interface content displayed on the display screen, or understand the status information of the recording, etc.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, so as to expand the storage capacity of the electronic device 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. Such as saving music, video, recording files and other files in the external memory card.
  • the internal memory 121 may be used to store computer-executable program codes including instructions.
  • the internal memory 121 may include an area for storing programs and an area for storing data.
  • the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, a recording function, etc.) and the like.
  • the storage data area can store data created during the use of the electronic device 100 (such as uplink audio data, downlink audio data, phonebook, etc.) and the like.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
  • the electronic device 100 can implement audio functions through the audio module 170 , the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example recording etc.
  • the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal.
  • the audio module 170 may also be used to encode and decode audio signals.
  • the audio module 170 may be set in the processor 110 , or some functional modules of the audio module 170 may be set in the processor 110 .
  • Receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
  • the electronic device 100 receives a call or a voice message, the voice transmitted by the calling device can be heard through the receiver 170B.
  • the microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals.
  • the user can approach the microphone 170C to make a sound through the human mouth, and input the sound signal into the microphone 170C to realize the collection of upstream audio stream.
  • the pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal.
  • pressure sensor 180A may be disposed on display screen 194 .
  • the recording function can be turned on manually.
  • the touch sensor 180K is also called “touch device”.
  • the touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to the touch operation can be provided through the display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the position of the display screen 194 .
  • the motor 191 can generate a vibrating reminder.
  • the motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, after receiving an incoming call signal, a vibration is generated to remind the user that a call needs to be answered.
  • FIG. 2b shows a software structural block diagram of the first electronic device according to the embodiment of the present application.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces.
  • the Android system is divided into four layers, which are application program layer, application program framework layer, Android runtime and system library, and kernel layer from top to bottom.
  • the Android system is divided into five layers, from top to bottom are application program layer, application program framework layer, Android runtime (Android runtime) and system library, hardware abstraction layer and kernel layer.
  • the application layer can consist of a series of application packages.
  • the application layer may include call applications and the like.
  • applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, and recording may also be included.
  • the user can obtain the call interface during the call through the call application program, and realize the logical operation of the call process.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer may include a communication protocol framework, a rendering module, a distributed framework, an audio framework, and a file management framework.
  • the communication protocol framework belongs to a part of the phone manager and is used to provide the communication function of the electronic device 100 . For example, the management of call status (including connected, hung up, etc.).
  • the drawing and rendering module is part of the video system, including visual controls, such as controls for displaying text, controls for displaying pictures, and so on.
  • the view system can be used to build applications.
  • a display interface can consist of one or more views. For example, including the recording interface during a call, it may include a view for displaying text and a view for displaying pictures.
  • a distributed framework for realizing data synchronization of devices within a local area network For example, synchronizing incoming call signals, making two devices in the LAN resonate for incoming calls, synchronizing recording files, etc.
  • Audio frameworks can belong to content providers, which are used to store and retrieve data and make these data accessible to applications.
  • the data may include recording duration, recording device name, video, image, audio, calls made and received, etc.
  • the file management framework is part of the resource manager and is used to provide various resources for applications, such as localized strings, icons, pictures, layout files, recording files, video files, etc.
  • the Android Runtime includes core library and virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.
  • the core library consists of two parts: one part is the function function that the java language needs to call, and the other part is the core library of Android.
  • the application layer and the application framework layer run in virtual machines.
  • the virtual machine executes the java files of the application program layer and the application program framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • the hardware abstraction layer is an interface layer between the operating system kernel and the hardware circuit, which is used to abstract the hardware and provide a virtual hardware platform for the operating system.
  • the hardware abstraction layer may include a transmission channel module, a display processing module, a trust ring, an audio stream processing module, an external storage module, and the like.
  • the kernel layer, system security, memory management, process management, network protocol stack and driver model all depend on the kernel layer. At least it can include Inter Process Communication (IPC), display driver, soft bus, audio driver, and storage driver.
  • IPC Inter Process Communication
  • the kernel layer processes the signal into an incoming call event
  • the application layer sequence framework layer obtains the incoming call event through the transmission channel module of the hardware layer
  • the application layer sequence layer calls the communication protocol framework to obtain the incoming call event
  • Phone application program at the same time, the kernel layer starts the display screen 194 through the display driver, so that the corresponding interface of the phone application layer is displayed on the display screen 194, and the user can answer the call or hang up the call through the answer or hang up key on the call interface .
  • the electronic device 100 can communicate with the electronic device A through the local area network, and after receiving the call, the incoming call event is synchronized to the electronic device connected to it through the distributed framework, such as the electronic device A, two Electronic equipment realizes incoming call resonance.
  • the phone APP of the electronic device 100 may include an automatic recording and monitoring module, through which the status information of whether the automatic recording function is enabled on the current device is monitored. (The electronic device A may also synchronize its state information to the electronic device 100 through the distributed framework).
  • electronic device 100 can obtain the upstream audio stream data collected by electronic device A through wireless communication module 160, and at the same time, electronic The device 100 obtains the downlink audio stream through the mobile communication module 150, and combines the uplink audio stream data and the downlink audio data through the audio stream processing module to form a recording file. After the call ends, the recording file is saved through the external storage module.
  • FIG. 2c shows a schematic diagram of a hardware structure of a second electronic device according to an embodiment of the present application, and the second electronic device 200 may be a tablet computer.
  • the second electronic device 200 will be specifically described below. It should be understood that the second electronic device 200 shown in FIG. 2c is only an example, and the second electronic device 200 may have more or fewer components than those shown in FIG. 2c, and may combine two or more components, or may have different component configurations.
  • the various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application specific integrated circuits.
  • the hardware structure of the second electronic device may be the same as the structure shown in Figure 2a
  • the software structure may be the same as the structure shown in Figure 2b
  • the hardware structure may also be different from the structure shown in Figure 2a .
  • the second electronic device 200 may include: a processor 210 , a memory 220 , a wireless communication module 230 , an audio module 240 , a sensor module 250 , a display 260 and a power supply module.
  • the audio module 240 includes a speaker 241 and a microphone 242 .
  • the sensor module 250 includes a pressure sensor 251 and a touch sensor 252 .
  • Processor 210 may be used to read and execute computer readable instructions.
  • the processor 210 may include a controller, an arithmetic unit and registers.
  • the controller is mainly responsible for instruction decoding, and sends out control signals for the operation corresponding to the instruction.
  • the arithmetic unit is mainly responsible for saving the register operands and intermediate operation results temporarily stored during the execution of the instruction.
  • the hardware architecture of the processor 201A may be an application-specific integrated circuit (ASIC) architecture, a MIPS architecture, an ARM architecture, or an NP architecture, and the like.
  • ASIC application-specific integrated circuit
  • the processor 210 can be used to analyze the incoming call signal received by the wireless communication module 230, such as answering the call request sent by the sender device, and the status information sent by the first electronic device whether to enable the recording function, the downlink Audio stream and other information.
  • the processor 201A can be used to perform processing operations according to the analysis results, such as invoking the display 260 to display a call interface, where the call interface can include the recording duration and the name of the recording device. It is also possible to determine whether the audio module needs to be invoked for recording through the obtained status information of whether the recording function is enabled, and to save the recording file after the call ends.
  • the memory 220 is coupled with the processor 210 for storing various software programs and/or sets of instructions.
  • memory 220 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other non-volatile solid-state storage devices.
  • the memory 202A can store operating systems, such as embedded operating systems such as uCOS, VxWorks, and RTLinux.
  • the memory 220 can also store information such as the name of the device connected to it and the recording capability of the device, and then when the device corresponding to the stored device name is in a call, the recording function is turned on, and the call interface is displayed on the display 260.
  • the call interface It can display that the device corresponding to the device name is recording.
  • the wireless communication module 230 can provide applications on the electronic device 200 including wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (wireless fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), frequency modulation (frequency) modulation, FM), near field communication (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • the wireless communication module 230 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 230 receives electromagnetic waves, frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 210 .
  • the electronic device 200 can realize network connection with other electronic devices through the wireless communication module 230, for example, realize connection with the local area network of the electronic device 100, so as to realize functions such as call resonance and recording capability synchronization.
  • the electronic device 200 may implement audio functions through an audio module 240, a speaker 241, a microphone 242, and an application processor. Such as music playback, recording, etc.
  • the audio module 240 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal.
  • the audio module 240 may also be used to encode and decode audio signals. And transmit the encoded or decoded audio to the processor 210, so that the processor 210 performs speech recognition based on the encoded or decoded audio, and determines the content corresponding to the audio, such as the audio stream during a call.
  • the audio module 240 may be set in the processor 210 , or some functional modules of the audio module 240 may be set in the processor 210 .
  • the microphone 242 also called “microphone” or “microphone” is used to convert sound signals into electrical signals.
  • the user can put his mouth close to the microphone 242 to make a sound, input the sound signal to the microphone 242, and the microphone 242 further sends the sound signal to the processor 210, so that the processor 210 can recognize the voice content.
  • the audio module 240 can also record the audio data input from the microphone 242, so as to save the call record file.
  • the pressure sensor 251 is used for sensing pressure signals, and can convert the pressure signals into electrical signals.
  • pressure sensors 251 such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors.
  • a capacitive pressure sensor may be comprised of at least two parallel plates with conductive material. When a force is applied to the pressure sensor 251, the capacitance between the electrodes changes.
  • the electronic device 200 determines the intensity of pressure according to the change in capacitance.
  • the pressure sensor 251 may be disposed on the surface of the electronic device.
  • the electronic device 200 When a pressing or touching operation acts on the pressure sensor 251, the electronic device 200 detects the strength of the pressing or touching operation according to the pressure sensor 251, and transmits the detected pressing or touching operation strength value to the processor 210, and the processor 210 further Execute the corresponding command. For example, when the pressure value of the user pressing the pressure sensor 251 reaches a preset value, the processor 210 turns on the voice assistant function to make a voice call; logo. The electronic device 200 may also calculate the pressed or touched position according to the detection signal of the pressure sensor 251 .
  • the processor 210 can obtain the pressure value and the pressed position through the pressure sensor 251, and determine that the user wants to answer the call or hang up the call, or turn on the recording function Or turn off the recording function, etc.
  • the touch sensor 252 is also called “touch device”.
  • the touch sensor 252 is used to detect a touch operation on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. For example, user click or double click events etc.
  • the touch sensor 252 may also be disposed on the surface of the electronic device 200 , which is different from the position of the pressure sensor 251 .
  • the power module 270 can be used to control the power supply of the power supply to the electronic device 200 .
  • the display 260 includes a display screen for displaying images.
  • a call interface can be displayed, and the interface can include the current recording duration, or include the recording duration and the prompt information of the device currently recording, for example, the electronic device 100 is recording .
  • the implementation of the embodiments of the present application is based on the fact that when the caller sends an incoming call signal, the first electronic device and the second electronic device can receive the incoming call event synchronously, and simultaneously perform an incoming call notification, so that the user can select one of the devices for communication.
  • the first electronic device is a device with a mobile phone calling function, that is, a main device (the first electronic device has mobile data communication capability).
  • the second electronic device may or may not have the mobile phone calling function, which is not limited here.
  • the method is applied to a system composed of a mobile phone (first electronic device) and a tablet computer (second electronic device) as an example.
  • the mobile phone and the tablet computer are used as the called party equipment, and the mobile phone can be as shown in Figure 2a and Figure 2b
  • the first electronic device shown, the tablet computer may be a second electronic device with structures as shown in Fig. 2a, Fig. 2b and Fig. 2c.
  • the mobile phone and the tablet computer can be two electronic devices associated based on a trust ring. Then consider implementing a distributed call recording synchronization method to improve the security of user calls.
  • the scene where the mobile phone turns on the recording function further includes: the mobile phone turns on the sound recording function, and the tablet computer turns on the sound recording function, and the mobile phone turns on the sound recording function, and the tablet computer does not turn on the sound recording function.
  • the following describes the synchronization method based on distributed call recording in the embodiment of the present application in combination with two scenarios.
  • FIG. 3 a shows an interactive flow chart of a method for synchronizing calls based on distributed call recording in a scenario according to an embodiment of the present application.
  • the method is applied in a system composed of a mobile phone and a tablet computer, as shown in Figure 3a, including a mobile phone and a tablet computer, wherein the mobile phone includes a call interface 11 (display screen), a recording synchronization module 12, a distributed framework 13, and a setting module 14 and filesystem 15.
  • the tablet computer includes a setting module 21, a distributed framework 22, a recording synchronization module 23 and a call interface 24 (display screen).
  • the flowchart includes S301-S319.
  • the server sends an incoming call signal, and the mobile phone obtains the incoming call signal.
  • the mobile phone can obtain the incoming call signal through the mobile communication module 150 as shown in FIG.
  • the distributed framework 13 synchronizes the incoming call event to the distributed framework 22 of the tablet computer, so that the mobile phone and the tablet computer can simultaneously realize the reminder of the incoming call event, such as ringing, vibration, interface prompting, etc.
  • the mobile phone and tablet computer After the mobile phone and tablet computer receive an incoming call event, before connecting the call, the mobile phone and tablet computer need to confirm the status information of the recording, for example, whether to enable automatic recording or not to enable automatic recording, etc., and synchronize to confirm that the recording is performed by the mobile phone Or record from a tablet.
  • the process of determining the recording device and data synchronization will be described in S303-S308.
  • the distributed framework 13 of the mobile phone notifies the recording synchronization module 12 of the incoming call event, and the distributed framework 22 notifies the recording synchronization module 23 of the incoming call event.
  • the recording synchronization module 12 of the mobile phone inquires the recording enable state request from the setting module 14
  • the recording synchronization module 23 of the tablet computer inquires the recording enable state request from the setting module 21 .
  • the setting module 14 inquires about the state information of enabling the recording function, and the setting module 21 inquires that the recording function is not enabled status information for the recording function,
  • the recording synchronization module 12 obtains the status information that the recording function is enabled, and the recording synchronization module 23 obtains the status information that the recording function is not enabled.
  • the recording synchronization module 12 sends a request for recording capability synchronization to the distributed framework 13.
  • the recording capability is synchronized.
  • the distributed framework 13 synchronizes the status information and device name of the recording function to the distributed framework 22, so that the name of the recording device can be displayed on the call interface, for example, when the mobile phone A is recording and starting.
  • the distributed framework 22 sends the recording capability to the voice synchronization module 23, and the distributed framework 13 caches the recording capability of the tablet computer, that is, if the recording function of the mobile phone is enabled, whether the recording function of the tablet computer can be retained.
  • the function of enabling recording on the tablet computer can be turned off, that is, on the interface, the recording button is grayed out, and the user cannot use the recording button to record. Turn recording on or off on your tablet.
  • the recording capabilities of the mobile phone and the tablet are synchronized, the information status of the recording function enabled by the mobile phone is synchronized to the tablet computer.
  • the interface for answering incoming calls is displayed on the mobile phone and the tablet computer.
  • FIG. 3b exemplarily shows an incoming call prompt interface of a mobile phone and a tablet computer.
  • (1) in Figure 3b is the incoming call prompt interface of the mobile phone
  • (2) in Figure 3b is the incoming call prompt interface of the tablet computer.
  • the incoming call prompt interface is output, and the user can answer the call through the accept key on the prompt interface of the mobile phone, or through the accept key on the tablet computer.
  • the incoming call resonance of the mobile phone and the tablet computer may also be directly sent by the server to the mobile phone and the tablet computer, which is not limited here.
  • the main description is to answer the call on the tablet computer. Scenes.
  • the recording synchronization module 23 can input the obtained recording capability to the phone application program, so as to update the call interface.
  • the recording capability information may include the information of enabling the recording function of the mobile phone and the name of the mobile phone, such as Magic3. After the tablet computer obtains the recording capability of the mobile phone, it will output corresponding information on the interface of answering the call, so that the user can know the recording situation on the call interface of the tablet computer.
  • the tablet computer When the tablet computer connects to the call, it will inform the mobile phone of the notification of the connected call, as shown in 310-313 in Figure 3a.
  • the mobile phone and the tablet computer realize the connection notification through the distributed framework, and the call interface is updated on the mobile phone.
  • S309 and S310-S313 may be executed at the same time, and do not represent a sequential order. In this way, after the user answers the call, he cannot perceive the order in which the mobile phone and the tablet computer update the call interface.
  • FIG. 4 exemplarily shows a schematic interface of the mobile phone after the call is connected.
  • the interface 410 includes a recording key 411 that can enable or disable the recording function.
  • the position corresponding to the recording key displays the recording duration, for example, "01:03" seconds.
  • other function keys can also be displayed on the interface 410, for example, "wait”, “add call”, “video call”, “mute”, "contact”, “dial pad”, “headphone” and hang up
  • the phone's function key "hang up", and the "retract” function key for transferring the incoming call flow to the mobile phone, etc. Users can achieve desired effects through these function keys.
  • a recording prompt icon 412 can be displayed on the interface 410, and the user can also know that the mobile phone is recording through the icon.
  • FIG. 5 exemplarily shows a schematic interface of the tablet computer after the phone is connected.
  • the interface 510 includes a recording key 511 that can enable or disable the recording function.
  • the recording key on the tablet computer is turned off to enable or disable the recording function, that is, it is grayed out.
  • the position corresponding to the recording key 511 displays the recording duration, such as "01:03" seconds, and which device is recording, such as "Magic3 is recording", and the user can determine the current recording by observing the device name. safe.
  • function keys can also be displayed on the interface 510, for example, "wait”, “add call”, “video call”, “mute”, “contact”, “dial pad”, “headphone” and hang up
  • the function key "hang up” of the phone, and the function key “return to mobile phone” for disconnecting, transferring the call to the mobile phone, etc. Users can achieve desired effects through these function keys.
  • the tablet computer will obtain the voice input by the user. Specifically, the voice input by the user can be obtained through the microphone of the tablet computer.
  • the audio module of the tablet computer converts the sound signal into an electrical signal (uplink audio stream) and transmits To the recording synchronization module 23.
  • the recording synchronization module 23 sends the upstream audio stream to the distributed framework 22.
  • the distributed framework 22 synchronizes the upstream audio stream to the distributed framework 13 on the mobile phone side.
  • the distributed framework 13 transmits the upstream audio stream to the recording synchronization module 12.
  • S314-S316 and S310-S312 can be performed simultaneously.
  • the recording synchronization module 12 also needs to obtain the upstream audio stream sent by the calling device.
  • the recording synchronization module merges the upstream audio stream and the downstream audio stream.
  • the recording ends, and the recording synchronization module sends the merged complete recording file to the file system 15 (for example, the internal memory in Figure 2a, which can also be stored in the external memory through the external memory interface) for storage.
  • the file system 15 for example, the internal memory in Figure 2a, which can also be stored in the external memory through the external memory interface
  • the synchronization of the recording ability between the mobile phone and the tablet computer can be realized, so that the preservation of important files can be realized.
  • Recording information can be displayed synchronously on the device with recording function, or on the call interface of the mobile phone, such as the recording time, the name of the recording device (Magic3), and the status (recording), so that users can timely Find out if your current recording equipment is capable of keeping your information secure.
  • the explanation is carried out by taking the automatic recording function on the mobile phone as an example.
  • the user can also use the recording button on the interface, for example , the recording key 411 or the recording key 511 turns on or off the recording function, and after it is confirmed to be turned on, the recording function is synchronized.
  • the recording function is manually enabled, the synchronization process of the recording capability may refer to S306 and S307 in FIG. 3a.
  • the interface diagrams of the mobile phone and the tablet computer can be shown in Figure 4 and Figure 5.
  • the process of collecting audio streams, merging recording files, and saving recording files can refer to S314-S319 in FIG. 3a, and will not be described in detail.
  • FIG. 6 shows an interactive flowchart of a distributed call recording synchronization method in another scenario of the embodiment of the present application.
  • This method is applied in the system that is made up of mobile phone and tablet computer, as shown in Figure 6, comprises mobile phone and tablet computer, and wherein mobile phone comprises call interface 11 (display screen), recording synchronization module 12, distributed framework 13, setting module 14 and filesystem 15.
  • the tablet computer includes a setting module 21, a distributed framework 22, a recording synchronization module 23, a call interface 24 (display screen) and a file system.
  • the flowchart includes S601-S626.
  • S601 to S611 are the process of synchronizing the recording capability of each module of the mobile phone and the tablet computer before the interface is displayed. Wherein, the process of S601-S605 is the same as that of S301-S305, and will not be described in detail here.
  • the mobile phone informs the distributed framework 22 of the panel computer that the automatic recording function (recording capability) is not opened through the distributed framework 13, so that the tablet computer confirms that the mobile phone does not open the recording function.
  • the distributed framework 22 sends the information that the recording function of the mobile phone is not turned on to the recording synchronization module 23.
  • the recording synchronization module 23 determines that the recording is performed by itself according to the fact that the recording function is enabled by itself, but the recording function of the mobile phone is not enabled.
  • the recording synchronization module 23 sends a recording capability synchronization request to the distributed framework 22.
  • the distributed framework 22 synchronizes the recording capability to the distributed framework 13.
  • the process of synchronizing the recording ability includes the device name, that is, the name of the tablet computer, such as tablet A, and information about enabling the recording function of the tablet computer.
  • the mobile phone obtains the name of the recording device, and displays the corresponding recording information.
  • the distributed framework 23 sends the recording capability to the recording synchronization module 12, so that the recording synchronization module updates the incoming call prompt interface, and the recording synchronization module 23 of the tablet computer updates the call interface to display the incoming call prompt interface. Realize the synchronous recording capability of the tablet computer and the mobile phone, and display the call prompt interface at the same time.
  • the schematic diagram of the interface can be referred to as shown in FIG. 3b.
  • each module can refer to S612-S626.
  • S612-S615 are the same as S310-S313 in Fig. 3a.
  • the call interface of the mobile phone and the tablet computer can be referred to as shown in FIG. 7 and FIG. 8 .
  • FIG. 7 shows a schematic diagram of the interface of the mobile phone after the call is connected.
  • the interface 710 includes a recording key 711 that can enable or disable the recording function.
  • the corresponding position of the recording key displays the recording duration, such as "01:03" seconds, and a text prompt message "Tablet A is recording", and the user confirms whether the current recording is safe according to the prompt message.
  • the recording function of the tablet computer since the recording function of the tablet computer is enabled, the function of enabling or disabling the recording of the recording key 711 will be disabled, that is, grayed out.
  • function keys can also be displayed on the interface 710, for example, "wait”, “add call”, “video call”, “mute”, “contact”, “dial pad”, “headset” and hang up
  • the phone's function key "hang up”, and the "retract” function key for transferring the incoming call flow to the mobile phone, etc. Users can achieve desired effects through these function keys.
  • FIG. 8 shows a schematic diagram of the interface of the tablet computer after the phone is connected.
  • the interface 810 includes a recording key 811 that can enable or disable the recording function.
  • the position corresponding to the recording key 811 displays the recording duration, for example, "01:03" seconds.
  • other function keys can also be displayed on the interface 710, for example, "wait”, “add call”, “video call”, “mute”, "contact”, “dial pad”, “headset” and hang up
  • the function key "hang up” of the phone, and the function key "return to mobile phone” for disconnecting, transferring the call to the mobile phone, etc. Users can achieve desired effects through these function keys.
  • S617-S626 is the process of saving the recording file.
  • the mobile phone synchronizes the downlink audio stream to the recording synchronization module through the distributed framework 13, and this process can further be that the distributed framework 13 synchronizes the downlink voice stream to the distributed framework 22, and then the distributed framework 22 inputs and sends the downlink voice stream To the recording synchronization module 23. , in addition, the recording synchronization module 23 also acquires the upstream audio stream corresponding to the voice input by the user.
  • the recording synchronization module 23 merges the upstream audio stream and the downstream audio stream.
  • the call interface 24 when the user hangs up the call through the interface, the call interface 24 notifies the recording synchronization module to stop recording.
  • the recording synchronization module 23 sends the complete recording file recorded during the call to the file system for storage.
  • the tablet computer in order to be able to save the file on the mobile phone, after the call ends, can display confirmation information through the interface, whether to synchronize to the mobile phone, and after receiving the user's confirmation of synchronization information, the The recording files are synchronized to the mobile phone for storage.
  • confirmation information For the specific implementation process, refer to S620-S625.
  • the recording synchronization module 23 stops recording, and sends a synchronization file prompt message to the call interface.
  • the call interface displays an option of whether to synchronize the recording file, so that the user can choose to synchronize to the mobile phone for storage, or to save it on the mobile phone.
  • the content displayed on the call interface can also be displayed differently according to the two situations in which the tablet computer automatically turns on the recording function or manually turns on the recording function. It can also be the same in some embodiments.
  • Fig. 9a exemplarily shows a schematic diagram of the interface when the automatic recording function is enabled on the tablet computer.
  • a prompt box pops up on the main interface of the tablet computer to remind the customer to confirm, such as "the recording file has been saved to the current device, do you want to synchronize the recording file to the mobile phone?" and display the options "yes” and "no" for The user selects, and when the user selects Yes, the call interface executes S622. If you choose No, it ends.
  • FIG. 9b exemplarily shows a schematic diagram of an interface when the recording function is manually enabled on the tablet computer.
  • a prompt box pops up on the call interface of the tablet computer to remind the customer to confirm, such as "the recording file has been saved to the current device, do you want to synchronize the recording file to the mobile phone?" and display options "yes” and "no" for The user selects, and when the user selects Yes, the call interface executes S622. If you choose No, it ends.
  • the call interface 24 notifies the recording synchronization module 23 to synchronize the recording file.
  • the recording synchronization module 23 sends a request to the distributed framework 22 for recording file synchronization.
  • the distributed framework 22 synchronizes the recording file to the distributed framework 13.
  • the recording synchronization module 12 obtains the recording file from the distributed framework 13.
  • the recording synchronization module 12 sends it to the file system 15 for storage.
  • the tablet computer when the user is talking on the tablet computer, if the network connection between the mobile phone and the tablet computer is disconnected, for example, the mobile phone is taken out, the tablet computer can transfer the call flow to the mobile phone so that the user can continue Complete the call on your phone. At this point, the recording on the tablet stops. And save the recording file locally. The whole recording is over.
  • the tablet computer when the mobile phone and the tablet computer are disconnected from the network and the recording on the tablet computer stops, and the mobile phone is still talking, in order to ensure the integrity of the entire call recording, the tablet computer can also record Stream to the cloud server, and the cloud server will continue to complete the recording, and after the call on the mobile phone is over, it will request confirmation information from the mobile phone and the tablet whether to synchronize the complete recording file, so that when the LAN is disconnected, the call will be transferred to the mobile phone , can still ensure complete recording during the entire call and improve user experience.
  • the present application also provides an electronic device, including:
  • memory 1010 for storing instructions to be executed by one or more processors of the device
  • the processor 1020 is configured to execute the method explained with reference to FIG. 3 a and FIG. 6 in the above embodiments.
  • the present application also provides a computer-readable storage medium.
  • the computer-readable storage medium stores a computer program.
  • the processor executes the method explained in 3a and FIG. 6 in the above embodiment.
  • the present application also provides a computer program product containing instructions, and when the computer program product is run on an electronic device, the processor is made to execute the method shown in 3a and FIG. 6 in the above embodiment.
  • SoC 1300 includes: interconnection unit 1350, which is coupled to application processor 1310; system agent unit 1380; bus controller unit 1390; integrated memory controller unit 1340; 1320, which may include integrated graphics logic, an image processor, an audio processor, and a video processor; a static random access memory (Static Random Access Memory, SRAM) unit 1330; a direct memory access (DMA) unit 1360.
  • coprocessor 1320 includes a special purpose processor such as, for example, a network or communication processor, compression engine, GPGPU, high throughput MIC processor, or embedded processor, among others.
  • Static Random Access Memory (SRAM) unit 1330 may include one or more computer-readable media for storing data and/or instructions.
  • Computer-readable storage media may have instructions stored thereon, and specifically, both temporary and permanent copies of the instructions.
  • the instruction may include: when executed by at least one unit in the processor, causing the Soc1300 to execute the method for establishing a device communication connection according to the above-mentioned embodiment, for details, refer to the method explained in the above-mentioned embodiment 3a and FIG. 6 , and details will not be repeated here. .
  • Embodiments of the mechanisms disclosed in this application may be implemented in hardware, software, firmware, or a combination of these implementation methods.
  • Embodiments of the present application may be implemented as a computer program or program code executed on a programmable system comprising at least one processor, a storage system (including volatile and non-volatile memory and/or storage elements) , at least one input device, and at least one output device.
  • Program code can be applied to input instructions to perform the functions described herein and to generate output information.
  • the output information may be applied to one or more output devices in known manner.
  • a processing system includes any computer having a processor such as, for example, a Digital Signal Processor (DSP), a microcontroller, an Application Specific Integrated Circuit (ASIC), or a microprocessor. system.
  • DSP Digital Signal Processor
  • ASIC Application Specific Integrated Circuit
  • the program code can be implemented in a high-level procedural language or an object-oriented programming language to communicate with the processing system.
  • Program code can also be implemented in assembly or machine language, if desired.
  • the mechanisms described in this application are not limited in scope to any particular programming language. In either case, the language may be a compiled or interpreted language.
  • the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof.
  • the disclosed embodiments can also be implemented as instructions carried by or stored on one or more transitory or non-transitory machine-readable (e.g., computer-readable) storage media, which can be executed by one or more processors read and execute.
  • instructions may be distributed over a network or via other computer-readable media.
  • a machine-readable medium may include any mechanism for storing or transmitting information in a form readable by a machine (e.g., a computer), including, but not limited to, floppy disks, compact discs, compact discs, Compact Disc Read Only Memory , CD-ROMs), magneto-optical disk, read-only memory (Read Only Memory, ROM), random access memory (RAM), erasable programmable read-only memory (Erasable Programmable Read Only Memory, EPROM), electrically erasable Programmable read-only memory (Electrically Erasable Programmable Read Only Memory, EEPROM), magnetic card or optical card, flash memory, or used to transmit information in the form of electricity, light, sound or other forms of transmission using the Internet (for example, carrier waves, infrared signals Tangible machine-readable storage of digital signals, etc.).
  • a machine-readable medium includes any type of machine-readable medium suitable for storing or transmitting electronic instructions or information in a form readable by a machine (eg, a computer).
  • each unit/module mentioned in each device embodiment of this application is a logical unit/module.
  • a logical unit/module can be a physical unit/module, or a physical unit/module.
  • a part of the module can also be realized with a combination of multiple physical units/modules, the physical implementation of these logical units/modules is not the most important, the combination of functions realized by these logical units/modules is the solution The key to the technical issues raised.
  • the above-mentioned device embodiments of this application do not introduce units/modules that are not closely related to solving the technical problems proposed by this application, which does not mean that the above-mentioned device embodiments do not exist other units/modules.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)

Abstract

The present application belongs to the technical field of electronic devices. Provided are a recording synchronization method based on a distributed call, and an electronic device and a computer-readable storage medium. The method is applied to a system, which comprises a first electronic device and a second electronic device, wherein the first electronic device and the second electronic device are in a near-field connection. The method comprises: if a first electronic device enables a recording function, when a second electronic device answers an incoming call event, the first electronic device being capable of synchronizing a recording capability to the second electronic device, so that the second electronic device can realize speech collection and a prompt of recording information; and if the first electronic device does not enable the recording function and the second electronic device enables the recording function, when the second electronic device puts through the incoming call event, the second electronic device synchronizing the recording capability to the first electronic device, so that the first electronic device can display recording prompt information, thereby facilitating the circulation of the recording capability on different devices.

Description

基于分布式通话录音同步方法、电子设备及可读存储介质Synchronization method, electronic equipment and readable storage medium based on distributed call recording
本申请要求于2021年10月27日提交中国专利局、申请号为202111255348.1、申请名称为“基于分布式通话录音同步方法、电子设备及可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application submitted to the China Patent Office on October 27, 2021, with the application number 202111255348.1, and the application name "based on distributed call recording synchronization method, electronic equipment and readable storage medium", all of which The contents are incorporated by reference in this application.
技术领域technical field
本发明涉及电子技术领域,尤其涉及基于分布式通话录音同步方法、电子设备及可读存储介质。The invention relates to the field of electronic technology, in particular to a synchronization method based on distributed call recording, electronic equipment and a readable storage medium.
背景技术Background technique
随着通信技术的不断发展,越来越多的除手机之外的电子设备可以加入通信链中,如平板电脑、智能手表、车载设备等。With the continuous development of communication technology, more and more electronic devices other than mobile phones can be added to the communication chain, such as tablet computers, smart watches, and vehicle-mounted devices.
在分布式通话背景下,即,当呼叫方向被呼叫方发送来件事件的来电信号时,被接收方可以是基于信任环关联的多个电子设备,多个电子设备也可以同时接收来电事件,发生来电共振。进而实现,用户能够在近场范围内,基于信任环,实现运营商通话在不同设备的流转。然而,运营商通话在不同设备流转时,对于接收电话这一侧的电子设备开启的录音功能并不能流转,进而影响用户的体验。In the context of distributed calls, that is, when the calling party sends an incoming call signal of an incoming event to the called party, the received party can be multiple electronic devices associated based on a trust ring, and multiple electronic devices can also receive the incoming call event at the same time, Incoming call resonance occurs. Furthermore, users can realize the transfer of operator calls between different devices within the near field based on the trust ring. However, when an operator's call is transferred between different devices, the recording function enabled on the electronic device on the receiving side of the call cannot be transferred, thereby affecting the user's experience.
发明内容Contents of the invention
有鉴于此,本发明提供一种基于分布式通话录音同步方法及电子设备、计算机可读存储介质,用以解决在分布式通话场景下,能够实现同步录音,以提高用户体验。In view of this, the present invention provides a method for synchronizing call recording based on distributed, electronic equipment, and a computer-readable storage medium to solve the problem of realizing synchronous recording in a distributed call scenario to improve user experience.
本申请的一些实施方式提供了一种基于分布式通话录音同步方法。以下从多个方面介绍本申请,以下多个方面的实施方式和有益效果可互相参考。Some embodiments of the present application provide a synchronization method based on distributed call recording. The following describes the present application from various aspects, and the implementation manners and beneficial effects of the following aspects can be referred to each other.
第一方面,本发明提供一种基于分布式通话录音同步方法,应用于包括第一电子设备和第二电子设备的系统,其中,第一电子设备与第二电子设备处于同一局域网内,第一电子设备为具有电话呼叫功能的设备,方法包括:第一电子设备接收来自呼叫方的来电事件;第一电子设备将来电事件通知第二电子设备,并由第二电子设备接通来电事件;当通话被挂断时,第一电子设备显示有录音文件的提示,其中,录音文件包括来自呼叫方的下行音频流和由第二电子设备采集的上行音频流。In the first aspect, the present invention provides a synchronization method based on distributed call recording, which is applied to a system including a first electronic device and a second electronic device, wherein the first electronic device and the second electronic device are in the same local area network, and the first The electronic device is a device with a telephone call function, and the method includes: the first electronic device receives an incoming call event from a calling party; the first electronic device notifies the second electronic device of the incoming call event, and the second electronic device connects to the incoming call event; When the call is hung up, the first electronic device displays a reminder of the recording file, wherein the recording file includes a downstream audio stream from the calling party and an upstream audio stream collected by the second electronic device.
本申请实施例的通话录音同步方法,能够实现在来电共振的情况下,作为具有电话呼叫能力的电子设备,无论是否开启录音功能,都能够获得录音文件。The method for synchronizing call recording in the embodiment of the present application can realize that when an incoming call resonates, as an electronic device capable of making a phone call, whether or not the recording function is turned on, the recording file can be obtained.
在上述第一方面的一种可能的实现中,在第一电子设备开启录音功能情况下,第一电子设备显示有录音文件的提示,包括:由第一电子设备录制来自呼叫方的下行音频流和由第二电子设备采集的上行音频流,并在通话被挂断时,将下行音频流和上行音频流合成第一文件,并提示保存第一录音文件。In a possible implementation of the first aspect above, when the recording function is enabled on the first electronic device, the first electronic device displays a reminder of the recording file, including: recording the downstream audio stream from the caller by the first electronic device and the upstream audio stream collected by the second electronic device, and when the call is hung up, synthesize the downstream audio stream and the upstream audio stream into a first file, and prompt to save the first recording file.
在上述第一方面的一种可能的实现中,在第一电子设备录制的过程中,第一电子 设备在界面上显示第一录制提示,其中,第一录制提示至少包括第一录音时长;第二电子设备在界面上显示第二录制提示,第二录制提示包括第一录音时长及在第一电子设备上录制音频的信息。当第一电子设备开启自动录音功能,无论第二电子设备是否开启自动录音功能,则系统则确定为第一电子设备开启自动录音功能,并将第一电子设备的录音能力同步到第二电子设备,并且第二电子设备上可以显示录音时长,和在第二电子设备上录音音频的信息,以使用户能够感觉到第二电子设备也具有录音的功能,便于用户了解录音情况,方便重要通话录音的保存,提高了用户的体验。In a possible implementation of the above first aspect, during the recording process of the first electronic device, the first electronic device displays a first recording prompt on the interface, where the first recording prompt includes at least the first recording duration; The second electronic device displays a second recording prompt on the interface, and the second recording prompt includes the first recording duration and information on recording audio on the first electronic device. When the automatic recording function is enabled on the first electronic device, regardless of whether the automatic recording function is enabled on the second electronic device, the system determines that the automatic recording function is enabled for the first electronic device and synchronizes the recording capability of the first electronic device to the second electronic device , and the recording duration can be displayed on the second electronic device, as well as the audio recording information on the second electronic device, so that the user can feel that the second electronic device also has the function of recording, which is convenient for the user to understand the recording situation and facilitate the recording of important calls Save, improve the user experience.
在上述第一方面的一种可能的实现中,在第一电子设备未开启录音功能,且第二电子设备开启录音功能的情况下,第一电子设备显示有录音文件的提示,包括:由第二电子设备录制来自呼叫方的下行音频流和由第二电子设备采集的上行音频流,并在通话被挂断时,第二电子设备将从呼叫方的下行音频流和采集的上行音频流合并成第二录音文件;第二电子设备将第二录音文件发送给第一电子设备,以使第一电子设备收到第二录音文件保存的提示。第一电子设备未开启录音时,可以通过第二电子设备获得录音文件。In a possible implementation of the first aspect above, when the recording function is not enabled on the first electronic device and the recording function is enabled on the second electronic device, the first electronic device displays a reminder of the recording file, including: The second electronic device records the downstream audio stream from the calling party and the upstream audio stream collected by the second electronic device, and when the call is hung up, the second electronic device combines the downstream audio stream from the calling party with the collected upstream audio stream to generate a second recording file; the second electronic device sends the second recording file to the first electronic device, so that the first electronic device receives a prompt to save the second recording file. When the recording is not enabled on the first electronic device, the recording file can be obtained through the second electronic device.
在上述第一方面的一种可能的实现中,在第二电子设备录制的过程中,第二电子设备在界面上显示第三录制提示,第三录制提示至少包括第二录音时长;第一电子设备在界面上显示第四录制提示,第四录制提示包括第二录制时长及在第二电子设备上录制音频的信息。根据本申请实施例的方法,在第一电子设备未开启自动录音功能,第二电子设备开启自动录音功能的场景下,第一电子设备上可以显示录音时长和在第二电子设备上录制音频的信息,以使用户能够感觉到第一电子设备也具有录音的功能,便于用户了解录音情况,同时,方便重要通话录音的保存,提高了用户的体验。In a possible implementation of the first aspect above, during the recording process of the second electronic device, the second electronic device displays a third recording prompt on the interface, and the third recording prompt includes at least the second recording duration; the first electronic device The device displays a fourth recording prompt on the interface, and the fourth recording prompt includes information about the second recording duration and audio recording on the second electronic device. According to the method of the embodiment of the present application, in the scenario where the automatic recording function is not enabled on the first electronic device and the automatic recording function is enabled on the second electronic device, the recording duration and the audio recording time on the second electronic device can be displayed on the first electronic device. Information, so that the user can feel that the first electronic device also has a recording function, which is convenient for the user to understand the recording situation, and at the same time, facilitates the storage of important call recordings, and improves the user experience.
在上述第一方面的一种可能的实现中,在通话被挂断时,第二电子设备将第二录音文件保存至本地存储器。In a possible implementation of the first aspect above, when the call is hung up, the second electronic device saves the second recording file to the local storage.
在上述第一方面的一种可能的实现中,第二电子设备将第二录音文件发送给第一电子设备,包括:第二电子设备输出提示界面,提示界面包括是否将第二录音文件同步到第一电子设备的确认信息;当第二电子设备接收到用户针对提示界面的确认保存的操作,则将第二录音文件发送给第一电子设备。该方法有利于用户根据实际需要进行选择是否需要将第二录音文件保存到第二电子设备。In a possible implementation of the first aspect above, the second electronic device sends the second recording file to the first electronic device, including: the second electronic device outputs a prompt interface, and the prompt interface includes whether to synchronize the second recording file to Confirmation information of the first electronic device; when the second electronic device receives the user's operation of confirming and saving on the prompt interface, it sends the second recording file to the first electronic device. This method is beneficial for the user to choose whether to save the second recording file to the second electronic device according to actual needs.
在上述第一方面的一种可能的实现中,在第一电子设备未开启录音功能,且第二电子设备开启录音功能的情况下,当第二电子设备接通来电事件时,第一电子设备的界面上的录音键无法点击生效。进而确保第二电子设备的录音的有效进行。In a possible implementation of the first aspect above, when the recording function is not enabled on the first electronic device and the recording function is enabled on the second electronic device, when the second electronic device receives a call event, the first electronic device The recording button on the interface cannot be clicked to take effect. Further, the effective recording of the second electronic device is ensured.
在上述第一方面的一种可能的实现中,第二电子设备开启录音功能为第二电子设备开启自动录音功能,或用户通过第二电子设备上的录音键开启的录音功能。In a possible implementation of the above first aspect, enabling the recording function of the second electronic device enables the automatic recording function for the second electronic device, or enables the recording function enabled by the user through the recording key on the second electronic device.
在上述第一方面的一种可能的实现中,在第一电子设备未开启录音功能,且第二电子设备开启录音功能的情况下,当第一电子设备或第二电子设备退出局域网,来电事件由第二电子设备上接通流转到第一电子设备上接通;第二电子设备终止当前录制,并保存第二录音文件,便于文件及时保存。In a possible implementation of the first aspect above, when the recording function is not enabled on the first electronic device and the recording function is enabled on the second electronic device, when the first electronic device or the second electronic device exits the local area network, the incoming call event The connection flow from the second electronic device is transferred to the first electronic device; the second electronic device terminates the current recording, and saves the second recording file, so that the file can be saved in time.
或者,第二电子设备将当前录制信息发送给云端,以通过云端完成流转到第一电子设备上的来电事件的上行音频流和下行音频流的录制,并保存,该方法可以实现在 第一电子设备和第二电子设备局域网断开后,若接通来电事件由第二电子设备接通流转到由第一电子设备接通,则可以确保录音继续由云端录制,确保录制完整的通话录音文件。Or, the second electronic device sends the current recording information to the cloud, so as to complete the recording of the upstream audio stream and the downstream audio stream of the incoming call event streamed to the first electronic device through the cloud, and save them. This method can be implemented in the first electronic device. After the local area network of the device and the second electronic device is disconnected, if the incoming call event is transferred from the second electronic device to the first electronic device, it can ensure that the recording continues to be recorded by the cloud to ensure that a complete call recording file is recorded.
在上述第一方面的一种可能的实现中,在第一电子设备开启录音功能的情况下,第二电子设备的录制功能关闭,且第二电子设备的界面上的录制键无法点击生效。进而确保第一电子设备的录音的有效进行。In a possible implementation of the first aspect above, when the recording function is enabled on the first electronic device, the recording function of the second electronic device is disabled, and the recording button on the interface of the second electronic device cannot be clicked to take effect. Further, it is ensured that the recording of the first electronic device can be performed effectively.
在上述第一方面的一种可能的实现中,第一电子设备开启录音功能为第一电子设备被设置为自动录音功能,或用户通过第一电子设备上的录音键开启的录音功能。In a possible implementation of the above-mentioned first aspect, enabling the recording function of the first electronic device means that the first electronic device is set to an automatic recording function, or the user activates the recording function through a recording key on the first electronic device.
在上述第一方面的一种可能的实现中,第一电子设备和第二电子设备接收到呼叫方的来电事件,并分别查询自身是否开启了录音功能,并同步查询结果,当第一电子设备确认开启了录音功能,则系统确定为第一电子设备开启录音功能的情况;当第一电子设备未开启录音功能,第二电子设备开启录音功能,则系统确定为第二电子设备开启录音功能的情况。该方法便于第一电子设备和第二电子设备同步确认录音功能开启的情况,便于录音能力同步。In a possible implementation of the first aspect above, the first electronic device and the second electronic device receive the incoming call event of the calling party, and respectively inquire whether they have enabled the recording function, and synchronize the query results. When the first electronic device If the recording function is confirmed to be enabled, the system determines that the recording function is enabled for the first electronic device; when the recording function is not enabled for the first electronic device and the recording function is enabled for the second electronic device, the system determines that the recording function is enabled for the second electronic device Condition. The method is convenient for the first electronic device and the second electronic device to confirm synchronously that the recording function is turned on, and facilitates synchronization of recording capabilities.
在上述第一方面的一种可能的实现中,第一电子设备包括第一分布式框架,第二电子设备包括第二分布式框架,第一电子设备与第二电子设备同时接收呼叫方的来电事件,包括:第一电子设备通过第一分布式框架和第二电子设备的第二分布式框架通信,以使第一电子设备和第二电子设备同步接收呼叫方的来电事件。In a possible implementation of the above-mentioned first aspect, the first electronic device includes a first distributed frame, the second electronic device includes a second distributed frame, and the first electronic device and the second electronic device simultaneously receive an incoming call from a calling party The event includes: the first electronic device communicates with the second distributed frame of the second electronic device through the first distributed framework, so that the first electronic device and the second electronic device receive the incoming call event of the calling party synchronously.
在上述第一方面的一种可能的实现中,第二录音文件发送给第一电子设备,包括:第二电子设备通过第二分布式框架将第二录音文件同步给第一电子设备的第一分布式框架,以使第二录音文件发送给第一电子设备。In a possible implementation of the first aspect above, sending the second recording file to the first electronic device includes: the second electronic device synchronizing the second recording file to the first electronic device of the first electronic device through the second distributed framework. A distribution framework for sending the second recording file to the first electronic device.
第二方面,本发明提供一种基于分布式通话录音同步系统,包括:第一电子设备和第二电子设备,其中,第一电子设备与第二电子设备处于同一局域网内,第一电子设备为具有电话呼叫功能的设备,方法包括:第一电子设备用于接收来自呼叫方的来电事件;第一电子设备用于将来电事件通知第二电子设备,并由第二电子设备接通来电事件;当通话被挂断时,第一电子设备用于显示有录音文件的提示,其中,录音文件包括来自呼叫方的下行音频流和由第二电子设备采集的上行音频流。In a second aspect, the present invention provides a synchronization system based on distributed call recording, including: a first electronic device and a second electronic device, wherein the first electronic device and the second electronic device are in the same local area network, and the first electronic device is For a device with a phone call function, the method includes: the first electronic device is used to receive an incoming call event from a calling party; the first electronic device is used to notify the second electronic device of the incoming call event, and the second electronic device connects to the incoming call event; When the call is hung up, the first electronic device is used to display a prompt of a recording file, wherein the recording file includes a downstream audio stream from the calling party and an upstream audio stream collected by the second electronic device.
本申请实施例的通话录音同步方法,能够实现在来电共振的情况下,作为具有电话呼叫能力的电子设备,无论是否开启录音功能,都能够获得录音文件。The method for synchronizing call recording in the embodiment of the present application can realize that when an incoming call resonates, as an electronic device capable of making a phone call, whether or not the recording function is turned on, the recording file can be obtained.
在上述第二方面的一种可能的实现中,在第一电子设备开启录音功能情况下,第一电子设备用于录制来自呼叫方的下行音频流和由第二电子设备采集的上行音频流,并在通话被挂断时,将下行音频流和上行音频流合成第一文件,并用于提示保存第一录音文件。In a possible implementation of the second aspect above, when the recording function is enabled on the first electronic device, the first electronic device is used to record the downstream audio stream from the calling party and the upstream audio stream collected by the second electronic device, And when the call is hung up, synthesize the downlink audio stream and the uplink audio stream into the first file, and use it as a reminder to save the first recording file.
在上述第二方面的一种可能的实现中,在第一电子设备录制的过程中,第一电子设备用于在界面上显示第一录制提示,其中,第一录制提示至少包括第一录音时长;第二电子设备用于在界面上显示第二录制提示,第二录制提示包括第一录音时长及在第一电子设备上录制音频的信息。当第一电子设备开启自动录音功能,无论第二电子设备是否开启自动录音功能,则系统则确定为第一电子设备开启自动录音功能,并将第一电子设备的录音能力同步到第二电子设备,并且第二电子设备上可以显示录音时 长,和在第二电子设备上录音音频的信息,以使用户能够感觉到第二电子设备也具有录音的功能,便于用户了解录音情况,方便重要通话录音的保存,提高了用户的体验。In a possible implementation of the second aspect above, during the recording process of the first electronic device, the first electronic device is configured to display a first recording prompt on the interface, wherein the first recording prompt includes at least the first recording duration ; The second electronic device is used to display a second recording prompt on the interface, and the second recording prompt includes the first recording duration and information on recording audio on the first electronic device. When the automatic recording function is enabled on the first electronic device, regardless of whether the automatic recording function is enabled on the second electronic device, the system determines that the automatic recording function is enabled for the first electronic device and synchronizes the recording capability of the first electronic device to the second electronic device , and the recording duration can be displayed on the second electronic device, as well as the audio recording information on the second electronic device, so that the user can feel that the second electronic device also has the function of recording, which is convenient for the user to understand the recording situation and facilitate the recording of important calls Save, improve the user experience.
在上述第二方面的一种可能的实现中,在第一电子设备未开启录音功能,且第二电子设备开启录音功能的情况下,第二电子设备用于录制来自呼叫方的下行音频流和由第二电子设备采集的上行音频流,并在通话被挂断时,第二电子设备用于将从呼叫方的下行音频流和采集的上行音频流合并成第二录音文件;第二电子设备用于将第二录音文件发送给第一电子设备,以使第一电子设备收到第二录音文件保存的提示。第一电子设备未开启录音时,可以通过第二电子设备获得录音文件。In a possible implementation of the second aspect above, when the recording function is not enabled on the first electronic device and the recording function is enabled on the second electronic device, the second electronic device is used to record the downstream audio stream and The upstream audio stream collected by the second electronic device, and when the call is hung up, the second electronic device is used to combine the downstream audio stream from the calling party and the collected upstream audio stream into a second recording file; the second electronic device It is used for sending the second recording file to the first electronic device, so that the first electronic device receives a prompt to save the second recording file. When the recording is not enabled on the first electronic device, the recording file can be obtained through the second electronic device.
在上述第二方面的一种可能的实现中,在第二电子设备录制的过程中,第二电子设备用于在界面上显示第三录制提示,第三录制提示至少包括第二录音时长;第一电子设备用于在界面上显示第四录制提示,第四录制提示包括第二录制时长及在第二电子设备上录制音频的信息。根据本申请实施例的方法,在第一电子设备未开启自动录音功能,第二电子设备开启自动录音功能的场景下,第一电子设备上可以显示录音时长和在第二电子设备上录制音频的信息,以使用户能够感觉到第一电子设备也具有录音的功能,便于用户了解录音情况,同时,方便重要通话录音的保存,提高了用户的体验。In a possible implementation of the second aspect above, during the recording process of the second electronic device, the second electronic device is configured to display a third recording prompt on the interface, and the third recording prompt includes at least the second recording duration; An electronic device is used to display a fourth recording prompt on the interface, and the fourth recording prompt includes information about the second recording duration and audio recording on the second electronic device. According to the method of the embodiment of the present application, in the scenario where the automatic recording function is not enabled on the first electronic device and the automatic recording function is enabled on the second electronic device, the recording duration and the audio recording time on the second electronic device can be displayed on the first electronic device. Information, so that the user can feel that the first electronic device also has a recording function, which is convenient for the user to understand the recording situation, and at the same time, facilitates the storage of important call recordings, and improves the user experience.
在上述第二方面的一种可能的实现中,在通话被挂断时,第二电子设备用于将第二录音文件保存至本地存储器。In a possible implementation of the second aspect above, when the call is hung up, the second electronic device is configured to save the second recording file to the local storage.
在上述第二方面的一种可能的实现中,第二电子设备将第二录音文件发送给第一电子设备,包括:第二电子设备用于输出提示界面,提示界面包括是否将第二录音文件同步到第一电子设备的确认信息;当第二电子设备接收到用户针对提示界面的确认保存的操作,则将第二录音文件发送给第一电子设备。该方法有利于用户根据实际需要进行选择是否需要将第二录音文件保存到第二电子设备。In a possible implementation of the second aspect above, the second electronic device sends the second recording file to the first electronic device, including: the second electronic device is used to output a prompt interface, and the prompt interface includes whether to send the second recording file Synchronize to the confirmation information of the first electronic device; when the second electronic device receives the user's operation of confirming and saving on the prompt interface, it sends the second recording file to the first electronic device. This method is beneficial for the user to choose whether to save the second recording file to the second electronic device according to actual needs.
在上述第二方面的一种可能的实现中,在第一电子设备未开启录音功能,且第二电子设备开启录音功能的情况下,当第二电子设备接通来电事件时,第一电子设备用于控制界面上的录音键无法点击生效。进而确保第二电子设备的录音的有效进行。In a possible implementation of the second aspect above, when the recording function is not enabled on the first electronic device and the recording function is enabled on the second electronic device, when the second electronic device receives an incoming call event, the first electronic device The recording button on the control interface cannot be clicked to take effect. Further, the effective recording of the second electronic device is ensured.
在上述第二方面的一种可能的实现中,第二电子设备开启录音功能为第二电子设备开启自动录音功能,或用户通过第二电子设备上的录音键开启的录音功能。In a possible implementation of the second aspect above, enabling the recording function of the second electronic device enables the automatic recording function for the second electronic device, or enables the recording function enabled by the user through the recording key on the second electronic device.
在上述第二方面的一种可能的实现中,在第一电子设备未开启录音功能,且第二电子设备开启录音功能的情况下,当第一电子设备或第二电子设备退出局域网,第二电子设备用于将来电事件流转到第一电子设备上接通;第二电子设备用于终止当前录制,并保存第二录音文件,便于文件及时保存。In a possible implementation of the second aspect above, when the recording function is not enabled on the first electronic device and the recording function is enabled on the second electronic device, when the first electronic device or the second electronic device exits the local area network, the second electronic device The electronic device is used to transfer incoming call events to the first electronic device for connection; the second electronic device is used to terminate the current recording and save the second recording file, so that the file can be saved in time.
或者,第二电子设备用于将当前录制信息发送给云端,以通过云端完成流转到第一电子设备上的来电事件的上行音频流和下行音频流的录制,并保存,该方法可以实现在第一电子设备和第二电子设备局域网断开后,若接通来电事件由第二电子设备接通流转到由第一电子设备接通,则可以确保录音继续由云端录制,确保录制完整的通话录音文件。Alternatively, the second electronic device is used to send the current recording information to the cloud, so as to complete the recording of the upstream audio stream and the downstream audio stream of the incoming call event streamed to the first electronic device through the cloud, and save them. This method can be realized in the first After the local area network of the first electronic device and the second electronic device is disconnected, if the incoming call event is transferred from the second electronic device to the first electronic device, it can ensure that the recording continues to be recorded by the cloud to ensure that a complete call recording is recorded document.
在上述第二方面的一种可能的实现中,在第一电子设备开启录音功能的情况下,第二电子设备用于控制录制功能关闭,且第二电子设备用于控制界面上的录制键无法 点击生效。进而确保第一电子设备的录音的有效进行。In a possible implementation of the second aspect above, when the recording function is enabled on the first electronic device, the second electronic device is used to control the recording function to be turned off, and the recording button on the control interface of the second electronic device cannot Click to take effect. Further, it is ensured that the recording of the first electronic device can be performed effectively.
在上述第二方面的一种可能的实现中,第一电子设备开启录音功能为第一电子设备被设置为自动录音功能,或用户通过第一电子设备上的录音键开启的录音功能。In a possible implementation of the second aspect above, enabling the recording function of the first electronic device means that the first electronic device is set to an automatic recording function, or the user activates the recording function through a recording key on the first electronic device.
在上述第二方面的一种可能的实现中,第一电子设备和第二电子设备接收到呼叫方的来电事件,用于分别查询自身是否开启了录音功能,并同步查询结果,当第一电子设备确认开启了录音功能,则系统确定为第一电子设备开启录音功能的情况;当第一电子设备未开启录音功能,第二电子设备开启录音功能,则系统确定为第二电子设备开启录音功能的情况。该方法便于第一电子设备和第二电子设备同步确认录音功能开启的情况,便于录音能力同步。In a possible implementation of the above-mentioned second aspect, the first electronic device and the second electronic device receive an incoming call event from the calling party, and are used to inquire whether they have enabled the recording function, and synchronize the query results. When the first electronic device If the device confirms that the recording function is enabled, the system determines that the recording function is enabled for the first electronic device; when the recording function is not enabled for the first electronic device and the recording function is enabled for the second electronic device, the system determines that the recording function is enabled for the second electronic device Case. The method is convenient for the first electronic device and the second electronic device to confirm synchronously that the recording function is turned on, and facilitates synchronization of recording capabilities.
在上述第二方面的一种可能的实现中,第一电子设备包括第一分布式框架,第二电子设备包括第二分布式框架,第一电子设备用于通过第一分布式框架和第二电子设备的第二分布式框架通信,以使第一电子设备和第二电子设备同步接收呼叫方的来电事件。In a possible implementation of the second aspect above, the first electronic device includes a first distributed framework, the second electronic device includes a second distributed framework, and the first electronic device is configured to use the first distributed framework and the second The second distribution framework of the electronic devices communicates so that the first electronic device and the second electronic device receive the incoming call event of the calling party synchronously.
在上述第二方面的一种可能的实现中,第二电子设备用于通过第二分布式框架将第二录音文件同步给第一电子设备的第一分布式框架,以使第二录音文件发送给第一电子设备。In a possible implementation of the second aspect above, the second electronic device is used to synchronize the second recording file to the first distribution framework of the first electronic device through the second distribution framework, so that the second recording file can be sent to to the first electronic device.
第三方面,本申请还提供一种电子设备,包括:In a third aspect, the present application also provides an electronic device, including:
存储器,用于存储由设备的一个或多个处理器执行的指令;memory to store instructions for execution by one or more processors of the device;
处理器,用于执行指令,使得电子设备执行上述第一方面实施例中的第一电子设备执行的方法或第二电子设备执行的方法。The processor is configured to execute instructions, so that the electronic device executes the method executed by the first electronic device or the method executed by the second electronic device in the embodiment of the first aspect above.
第四方面,本申请提供一种计算机可读存储介质,计算机可读存储介质存储有计算机程序,计算机程序被电子设备运行时,使得电子设备执行上述第一方面实施例中的第一电子设备执行的方法或第二电子设备执行的方法。In a fourth aspect, the present application provides a computer-readable storage medium. The computer-readable storage medium stores a computer program. When the computer program is run by an electronic device, the electronic device executes the first electronic device in the embodiment of the first aspect. method or a method executed by the second electronic device.
第五方面,本申请的公开了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第一方面实施例中第一电子设备执行的方法或第二电子设备执行的方法。In the fifth aspect, the present application discloses a computer program product containing instructions. When it is run on a computer, it causes the computer to execute the method executed by the first electronic device or the method executed by the second electronic device in the embodiment of the first aspect. method.
附图说明Description of drawings
图1a为本申请一个实施例的呼叫系统的分布式架构的场景图;FIG. 1a is a scene diagram of a distributed architecture of a calling system according to an embodiment of the present application;
图1b为本申请一个实施例的呼叫系统的分布式架构的另一场景图;FIG. 1b is another scene diagram of the distributed architecture of the calling system according to an embodiment of the present application;
图2a为本申请一个实施例的第一电子设备的结构示意图;FIG. 2a is a schematic structural diagram of a first electronic device according to an embodiment of the present application;
图2b为本申请一个实施例的第一电子设备的软件结构框图;FIG. 2b is a block diagram of the software structure of the first electronic device according to an embodiment of the present application;
图2c为本申请一个实施例的第二电子设备的硬件结构示意图Fig. 2c is a schematic diagram of the hardware structure of the second electronic device according to an embodiment of the present application
图3a为本申请一个实施例的一场景下的基于分布式通话录音同步方法的交互流程图;Fig. 3a is an interactive flow chart based on a distributed call recording synchronization method in a scenario of an embodiment of the present application;
图3b为本申请一个实施例的手机和平板电脑的来电提示界面;FIG. 3b is an incoming call prompt interface of a mobile phone and a tablet computer according to an embodiment of the present application;
图4为本申请一个实施例的手机接通电话后的界面示意图;Fig. 4 is a schematic diagram of the interface after the mobile phone is connected to the phone according to an embodiment of the present application;
图5为本申请一个实施例的平板电脑接通电话后的界面示意图;FIG. 5 is a schematic diagram of the interface after the tablet computer connects to the phone according to an embodiment of the present application;
图6为本申请一个实施例的另一场景下的基于分布式通话录音同步方法的交互流 程图;Fig. 6 is an interactive flow chart based on the distributed call recording synchronization method under another scenario of an embodiment of the present application;
图7为本申请一个实施例的手机接通电话后的界面示意图;FIG. 7 is a schematic diagram of the interface after the mobile phone is connected to the phone according to an embodiment of the present application;
图8为本申请一个实施例的平板电脑接通电话后的界面示意图;Fig. 8 is a schematic diagram of the interface of the tablet computer connected to the phone according to an embodiment of the present application;
图9a为本申请一个实施例的平板电脑开启自动录音功能的情况下的界面示意图;Fig. 9a is a schematic diagram of the interface when the automatic recording function is enabled on the tablet computer according to an embodiment of the present application;
图9b为本申请一个实施例的平板电脑手动开启录音功能的情况下的界面示意图;FIG. 9b is a schematic diagram of the interface in the case where the recording function is manually enabled on the tablet computer according to an embodiment of the present application;
图10为本申请一个实施例的电子设备结构示意图;FIG. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
图11为本申请一些实施例的一种片上系统的框图。Fig. 11 is a block diagram of a system-on-a-chip according to some embodiments of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
参考图1a,图1a示例性示出了本申请实施例的呼叫系统的分布式架构的场景图。该场景图中包括呼叫方设备101和被呼叫方设备,其中,被呼叫方设备可以包括至少一个可以与呼叫方设备101实现移动数据通话能力的第一电子设备和至少一个第二电子设备。Referring to FIG. 1a, FIG. 1a schematically shows a scene diagram of a distributed architecture of a calling system according to an embodiment of the present application. The scene diagram includes a calling device 101 and a called device, wherein the called device may include at least one first electronic device and at least one second electronic device capable of implementing mobile data communication with the calling device 101 .
本申请的实施例中,第一电子设备为具有电话呼叫功能的电子设备,举例说明,可以是通过基站实现的移动通话能力,如接打电话,或者通过蜂窝网络实现的IP通话能力,如微信语音等。如图1a所示,手机102和平板电脑103,且手机102和平板电脑103为进场连接,其中进场连接可以是处于同一局域网内的网络连接,或者是蓝牙连接等。当呼叫方设备101向多个被呼叫方设备发起电话呼叫时,被呼叫方设备中的手机102和平板电脑103可以同时输出来电事件的提示(来电共振)。接收到来电信号的手机102和平板电脑103各自确认自身是否有开启自动录音功能的状态信息,例如,开启自动录音或未开启录音的状态信息,并且彼此同步状态信息,并确定在手机102上录音或者在平板电脑103上录音。当手机102开启自动录音功能,无论平板电脑103是否开启自动录音功能,则手机102或平板电脑103都确定为手机开启自动录音功能。当手机102未开启录音功能时,且平板电脑开启录音功能时,则手机102或平板电脑判断平板电脑开启录音功能。In the embodiment of the present application, the first electronic device is an electronic device with a telephone call function. For example, it may be a mobile call capability realized through a base station, such as making and receiving calls, or an IP call capability realized through a cellular network, such as WeChat voice etc. As shown in FIG. 1a, the mobile phone 102 and the tablet computer 103, and the mobile phone 102 and the tablet computer 103 are in-field connections, wherein the in-field connections may be network connections in the same local area network, or Bluetooth connections. When the calling device 101 initiates a phone call to multiple called devices, the mobile phone 102 and the tablet computer 103 in the called device can simultaneously output a prompt of an incoming call event (resonance of an incoming call). The mobile phone 102 and the tablet computer 103 that receive the incoming call signal confirm whether themselves have the state information of opening the automatic recording function, for example, open the state information of the automatic recording or not open the recording, and synchronize the state information with each other, and determine the recording on the mobile phone 102 Or record on the tablet 103 . When the mobile phone 102 turns on the automatic recording function, no matter whether the tablet computer 103 turns on the automatic recording function, then the mobile phone 102 or the tablet computer 103 is determined to be the mobile phone with the automatic recording function turned on. When the recording function is not enabled on the mobile phone 102 and the recording function is enabled on the tablet computer, the mobile phone 102 or the tablet computer determines that the recording function is enabled on the tablet computer.
在本申请的实施例中,当手机102开启录音功能的情况下,无论由手机102或平板电脑103接通来电事件,即通话,都由手机102录制来自呼叫方设备的下行音频流,和录制由手机102或平板电脑103采集的上行音频流。当通话被挂断,手机102将上行音频流和下行音频流合成录音文件并保存在本地存储器内。此外,当由平板电脑103接通来电时间时,在录制过程中,手机102的界面上可以显示录音时长等信息,在平板电脑103的界面上可以显示录音时长和手机正在录音等信息,用户可以根据界面显示的内容了解到录音时长和当前正在录音的设备。In the embodiment of the present application, when the mobile phone 102 turns on the recording function, no matter the incoming call event is connected by the mobile phone 102 or the tablet computer 103, that is, the call, the mobile phone 102 will record the downstream audio stream from the caller's device, and record The upstream audio stream collected by the mobile phone 102 or the tablet computer 103 . When the call is hung up, the mobile phone 102 synthesizes the uplink audio stream and the downlink audio stream into a recording file and saves it in the local memory. In addition, when the tablet computer 103 connects the incoming call time, during the recording process, information such as the recording duration can be displayed on the interface of the mobile phone 102, and information such as the recording duration and the recording of the mobile phone can be displayed on the interface of the tablet computer 103, and the user can According to the content displayed on the interface, you can know the recording duration and the device currently recording.
当手机102未开启录音功能,且平板电脑开启录音功能的情况下,若用户使用平板电脑103接通来电事件时,即通话,则由平板电脑103录制来自手机的下行音频流和由平板电脑采集的上行音频流。当通话被挂断,由平板电脑103将上行音频流和下行音频流合成录音文件,并保存平板电脑103的存储器内。此外,平板电脑103在界面上显示录音时长等录制提示信息,手机102在界面上显示录制时长及在平板电脑正 在录音的录制提示信息,用户可以根据界面显示的内容了解到录音时长和当前正在录音的设备。并且本申请实施例能够实现在分布式通话背景下,在近场范围内,运营商通话在不同设备流转时,通话界面录音功能如何同步显示,录音文件如何保存,用户在接通电话后,方便保存重要录音数据。When the mobile phone 102 does not open the recording function, and the tablet computer opens the recording function, if the user uses the tablet computer 103 to connect to the incoming call event, that is, the conversation, then the tablet computer 103 records the downstream audio stream from the mobile phone and is collected by the tablet computer. upstream audio stream. When the call is hung up, the tablet computer 103 synthesizes the upstream audio stream and the downstream audio stream into a recording file, and saves it in the memory of the tablet computer 103 . In addition, the tablet computer 103 displays recording prompt information such as the recording duration on the interface, and the mobile phone 102 displays the recording duration and the recording prompt information that the tablet computer is recording on the interface. device of. Moreover, the embodiment of the present application can realize how to display the recording function of the call interface synchronously and how to save the recording files in the near-field range when the operator's call is transferred between different devices in the context of distributed calls. Save important recording data.
在上述实施例中以手机作为第一电子设备,平板电脑作为第二电子设备进行了说明。在本申请的一些实施例中,第一电子设备还可以是具有移动通信能力的平板电脑、笔记本电脑,或者可穿戴的电子设备,如手表等。第二电子设备也可以是具有移动通信能力的电子设备,也可以是无移动通信能力的,但能够与第一电子设备通过网络数据通信的电子设备,例如,手机、平板电脑、笔记本电脑、超级移动个人计算机、个人数字助理(personal digital assistant,PDA)、电视,或者可穿戴的电子设备,如手表、手环等。In the above embodiments, the mobile phone is used as the first electronic device, and the tablet computer is used as the second electronic device for illustration. In some embodiments of the present application, the first electronic device may also be a tablet computer or a notebook computer with mobile communication capabilities, or a wearable electronic device such as a watch. The second electronic device may also be an electronic device with mobile communication capabilities, or an electronic device without mobile communication capabilities, but capable of communicating with the first electronic device through network data, for example, a mobile phone, a tablet computer, a notebook computer, a super Mobile personal computer, personal digital assistant (personal digital assistant, PDA), TV, or wearable electronic devices such as watches, wristbands, etc.
在本申请的另一个场景中,来电共振可以由服务器同时向手机和平板电脑下发来电信号,实现手机和平板电脑的来电共振。参考图1b,图1b示例性示出了本申请实施例的呼叫系统的分布式架构的另一场景图。该场景中,可以由服务器106向手机104发送来电信号,手机104与手表105可以通过无线连接,例如蓝牙,手机104可以通过蓝牙向所述手表105发送来电信号,以使手机104和手表105实现来电共振。手机与手表来在不同设备上开启录音功能,对通话录音和文件保存的过程如上述描述,此处不做描述。In another scenario of the present application, the incoming call resonance can be sent by the server to the mobile phone and the tablet computer at the same time to realize the incoming call resonance of the mobile phone and the tablet computer. Referring to FIG. 1b, FIG. 1b schematically shows another scene diagram of the distributed architecture of the calling system according to the embodiment of the present application. In this scenario, the server 106 can send an incoming call signal to the mobile phone 104, and the mobile phone 104 and the watch 105 can be connected wirelessly, such as Bluetooth, and the mobile phone 104 can send an incoming call signal to the watch 105 through Bluetooth, so that the mobile phone 104 and the watch 105 realize Incoming call resonance. The mobile phone and watch enable the recording function on different devices. The process of call recording and file saving is as described above, and will not be described here.
下面结合第一电子设备和第二电子设备的具体结构对本申请实施例的基于分布式通话录音同步方法进行描述。The following describes the synchronization method based on distributed call recording in the embodiment of the present application in combination with the specific structures of the first electronic device and the second electronic device.
参考图2a,图2a示出了本申请实施例的第一电子设备的结构示意图,第一电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接头130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。Referring to FIG. 2a, FIG. 2a shows a schematic structural diagram of a first electronic device according to an embodiment of the present application. The first electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus) , USB) connector 130, charging management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, bone conduction sensor 180M, etc.
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that, the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100 . In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components. The illustrated components can be realized in hardware, software or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是 独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
处理器110可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The processor 110 can generate an operation control signal according to the instruction opcode and the timing signal, and complete the control of fetching and executing the instruction.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口。In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transmitter (universal asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input and output (general-purpose input/output, GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface.
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。The I2C interface is a bidirectional synchronous serial bus, including a serial data line (serial data line, SDA) and a serial clock line (derail clock line, SCL). In some embodiments, processor 110 may include multiple sets of I2C buses. The processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flashlight, the camera 193 and the like through different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to realize the touch function of the electronic device 100 .
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。The I2S interface can be used for audio communication. In some embodiments, processor 110 may include multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 . In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface, so as to realize the function of answering calls through the Bluetooth headset.
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。音频模块170可以将获取到的下行音频流数据和上行音频流数据通过无线通信模块160传输到与第一电子设备无线连接的电子设备,以便于录音的音频流可以得到保存。The PCM interface can also be used for audio communication, sampling, quantizing and encoding the analog signal. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. The audio module 170 can transmit the acquired downlink audio stream data and uplink audio stream data to an electronic device wirelessly connected to the first electronic device through the wireless communication module 160, so that the recorded audio stream can be saved.
在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙连接的电子设备获得下行音频流的功能。The UART interface is a universal serial data bus used for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the processor 110 and the wireless communication module 160 . For example: the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to realize the Bluetooth function. In some embodiments, the audio module 170 can transmit the audio signal to the wireless communication module 160 through the UART interface, so as to realize the function of obtaining the downstream audio stream through the electronic device connected with Bluetooth.
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display  serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。在一些实施例中,可以实现显示录制信息,例如,录音时长和/或正在录制的设备名称等录制信息。The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 . MIPI interface includes camera serial interface (camera serial interface, CSI), display serial interface (display serial interface, DSI), etc. In some embodiments, the processor 110 communicates with the camera 193 through the CSI interface to realize the shooting function of the electronic device 100 . The processor 110 communicates with the display screen 194 through the DSI interface to realize the display function of the electronic device 100 . In some embodiments, recording information can be displayed, for example, recording information such as recording duration and/or the name of the device being recorded.
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules shown in the embodiment of the present invention is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 . In other embodiments of the present application, the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 100 can be realized by the antenna 1 , the antenna 2 , the mobile communication module 150 , the wireless communication module 160 , a modem processor, a baseband processor, and the like.
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。 Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 may be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。在一些实施例中,可以通过移动通信模块150实现两个电子设备之间的通话数据的传输,例如,作为被呼叫方设备时,可以获得来自呼叫方设备的下行音频流数据,以及可以向呼叫方设备传输上行音频流数据。The mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on the electronic device 100 . In some embodiments, the mobile communication module 150 can be used to realize the transmission of call data between two electronic devices. The party device transmits uplink audio stream data.
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。The wireless communication module 160 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wireless Fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite, etc. applied on the electronic device 100. System (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。在本申请的一个实施例中,电子设备100可以通过无线通信模块160实现与另一电子设备的局域网络的连接。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. In one embodiment of the present application, the electronic device 100 can realize the connection with the local area network of another electronic device through the wireless communication module 160 . The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC , FM, and/or IR techniques, etc. The GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a Beidou navigation satellite system (beidou navigation satellite system, BDS), a quasi-zenith satellite system (quasi -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex  light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos and the like. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.
在一些实施例中,显示屏可以显示来电提醒界面以及接通来电后显示的具有录制信息的界面,例如可以显示录音键,用户可以点击录音键手动开启录音功能,还可以显示录音时长、录音的设备名称等录制信息,以便于用户根据显示屏显示的界面内容控制录音功能,或了解录音的状态信息等。In some embodiments, the display screen can display an incoming call reminder interface and an interface with recording information displayed after the incoming call is connected. For example, a recording button can be displayed. The user can click the recording button to manually start the recording function, and can also display the recording duration, recording time, and recording time. Device name and other recording information, so that the user can control the recording function according to the interface content displayed on the display screen, or understand the status information of the recording, etc.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频,录音文件等文件保存在外部存储卡中。The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, so as to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. Such as saving music, video, recording files and other files in the external memory card.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能,录音功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如上行音频数据、下行音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行电子设备100的各种功能应用以及数据处理。The internal memory 121 may be used to store computer-executable program codes including instructions. The internal memory 121 may include an area for storing programs and an area for storing data. Wherein, the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, a recording function, etc.) and the like. The storage data area can store data created during the use of the electronic device 100 (such as uplink audio data, downlink audio data, phonebook, etc.) and the like. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like. The processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如录音等。The electronic device 100 can implement audio functions through the audio module 170 , the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example recording etc.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be set in the processor 110 , or some functional modules of the audio module 170 may be set in the processor 110 .
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过受话器170B听到呼叫方设备传输的语音。 Receiver 170B, also called "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or a voice message, the voice transmitted by the calling device can be heard through the receiver 170B.
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C,实现上行音频流的采集。The microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can approach the microphone 170C to make a sound through the human mouth, and input the sound signal into the microphone 170C to realize the collection of upstream audio stream.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。在一些实施例中,当用户点击按压显示屏194上的录音功能键时,可实现手动开启录音功能。The pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal. In some embodiments, pressure sensor 180A may be disposed on display screen 194 . In some embodiments, when the user clicks and presses the recording function key on the display screen 194, the recording function can be turned on manually.
触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。The touch sensor 180K is also called "touch device". The touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”. The touch sensor 180K is used to detect a touch operation on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194 . In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the position of the display screen 194 .
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,在接收到来电信号后,产生振动,以提示用户有电话需要接听。The motor 191 can generate a vibrating reminder. The motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, after receiving an incoming call signal, a vibration is generated to remind the user that a call needs to be answered.
参考图2b,图2b示出了本申请实施例的第一电子设备的软件结构框图。Referring to FIG. 2b, FIG. 2b shows a software structural block diagram of the first electronic device according to the embodiment of the present application.
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。在另一些实施例中,将Android系统分为五层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,硬件抽象层以及内核层。The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces. In some embodiments, the Android system is divided into four layers, which are application program layer, application program framework layer, Android runtime and system library, and kernel layer from top to bottom. In some other embodiments, the Android system is divided into five layers, from top to bottom are application program layer, application program framework layer, Android runtime (Android runtime) and system library, hardware abstraction layer and kernel layer.
应用程序层可以包括一系列应用程序包。The application layer can consist of a series of application packages.
如图2b所示,应用程序层可以包括通话应用程序等。此外,在一些实施例中,还可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息,录音等应用程序。As shown in Figure 2b, the application layer may include call applications and the like. In addition, in some embodiments, applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, and recording may also be included.
在一些实施例中,用户可以通过通话应用程序获得通话时的通话界面,以及实现通话过程的逻辑运算。In some embodiments, the user can obtain the call interface during the call through the call application program, and realize the logical operation of the call process.
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.
如图2b所示,应用程序框架层可以包括通信协议框架、绘制渲染模块、分布式框架、音频框架和文件管理框架等。As shown in Figure 2b, the application framework layer may include a communication protocol framework, a rendering module, a distributed framework, an audio framework, and a file management framework.
通信协议框架属于电话管理器的一部分,用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。The communication protocol framework belongs to a part of the phone manager and is used to provide the communication function of the electronic device 100 . For example, the management of call status (including connected, hung up, etc.).
绘制渲染模块属于视频系统的一部分,包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括通话过程中的录音界面,可以包括显示文字的视图以及显示图片的视图。The drawing and rendering module is part of the video system, including visual controls, such as controls for displaying text, controls for displaying pictures, and so on. The view system can be used to build applications. A display interface can consist of one or more views. For example, including the recording interface during a call, it may include a view for displaying text and a view for displaying pictures.
分布式框架,用于实现局域网络内的设备件的数据同步。例如同步来电信号,使局域网内的两个设备来电共振,同步录音文件等。A distributed framework for realizing data synchronization of devices within a local area network. For example, synchronizing incoming call signals, making two devices in the LAN resonate for incoming calls, synchronizing recording files, etc.
音频框架可以属于内容提供器,用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括录音时长、录音设备名称、视频,图像,音频,拨打和接听的电话等。Audio frameworks can belong to content providers, which are used to store and retrieve data and make these data accessible to applications. The data may include recording duration, recording device name, video, image, audio, calls made and received, etc.
文件管理框架属于资源管理器的一部分,用于为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,录音文件、视频文件等等。The file management framework is part of the resource manager and is used to provide various resources for applications, such as localized strings, icons, pictures, layout files, recording files, video files, etc.
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。Android Runtime includes core library and virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。The core library consists of two parts: one part is the function function that the java language needs to call, and the other part is the core library of Android.
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and the application framework layer run in virtual machines. The virtual machine executes the java files of the application program layer and the application program framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
硬件抽象层是位于操作系统内核与硬件电路之间的接口层,用于将硬件抽象化,为操作系统提供虚拟硬件平台。The hardware abstraction layer is an interface layer between the operating system kernel and the hardware circuit, which is used to abstract the hardware and provide a virtual hardware platform for the operating system.
如图2b所示,硬件抽象层可以包括传输通道模块、显示处理模块、信任环、音频流处理模块、外部存储模块等。As shown in Figure 2b, the hardware abstraction layer may include a transmission channel module, a display processing module, a trust ring, an audio stream processing module, an external storage module, and the like.
内核层,系统的安全性、内存管理、进程管理、网络协议栈和驱动模型等都依赖于该内核层。至少可以包含进程通信(Inter Process Communication,IPC),显示驱动,软总线,音频驱动,存储驱动。The kernel layer, system security, memory management, process management, network protocol stack and driver model all depend on the kernel layer. At least it can include Inter Process Communication (IPC), display driver, soft bus, audio driver, and storage driver.
下面结合图2b的通话场景,示例性说明电子设备100软件以及硬件的工作流程。The workflow of the software and hardware of the electronic device 100 will be exemplarily described below with reference to the call scene in FIG. 2b.
当移动通信模块150接收到来电信号,由内核层将信号加工成来电事件,应用层序框架层通过硬件层的传输通道模块获得来电事件,应用层序层调用通信协议框架获取来电事件,并启动电话应用程序,同时,内核层通过显示驱动启动显示屏194,以实现电话应用层序对应通过界面在显示屏194上显示,用户可以通过通话界面上的接听或挂断键接听电话或挂断电话。When the mobile communication module 150 receives an incoming call signal, the kernel layer processes the signal into an incoming call event, the application layer sequence framework layer obtains the incoming call event through the transmission channel module of the hardware layer, and the application layer sequence layer calls the communication protocol framework to obtain the incoming call event, and starts Phone application program, at the same time, the kernel layer starts the display screen 194 through the display driver, so that the corresponding interface of the phone application layer is displayed on the display screen 194, and the user can answer the call or hang up the call through the answer or hang up key on the call interface .
在本申请的一个实施例中,电子设备100可以通过局域网与电子设备A通信,在接到电话后,通过分布式框架将来电事件同步给与其通信连接的电子设备,例如电子设备A,两个电子设备实现来电共振。此外,电子设备100的电话APP可以包括自动录音监听模块,通过自动监听模块监听当前设备是否开启自动录音功能的状态信息,若开启,则获取当前设备名称,并通过分布式框架同步给电子设备A(电子设备A也可以通过分布式框架将自身的状态信息同步给电子设备100)。若用户在电子设备A的界面上点击接听电话(电子设备A可以显示在电子设备100上录音),则电子设备100可以通过无线通信模块160获得电子设备A采集的上行音频流数据,同时,电子设备100通过移动通信模块150获得下行音频流,并通过音频流处理模块对上行音频流数据和下行音频数据进行合并,形成录音文件,当通话结束后,通过外部存储模块将录音文件保存。In one embodiment of the present application, the electronic device 100 can communicate with the electronic device A through the local area network, and after receiving the call, the incoming call event is synchronized to the electronic device connected to it through the distributed framework, such as the electronic device A, two Electronic equipment realizes incoming call resonance. In addition, the phone APP of the electronic device 100 may include an automatic recording and monitoring module, through which the status information of whether the automatic recording function is enabled on the current device is monitored. (The electronic device A may also synchronize its state information to the electronic device 100 through the distributed framework). If the user clicks to answer the call on the interface of electronic device A (electronic device A can display the recording on electronic device 100), then electronic device 100 can obtain the upstream audio stream data collected by electronic device A through wireless communication module 160, and at the same time, electronic The device 100 obtains the downlink audio stream through the mobile communication module 150, and combines the uplink audio stream data and the downlink audio data through the audio stream processing module to form a recording file. After the call ends, the recording file is saved through the external storage module.
参考图2c,图2c示出了本申请实施例的第二电子设备的硬件结构示意图,第二电子设备200可以是平板电脑。Referring to FIG. 2c, FIG. 2c shows a schematic diagram of a hardware structure of a second electronic device according to an embodiment of the present application, and the second electronic device 200 may be a tablet computer.
下面对第二电子设备200进行具体说明。应该理解的是,图2c所示第二电子设备200仅是一个范例,并且第二电子设备200可以具有比图2c中所示的更多或更少的部件,可以组合两个或多个的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。The second electronic device 200 will be specifically described below. It should be understood that the second electronic device 200 shown in FIG. 2c is only an example, and the second electronic device 200 may have more or fewer components than those shown in FIG. 2c, and may combine two or more components, or may have different component configurations. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application specific integrated circuits.
在本申请的一个实施例中,第二电子设备的硬件结构可以与图2a所示的结构相同,软件结构可以与图2b所示的结构相同,硬件结构也可以不同于图2a所示的结构。In one embodiment of the present application, the hardware structure of the second electronic device may be the same as the structure shown in Figure 2a, the software structure may be the same as the structure shown in Figure 2b, and the hardware structure may also be different from the structure shown in Figure 2a .
如图2c所示,第二电子设备200可以包括:处理器210,存储器220,无线通信模块230,音频模块240,传感器模块250,显示器260和电源模块。其中,音频模块240包括扬声器241和麦克风242。传感器模块250包括压力传感器251和触摸传感器252。As shown in FIG. 2 c , the second electronic device 200 may include: a processor 210 , a memory 220 , a wireless communication module 230 , an audio module 240 , a sensor module 250 , a display 260 and a power supply module. Wherein, the audio module 240 includes a speaker 241 and a microphone 242 . The sensor module 250 includes a pressure sensor 251 and a touch sensor 252 .
处理器210可用于读取和执行计算机可读指令。在一些实施例中,处理器210可以包括控制器、运算器和寄存器。其中,控制器主要负责指令译码,并为指令对应的 操作发出控制信号。运算器主要负责保存指令执行过程中临时存放的寄存器操作数和中间操作结果等。具体实现中,处理器201A的硬件架构可以是专用集成电路(ASIC)架构、MIPS架构、ARM架构或者NP架构等等。 Processor 210 may be used to read and execute computer readable instructions. In some embodiments, the processor 210 may include a controller, an arithmetic unit and registers. Among them, the controller is mainly responsible for instruction decoding, and sends out control signals for the operation corresponding to the instruction. The arithmetic unit is mainly responsible for saving the register operands and intermediate operation results temporarily stored during the execution of the instruction. In a specific implementation, the hardware architecture of the processor 201A may be an application-specific integrated circuit (ASIC) architecture, a MIPS architecture, an ARM architecture, or an NP architecture, and the like.
在一些实施例中,处理器210可以用于解析无线通信模块230接收到的来电信号,如接听发送方设备发送的呼叫请求,以及由第一电子设备发送的是否开启录音功能的状态信息、下行音频流等信息。处理器201A可以用于根据解析结果进行处理操作,如调用显示器260显示通话界面,通话界面可以包括录音时长、以及正在录音的设备名称等。还可以通过获取的是否开启录音功能的状态信息确定是否需要调用音频模块进行录音,以及在通话结束后对录音文件进行保存等。In some embodiments, the processor 210 can be used to analyze the incoming call signal received by the wireless communication module 230, such as answering the call request sent by the sender device, and the status information sent by the first electronic device whether to enable the recording function, the downlink Audio stream and other information. The processor 201A can be used to perform processing operations according to the analysis results, such as invoking the display 260 to display a call interface, where the call interface can include the recording duration and the name of the recording device. It is also possible to determine whether the audio module needs to be invoked for recording through the obtained status information of whether the recording function is enabled, and to save the recording file after the call ends.
存储器220与处理器210耦合,用于存储各种软件程序和/或多组指令。在一些实施例中,存储器220可包括高速随机存取的存储器,并且也可包括非易失性存储器,例如一个或多个磁盘存储设备、闪存设备或其他非易失性固态存储设备。存储器202A可以存储操作系统,例如uCOS,VxWorks、RTLinux等嵌入式操作系统。The memory 220 is coupled with the processor 210 for storing various software programs and/or sets of instructions. In some embodiments, memory 220 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other non-volatile solid-state storage devices. The memory 202A can store operating systems, such as embedded operating systems such as uCOS, VxWorks, and RTLinux.
在一些实施例中,存储器220还可以存储与其连接的设备名称和设备录音能力等信息,进而在存储的设备名称对应的设备通话时,开启了录音功能,在显示器260上显示通话界面,通话界面上可以显示设备名称对应的设备正在录音。In some embodiments, the memory 220 can also store information such as the name of the device connected to it and the recording capability of the device, and then when the device corresponding to the stored device name is in a call, the recording function is turned on, and the call interface is displayed on the display 260. The call interface It can display that the device corresponding to the device name is recording.
无线通信模块230可以提供应用在电子设备200上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块230可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块230接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器210。The wireless communication module 230 can provide applications on the electronic device 200 including wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (wireless fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), frequency modulation (frequency) modulation, FM), near field communication (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 230 may be one or more devices integrating at least one communication processing module. The wireless communication module 230 receives electromagnetic waves, frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 210 .
在一些实施例中,电子设备200可以通过无线通信模块230与其他电子设备实现网络连接,例如,实现与电子设备100的局域网络的连接,以便于实现来电共振、录音能力同步等功能。In some embodiments, the electronic device 200 can realize network connection with other electronic devices through the wireless communication module 230, for example, realize connection with the local area network of the electronic device 100, so as to realize functions such as call resonance and recording capability synchronization.
电子设备200可以通过音频模块240,扬声器241,麦克风242,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device 200 may implement audio functions through an audio module 240, a speaker 241, a microphone 242, and an application processor. Such as music playback, recording, etc.
音频模块240用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块240还可以用于对音频信号编码和解码。并将编码或解码后的音频传输给处理器210中,以使得处理器210基于该编码或解码后音频进行语音识别,并确定该音频对应的内容,如,通话过程中的音频流等。在一些实施例中,音频模块240可以设置于处理器210中,或将音频模块240的部分功能模块设置于处理器210中。The audio module 240 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal. The audio module 240 may also be used to encode and decode audio signals. And transmit the encoded or decoded audio to the processor 210, so that the processor 210 performs speech recognition based on the encoded or decoded audio, and determines the content corresponding to the audio, such as the audio stream during a call. In some embodiments, the audio module 240 may be set in the processor 210 , or some functional modules of the audio module 240 may be set in the processor 210 .
麦克风242,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当通话时,用户可以将嘴巴靠近麦克风242发声,将声音信号输入到麦克风242,麦克风242进一步将声音信号输送给处理器210,以使处理器210识别出语音内容。此外,音频模块240还可以实现对从麦克风242输入的音频数据进行录制,以便于通话记录文件的保存。The microphone 242, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When talking, the user can put his mouth close to the microphone 242 to make a sound, input the sound signal to the microphone 242, and the microphone 242 further sends the sound signal to the processor 210, so that the processor 210 can recognize the voice content. In addition, the audio module 240 can also record the audio data input from the microphone 242, so as to save the call record file.
压力传感器251用于感受压力信号,可以将压力信号转换成电信号。压力传感器 251的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器251,电极之间的电容改变。电子设备200根据电容的变化确定压力的强度。在本申请的一个实施例中,压力传感器251可以设置在电子设备的表面。当有按压或触摸操作作用于压力传感器251时,电子设备200根据压力传感器251检测按压或触摸操作强度,并将检测的按压或触摸操作强度值传输给处理器210,处理器210根据强度值进一步执行相应的指令。例如,当用户按压压力传感器251的压力值达到预设值时,则处理器210开启语音助手功能,进行语音通话,或者压力值达到预设值时,可以通过受话器听到电子设备200播报的设备标识。电子设备200也可以根据压力传感器251的检测信号计算按压或触摸的位置。在一些实施例中,当用户按压显示器的显示屏时,处理器210可以通过压力传感器251获得压力值,以及按压的位置,并确定用户想要接听电话或者挂断电话,也或者是开启录音功能或关闭录音功能等。The pressure sensor 251 is used for sensing pressure signals, and can convert the pressure signals into electrical signals. There are many types of pressure sensors 251, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may be comprised of at least two parallel plates with conductive material. When a force is applied to the pressure sensor 251, the capacitance between the electrodes changes. The electronic device 200 determines the intensity of pressure according to the change in capacitance. In one embodiment of the present application, the pressure sensor 251 may be disposed on the surface of the electronic device. When a pressing or touching operation acts on the pressure sensor 251, the electronic device 200 detects the strength of the pressing or touching operation according to the pressure sensor 251, and transmits the detected pressing or touching operation strength value to the processor 210, and the processor 210 further Execute the corresponding command. For example, when the pressure value of the user pressing the pressure sensor 251 reaches a preset value, the processor 210 turns on the voice assistant function to make a voice call; logo. The electronic device 200 may also calculate the pressed or touched position according to the detection signal of the pressure sensor 251 . In some embodiments, when the user presses the display screen of the display, the processor 210 can obtain the pressure value and the pressed position through the pressure sensor 251, and determine that the user wants to answer the call or hang up the call, or turn on the recording function Or turn off the recording function, etc.
触摸传感器252,也称“触控器件”。触摸传感器252用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。例如,用户点击或双击事件等。在另一些实施例中,触摸传感器252也可以设置于电子设备200的表面,与压力传感器251所处的位置不同。The touch sensor 252 is also called "touch device". The touch sensor 252 is used to detect a touch operation on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. For example, user click or double click events etc. In some other embodiments, the touch sensor 252 may also be disposed on the surface of the electronic device 200 , which is different from the position of the pressure sensor 251 .
电源模块270可用于控制电源向电子设备200的供电。The power module 270 can be used to control the power supply of the power supply to the electronic device 200 .
显示器260包括显示屏,用于显示图像,在一些实施例中,可以显示通话界面,界面上可以包括当前录音时长,或者包括录音时长及当前正在录音设备的提示信息,例如,电子设备100正在录音。The display 260 includes a display screen for displaying images. In some embodiments, a call interface can be displayed, and the interface can include the current recording duration, or include the recording duration and the prompt information of the device currently recording, for example, the electronic device 100 is recording .
下面结合不同的场景,对本申请实施例的基于分布式通话录音同步方法进行描述。The method for synchronizing call recording based on the distributed call according to the embodiment of the present application will be described below in combination with different scenarios.
本申请实施例实施的基础在于当呼叫方发送来电信号,第一电子设备和第二电子设备可以同步接收该来电事件,并同时进行来电提示,以使用户可以选择其中一个设备进行通信。其中,第一电子设备为具有移动电话呼叫功能的设备,即主设备(第一电子设备具有移动数据通信能力)。第二电子设备可以具备移动电话呼叫功能,也可以不具备,此处并不作为限定。The implementation of the embodiments of the present application is based on the fact that when the caller sends an incoming call signal, the first electronic device and the second electronic device can receive the incoming call event synchronously, and simultaneously perform an incoming call notification, so that the user can select one of the devices for communication. Wherein, the first electronic device is a device with a mobile phone calling function, that is, a main device (the first electronic device has mobile data communication capability). The second electronic device may or may not have the mobile phone calling function, which is not limited here.
下面实施例中以该方法应用于由手机(第一电子设备)和平板电脑(第二电子设备)构成的系统为例,手机和平板电脑作为被呼叫方设备,手机可以为图2a和图2b所示的第一电子设备,平板电脑可以是如图2a、图2b和图2c所示结构的第二电子设备。In the following embodiments, the method is applied to a system composed of a mobile phone (first electronic device) and a tablet computer (second electronic device) as an example. The mobile phone and the tablet computer are used as the called party equipment, and the mobile phone can be as shown in Figure 2a and Figure 2b The first electronic device shown, the tablet computer may be a second electronic device with structures as shown in Fig. 2a, Fig. 2b and Fig. 2c.
在本申请的实施例中,手机和平板电脑可以是基于信任环关联的两个电子设备,例如,通过荣耀账号分别登陆在手机和平板电脑上,基于荣耀账号建立信任关系,在建立信任关系基础上再考虑执行分布式通话录音同步方法,以提高用户通话的安全性。In the embodiment of this application, the mobile phone and the tablet computer can be two electronic devices associated based on a trust ring. Then consider implementing a distributed call recording synchronization method to improve the security of user calls.
本申请的实施例中,从开启录音功能的角度考虑,可以包括两个大的场景,分别为手机作为主设备开启录音功能的场景,和,手机未开启录音功能且平板电脑开启录音功能。其中,手机开启录音功能的场景进一步包括:手机开启录音功能,且平板电脑开启录音功能,以及手机开启录音功能,且平板电脑未开启录音功能。In the embodiment of the present application, from the perspective of enabling the recording function, two major scenarios may be included, namely, the scenario where the mobile phone is used as the main device to enable the recording function, and the recording function is not enabled on the mobile phone and the recording function is enabled on the tablet computer. Wherein, the scene where the mobile phone turns on the recording function further includes: the mobile phone turns on the sound recording function, and the tablet computer turns on the sound recording function, and the mobile phone turns on the sound recording function, and the tablet computer does not turn on the sound recording function.
下面结合两个场景对本申请实施例的基于分布式通话录音同步方法进行描述。The following describes the synchronization method based on distributed call recording in the embodiment of the present application in combination with two scenarios.
场景1 scene 1
手机开启录音功能的情况下,平板电脑接通来电事件的场景。When the recording function of the mobile phone is turned on, the scene where the tablet computer connects to the incoming call event.
参考图3a,图3a示出了本申请实施例的一场景下的基于分布式通话录音同步方法的交互流程图。该方法应用于由手机和平板电脑组成的系统中,如图3a所示,包括手机和平板电脑,其中手机包括通话界面11(显示屏)、录音同步模块12、分布式框架13、设置模块14和文件系统15。平板电脑包括设置模块21、分布式框架22、录音同步模块23和通话界面24(显示屏)。如图3a所示,该流程图包括S301-S319。Referring to FIG. 3 a , FIG. 3 a shows an interactive flow chart of a method for synchronizing calls based on distributed call recording in a scenario according to an embodiment of the present application. The method is applied in a system composed of a mobile phone and a tablet computer, as shown in Figure 3a, including a mobile phone and a tablet computer, wherein the mobile phone includes a call interface 11 (display screen), a recording synchronization module 12, a distributed framework 13, and a setting module 14 and filesystem 15. The tablet computer includes a setting module 21, a distributed framework 22, a recording synchronization module 23 and a call interface 24 (display screen). As shown in Fig. 3a, the flowchart includes S301-S319.
S301,服务器下发来电信号,手机获得来电信号。S301. The server sends an incoming call signal, and the mobile phone obtains the incoming call signal.
在本申请的实施例中,手机可以通过如图2a中的移动通信模块150获得来电信号,并由内核层生成来电事件,再由分布式框架13获取。In the embodiment of the present application, the mobile phone can obtain the incoming call signal through the mobile communication module 150 as shown in FIG.
S302,手机和平板电脑来电共振。结合S301,分布式框架13将来电事件同步给的平板电脑的分布式框架22,以实现手机和平板电脑能够同时实现来电事件的提示,例如响铃、振动、界面提示等。S302, mobile phone and tablet computer call resonance. In conjunction with S301, the distributed framework 13 synchronizes the incoming call event to the distributed framework 22 of the tablet computer, so that the mobile phone and the tablet computer can simultaneously realize the reminder of the incoming call event, such as ringing, vibration, interface prompting, etc.
在手机和平板电脑接到来电事件后,接通电话前,手机和平板电脑分别需要确认录音的状态信息,例如,开启自动录音或未开自动启录音等,并同步以确定是由手机执行录音或者由平板电脑录音。在S303-S308中将描述确定录音设备的过程,及数据的同步。After the mobile phone and tablet computer receive an incoming call event, before connecting the call, the mobile phone and tablet computer need to confirm the status information of the recording, for example, whether to enable automatic recording or not to enable automatic recording, etc., and synchronize to confirm that the recording is performed by the mobile phone Or record from a tablet. The process of determining the recording device and data synchronization will be described in S303-S308.
S303,手机的分布式框架13将来电事件通知录音同步模块12,分布式框架22将来电事件通知录音同步模块23。S303, the distributed framework 13 of the mobile phone notifies the recording synchronization module 12 of the incoming call event, and the distributed framework 22 notifies the recording synchronization module 23 of the incoming call event.
S304,手机的录音同步模块12从设置模块14查询录音开启状态请求,平板电脑的录音同步模块23从设置模块21查询录音开启状态请求。S304 , the recording synchronization module 12 of the mobile phone inquires the recording enable state request from the setting module 14 , and the recording synchronization module 23 of the tablet computer inquires the recording enable state request from the setting module 21 .
在本申请的实施例中,场景1中,以手机中开启自动录音功能,平板电脑中未开启自动录音功能为例,设置模块14查询到开启录音功能的状态信息,设置模块21查询到未开启录音功能的状态信息,In the embodiment of the present application, in scenario 1, taking the automatic recording function enabled in the mobile phone and not enabled in the tablet computer as an example, the setting module 14 inquires about the state information of enabling the recording function, and the setting module 21 inquires that the recording function is not enabled status information for the recording function,
S305,返回录音的状态信息。例如,录音同步模块12获得开启录音功能的态信息,录音同步模块23获得未开启录音功能的态信息。S305. Return the status information of the recording. For example, the recording synchronization module 12 obtains the status information that the recording function is enabled, and the recording synchronization module 23 obtains the status information that the recording function is not enabled.
S306,录音同步模块12向分布式框架13发送请求录音能力同步。S306, the recording synchronization module 12 sends a request for recording capability synchronization to the distributed framework 13.
S307,录音能力同步。例如,分布式框架13将开启录音功能的状态信息和设备名称同步给分布式框架22,以便于在通话界面上显示录音设备的名称,例如,手机A正在录音开启时可以。S307, the recording capability is synchronized. For example, the distributed framework 13 synchronizes the status information and device name of the recording function to the distributed framework 22, so that the name of the recording device can be displayed on the call interface, for example, when the mobile phone A is recording and starting.
S308,分布式框架22将录音能力发送给语音同步模块23,分布式框架13将平板电脑的录音能力缓存,即在手机开启录音功能的情况下,平板电脑的开启录音功能与否可以保留。S308, the distributed framework 22 sends the recording capability to the voice synchronization module 23, and the distributed framework 13 caches the recording capability of the tablet computer, that is, if the recording function of the mobile phone is enabled, whether the recording function of the tablet computer can be retained.
此外,在一些实施例中,当手机开启录音功能时,为了确保录音能力的正常进行,可以将平板电脑上的开启录音的功能关闭,即在界面上,录音键置灰,用户无法通过录音键在平板电脑上开启或关闭录音功能。当手机和平板的录音能力同步后,如手机开启的录音功能的信息状态同步给平板电脑。手机与平板电脑上显示来电接听的界面。In addition, in some embodiments, when the recording function is enabled on the mobile phone, in order to ensure the normal progress of the recording capability, the function of enabling recording on the tablet computer can be turned off, that is, on the interface, the recording button is grayed out, and the user cannot use the recording button to record. Turn recording on or off on your tablet. When the recording capabilities of the mobile phone and the tablet are synchronized, the information status of the recording function enabled by the mobile phone is synchronized to the tablet computer. The interface for answering incoming calls is displayed on the mobile phone and the tablet computer.
参考图3b,图3b示例性示出了手机和平板电脑的来电提示界面。图3b中的(1)为手机的来电提示界面,图3b中的(2)为平板电脑的来电提示界面,当接收到呼叫方设备的呼叫请求时,手机和平板电脑实现来电共振,并分别输出来电提示界面,用 户可以通过手机的提示界面上的接受键接听电话,也可以通过平板电脑上的接受键接听电话。来电输出的过程可参考S301-S308的描述。在本申请的一些实施例中,手机与平板电脑的来电共振也可以是由服务器直接下发给手机和平板电脑,此处并不作为限定。Referring to FIG. 3b, FIG. 3b exemplarily shows an incoming call prompt interface of a mobile phone and a tablet computer. (1) in Figure 3b is the incoming call prompt interface of the mobile phone, and (2) in Figure 3b is the incoming call prompt interface of the tablet computer. The incoming call prompt interface is output, and the user can answer the call through the accept key on the prompt interface of the mobile phone, or through the accept key on the tablet computer. For the process of incoming call output, refer to the description of S301-S308. In some embodiments of the present application, the incoming call resonance of the mobile phone and the tablet computer may also be directly sent by the server to the mobile phone and the tablet computer, which is not limited here.
在本申请的实施例中,若用户在手机上接听电话,即为常规的来电接听,此处不进行描述。而当用户从平板电脑上接听来电时,其录音功能的能力需要进行同步,因此数据的传输过程和界面显示会发生变化,因此,在下面的实施例中,主要描述在平板电脑上接听电话的场景。In the embodiment of the present application, if the user answers the call on the mobile phone, it is a conventional incoming call answering, which will not be described here. And when the user answers an incoming call from the tablet computer, the ability of its recording function needs to be synchronized, so the data transmission process and interface display will change. Therefore, in the following embodiments, the main description is to answer the call on the tablet computer. Scenes.
如图3a所示,当用户通过平板电脑上的接受键接听电话后,则个模块的交互流程,可参考S309-S319。As shown in Figure 3a, when the user answers the call through the accept button on the tablet computer, the interaction process of each module can refer to S309-S319.
S309,录音同步模块23可将获得录音能力输入给电话应用程序,以实现通话界面的更新。在本申请的实施例中,录音能力的信息可以包括手机开启录音功能信息以及手机的名称,如,Magic3。平板电脑在获得手机的录音能力后,将在接听电话的界面上输出响应的信息,以使得用户可以在平板电脑的通话界面上获知录音情况。S309, the recording synchronization module 23 can input the obtained recording capability to the phone application program, so as to update the call interface. In the embodiment of the present application, the recording capability information may include the information of enabling the recording function of the mobile phone and the name of the mobile phone, such as Magic3. After the tablet computer obtains the recording capability of the mobile phone, it will output corresponding information on the interface of answering the call, so that the user can know the recording situation on the call interface of the tablet computer.
当平板电脑接通电话后,会将接通电话的通知告知手机,如图3a中的310-313,手机和平板电脑通过分布式框架实现接通通知,并且手机上更新通话界面。在本申请的实施例中,S309与S310-S313可以同时被执行,并不代表先后顺序。从而实现在用户接听电话后,感知不到手机与平板电脑更新通话界面的先后顺序。When the tablet computer connects to the call, it will inform the mobile phone of the notification of the connected call, as shown in 310-313 in Figure 3a. The mobile phone and the tablet computer realize the connection notification through the distributed framework, and the call interface is updated on the mobile phone. In the embodiment of the present application, S309 and S310-S313 may be executed at the same time, and do not represent a sequential order. In this way, after the user answers the call, he cannot perceive the order in which the mobile phone and the tablet computer update the call interface.
参考图4所示,图4示例性示出了手机接通电话后的界面示意图。如图4所示,界面410上包括可以开启或关闭录音功能的录音键411。当接通电话后,该录音键对应的位置显示录音时长,例如“01:03”秒。此外,界面410上还可以显示其他的功能键,例如,“等待”、“添加通话”、“视频通话”、“静音”、“联系人”、“拨号盘”、“耳机”和可以挂断电话的功能键“挂断”,以及用于将接听通话流转到手机上的“收回”功能键等。用户可以通过这些功能键实现想要的效果。此外,在录音时,可以在界面410上显示录音的提示图标412,用户也可以通过图标了解手机正在录音。Referring to FIG. 4 , FIG. 4 exemplarily shows a schematic interface of the mobile phone after the call is connected. As shown in FIG. 4 , the interface 410 includes a recording key 411 that can enable or disable the recording function. When the call is connected, the position corresponding to the recording key displays the recording duration, for example, "01:03" seconds. In addition, other function keys can also be displayed on the interface 410, for example, "wait", "add call", "video call", "mute", "contact", "dial pad", "headphone" and hang up The phone's function key "hang up", and the "retract" function key for transferring the incoming call flow to the mobile phone, etc. Users can achieve desired effects through these function keys. In addition, when recording, a recording prompt icon 412 can be displayed on the interface 410, and the user can also know that the mobile phone is recording through the icon.
参考图5所示,图5示例性示出了平板电脑接通电话后的界面示意图。如图5所示,界面510上包括可以开启或关闭录音功能的录音键511。在本申请中,由于录音功能在手机侧开启,因此,为了能够确保手机侧录音的正常进行,平板电脑上的录音键关闭开启或关闭录音的功能,即置灰处理。当接通电话后,该录音键511对应的位置显示录音时长,例如“01:03”秒,以及显示由哪一个设备在录音例如“Magic3正在录音”,用户可以通过观察设备名称确定当前录音是安全的。此外,界面510上还可以显示其他的功能键,例如,“等待”、“添加通话”、“视频通话”、“静音”、“联系人”、“拨号盘”、“耳机”和可以挂断电话的功能键“挂断”,以及用于断开连接,将通话转移到手机上的“返回手机”功能键等。用户可以通过这些功能键实现想要的效果。Referring to FIG. 5 , FIG. 5 exemplarily shows a schematic interface of the tablet computer after the phone is connected. As shown in FIG. 5 , the interface 510 includes a recording key 511 that can enable or disable the recording function. In this application, since the recording function is enabled on the mobile phone side, in order to ensure the normal progress of the recording on the mobile phone side, the recording key on the tablet computer is turned off to enable or disable the recording function, that is, it is grayed out. When the call is connected, the position corresponding to the recording key 511 displays the recording duration, such as "01:03" seconds, and which device is recording, such as "Magic3 is recording", and the user can determine the current recording by observing the device name. safe. In addition, other function keys can also be displayed on the interface 510, for example, "wait", "add call", "video call", "mute", "contact", "dial pad", "headphone" and hang up The function key "hang up" of the phone, and the function key "return to mobile phone" for disconnecting, transferring the call to the mobile phone, etc. Users can achieve desired effects through these function keys.
此外,在接通电话后,平板电脑将获得用户输入的语音,具体可以通过平板电脑的麦克风获得用户输入的语音,平板电脑的音频模块将声音信号转换为电信号(上行音频流),并传递给录音同步模块23。In addition, after the call is connected, the tablet computer will obtain the voice input by the user. Specifically, the voice input by the user can be obtained through the microphone of the tablet computer. The audio module of the tablet computer converts the sound signal into an electrical signal (uplink audio stream) and transmits To the recording synchronization module 23.
S314,录音同步模块23将上行音频流发送给分布式框架22。S314, the recording synchronization module 23 sends the upstream audio stream to the distributed framework 22.
S315,分布式框架22将上行音频流同步给手机侧的分布式框架13。S315, the distributed framework 22 synchronizes the upstream audio stream to the distributed framework 13 on the mobile phone side.
S316,分布式框架13将上行音频流传输给录音同步模块12。在本申请的实施例中,S314-S316和S310-S312可以同时进行。此外,录音同步模块12还需要获取由呼叫方设备发送的上行音频流。S316, the distributed framework 13 transmits the upstream audio stream to the recording synchronization module 12. In the embodiment of the present application, S314-S316 and S310-S312 can be performed simultaneously. In addition, the recording synchronization module 12 also needs to obtain the upstream audio stream sent by the calling device.
S317,录音同步模块将上行音频流和下行音频流合并。S317, the recording synchronization module merges the upstream audio stream and the downstream audio stream.
S318,通话结束后,录音结束,录音同步模块将合并后的完整录音文件,发送给文件系统15(例如图2a中的内部存储器,也可以通过外部存储器接口存储到外部存储器中)保存。S318, after the call ends, the recording ends, and the recording synchronization module sends the merged complete recording file to the file system 15 (for example, the internal memory in Figure 2a, which can also be stored in the external memory through the external memory interface) for storage.
根据本申请实施例的基于分布式通话的通话录音同步方法,可以实现录音能力在手机和平板电脑间的同步,从而可以实现对重要文件的保存,此外,在接通来电的平板电脑(非开启录音功能的设备,或非主录音设备)上和手机的通话界面上可同步显示录音信息,例如,录音时长、以及正在录音的设备名称(Magic3),及状态(正在录音),从而便于用户及时了解当前录音设备是否能够确保信息的安全性。According to the call recording synchronization method based on distributed calls in the embodiment of the present application, the synchronization of the recording ability between the mobile phone and the tablet computer can be realized, so that the preservation of important files can be realized. Recording information can be displayed synchronously on the device with recording function, or on the call interface of the mobile phone, such as the recording time, the name of the recording device (Magic3), and the status (recording), so that users can timely Find out if your current recording equipment is capable of keeping your information secure.
在上述实施例中,是以手机侧开启自动录音功能为例进行的说明,在一些实施例中,当手机和平板电脑均未开启自动录音功能时,用户还可以通过界面上的录音键,例如,录音键411或录音键511开启或关闭录音功能,并在确定开启后,同步录音能力。手动开启录音功能时,录音能力的同步过程可参考图3a中的S306和S307。在手动录音开启后,手机和平板电脑的界面图可参考图4和图5所示。音频流的采集、合并录音文件以及录音文件的保存过程可以参考图3a中S314-S319,不在详细描述。In the above-mentioned embodiment, the explanation is carried out by taking the automatic recording function on the mobile phone as an example. In some embodiments, when the automatic recording function is not enabled on the mobile phone and the tablet computer, the user can also use the recording button on the interface, for example , the recording key 411 or the recording key 511 turns on or off the recording function, and after it is confirmed to be turned on, the recording function is synchronized. When the recording function is manually enabled, the synchronization process of the recording capability may refer to S306 and S307 in FIG. 3a. After the manual recording is turned on, the interface diagrams of the mobile phone and the tablet computer can be shown in Figure 4 and Figure 5. The process of collecting audio streams, merging recording files, and saving recording files can refer to S314-S319 in FIG. 3a, and will not be described in detail.
场景2 scene 2
手机未开启录音功能的情况下,当平板电脑接通来电事件时。When the recording function of the mobile phone is not enabled, when the tablet PC receives an incoming call event.
参考图6,图6示出了本申请实施例的另一场景下的基于分布式通话录音同步方法的交互流程图。该方法应用于由手机和平板电脑组成的系统中,如图6所示,包括手机和平板电脑,其中手机包括通话界面11(显示屏)、录音同步模块12、分布式框架13、设置模块14和文件系统15。平板电脑包括设置模块21、分布式框架22、录音同步模块23、通话界面24(显示屏)和文件系统。如图6所示,该流程图包括S601-S626。Referring to FIG. 6 , FIG. 6 shows an interactive flowchart of a distributed call recording synchronization method in another scenario of the embodiment of the present application. This method is applied in the system that is made up of mobile phone and tablet computer, as shown in Figure 6, comprises mobile phone and tablet computer, and wherein mobile phone comprises call interface 11 (display screen), recording synchronization module 12, distributed framework 13, setting module 14 and filesystem 15. The tablet computer includes a setting module 21, a distributed framework 22, a recording synchronization module 23, a call interface 24 (display screen) and a file system. As shown in FIG. 6, the flowchart includes S601-S626.
S601到S611为界面显示前,手机和平板电脑的各个模块同步录音能力的过程。其中,S601-S605与S301-S305的过程相同,此处不在详述。S601 to S611 are the process of synchronizing the recording capability of each module of the mobile phone and the tablet computer before the interface is displayed. Wherein, the process of S601-S605 is the same as that of S301-S305, and will not be described in detail here.
S606,手机与平板电脑同步录音能力。例如,手机通过分布式框架13将未开启自动录音功能(录音能力)告知平板电脑的分布式框架22,以使平板电脑确认手机未开启录音功能。S606, mobile phone and tablet computer synchronous recording capability. For example, the mobile phone informs the distributed framework 22 of the panel computer that the automatic recording function (recording capability) is not opened through the distributed framework 13, so that the tablet computer confirms that the mobile phone does not open the recording function.
S607,分布式框架22将手机未开启录音功能的信息发送给录音同步模块23.S607, the distributed framework 22 sends the information that the recording function of the mobile phone is not turned on to the recording synchronization module 23.
S608,录音同步模块23根据自身开启录音功能,而手机未开启录音功能确定由自身进行录音。S608, the recording synchronization module 23 determines that the recording is performed by itself according to the fact that the recording function is enabled by itself, but the recording function of the mobile phone is not enabled.
S609,录音同步模块23向分布式框架22发送请求录音能力同步。S609, the recording synchronization module 23 sends a recording capability synchronization request to the distributed framework 22.
S610,分布式框架22将录音能力同步给分布式框架13。其中,录音能力同步的过程包括设备名称,即平板电脑的名称,例如平板A,以及平板电脑开启录音功能的信息。从而使手机获得录音设备名称,及显示对应的录音信息等。S610, the distributed framework 22 synchronizes the recording capability to the distributed framework 13. Wherein, the process of synchronizing the recording ability includes the device name, that is, the name of the tablet computer, such as tablet A, and information about enabling the recording function of the tablet computer. In this way, the mobile phone obtains the name of the recording device, and displays the corresponding recording information.
S611,分布式框架23将录音能力发送给录音同步模块12,以使录音同步模块更新来电提示界面,且平板电脑的录音同步模块23更新通话界面显示来电提示界面。实现平板电脑与手机同步录音能力,且同时显示来电提示界面。其中界面示意图可参考图3b所示。S611, the distributed framework 23 sends the recording capability to the recording synchronization module 12, so that the recording synchronization module updates the incoming call prompt interface, and the recording synchronization module 23 of the tablet computer updates the call interface to display the incoming call prompt interface. Realize the synchronous recording capability of the tablet computer and the mobile phone, and display the call prompt interface at the same time. The schematic diagram of the interface can be referred to as shown in FIG. 3b.
如图6所示,当用户通过平板电脑上的接受键接听电话后,则个模块的交互流程,可参考S612-S626。其中,S612-S615与图3a中的S310-S313相同。As shown in Figure 6, when the user answers the call through the accept button on the tablet computer, the interaction process of each module can refer to S612-S626. Wherein, S612-S615 are the same as S310-S313 in Fig. 3a.
当接通通话时,手机和平板电脑的通话界面可参考图7和图8所示。When the call is connected, the call interface of the mobile phone and the tablet computer can be referred to as shown in FIG. 7 and FIG. 8 .
参考图7所示,图7示出了手机接通电话后的界面示意图。如图7所示,界面710上包括可以开启或关闭录音功能的录音键711。当接通电话后,该录音键对应的位置显示录音时长,例如“01:03”秒,以及“平板A正在录音”的文字提示信息,用户根据提示信息确认当前录音是否安全。在一些实施例中,由于平板电脑开启的录音功能,则录音键711的开启或关闭录音功能将被关闭,即置灰处理。此外,界面710上还可以显示其他的功能键,例如,“等待”、“添加通话”、“视频通话”、“静音”、“联系人”、“拨号盘”、“耳机”和可以挂断电话的功能键“挂断”,以及用于将接听通话流转到手机上的“收回”功能键等。用户可以通过这些功能键实现想要的效果。Referring to FIG. 7, FIG. 7 shows a schematic diagram of the interface of the mobile phone after the call is connected. As shown in FIG. 7 , the interface 710 includes a recording key 711 that can enable or disable the recording function. When the call is connected, the corresponding position of the recording key displays the recording duration, such as "01:03" seconds, and a text prompt message "Tablet A is recording", and the user confirms whether the current recording is safe according to the prompt message. In some embodiments, since the recording function of the tablet computer is enabled, the function of enabling or disabling the recording of the recording key 711 will be disabled, that is, grayed out. In addition, other function keys can also be displayed on the interface 710, for example, "wait", "add call", "video call", "mute", "contact", "dial pad", "headset" and hang up The phone's function key "hang up", and the "retract" function key for transferring the incoming call flow to the mobile phone, etc. Users can achieve desired effects through these function keys.
参考图8所示,图8示出了平板电脑接通电话后的界面示意图。如图8所示,界面810上包括可以开启或关闭录音功能的录音键811。当接通电话后,该录音键811对应的位置显示录音时长,例如“01:03”秒。此外,界面710上还可以显示其他的功能键,例如,“等待”、“添加通话”、“视频通话”、“静音”、“联系人”、“拨号盘”、“耳机”和可以挂断电话的功能键“挂断”,以及用于断开连接,将通话转移到手机上的“返回手机”功能键等。用户可以通过这些功能键实现想要的效果。Referring to FIG. 8 , FIG. 8 shows a schematic diagram of the interface of the tablet computer after the phone is connected. As shown in FIG. 8 , the interface 810 includes a recording key 811 that can enable or disable the recording function. When the call is connected, the position corresponding to the recording key 811 displays the recording duration, for example, "01:03" seconds. In addition, other function keys can also be displayed on the interface 710, for example, "wait", "add call", "video call", "mute", "contact", "dial pad", "headset" and hang up The function key "hang up" of the phone, and the function key "return to mobile phone" for disconnecting, transferring the call to the mobile phone, etc. Users can achieve desired effects through these function keys.
如图6所示,S617-S626是录音文件保存的过程。As shown in Figure 6, S617-S626 is the process of saving the recording file.
S616,手机通过分布式框架13将下行音频流同步给录音同步模块,该过程进一步可以是分布式框架13将下行语音流同步给分布式框架22,再由分布式框架22将下行语音流输入发送给录音同步模块23。,此外,录音同步模块23还获取用户输入的语音对应的上行音频流。S616, the mobile phone synchronizes the downlink audio stream to the recording synchronization module through the distributed framework 13, and this process can further be that the distributed framework 13 synchronizes the downlink voice stream to the distributed framework 22, and then the distributed framework 22 inputs and sends the downlink voice stream To the recording synchronization module 23. , in addition, the recording synchronization module 23 also acquires the upstream audio stream corresponding to the voice input by the user.
S617,录音同步模块23合并上行音频流和下行音频流。S617, the recording synchronization module 23 merges the upstream audio stream and the downstream audio stream.
S618,当用户通过界面挂断通话,则通话界面24通知录音同步模块停止录音。S618, when the user hangs up the call through the interface, the call interface 24 notifies the recording synchronization module to stop recording.
S619,录音同步模块23将通话过程中录制的完整录音文件发送到文件系统保存。S619, the recording synchronization module 23 sends the complete recording file recorded during the call to the file system for storage.
此外,在一些实施例中,为了能够将文件在手机上能够保存,可以在通话结束后,平板电脑通过界面显示确认信息,是否同步到手机上,并在接收到用户确认同步的信息后,将录音文件同步给手机保存。具体实施过程可以参考S620-S625。In addition, in some embodiments, in order to be able to save the file on the mobile phone, after the call ends, the tablet computer can display confirmation information through the interface, whether to synchronize to the mobile phone, and after receiving the user's confirmation of synchronization information, the The recording files are synchronized to the mobile phone for storage. For the specific implementation process, refer to S620-S625.
S620,录音同步模块23接收到停止录音通知后,停止录音,并且向通话界面发送同步文件提示信息。S620, after receiving the recording stop notification, the recording synchronization module 23 stops recording, and sends a synchronization file prompt message to the call interface.
S621,通话界面显示是否同步录音文件的选项,以便于用户选择同步到手机保存,或在手机上保存。S621, the call interface displays an option of whether to synchronize the recording file, so that the user can choose to synchronize to the mobile phone for storage, or to save it on the mobile phone.
在本申请的实施例中,通话界面显示内容还可以根据平板电脑自动开启录音功能或手动开启录音功能两种情况,区别进行显示。在一些实施例中也可以相同。In the embodiment of the present application, the content displayed on the call interface can also be displayed differently according to the two situations in which the tablet computer automatically turns on the recording function or manually turns on the recording function. It can also be the same in some embodiments.
参考图9a所示,图9a示例性示出了平板电脑开启自动录音功能的情况下的界面示意图。如图9a所示,在平板电脑的主界面上弹出提示框,提醒客户确认,例如“录音文件已经保存至当前设备,是否同步录音文件至手机?”并且显示选项“是”和“否”供用户选择,当用户选择是,则通话界面执行S622。若选择否,则结束。Referring to Fig. 9a, Fig. 9a exemplarily shows a schematic diagram of the interface when the automatic recording function is enabled on the tablet computer. As shown in Figure 9a, a prompt box pops up on the main interface of the tablet computer to remind the customer to confirm, such as "the recording file has been saved to the current device, do you want to synchronize the recording file to the mobile phone?" and display the options "yes" and "no" for The user selects, and when the user selects Yes, the call interface executes S622. If you choose No, it ends.
参考图9b所示,图9b示例性示出了平板电脑手动开启录音功能的情况下的界面示意图。如图9b所示,在平板电脑的通话界面上弹出提示框,提醒客户确认,例如“录音文件已经保存至当前设备,是否同步录音文件至手机?”并且显示选项“是”和“否”供用户选择,当用户选择是,则通话界面执行S622。若选择否,则结束。Referring to FIG. 9b, FIG. 9b exemplarily shows a schematic diagram of an interface when the recording function is manually enabled on the tablet computer. As shown in Figure 9b, a prompt box pops up on the call interface of the tablet computer to remind the customer to confirm, such as "the recording file has been saved to the current device, do you want to synchronize the recording file to the mobile phone?" and display options "yes" and "no" for The user selects, and when the user selects Yes, the call interface executes S622. If you choose No, it ends.
S622,通话界面24通知录音同步模块23同步录音文件。S622, the call interface 24 notifies the recording synchronization module 23 to synchronize the recording file.
S623,录音同步模块23向分布式框架22发送请求录音文件同步。S623, the recording synchronization module 23 sends a request to the distributed framework 22 for recording file synchronization.
S624,分布式框架22将录音文件同步给分布式框架13。S624, the distributed framework 22 synchronizes the recording file to the distributed framework 13.
S625,录音同步模块12从分布式框架13获取录音文件。S625, the recording synchronization module 12 obtains the recording file from the distributed framework 13.
S626,录音同步模块12发送给文件系统15进行保存。S626, the recording synchronization module 12 sends it to the file system 15 for storage.
在上面的实施例中,用户在使用平板电脑通话的过程中,若手机与平板电脑的网络连接断开,例如手机被带出门,则平板电脑可以将通话流转到手机上,以便于用户可以继续通过手机完成通话。此时,平板电脑上的停止录音。并将录音文件保存至本地。整个录音结束。In the above embodiment, when the user is talking on the tablet computer, if the network connection between the mobile phone and the tablet computer is disconnected, for example, the mobile phone is taken out, the tablet computer can transfer the call flow to the mobile phone so that the user can continue Complete the call on your phone. At this point, the recording on the tablet stops. And save the recording file locally. The whole recording is over.
在本申请的一些实施例中,手机与平板电脑因断开网络连接而导致平板电脑上的录音停止,且手机仍然通话的情况下,为了确保整个通话录音的完整性,平板电脑也可以将录音流转到云端服务器,由云端服务器继续完成录音,并在手机上通话结束后,向手机和平板电脑请求是否同步完整录音文件的确认信息,以便于在局域网路断开后,通话流转到手机上时,仍然能够确保整个通话过程中的完整录音,提高用户体验。In some embodiments of the present application, when the mobile phone and the tablet computer are disconnected from the network and the recording on the tablet computer stops, and the mobile phone is still talking, in order to ensure the integrity of the entire call recording, the tablet computer can also record Stream to the cloud server, and the cloud server will continue to complete the recording, and after the call on the mobile phone is over, it will request confirmation information from the mobile phone and the tablet whether to synchronize the complete recording file, so that when the LAN is disconnected, the call will be transferred to the mobile phone , can still ensure complete recording during the entire call and improve user experience.
参考图10,本申请还提供一种电子设备,包括:Referring to FIG. 10, the present application also provides an electronic device, including:
存储器1010,用于存储由设备的一个或多个处理器执行的指令,以及 memory 1010 for storing instructions to be executed by one or more processors of the device, and
处理器1020,用于执行上述实施例中结合图3a和图6所解释的方法。The processor 1020 is configured to execute the method explained with reference to FIG. 3 a and FIG. 6 in the above embodiments.
本申请还提供一种计算机可读存储介质,计算机可读存储介质存储有计算机程序,计算机程序被处理器运行时,使得处理器执行上述实施例中3a和图6所解释的方法。The present application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program. When the computer program is run by a processor, the processor executes the method explained in 3a and FIG. 6 in the above embodiment.
本申请还提供一种包含指令的计算机程序产品,当该计算机程序产品在电子设备上运行时,使得处理器执行上述实施例中3a和图6所示的方法。The present application also provides a computer program product containing instructions, and when the computer program product is run on an electronic device, the processor is made to execute the method shown in 3a and FIG. 6 in the above embodiment.
现在参考图11,所示为根据本申请的一实施例的SoC(System on Chip,片上系统)1300的框图。在图11中,相似的部件具有同样的附图标记。另外,虚线框是更先进的SoC的可选特征。在图11中,SoC1300包括:互连单元1350,其被耦合至应用处理器1310;系统代理单元1380;总线控制器单元1390;集成存储器控制器单元1340;一组或一个或多个协处理器1320,其可包括集成图形逻辑、图像处理器、音频处理器和视频处理器;静态随机存取存储器(Static Random Access Memory,SRAM)单元1330;直接存储器存取(DMA)单元1360。在一个实施例中,协处理器1320包括专用处理器,诸如例如网络或通信处理器、压缩引擎、GPGPU、高吞吐量MIC处理器、或嵌入式处理器等。Referring now to FIG. 11 , shown is a block diagram of a SoC (System on Chip, system on a chip) 1300 according to an embodiment of the present application. In Fig. 11, similar parts have the same reference numerals. Also, dashed boxes are optional features for more advanced SoCs. In FIG. 11, SoC 1300 includes: interconnection unit 1350, which is coupled to application processor 1310; system agent unit 1380; bus controller unit 1390; integrated memory controller unit 1340; 1320, which may include integrated graphics logic, an image processor, an audio processor, and a video processor; a static random access memory (Static Random Access Memory, SRAM) unit 1330; a direct memory access (DMA) unit 1360. In one embodiment, coprocessor 1320 includes a special purpose processor such as, for example, a network or communication processor, compression engine, GPGPU, high throughput MIC processor, or embedded processor, among others.
静态随机存取存储器(SRAM)单元1330中可以包括用于存储数据和/或指令的一 个或多个计算机可读介质。计算机可读存储介质中可以存储有指令,具体而言,存储有该指令的暂时和永久副本。该指令可以包括:由处理器中的至少一个单元执行时使Soc1300执行根据上述实施例中的设备通信连接建立方法,具体可参照上述实施例3a和图6所解释的方法,在此不再赘述。Static Random Access Memory (SRAM) unit 1330 may include one or more computer-readable media for storing data and/or instructions. Computer-readable storage media may have instructions stored thereon, and specifically, both temporary and permanent copies of the instructions. The instruction may include: when executed by at least one unit in the processor, causing the Soc1300 to execute the method for establishing a device communication connection according to the above-mentioned embodiment, for details, refer to the method explained in the above-mentioned embodiment 3a and FIG. 6 , and details will not be repeated here. .
本申请公开的机制的各实施例可以被实现在硬件、软件、固件或这些实现方法的组合中。本申请的实施例可实现为在可编程系统上执行的计算机程序或程序代码,该可编程系统包括至少一个处理器、存储系统(包括易失性和非易失性存储器和/或存储元件)、至少一个输入设备以及至少一个输出设备。Various embodiments of the mechanisms disclosed in this application may be implemented in hardware, software, firmware, or a combination of these implementation methods. Embodiments of the present application may be implemented as a computer program or program code executed on a programmable system comprising at least one processor, a storage system (including volatile and non-volatile memory and/or storage elements) , at least one input device, and at least one output device.
可将程序代码应用于输入指令,以执行本申请描述的各功能并生成输出信息。可以按已知方式将输出信息应用于一个或多个输出设备。为了本申请的目的,处理系统包括具有诸如例如数字信号处理器(Digital Signal Processor,DSP)、微控制器、专用集成电路(Application Specific Integrated Circuit,ASIC)或微处理器之类的处理器的任何系统。Program code can be applied to input instructions to perform the functions described herein and to generate output information. The output information may be applied to one or more output devices in known manner. For the purposes of this application, a processing system includes any computer having a processor such as, for example, a Digital Signal Processor (DSP), a microcontroller, an Application Specific Integrated Circuit (ASIC), or a microprocessor. system.
程序代码可以用高级程序化语言或面向对象的编程语言来实现,以便与处理系统通信。在需要时,也可用汇编语言或机器语言来实现程序代码。事实上,本申请中描述的机制不限于任何特定编程语言的范围。在任一情形下,该语言可以是编译语言或解释语言。The program code can be implemented in a high-level procedural language or an object-oriented programming language to communicate with the processing system. Program code can also be implemented in assembly or machine language, if desired. In fact, the mechanisms described in this application are not limited in scope to any particular programming language. In either case, the language may be a compiled or interpreted language.
在一些情况下,所公开的实施例可以以硬件、固件、软件或其任何组合来实现。所公开的实施例还可以被实现为由一个或多个暂时或非暂时性机器可读(例如,计算机可读)存储介质承载或存储在其上的指令,其可以由一个或多个处理器读取和执行。例如,指令可以通过网络或通过其他计算机可读介质分发。因此,机器可读介质可以包括用于以机器(例如,计算机)可读的形式存储或传输信息的任何机制,包括但不限于,软盘、光盘、光碟、光盘只读存储器(Compact Disc Read Only Memory,CD-ROMs)、磁光盘、只读存储器(Read Only Memory,ROM)、随机存取存储器(RAM)、可擦除可编程只读存储器(Erasable Programmable Read Only Memory,EPROM)、电可擦除可编程只读存储器(Electrically Erasable Programmable Read Only Memory,EEPROM)、磁卡或光卡、闪存、或用于利用因特网以电、光、声或其他形式的传播信号来传输信息(例如,载波、红外信号数字信号等)的有形的机器可读存储器。因此,机器可读介质包括适合于以机器(例如,计算机)可读的形式存储或传输电子指令或信息的任何类型的机器可读介质。In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments can also be implemented as instructions carried by or stored on one or more transitory or non-transitory machine-readable (e.g., computer-readable) storage media, which can be executed by one or more processors read and execute. For example, instructions may be distributed over a network or via other computer-readable media. Thus, a machine-readable medium may include any mechanism for storing or transmitting information in a form readable by a machine (e.g., a computer), including, but not limited to, floppy disks, compact discs, compact discs, Compact Disc Read Only Memory , CD-ROMs), magneto-optical disk, read-only memory (Read Only Memory, ROM), random access memory (RAM), erasable programmable read-only memory (Erasable Programmable Read Only Memory, EPROM), electrically erasable Programmable read-only memory (Electrically Erasable Programmable Read Only Memory, EEPROM), magnetic card or optical card, flash memory, or used to transmit information in the form of electricity, light, sound or other forms of transmission using the Internet (for example, carrier waves, infrared signals Tangible machine-readable storage of digital signals, etc.). Thus, a machine-readable medium includes any type of machine-readable medium suitable for storing or transmitting electronic instructions or information in a form readable by a machine (eg, a computer).
在附图中,可以以特定布置和/或顺序示出一些结构或方法特征。然而,应该理解,可能不需要这样的特定布置和/或排序。而是,在一些实施例中,这些特征可以以不同于说明书附图中所示的方式和/或顺序来布置。另外,在特定图中包括结构或方法特征并不意味着暗示在所有实施例中都需要这样的特征,并且在一些实施例中,可以不包括这些特征或者可以与其他特征组合。In the drawings, some structural or methodological features may be shown in a particular arrangement and/or order. However, it should be understood that such specific arrangements and/or orderings may not be required. Rather, in some embodiments, these features may be arranged in a different manner and/or order than shown in the figures of the description. Additionally, the inclusion of structural or methodological features in a particular figure does not imply that such features are required in all embodiments, and in some embodiments these features may not be included or may be combined with other features.
需要说明的是,本申请各设备实施例中提到的各单元/模块都是逻辑单元/模块,在物理上,一个逻辑单元/模块可以是一个物理单元/模块,也可以是一个物理单元/模块的一部分,还可以以多个物理单元/模块的组合实现,这些逻辑单元/模块本身的物理实现方式并不是最重要的,这些逻辑单元/模块所实现的功能的组合才是解决本申 请所提出的技术问题的关键。此外,为了突出本申请的创新部分,本申请上述各设备实施例并没有将与解决本申请所提出的技术问题关系不太密切的单元/模块引入,这并不表明上述设备实施例并不存在其它的单元/模块。It should be noted that each unit/module mentioned in each device embodiment of this application is a logical unit/module. Physically, a logical unit/module can be a physical unit/module, or a physical unit/module. A part of the module can also be realized with a combination of multiple physical units/modules, the physical implementation of these logical units/modules is not the most important, the combination of functions realized by these logical units/modules is the solution The key to the technical issues raised. In addition, in order to highlight the innovative part of this application, the above-mentioned device embodiments of this application do not introduce units/modules that are not closely related to solving the technical problems proposed by this application, which does not mean that the above-mentioned device embodiments do not exist other units/modules.
需要说明的是,在本专利的示例和说明书中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in the examples and descriptions of this patent, relative terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply There is no such actual relationship or order between these entities or operations. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or device. Without further limitations, an element defined by the statement "comprising a" does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.
虽然通过参照本申请的某些优选实施例,已经对本申请进行了图示和描述,但本领域的普通技术人员应该明白,可以在形式上和细节上对其作各种改变,而不偏离本申请的精神和范围。Although this application has been shown and described with reference to certain preferred embodiments thereof, those skilled in the art will understand that various changes in form and details may be made therein without departing from this disclosure. The spirit and scope of the application.

Claims (19)

  1. 一种基于分布式通话录音同步方法,应用于包括第一电子设备和第二电子设备的系统,其中,所述第一电子设备与所述第二电子设备处于近场连接,所述第一电子设备为具有电话呼叫功能的设备,其特征在于,所述方法包括:A synchronization method based on distributed call recording, applied to a system including a first electronic device and a second electronic device, wherein the first electronic device and the second electronic device are in a near-field connection, and the first electronic device The device is a device with a phone call function, wherein the method includes:
    所述第一电子设备接收来自呼叫方的来电事件;The first electronic device receives an incoming call event from a calling party;
    所述第一电子设备将所述来电事件通知所述第二电子设备,并由所述第二电子设备接听所述来电事件,所述接听所述来电事件用于表示所述第二电子设备与所述呼叫方进行通话;The first electronic device notifies the second electronic device of the incoming call event, and the second electronic device answers the incoming call event, and the answering of the incoming call event is used to indicate that the second electronic device and said calling party makes a call;
    当所述通话被挂断时,所述第一电子设备显示有录音文件的提示,其中,所述录音文件包括来自所述呼叫方的下行音频流和由所述第二电子设备采集的上行音频流。When the call is hung up, the first electronic device displays a reminder of the recording file, wherein the recording file includes the downstream audio stream from the calling party and the upstream audio collected by the second electronic device flow.
  2. 根据权利要求1所述的方法,其特征在于,在所述第一电子设备开启录音功能情况下,所述第一电子设备显示有录音文件的提示,包括:The method according to claim 1, characterized in that, when the recording function of the first electronic device is turned on, the first electronic device displays a reminder of the recording file, including:
    由所述第一电子设备录制来自所述呼叫方的下行音频流和由所述第二电子设备采集的上行音频流,并在所述通话被挂断时,所述第一电子设备将所述下行音频流和所述上行音频流合成第一录音文件,并显示保存所述第一录音文件的提示。The first electronic device records the downstream audio stream from the caller and the upstream audio stream collected by the second electronic device, and when the call is hung up, the first electronic device records the The downstream audio stream and the upstream audio stream are synthesized into a first recording file, and a prompt for saving the first recording file is displayed.
  3. 根据权利要求2所述的方法,其特征在于,在所述第一电子设备录制的过程中,所述第一电子设备在界面上显示第一录制提示,其中,所述第一录制提示至少包括第一录音时长;The method according to claim 2, wherein, during the recording process of the first electronic device, the first electronic device displays a first recording prompt on the interface, wherein the first recording prompt includes at least The duration of the first recording;
    所述第二电子设备在界面上显示第二录制提示,所述第二录制提示包括所述第一录音时长及在所述第一电子设备上录制音频的信息。The second electronic device displays a second recording prompt on the interface, and the second recording prompt includes the first recording duration and information about recording audio on the first electronic device.
  4. 根据权利要求1所述的方法,其特征在于,The method according to claim 1, characterized in that,
    在所述第一电子设备未开启录音功能,且所述第二电子设备开启录音功能的情况下,所述第一电子设备显示有录音文件的提示,包括:When the recording function is not enabled on the first electronic device and the recording function is enabled on the second electronic device, the first electronic device displays a prompt of the recording file, including:
    由所述第二电子设备录制来自所述呼叫方的下行音频流和由所述第二电子设备采集的上行音频流,并在所述通话被挂断时,所述第二电子设备将从所述呼叫方的下行音频流和采集的上行音频流合并成第二录音文件;Recording the downstream audio stream from the caller and the upstream audio stream collected by the second electronic device by the second electronic device, and when the call is hung up, the second electronic device will The downstream audio stream of the calling party and the collected upstream audio stream are combined into a second recording file;
    所述第二电子设备将所述第二录音文件发送给所述第一电子设备,以使所述第一电子设备收到第二录音文件保存的提示。The second electronic device sends the second recording file to the first electronic device, so that the first electronic device receives a reminder to save the second recording file.
  5. 根据权利要求4所述的方法,其特征在于,在所述第二电子设备录制的过程中,所述第二电子设备在界面上显示第三录制提示,所述第三录制提示至少包括第二录音时长;The method according to claim 4, wherein during the recording process of the second electronic device, the second electronic device displays a third recording prompt on the interface, and the third recording prompt includes at least the second recording time;
    所述第一电子设备在界面上显示第四录制提示,所述第四录制提示包括所述第二录制时长及在所述第二电子设备上录制音频的信息。The first electronic device displays a fourth recording prompt on the interface, and the fourth recording prompt includes the second recording duration and information about recording audio on the second electronic device.
  6. 根据权利要求4或5所述的方法,其特征在于,在所述通话被挂断时,所述第二电子设备将所述第二录音文件保存至本地存储器。The method according to claim 4 or 5, wherein when the call is hung up, the second electronic device saves the second recording file to a local memory.
  7. 根据权利要求4-6任一项所述的方法,其特征在于,所述第二电子设备将所述第二录音文件发送给所述第一电子设备,包括:The method according to any one of claims 4-6, wherein the second electronic device sends the second recording file to the first electronic device, comprising:
    所述第二电子设备输出提示界面,所述提示界面包括是否将所述第二录音文件同步到所述第一电子设备的确认信息;The second electronic device outputs a prompt interface, and the prompt interface includes confirmation information whether to synchronize the second recording file to the first electronic device;
    当所述第二电子设备接收到用户针对所述提示界面的确认保存的操作,则将所述第二录音文件发送给所述第一电子设备。When the second electronic device receives the user's operation of confirming and saving on the prompt interface, it sends the second recording file to the first electronic device.
  8. 根据权利要求4-7任一项所述的方法,其特征在于,在所述第一电子设备未开启录音功能,且所述第二电子设备开启录音功能的情况下,所述第二电子设备录制音频时,The method according to any one of claims 4-7, wherein when the first electronic device does not enable the recording function and the second electronic device enables the recording function, the second electronic device When recording audio,
    所述第一电子设备的界面上的录音键无法点击生效。The recording button on the interface of the first electronic device cannot be clicked to take effect.
  9. 根据权利要求4-8任一项所述的方法,其特征在于,所述第二电子设备开启录音功能为第二电子设备开启自动录音功能,或用户通过所述第二电子设备上的录音键开启的录音功能。The method according to any one of claims 4-8, characterized in that, enabling the recording function of the second electronic device enables the automatic recording function for the second electronic device, or the user presses the recording button on the second electronic device The recording function is turned on.
  10. 根据权利要求4-9任一项所述的方法,其特征在于,在所述第一电子设备未开启录音功能,且所述第二电子设备开启录音功能的情况下,The method according to any one of claims 4-9, wherein when the recording function is not enabled on the first electronic device and the recording function is enabled on the second electronic device,
    当所述第一电子设备或所述第二电子设备退出所述局域网,所述来电事件由所述第二电子设备上接听流转到所述第一电子设备上接听;When the first electronic device or the second electronic device exits the local area network, the incoming call event is transferred from the answering stream on the second electronic device to the first electronic device for answering;
    所述第二电子设备终止当前录制,并保存第二录音文件;或者,The second electronic device terminates the current recording and saves the second recording file; or,
    所述第二电子设备将当前录制信息发送给云端,以通过云端完成流转到所述第一电子设备上的来电事件对应的上行音频流和下行音频流的录制。The second electronic device sends the current recording information to the cloud, so as to complete the recording of the upstream audio stream and the downstream audio stream corresponding to the incoming call event streamed to the first electronic device through the cloud.
  11. 根据权利要求2-3所述的方法,其特征在于,在所述第一电子设备开启录音功能的情况下,所述第二电子设备的录制功能关闭,且所述第二电子设备的界面上的录制键无法点击生效。The method according to claim 2-3, wherein when the recording function of the first electronic device is turned on, the recording function of the second electronic device is turned off, and the interface of the second electronic device The record key cannot be clicked to take effect.
  12. 根据权利要求2、3或10所述的方法,其特征在于,所述第一电子设备开启录音功能为所述第一电子设备被设置为自动录音功能,或用户通过所述第一电子设备上的录音键开启的录音功能。The method according to claim 2, 3 or 10, wherein the recording function of the first electronic device is set to the automatic recording function of the first electronic device, or the user through the first electronic device The recording function is enabled by the recording key.
  13. 根据权利要求1-12任一项所述的方法,其特征在于,The method according to any one of claims 1-12, characterized in that,
    所述第一电子设备和所述第二电子设备接收到所述呼叫方的所述来电事件,分别查询自身是否开启了录音功能,并同步查询结果,The first electronic device and the second electronic device receive the incoming call event from the calling party, respectively query whether they have enabled the recording function, and synchronize the query results,
    当所述第一电子设备确认开启了录音功能,则所述系统确定为所述第一电子设备开启录音功能的情况;When the first electronic device confirms that the recording function is enabled, the system determines that the recording function is enabled for the first electronic device;
    当所述第一电子设备未开启录音功能,所述第二电子设备开启录音功能,则所述系统确定为所述第二电子设备开启录音功能的情况。When the recording function is not enabled on the first electronic device and the recording function is enabled on the second electronic device, the system determines that the recording function is enabled on the second electronic device.
  14. 根据权利要求1-13任一项所述的方法,其特征在于,所述第一电子设备包括第一分布式框架,所述第二电子设备包括第二分布式框架,所述第一电子设备与所述第二电子设备同时接收呼叫方的来电事件,包括:The method according to any one of claims 1-13, wherein the first electronic device includes a first distributed framework, the second electronic device includes a second distributed framework, and the first electronic device Simultaneously receiving an incoming call event of a calling party with the second electronic device, comprising:
    所述第一电子设备通过所述第一分布式框架和所述第二电子设备的第二分布式框架通信,以使所述第一电子设备和所述第二电子设备同步接收所述呼叫方的来电事件。The first electronic device communicates through the first distributed framework and the second distributed framework of the second electronic device, so that the first electronic device and the second electronic device receive the calling party synchronously. incoming call events.
  15. 根据权利要求11所述的方法,其特征在于,所述第二录音文件发送给所述第一电子设备,包括:所述第二电子设备通过所述第二分布式框架将所述第二录音文件同步给所述第一电子设备的第一分布式框架,以使所述第二电子设备将所述第二录音文件发送给所述第一电子设备。The method according to claim 11, wherein sending the second recording file to the first electronic device comprises: the second electronic device uploading the second recording file through the second distributed framework The file is synchronized to the first distribution framework of the first electronic device, so that the second electronic device sends the second recording file to the first electronic device.
  16. 一种电子设备,其特征在于,包括:An electronic device, characterized in that it comprises:
    存储器,用于存储由设备的一个或多个处理器执行的指令,以及memory for storing instructions to be executed by one or more processors of the device, and
    处理器,用于执行所述指令,以使得所述电子设备执行权利要求1-15所述的第一电子设备执行的方法或所述第二电子设备执行的方法。A processor, configured to execute the instructions, so that the electronic device executes the method executed by the first electronic device or the method executed by the second electronic device according to claims 1-15.
  17. 一种基于分布式通话录音同步系统,其特征在于,包括;A synchronization system based on distributed call recording, characterized in that it includes;
    第一电子设备,用于执行权利要求1-15任一项所述的第一电子设备执行的方法;A first electronic device, configured to execute the method performed by the first electronic device according to any one of claims 1-15;
    第二电子设备,用于执行权利要求1-15任一项所述的第二电子设备执行的方法。The second electronic device is configured to execute the method performed by the second electronic device according to any one of claims 1-15.
  18. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,所述计算机程序被电子设备运行时,使得所述电子设备执行权利要求1-15任一项所述的第一电子设备执行的方法或所述第二电子设备执行的方法。A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program, and when the computer program is run by an electronic device, the electronic device executes any one of claims 1-15. The method executed by the first electronic device or the method executed by the second electronic device.
  19. 一种包含指令的计算机程序产品,其特征在于,当该计算机程序产品在电子设备上运行时,使得电子设备执行权利要求1-15任一项所述的第一电子设备执行的方法或所述第二电子设备执行的方法。A computer program product containing instructions, characterized in that, when the computer program product is run on an electronic device, the electronic device is made to execute the method or the method performed by the first electronic device according to any one of claims 1-15. A method performed by the second electronic device.
PCT/CN2022/117356 2021-10-27 2022-09-06 Recording synchronization method based on distributed call, and electronic device and readable storage medium WO2023071540A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111255348.1 2021-10-27
CN202111255348.1A CN116033057A (en) 2021-10-27 2021-10-27 Method for synchronizing sound recordings based on distributed conversation, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
WO2023071540A1 true WO2023071540A1 (en) 2023-05-04

Family

ID=86069419

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/117356 WO2023071540A1 (en) 2021-10-27 2022-09-06 Recording synchronization method based on distributed call, and electronic device and readable storage medium

Country Status (2)

Country Link
CN (1) CN116033057A (en)
WO (1) WO2023071540A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117857686A (en) * 2024-02-07 2024-04-09 荣耀终端有限公司 Communication method, communication system and related device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140205076A1 (en) * 2013-01-18 2014-07-24 Research In Motion Limited Responding to incoming calls
CN105338205A (en) * 2015-11-10 2016-02-17 国网山东沂源县供电公司 Method of transferring fixed phone to Bluetooth terminal in power system
US20160057593A1 (en) * 2014-08-19 2016-02-25 Samsung Electronics Co., Ltd. Method for controlling call forwarding information and electronic device thereof
CN105430205A (en) * 2015-12-30 2016-03-23 魅族科技(中国)有限公司 Call communication method and call communication device
CN110708431A (en) * 2019-10-18 2020-01-17 北京珠穆朗玛移动通信有限公司 Call management method, communication terminal and storage medium
CN111107223A (en) * 2019-12-25 2020-05-05 维沃移动通信有限公司 Message processing method and electronic equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9712623B2 (en) * 2014-05-30 2017-07-18 Apple Inc. Answering a call with client through a host
CN109324772A (en) * 2017-07-31 2019-02-12 中兴通讯股份有限公司 Method of data synchronization, mobile terminal and the storage medium of mobile terminal
CN112398812A (en) * 2017-11-27 2021-02-23 华为技术有限公司 Method and device for multi-terminal collaborative safe work
CN110035167B (en) * 2019-04-15 2021-03-09 Oppo广东移动通信有限公司 Recording method and related device
CN110740208A (en) * 2019-10-14 2020-01-31 合肥星空物联信息科技有限公司 voice call recording method, earphone and call terminal
CN112770209A (en) * 2021-01-07 2021-05-07 深圳市天诺泰科技有限公司 Bluetooth headset, Bluetooth headset control system and method and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140205076A1 (en) * 2013-01-18 2014-07-24 Research In Motion Limited Responding to incoming calls
US20160057593A1 (en) * 2014-08-19 2016-02-25 Samsung Electronics Co., Ltd. Method for controlling call forwarding information and electronic device thereof
CN105338205A (en) * 2015-11-10 2016-02-17 国网山东沂源县供电公司 Method of transferring fixed phone to Bluetooth terminal in power system
CN105430205A (en) * 2015-12-30 2016-03-23 魅族科技(中国)有限公司 Call communication method and call communication device
CN110708431A (en) * 2019-10-18 2020-01-17 北京珠穆朗玛移动通信有限公司 Call management method, communication terminal and storage medium
CN111107223A (en) * 2019-12-25 2020-05-05 维沃移动通信有限公司 Message processing method and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117857686A (en) * 2024-02-07 2024-04-09 荣耀终端有限公司 Communication method, communication system and related device

Also Published As

Publication number Publication date
CN116033057A (en) 2023-04-28

Similar Documents

Publication Publication Date Title
JP7473101B2 (en) Application display method and electronic device
WO2020098437A1 (en) Method for playing multimedia data and electronic device
CN112291764B (en) Content connection system
WO2022257977A1 (en) Screen projection method for electronic device, and electronic device
WO2020119492A1 (en) Message processing method and related apparatus
WO2020077512A1 (en) Voice communication method, electronic device, and system
JP7268275B2 (en) Method and electronic device for presenting video on electronic device when there is an incoming call
WO2021052204A1 (en) Address book-based device discovery method, audio and video communication method, and electronic device
WO2021159746A1 (en) File sharing method and system, and related device
WO2022033296A1 (en) Bluetooth communication method, wearable device, and system
WO2021052200A1 (en) Device capability scheduling method and electronic device
CN113805797B (en) Processing method of network resource, electronic equipment and computer readable storage medium
WO2021218429A1 (en) Method for managing application window, and terminal device and computer-readable storage medium
CN114079893A (en) Bluetooth communication method, terminal device and computer readable storage medium
CN114115770A (en) Display control method and related device
WO2023273543A1 (en) Folder management method and apparatus
WO2023071540A1 (en) Recording synchronization method based on distributed call, and electronic device and readable storage medium
WO2020133006A1 (en) Communication method based on bluetooth low energy, and related apparatus
WO2020062304A1 (en) File transmission method and electronic device
WO2023020012A1 (en) Data communication method between devices, device, storage medium, and program product
WO2023103462A1 (en) Distributed call conflict processing method and system, and electronic device and storage medium
WO2024066837A1 (en) Incoming call alert method and electronic device
US20230350848A1 (en) File Application Method and Apparatus
WO2024093703A1 (en) Instance management method and apparatus, and electronic device and storage medium
WO2023160205A1 (en) Method for controlling process, and electronic device and readable storage medium

Legal Events

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

Ref document number: 22885430

Country of ref document: EP

Kind code of ref document: A1