WO2023130991A1 - Collaborative calling method and apparatus, device, storage medium, and program product - Google Patents

Collaborative calling method and apparatus, device, storage medium, and program product Download PDF

Info

Publication number
WO2023130991A1
WO2023130991A1 PCT/CN2022/141752 CN2022141752W WO2023130991A1 WO 2023130991 A1 WO2023130991 A1 WO 2023130991A1 CN 2022141752 W CN2022141752 W CN 2022141752W WO 2023130991 A1 WO2023130991 A1 WO 2023130991A1
Authority
WO
WIPO (PCT)
Prior art keywords
call
audio
coordinated
link
audio link
Prior art date
Application number
PCT/CN2022/141752
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 WO2023130991A1 publication Critical patent/WO2023130991A1/en

Links

Images

Classifications

    • 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
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/247Telephone sets including user guidance or feature selection means facilitating their use
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M7/00Arrangements for interconnection between switching centres
    • H04M7/0024Services and arrangements where telephone services are combined with data services
    • H04M7/0027Collaboration services where a computer is used for data transfer and the telephone is used for telephonic communication

Definitions

  • the present application relates to the technical field of terminals, and in particular to a method, device, device, storage medium and program product for a collaborative call.
  • Multi-screen collaboration refers to mirroring and displaying the screen image of the first device on the interface of the second device after the first device (such as a mobile phone) establishes a connection with the second device (such as a tablet computer).
  • the user can make the first device execute a corresponding function by manipulating the screen image of the first device displayed on the interface of the second device.
  • the first device if it is in a call, it can be switched to the second device to collect and play the voice of the call, that is, a collaborative call can be made.
  • the microphone of the second device collects the call voice of the local user and sends it to the first device, and the first device sends the call voice to the remote call device;
  • the end call device sends the call voice of the remote user to the first device, and the first device sends the call voice to the second device, which is played by the speaker of the second device.
  • the first device still turns on its own hardware such as a microphone, a speaker, and an earpiece, thereby consuming power consumption.
  • the present application provides a coordinated call method, device, device, storage medium and program product, which can turn off hardware such as a microphone, a loudspeaker, and an earpiece during a coordinated call to reduce hardware power consumption. Described technical scheme is as follows:
  • a coordinated call method In the first aspect, a coordinated call method is provided.
  • the first device receives a call operation, wherein the first device and the second device are in a multi-screen coordinated state. Afterwards, the first device establishes a call audio link in response to the call operation, and sets the input device of the call audio link as the audio collection hardware device of the first device, and sets the output device of the call audio link as the first device's audio collection device.
  • Audio playback hardware device and the first device detects the state of the coordinated call function, if it detects that the coordinated call function is in an open state, then the input device of the call audio link is switched from the audio collection hardware device to a virtual input module, and the call audio The output device of the link is switched from an audio playback hardware device to a virtual output module.
  • the screen image of the first device is displayed on the interface of the second device.
  • the user can make the first device execute a corresponding function by manipulating the screen image of the first device displayed on the interface of the second device.
  • the first device can start a coordinated call, so as to collect and play the call voice through the second device. For example, in the case that the call operation is triggered by the user through the screen image of the first device displayed by the second device, the first device starts the coordinated call function when receiving the call operation. Or, before receiving the call operation, the first device may automatically enable the coordinated call function when it detects that some specific modes are activated during the multi-screen coordination process with the second device.
  • the audio collection hardware device of the first device is hardware for collecting audio, for example, the audio collection hardware device may be a microphone or the like.
  • the audio playing hardware device of the first device is hardware for playing audio, for example, the audio playing hardware device may be a loudspeaker or an earpiece.
  • the first device After the first device enables the coordinated call function, since the collection and playback of call voices are performed on the second device, the first device no longer needs to collect and play call voices. Therefore, in this application, the first device detects When the collaborative call function is turned on, the input device of the call voice can be switched from the audio collection hardware device to the virtual input module, and the output device of the call voice can be switched from the audio playback hardware device to the virtual output module, so that during the collaborative call process The audio collection hardware device and the audio playback hardware device are turned off in the middle, so as to reduce power consumption.
  • Both the virtual input module and the virtual output module are virtual software modules, not hardware devices.
  • the virtual input module does not perform audio collection, for example, the virtual input module can be an IN_PROXY module, and the virtual output module does not perform audio playback, for example, the virtual output module can be an OUT_PROXY module.
  • the first device switches the input device of the call voice to the virtual input module
  • the first device no longer collects audio
  • the first device switches the output device of the call voice to the virtual output module the first device no longer plays audio, In this way, while meeting the requirements of cooperative calls, the power consumption of hardware is also reduced.
  • the first device when it receives a call operation, it detects the status of the coordinated call function, and if it detects that the coordinated call function is off, it does not switch between the input device and the output device of the call audio link, and still maintains the call
  • the input device of the audio link is the audio collection hardware device of the first device
  • the output device of the call-hold audio link is the audio playback hardware device of the first device. If the cooperative call function is turned off, it means that the first device needs to collect and play the call voice, so the input device of the call audio link needs to be the audio collection hardware device of the first device, and the output of the call audio link should be kept
  • the device is an audio playback hardware device of the first device, so as to ensure the normal progress of the call.
  • the first device closes the coordinated call function when receiving the call operation.
  • the first device may automatically turn off the coordinated call function when it detects that some specific modes are closed during the multi-screen coordination process with the second device.
  • the input device of the call audio link is switched from the virtual input module to the audio collection Hardware device, switch the output device of the call audio link from a virtual output module to an audio playback hardware device.
  • the coordinated call can also be turned off, so that the first device can continue to collect and play the voice of the call. For example, after the first device establishes a call audio link, if it detects that the user has turned off the coordinated call switch displayed by the first device or the second device, it switches the coordinated call function from the on state to the off state.
  • the first device After the first device closes the coordinated call, it switches back the collection and playback of the call voice to the first device for execution. In this case, the first device needs to collect and play the voice of the call. Therefore, in this application, when the first device detects that the coordinated call function is switched from the on state to the off state, the input device of the call audio link can be Switch from the virtual input module to the audio collection hardware device, switch the output device of the call audio link from the virtual output module to the audio playback hardware device, to open the audio collection hardware device for audio collection, and turn on the audio playback hardware The device is used for audio playback, so as to ensure the normal progress of the call.
  • the first device After the first device establishes the call audio link, if it detects that the coordinated call function is switched from the off state to the on state, it will switch the input device of the call audio link from the audio collection hardware device to the virtual
  • the input module switches the output device of the call audio link from an audio playback hardware device to a virtual output module.
  • the first device After the first device closes the coordinated call, it can also turn on the coordinated call to switch to the second device to collect and play the call voice. For example, after the first device establishes a call audio link, if it detects that the user turns on the coordinated call switch displayed by the first device or the second device, it switches the coordinated call function from the off state to the on state.
  • the first device After the first device and the second device have a coordinated call, since the collection and playback of the call voice are performed on the second device, the first device no longer needs to collect and play the call voice. Therefore, in this application, the first device When it is detected that the cooperative call function is switched from the closed state to the open state, the input device of the call audio link can be switched from the audio collection hardware device to a virtual input module, and the output device of the call audio link can be replaced by the audio playback hardware device Switch to a virtual output module to turn off the audio collection hardware device and the audio playback hardware device during a cooperative call to reduce power consumption.
  • the first device may also turn off the collaborative call function when the call ends. For example, the first device receives the call end operation, and in response to the call end operation, the first device closes the coordinated call function, and sets the input device of the call audio link as the audio collection hardware device, and sets the call audio link output device Set the hardware device for this audio playback.
  • the call end operation is an operation for instructing to end a call, for example, the call end operation may be an operation of hanging up the phone.
  • the call ending operation may be directly triggered by the user in the first device, for example, it may be triggered after the user clicks an end button in the call interface on the first device.
  • the call ending operation may be triggered by the user through the screen image of the first device displayed on the second device, for example, the user may click on the second device in the call interface of the first device displayed on the second device. Fired after the hangup button.
  • the first device if the first device conducts a coordinated call during the call, the first device will shut down the audio playback hardware device and the audio playback hardware device.
  • the first device receives the call uplink voice data collected by the second device sent by the second device when the coordinated call function is turned on, and sends the call uplink voice data to to the remote communication device, and receive the communication downlink voice data sent by the remote communication device, and send the communication downlink voice data to the second device for playback, so as to realize the cooperative communication with the second device.
  • the first device does not make a coordinated call during the call, for example, the first device has not started the coordinated call after starting the call, or the first device turns off the coordinated call after starting the coordinated call function during the call. call, the first device will turn on the audio playback hardware device and the audio playback hardware device.
  • the first device collects the uplink voice data of the call through the audio collection hardware device, and sends the uplink voice data of the call to the remote call device when the cooperative call function is turned off. And receive the call downlink voice data sent by the remote call device, and play the call downlink voice data through the audio playback hardware device, so as to realize the normal progress of the call.
  • a coordinated calling device in the second aspect, and the coordinated calling device has the function of realizing the behavior of the coordinated calling method in the above first aspect.
  • the coordinated calling device includes at least one module, and the at least one module is used to implement the coordinated calling method provided in the first aspect above.
  • a cooperative communication device in the third aspect, the structure of the coordinated communication device includes a processor and a memory, and the memory is used to store a program that supports the coordinated communication device to execute the coordinated communication method provided in the first aspect above, And storing the data involved in realizing the cooperative calling method described in the first aspect above.
  • the processor is configured to execute programs stored in the memory.
  • the cooperative communication device may further include a communication bus for establishing a connection between the processor and the memory.
  • a computer-readable storage medium wherein instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is run on a computer, the computer is made to execute the collaborative calling method described in the above-mentioned first aspect.
  • a fifth aspect provides a computer program product containing instructions, which when run on a computer, causes the computer to execute the coordinated calling method described in the first aspect above.
  • FIG. 1 is a schematic structural diagram of a terminal provided in an embodiment of the present application.
  • FIG. 2 is a block diagram of a software system of a terminal provided in an embodiment of the present application
  • FIG. 3 is a schematic diagram of a call data flow in a non-multi-screen collaborative scenario provided by an embodiment of the present application
  • FIG. 4 is a schematic diagram of a call data flow in a multi-screen collaborative scenario provided by an embodiment of the present application
  • Fig. 5 is a schematic diagram of an interface of a tablet computer provided by an embodiment of the present application.
  • Fig. 6 is a schematic diagram of the interface of a mobile phone provided by the embodiment of the present application.
  • Fig. 7 is a schematic interface diagram of another tablet computer provided by the embodiment of the present application.
  • Fig. 8 is a schematic diagram of the interface of another mobile phone provided by the embodiment of the present application.
  • FIG. 9 is a schematic diagram of an interface in a multi-screen collaboration scenario provided by an embodiment of the present application.
  • Fig. 10 is a schematic diagram of an interface in another multi-screen collaboration scenario provided by the embodiment of the present application.
  • Fig. 11 is a schematic diagram of a multi-screen collaboration system provided by an embodiment of the present application.
  • Fig. 12 is a flow chart of a coordinated call method provided by an embodiment of the present application.
  • FIG. 13 is a flow chart of a coordinated call process provided by an embodiment of the present application.
  • Fig. 14 is a schematic structural diagram of a collaborative communication device provided by an embodiment of the present application.
  • phrases such as “one embodiment” or “some embodiments” described in this application mean that a particular feature, structure, or characteristic described by the embodiment is included in one or more embodiments of the present application.
  • appearances of "in one embodiment,” “in some embodiments,” “in other embodiments,” “in other embodiments,” etc. in various places in this application are not necessarily All refer to the same embodiment, but mean “one or more but not all embodiments” unless specifically stated otherwise.
  • the terms “including”, “comprising”, “having” and their variations all mean “including but not limited to”, unless specifically stated otherwise.
  • FIG. 1 is a schematic structural diagram of a terminal provided by an embodiment of the present application.
  • the terminal 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, a battery 142, and an antenna 1 , antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and a subscriber identity module (subscriber identity module, SIM) card interface 195, etc.
  • SIM subscriber identity module
  • the sensor module 180 may include a pressure sensor 180A, a gyro 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 environmental Light sensor 180L, bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the terminal 100 .
  • the terminal 100 may include more or fewer components than shown in the figure, or combine some components, or separate some 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, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU) wait. 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 memory
  • video codec digital signal processor
  • DSP digital signal processor
  • baseband processor baseband processor
  • neural network processor neural-network processing unit, NPU
  • the controller may be the nerve center and command center of the terminal 100 .
  • the controller can generate an operation control signal according to the instruction opcode and 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 directly recalled from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system.
  • the charging management module 140 is configured to receive a charging input from a charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 140 can receive charging input from the wired charger through the USB interface 130 .
  • the charging management module 140 may receive wireless charging input through the wireless charging coil of the terminal 100 . While the charging management module 140 is charging the battery 142 , it can also supply power to the terminal 100 through the power management module 141 .
  • the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
  • the power management module 141 receives the input from the battery 142 and/or the charging management module 140 to provide power for the processor 110 , the internal memory 121 , the external memory, the display screen 194 , the camera 193 and the wireless communication module 160 .
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
  • the power management module 141 may also be disposed in the processor 110 .
  • the power management module 141 and the charging management module 140 may also be set in the same device.
  • the wireless communication function of the terminal 100 can be realized by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
  • the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on the terminal 100 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like.
  • the mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves and radiate them through the antenna 1 .
  • at least part of the functional modules of the mobile communication module 150 may be set in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be set in the same device.
  • the wireless communication module 160 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite system, etc. (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.
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
  • the terminal 100 realizes the display function through the GPU, the display screen 194, and the application processor.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • the terminal 100 can realize the shooting function through the ISP, the camera 193 , the video codec, the GPU, the display screen 194 and the application processor.
  • the external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the terminal 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 and other files in the external memory card.
  • the internal memory 121 may be used to store computer-executable program codes including instructions.
  • the processor 110 executes various functional applications and data processing of the terminal 100 by executing instructions stored in the internal memory 121 .
  • 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, etc.) and the like.
  • the storage data area can store data (such as audio data, phone book, etc.) created by the terminal 100 during use.
  • 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 terminal 100 can implement audio functions, such as music playing and recording, through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor.
  • audio functions such as music playing and recording
  • 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 .
  • the SIM card interface 195 is used for connecting a SIM card.
  • the SIM card can be connected and separated from the terminal 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 .
  • the terminal 100 may support 1 or N SIM card interfaces, where N is an integer greater than 1.
  • SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of multiple cards may be the same or different.
  • the SIM card interface 195 is also compatible with different types of SIM cards.
  • the SIM card interface 195 is also compatible with external memory cards.
  • the terminal 100 interacts with the network through the SIM card to implement functions such as calling and data communication.
  • the terminal 100 adopts an eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the terminal 100 and cannot be separated from the terminal 100 .
  • the software system of the terminal 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture.
  • the software system of the terminal 100 is exemplarily described by taking an Android system with a layered architecture as an example.
  • FIG. 2 is a block diagram of a software system of a terminal 100 provided by an 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 application program layer, application program framework layer, Android runtime (Android runtime) and system layer, extension layer, and kernel layer from top to bottom.
  • the application layer can consist of a series of application packages. As shown in Figure 2, the application package may include applications such as multi-screen collaboration, camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, and short message.
  • the multi-screen collaboration application is used to enable the multi-screen collaboration function.
  • 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 can include audio framework (Audio Framework), distributed mobile sensing development platform (distributed mobile sensing development platform, DMSDP), window manager, content provider, view system, phone manager, resource manager, notification manager, etc.
  • the audio framework is responsible for the output of playback data, the collection of recording data, and the comprehensive management of audio affairs.
  • DMSDP is used to provide functional support for the multi-screen collaborative process, for example, it can realize the collaborative call in the multi-screen collaborative process.
  • a window manager is used to manage window programs. The window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc.
  • Content providers are used to store and retrieve data, and make these data accessible to applications. These data can include video, images, audio, calls made and received, browsing history and bookmarks, phonebook, etc.
  • the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on.
  • the view system can be used to build the display interface of the application, and the display interface can be composed of one or more views, for example, including a view for displaying SMS notification icons, a view for displaying text, and a view for displaying pictures.
  • the phone manager is used to provide communication functions of the terminal 100, such as management of call status (including connecting, hanging up, etc.).
  • the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, etc.
  • the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and can automatically disappear after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc.
  • the notification manager can also be notifications that appear in the status bar at the top of the system in the form of charts or scrolling text, such as notifications for applications running in the background.
  • the notification manager can also be a notification that appears on the screen in the form of a dialog window, such as prompting text information in the status bar, making a prompt sound, vibrating the electronic device, and flashing an indicator light.
  • 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 system layer can include multiple functional modules, such as: audio services (Audio Services), surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (such as: OpenGL ES), 2D graphics engine (such as : SGL) and so on.
  • audio services Audio Services
  • surface manager surface manager
  • Media Libraries Media Libraries
  • 3D graphics processing library such as: OpenGL ES
  • 2D graphics engine such as : SGL
  • the audio service is the maker of the audio strategy, responsible for the strategy selection of audio device switching, volume adjustment strategy, etc., and the executor of the audio strategy, responsible for the management of input and output stream devices and the processing and transmission of audio stream data.
  • the surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of various commonly used audio and video formats, as well as still image files, etc.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing, etc.
  • 2D graphics engine is a drawing engine for 2D drawing.
  • the extension layer can also be called the hardware abstraction layer (hardware abstracting layer, HAL), which can realize the encapsulation of the kernel driver, provide an interface upward, and shield the implementation details of the lower layer.
  • HAL hardware abstraction layer
  • the extension layer is connected upwards to Android Runtime and Framework, and downwards to the driver.
  • the extension layer can include the Audio Hardware Abstraction Layer (Audio HAL), which is responsible for interacting with audio hardware devices.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer includes at least a display driver, a camera driver, an audio driver, a sensor driver, and a pulse code modulation (PCM) device.
  • PCM pulse code modulation
  • the mobile phone When the mobile phone is making a call or receiving an incoming call, it can communicate with the remote call device.
  • the call may include a voice call, a video call, etc., which is not limited in this embodiment of the present application.
  • the call may be a call established through an operator service, such as a 2G call, a 3G call, a 4G call, or a 5G call.
  • the uplink voice data of the call refers to the call voice data of the local user collected by the mobile phone or the tablet computer that conducts a cooperative call with the mobile phone during the call on the mobile phone.
  • the uplink voice data of the call needs to be sent to the remote call device.
  • the downlink voice data of the call refers to the call voice data of the remote user sent by the remote call device received by the mobile phone during the call on the mobile phone.
  • the downlink voice data of the call needs to be played on the mobile phone or the tablet computer that conducts a coordinated call with the mobile phone .
  • the microphone (Mic) of the mobile phone collects the call voice of the local user, and sends the call voice to the remote call device; the remote call device Send the call voice of the remote user to the mobile phone, and the mobile phone plays the call voice through its own speaker (Speaker) or earpiece.
  • the call data flow in the non-multi-screen collaborative scenario is shown in Figure 3.
  • the uplink and downlink voice data of the call is transferred between the audio chip and the device (microphone, speaker, receiver) of the mobile phone.
  • the audio chip can be ADSP (Audio DSP), etc. .
  • the microphone of the mobile phone collects the call voice of the local user, and sends the call voice to the audio chip of the mobile phone, and the audio chip of the mobile phone sends the call voice to the remote call via the modem processor of the mobile phone. equipment.
  • the audio chip of the mobile phone receives the voice of the remote user sent by the remote communication device through the modem processor of the mobile phone, and sends the voice of the voice to the speaker or earpiece of the mobile phone for playback.
  • the mobile phone can be switched to the tablet computer to collect and play the voice of the call, that is, the collaborative call can be performed.
  • the microphone of the tablet computer collects the call voice of the local user and sends it to the mobile phone, and the mobile phone sends the call voice to the remote call device; the remote call device transmits the call voice of the remote user The voice is sent to the mobile phone, and the mobile phone sends the call voice to the tablet computer, which is played by the speaker of the tablet computer.
  • the call data flow in the multi-screen collaboration scenario is shown in Figure 4.
  • the uplink and downlink voice data of the call is transferred between the audio chip of the mobile phone and the Audio HAL.
  • the microphone of the tablet computer collects the call voice of the local user, and sends the call voice to the mobile phone.
  • the Audio HAL of the mobile phone receives the call voice, it sends the call voice to the audio chip of the mobile phone, and the audio chip of the mobile phone sends the call voice to the remote call device through the modem processor of the mobile phone.
  • the audio chip of the mobile phone receives the call voice of the remote user sent by the remote call device through the modem processor of the mobile phone, and sends the call voice to the Audio HAL of the mobile phone, and the Audio HAL of the mobile phone sends the call voice to the tablet computer, played through the tablet's speakers.
  • the mobile phone and the tablet computer are in a coordinated call, the microphone of the mobile phone no longer picks up sound, and the speaker and earpiece of the mobile phone no longer produce sound.
  • the mobile phone directly mutes the microphone, speaker and earpiece by calling the device mute interface, so that the sound collected by the microphone of the mobile phone will not be transmitted, and the speaker and earpiece of the mobile phone will not play sound.
  • the mobile phone will still turn on hardware such as its own microphone, speaker, and earpiece, thereby consuming power consumption.
  • the embodiment of the present application provides a coordinated call method, which can directly turn off hardware such as a microphone, a speaker, and an earpiece of the mobile phone when the mobile phone and the tablet computer are in a coordinated call, thereby reducing power consumption.
  • the Bluetooth in both the mobile phone and the tablet computer can be turned on first. Then, the user manually turns on the multi-screen collaboration function in the mobile phone. For example, the user can find the switch of "multi-screen collaboration" through the path of "Settings"-"More Connections"-"Multi-screen Collaboration” in the interface of the mobile phone. screen coordination function.
  • the user slides out of the notification panel from the status bar of the tablet computer, and the notification panel includes the option 51 of "multi-screen collaboration".
  • the first prompt window includes instructions for instructing the user how to operate to achieve multi-screen collaboration
  • the prompt message for the first operation includes "1. Turn on the Bluetooth of your mobile phone and approach this machine, and click "Connect” after finding this machine. 2. After connecting, you can Operate the mobile phone on the tablet computer to realize data sharing between devices.” prompt content. In this way, the user can perform corresponding operations according to the first operation prompt information, such as bringing the mobile phone close to the tablet computer.
  • the mobile phone when the mobile phone finds the tablet when the mobile phone is close to the tablet, the mobile phone displays a second prompt window, as shown in (a) in Figure 6 , the second prompt window includes the prompt content of “whether to establish a cooperative connection with the discovered device”, and a “connect” option 61 and a “cancel” option 62 .
  • the “Connect” option 61 it means that the user confirms to establish a collaborative connection, and the mobile phone responds to the user's trigger operation on the "Connect” option 61, and establishes a collaborative connection with the tablet computer via Bluetooth.
  • the mobile phone When the user clicks the "cancel” option 62, it means that the user does not want to establish a coordinated connection, and the mobile phone does not perform the operation of establishing a coordinated connection in response to the user's trigger operation on the "cancel" option 62.
  • the mobile phone when the mobile phone is close to the tablet computer, when the mobile phone finds the tablet computer, it may not display the second prompt window, but automatically establishes a cooperative connection with the tablet computer via Bluetooth.
  • the mobile phone in order to display the progress of establishing the cooperative connection, can also display a third prompt window for indicating that it is connecting, for example, it can be displayed as shown in Figure 6
  • the third prompt window includes a "cancel" option, so that the user can cancel the connection at any time if necessary.
  • the user can find the button of "scan code connection” through the path of "my mobile phone"-"connect now"-"scan code connection” in the interface of the tablet computer.
  • the trigger operation of the button displays a two-dimensional code for establishing a cooperative connection, for example, the two-dimensional code shown in FIG. 7 may be displayed.
  • the tablet computer may also display second operation prompt information for prompting the user how to operate to realize multi-screen collaboration. For example, as shown in FIG. ".
  • the user can enter the interface displaying the "scan" option in the browser (or smart vision) of the mobile phone, for example, can enter the interface shown in Figure 8 (a) The interface of the browser shown in the figure, in which the option 81 of "scan” is displayed. The user can click on the "scan” option 81, and the mobile phone starts the camera in response to the user's trigger operation on the "scan” option 81, and displays the code scanning interface shown in (b) in Figure 8, so that the user can Point the camera at the QR code displayed on the tablet to scan the code.
  • the mobile phone after the mobile phone scans the code successfully, it sends a request for establishing a cooperative connection to the tablet computer.
  • the tablet computer After the tablet computer receives the request sent by the mobile phone, it can display a fourth prompt window, which includes prompt information for prompting the user whether to agree to establish a collaborative connection.
  • the prompt information can include "xx device request and this Do you agree to establish a collaborative connection?”, as well as the options of “Agree” and “Deny”.
  • the user clicks the "Agree” option it means that the user allows the mobile phone to establish a collaborative connection with the tablet computer, and the tablet computer establishes a collaborative connection with the mobile phone in response to the user's trigger operation on the "Agree” option.
  • the QR code can also be opened through other paths.
  • the first prompt window also includes the prompt content "Can't find this machine? You can also scan the code to connect", in which " The four words "scan code connection” can be triggered.
  • the user can click on the "scan code to connect" content in the first prompt window, and the tablet computer displays the QR code shown in Figure 7 in response to the user's trigger operation on the "scan code to connect” content. In this way, the user can scan the QR code displayed on the tablet computer through the mobile phone, so as to establish a collaborative connection by scanning the code.
  • the user touches the NFC area on the back of the mobile phone (usually located around the camera on the back of the mobile phone) to the NFC area of the tablet (usually located in the lower right corner of the tablet), and the mobile phone and the tablet respond to the user's touch operation. collaborative connection.
  • the tablet computer and the mobile phone may also prompt the user whether to agree to establish the coordinated connection, and after the user agrees to establish the coordinated connection, the mobile phone and the tablet computer execute the operation of establishing the coordinated connection.
  • the mobile phone can also remind the user by vibrating or ringing.
  • connection modes are described by taking wireless connection as an example.
  • it can also be implemented through a wired connection, for example, it can be implemented through a Type-C to high definition multimedia interface (high definition multimedia interface, HDMI) connection line, which is not limited in this embodiment of the present application.
  • HDMI high definition multimedia interface
  • the tablet computer will mirror the screen image of the mobile phone.
  • the user can make the mobile phone perform corresponding functions by operating the screen image of the mobile phone displayed on the tablet computer in the tablet computer as required.
  • the mobile phone and the tablet computer synchronously display the main interface of the mobile phone as shown in Figure 9. If the user wants to make a call, he can click the icon of making a call in the main interface of the mobile phone displayed on the tablet computer to open The dialing interface of the mobile phone. At this time, the mobile phone and the tablet computer will display the dialing interface of the mobile phone synchronously. Then the user can perform a dialing operation in the dialing interface of the mobile phone displayed on the tablet computer, so as to realize calling in the mobile phone.
  • the mobile phone and the tablet computer will synchronously display the call interface of the mobile phone.
  • the microphone of the tablet computer collects the call voice of the local user and sends it to the mobile phone, and the mobile phone sends the call voice to the remote call device; the remote call device transmits the call voice of the remote user The call voice is sent to the mobile phone, and the phone sends the call voice to the tablet computer, which is played by the speaker of the tablet computer.
  • the notification bar of the tablet computer may display "Collaborated to mobile phone", the notification bar may also include a switch for switching the call voice to the tablet computer, and the user can operate the switch as required to indicate whether to switch the call voice to the tablet computer, that is, whether to perform a collaborative call.
  • the user can also pull down the notification bar of the mobile phone, and the notification bar of the mobile phone can display the prompt content of "already coordinated to the tablet computer", and the notification bar can also include a switch for switching the call voice to the tablet computer, The user can operate the switch as required to indicate whether to make a collaborative call. If during the call on the mobile phone, the user instructs to switch the call voice to the tablet computer by operating the switch for switching the call voice to the tablet computer on the tablet computer or the mobile phone, that is, to instruct a coordinated call, then the ongoing call of the mobile phone The collection and playback of the call voice of the call is performed on the tablet computer side.
  • the mobile phone If during the call on the mobile phone, the user instructs not to switch the call voice to the tablet computer by operating the switch for switching the call voice to the tablet computer on the tablet computer or mobile phone, that is, to indicate not to make a coordinated call, the mobile phone is The collection and playback of the call voice of the ongoing call is still performed on the mobile phone side.
  • the mobile phone may automatically perform a collaborative call by default. That is to say, after the multi-screen collaboration between the mobile phone and the tablet computer, if the mobile phone starts to make a call, no user operation is required, and the coordinated call can be carried out automatically, that is, the collection and playback of the call voice is automatically switched to the tablet side for execution.
  • the switch for switching the call voice to the tablet computer on the tablet computer or mobile phone to instruct not to switch the call voice to the tablet computer, that is, to instruct to turn off the coordinated call, Switch the call voice back to the mobile phone, at this time the collection and playback of the call voice of the ongoing call on the mobile phone will be switched back to the mobile phone side to continue execution.
  • the embodiment of the present application provides a coordinated call method, which can turn off hardware such as a microphone, a loudspeaker, and an earpiece of a mobile phone during a coordinated call, thereby reducing power consumption.
  • the coordinated call method provided in the embodiment of the present application can be applied to a multi-screen coordinated system, and the multi-screen coordinated system will be described below.
  • Fig. 11 is a schematic diagram of a multi-screen collaboration system provided by an embodiment of the present application.
  • the multi-screen collaboration system may include a first device 1101 and a second device 1102 .
  • the first device 1101 and the second device 1102 may communicate through a wired connection or a wireless connection.
  • Both the first device 1101 and the second device 1102 may be terminals, and the terminals may be the terminals described in the embodiments of FIGS. 1-2 above.
  • the terminal can be a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (augmented reality, AR)/virtual reality (virtual reality, VR) device, a notebook computer, a personal computer (personal computer, PC), a super Mobile personal computer (ultra-mobile personal computer, UMPC), netbook, personal digital assistant (personal digital assistant, PDA), television, etc.
  • the embodiments of the present application are not limited to this.
  • the first device 1101 and the second device 1102 can perform multi-screen collaboration. After the first device 1101 and the second device 1102 perform multi-screen collaboration, the screen image of the first device 1101 may be displayed on the interface of the second device 1102 .
  • the first device 1101 and the second device 1102 may be terminals of different types, or terminals of the same type, which is not limited in this embodiment of the present application.
  • both may be terminals such as a mobile phone or a tablet computer.
  • the screen size of the first device 1101 is smaller than the screen size of the second device 1102, so that when the small screen and the large screen perform multi-screen coordination, the screen image of the small screen is displayed on the large screen as a window.
  • the interface of the large screen allows the user to operate the screen images of the small screen in the interface of the large screen, thereby improving the user's operating experience.
  • the first device 1101 is a mobile phone
  • the second device 1102 is a tablet computer or a TV.
  • the first device 1101 is a tablet computer
  • the second device 1102 is a TV.
  • the screen size of the first device 1101 may also be larger than the screen size of the second device 1102 .
  • the first device 1101 is a tablet computer
  • the second device 1102 is a mobile phone.
  • the coordinated call can be started to switch to the second device 1102 to collect and play the call voice.
  • the coordinated call method provided in the embodiment of the present application is applied in a scenario where the first device 1101 and the second device 1102 perform multi-screen coordination.
  • the first device 1101 can turn off the microphone and speaker of the first device 1101 when the coordinated call is started in the case of multi-screen collaboration with the second device 1102 by executing the coordinated call method provided in the embodiment of the present application. and handset and other hardware to reduce power consumption.
  • the coordinated call method provided by the embodiment of the present application is applied to the first device, and the first device and the second device can perform multi-screen coordination, and the multi-screen cooperation refers to displaying the screen of the first device on the interface of the second device.
  • the screen image of the first device is displayed on the interface of the second device.
  • the user can make the first device execute a corresponding function by manipulating the screen image of the first device displayed on the interface of the second device.
  • the first device and the second device can realize multi-screen collaboration in many possible ways. For example, multi-screen collaboration can be realized through Bluetooth, code scanning, touch, etc. These methods have been described in detail above. This embodiment of the present application will not describe it in detail.
  • the first device is a device capable of talking.
  • One or more SIM cards may be installed in the first device, and the first device may use any one of the one or more SIM cards to make a call. For example, if only one SIM card is installed in the first device, the first device can directly use this SIM card to make a call, such as using this SIM card to make a call, or use this SIM card to receive an incoming call. In the case that the first device is equipped with multiple SIM cards, the first device can use one of the multiple SIM cards to make calls, such as using this SIM card to make calls, or using this SIM card to answer calls call.
  • the user can directly operate on the first device to make the first device start a call, or the user can operate on the second device to make the first The device starts talking.
  • the user may directly perform an operation on the first device.
  • the user can click the icon of making a call in the main interface of the first device to open the dialing interface of the first device, and then the user can perform a dialing operation in the dialing interface of the first device to make a call in the first device to start a call.
  • the user in the case that the first device is only equipped with a SIM card, the user can directly perform a dialing operation in the dialing interface of the first device, so that the SIM card is used to make a call in the first device;
  • the user can first select a SIM card in the dialing interface of the first device, and then perform a dialing operation on the dialing interface of the first device. In this way, the selected SIM card is used in the first device. This SIM card to make calls.
  • the operation can be implemented on the second device that performs multi-screen coordination with the first device.
  • the first device and the second device display the main interface of the first device synchronously, and the user can click to make a call in the main interface of the first device displayed on the second device icon to open the dialing interface of the first device, then the first device and the second device will display the dialing interface of the first device synchronously, and then the user can dial in the dialing interface of the first device displayed on the second device operation, to implement making a call in the first device to start a call.
  • the user can directly perform the dialing operation in the dialing interface of the first device displayed on the second device, so that the SIM card can be used in the first device To make a call; in the case of multiple SIM cards installed in the first device, the user can first select a SIM card in the dialing interface of the first device displayed on the second device, and then select a SIM card on the second device displayed on the second device.
  • the dialing interface of a device performs a dialing operation, so that the selected SIM card can be used in the first device to make a call.
  • the user wants to make a call on the first device, it can be realized by performing operations on both the first device and the second device that performs multi-screen collaboration with the first device.
  • the first device and the second device display the main interface of the first device synchronously, and the user can click to make a call in the main interface of the first device displayed on the second device icon to open the dialing interface of the first device.
  • the first device and the second device will display the dialing interface of the first device synchronously, and then the user can perform dialing operations in the dialing interface of the first device to Make a call from your device to start a call.
  • the user can directly perform a dialing operation in the dialing interface of the first device, so that the SIM card is used to make a call in the first device;
  • the user can first select a SIM card in the dialing interface of the first device, and then perform a dialing operation on the dialing interface of the first device. In this way, the selected SIM card is used in the first device. use this SIM card to make calls.
  • the first device and the second device display the main interface of the first device synchronously, and the user can click the icon of making a call in the main interface of the first device to open the The dialing interface of the first device, at this time, the first device and the second device will display the dialing interface of the first device synchronously, and then the user can perform dialing operations in the dialing interface of the first device displayed on the second device, so as to realize A phone call is made in the first device to start the conversation.
  • the user can directly perform the dialing operation in the dialing interface of the first device displayed on the second device, so that the SIM card can be used in the first device To make a call; in the case of multiple SIM cards installed in the first device, the user can first select a SIM card in the dialing interface of the first device displayed on the second device, and then select a SIM card on the second device displayed on the second device.
  • the dialing interface of a device performs a dialing operation, so that the selected SIM card can be used in the first device to make a call.
  • the user when there is an incoming call on the first device, if the user wants to answer the incoming call on the first device, he can directly perform an operation on the first device.
  • the first device will display an incoming call interface, and the user can click an answer button on the incoming call interface of the first device to answer the incoming call in the first device to start a call.
  • the incoming call in the first device under the situation that only a SIM card is installed in the first device, the incoming call in the first device is the incoming call for this SIM card, so is to use this SIM card to answer the incoming call in the first device;
  • the incoming call in the first device is for one of the multiple SIM cards, so that the first device uses this SIM card to answer the incoming call.
  • the operation when there is an incoming call on the first device, if the user wants to answer the call on the first device, the operation can be implemented on the second device that performs multi-screen coordination with the first device.
  • the first device and the second device perform multi-screen collaboration, if there is an incoming call on the first device, the first device and the second device will simultaneously display the incoming call interface of the first device, and the user can display the first Click the answer button in the incoming call interface of the device to realize answering the incoming call in the first device to start the call.
  • the incoming call in the first device under the situation that only a SIM card is installed in the first device, the incoming call in the first device is the incoming call for this SIM card, so is to use this SIM card to answer the incoming call in the first device;
  • the incoming call in the first device is for one of the multiple SIM cards, so that the first device uses this SIM card to answer the incoming call.
  • both the first device and the second device include a coordinated call switch, and the coordinated call switch is used to indicate whether the second device will perform the call when the first device is in a call.
  • the collection and playback of call voice indicates whether to enable the collaborative call function.
  • both the drop-down notification bar of the first device and the drop-down notification bar of the second device may include a coordinated call switch, so that the user can turn on or off the coordinated call switch in the first device or the second device.
  • the cooperative call switch can also be set in other interfaces of the first device and the second device, which is not limited in this embodiment of the present application.
  • the coordinated call function is turned on.
  • the coordinated call will be made during the call with the first device, that is, the The call voice is collected and played through the second device.
  • the microphone of the second device collects the call voice of the local user and sends it to the first device, and the first device sends the call voice to the remote call device;
  • the remote call device sends the call voice of the remote user to the first device, and the first device sends the call voice to the second device, which is played by a loudspeaker of the second device.
  • the coordinated call function is turned off.
  • the first device is in a call with the second device during the multi-screen collaborative call
  • the coordinated call will not be made during the call with the first device, that is, during the call with the first device
  • the collection and playback of the call voice is still performed by the first device.
  • the microphone of the first device collects the call voice of the local user and sends it to the remote call device; the remote call device sends the call voice of the remote user to the first device, which is played by the speaker of the first device.
  • the coordinated call function when the first device and the second device start multi-screen collaboration, the coordinated call function is enabled by default, that is, when the first device and the second device establish a multi-screen coordinated connection, the coordinated call function is enabled. call function.
  • the activation of the coordinated call function may also be triggered by a specific mode association, for example, if the user plays audio or video on the second device, Then the first device can enable the collaborative call function.
  • the coordinated call function when the coordinated call function is turned on, the first device and the second device can also turn on the coordinated call switch synchronously, and when the coordinated call is turned off, the first device and the second device can also synchronously turn off the coordinated call switch.
  • the user wants to turn off the coordinated call function, he can directly turn off the coordinated call switch on the first device during the multi-screen coordinated process between the first device and the second device, or directly turn off the coordinated call switch on the second device. Turn off the coordinated call switch to disable the coordinated call function. If the user wants to turn on the coordinated call function after turning off the coordinated call function, he can directly turn on the coordinated call switch on the first device during the multi-screen coordinated process between the first device and the second device, or directly on the second device. Turn on the coordinated call switch on the device to enable the coordinated call function.
  • the collaborative call function has been enabled during the multi-screen collaboration between the first device and the second device. If the first device has not started a call and the user wants to turn off the coordinated call function, the coordinated call switch can be directly turned off in the first device or the second device. In this way, if the first device subsequently starts a call, the first device still collects and plays the call voice.
  • the collaborative call function has been turned off during the multi-screen coordination between the first device and the second device. If the first device has not started a call and the user wants to enable the coordinated call function, the user can directly turn on the coordinated call switch in the first device or the second device. In this way, if the first device subsequently starts a call, the second device will collect and play the call voice.
  • the collaborative call function has been enabled during the multi-screen collaboration between the first device and the second device. If the first device has started a call, the second device collects and plays the call voice at this time. If the user wants to turn off the coordinated call function, he can directly turn off the coordinated call switch in the first device or the second device. In this way, the call voice of the ongoing call of the first device will be switched to the first device for collection and playback.
  • the collaborative call function has been turned off during the multi-screen coordination between the first device and the second device. If the first device has started talking, it is now the first device that collects and plays the voice of the call. If the user wants to enable the coordinated call function, he can directly turn on the coordinated call switch in the first device or the second device. In this way, the call voice of the ongoing call of the first device will be switched to the second device for collection and playback.
  • the enabling and disabling of the collaborative call function may also be determined by the user's behavior of making a call or answering an incoming call. Specifically, if the user directly makes a call or answers an incoming call on the first device during the multi-screen collaboration between the first device and the second device, the coordinated call function will be turned off, that is, during the call on the first device The call voice is collected and played by the first device, and at this time, the cooperative call switch in the first device and the second device is also in an off state.
  • the Coordinated call function that is, the second device collects and plays the call voice during the call of the first device, and at this time, the coordinated call switch in the first device and the second device will also be turned on.
  • the first device may turn off the coordinated calling function.
  • the first instruction is used to instruct the first device to collect and play the call voice when the first device is in a call.
  • the first instruction is triggered when the user turns off the coordinated call switch in the first device or the second device; or, the first instruction is triggered when the user makes a call or receives an incoming call on the first device.
  • the first device may enable the coordinated calling function.
  • the second instruction is used to instruct the second device to collect and play the call voice when the first device is in an operation call.
  • the second instruction is triggered when the user turns on the coordinated call switch in the first device or the second device; or, the second instruction is the screen image of the first device displayed by the user through the operation of the second device, so that Fired when the first device makes a call or receives an incoming call.
  • the first device may also automatically enable the collaborative calling function. For example, when the first device establishes a multi-screen collaborative connection with the second device, it can automatically enable the coordinated call function; or, during the multi-screen collaborative process with the second device, the first device detects that some specific modes , the collaborative call function can be automatically enabled.
  • the first device may also automatically disable the collaborative call function. For example, in the process of multi-screen collaboration between the first device and the second device, when it detects that some specific modes are closed, it can automatically turn off the coordinated call function; or, when the first device ends the call, that is, when it hangs up the phone , you can automatically turn off the collaborative call function.
  • Fig. 12 is a flow chart of a coordinated call method provided by an embodiment of the present application. Referring to Figure 12, the method includes:
  • Step 1201 The first device performs multi-screen collaboration with the second device.
  • the first device and the second device After the first device and the second device perform multi-screen coordination, the first device and the second device are in a multi-screen coordination state, and the screen image of the first device is displayed on the interface of the second device.
  • the user can make the first device execute a corresponding function by manipulating the screen image of the first device displayed on the interface of the second device.
  • the first device and the second device can realize multi-screen collaboration in many possible ways. For example, multi-screen collaboration can be realized through Bluetooth, code scanning, touch, etc. These methods have been described in detail above. This embodiment of the present application will not describe it in detail.
  • Step 1202 the first device receives a call operation.
  • the call operation is an operation for instructing the first device to make a call, for example, the call operation may be an operation of making a call or answering an incoming call.
  • the call operation may be directly triggered by the user in the first device, or the call operation may be triggered by the user through a screen image of the first device displayed on the second device.
  • Various possible triggering modes of the call operation have been described in detail above, and will not be repeated in this embodiment of the application.
  • Step 1203 The first device establishes a call audio link in response to the call operation, and sets the input device of the call audio link as the audio collection hardware device of the first device, and sets the output device of the call audio link as the first The device's audio playback hardware.
  • the first device After receiving the call operation, the first device determines that it needs to make a call, and thus needs to establish a call audio link, and set an input device and an output device of the call audio link.
  • the input device of the call audio link is a device for collecting the uplink voice data of the call
  • the output device of the call audio link is a device for playing the downlink voice data of the call.
  • the first device When the first device receives the call operation, it will set the input device of the call audio link as its own audio collection hardware device, so as to collect audio through the audio collection hardware device, and will set the output device of the call audio link to An audio playback hardware device for itself to play audio through the audio playback hardware device.
  • the audio collection hardware device of the first device is hardware for collecting audio, for example, the audio collection hardware device may be a microphone or the like.
  • the audio playing hardware device of the first device is hardware for playing audio, for example, the audio playing hardware device may be a loudspeaker or an earpiece.
  • Step 1204 The first device detects the status of the coordinated call function. If it detects that the coordinated call function is on, the input device of the call audio link is switched from the audio collection hardware device to a virtual input module, and the call audio link is switched to a virtual input module. The output device is switched from the audio playback hardware device to a virtual output module.
  • the first device When the first device receives a call operation, it may also detect the state of the coordinated call function, so as to determine whether to switch the input device and the output device of the call audio link according to the state of the coordinated call function.
  • the first device can enable the coordinated call function, so as to collect and play the call voice through the second device.
  • the first device may enable the collaborative call function in various possible ways, which have been described in detail above, and will not be repeated in this embodiment of the present application.
  • the first device starts the coordinated call function when receiving the call operation.
  • the first device may automatically enable the coordinated call function when it detects that some specific modes are activated during the multi-screen coordination process with the second device.
  • the first device After the first device activates the coordinated call function, it is about to switch the collection and playback of the call voice to the second device for execution. Specifically, during the coordinated call between the first device and the second device, the second device collects the call uplink voice data of the local user (for example, the second device can collect call uplink voice data through its own microphone), and the call The uplink voice data is sent to the first device, and the first device sends the call uplink voice data to the remote call device.
  • the second device collects the call uplink voice data of the local user (for example, the second device can collect call uplink voice data through its own microphone), and the call The uplink voice data is sent to the first device, and the first device sends the call uplink voice data to the remote call device.
  • the remote call device collects the call downlink voice data of the remote user, sends the call downlink voice data to the first device, and the first device sends the call downlink voice data to the second device, and the second device plays it (for example, the second device can play the call downlink voice data through its own speaker).
  • the virtual output module is used to turn off the audio collection hardware device and the audio playback hardware device during the coordinated call to reduce power consumption.
  • Both the virtual input module and the virtual output module are virtual software modules, not hardware devices.
  • the virtual input module does not perform audio collection, such as the virtual input module can be an IN_PROXY module
  • the virtual output module does not perform audio playback, such as the virtual output module can be an OUT_PROXY module.
  • the first device switches the input device of the call audio link to a virtual input module
  • the first device no longer collects audio
  • the first device switches the output device of the call audio link to a virtual output module
  • the first device does not Play the audio again, so as to meet the needs of collaborative calls and reduce hardware power consumption.
  • the first device when it receives a call operation, it detects the status of the coordinated call function, and if it detects that the coordinated call function is off, it does not switch between the input device and the output device of the call audio link, and still maintains the call
  • the input device of the audio link is the audio collection hardware device of the first device
  • the output device of the call-hold audio link is the audio playback hardware device of the first device. If the cooperative call function is turned off, it means that the first device needs to collect and play the call voice, so the input device of the call audio link needs to be the audio collection hardware device of the first device, and the output of the call audio link should be kept
  • the device is an audio playback hardware device of the first device, so as to ensure the normal progress of the call.
  • the first device closes the coordinated call function when receiving the call operation.
  • the first device may automatically turn off the coordinated call function when it detects that some specific modes are closed during the multi-screen coordination process with the second device.
  • step 1205 may be performed.
  • Step 1205 After the first device establishes the call audio link, if it detects that the cooperative call function is switched from the on state to the off state, then the input device of the call audio link is switched from the virtual input module to the audio collection hardware device, and the The output device of the call audio link is switched from the virtual output module to the audio playback hardware device.
  • the coordinated call can also be turned off, so that the first device can continue to collect and play the voice of the call.
  • the first device may disable the coordinated call in various possible ways, which have been described in detail above, and will not be repeated in this embodiment of the present application. For example, after the first device establishes a call audio link, if it detects that the user has turned off the coordinated call switch displayed by the first device or the second device, it switches the coordinated call function from the on state to the off state.
  • the first device After the first device closes the coordinated call, it switches back the collection and playback of the call voice to the first device for execution. In this case, the first device needs to collect and play the voice of the call. Therefore, in this embodiment of the application, when the first device detects that the coordinated call function is switched from the on state to the off state, it can switch the audio link of the call to The input device is switched from the virtual input module to the audio collection hardware device, and the output device of the call audio link is switched from the virtual output module to the audio playback hardware device to open the audio collection hardware device for audio collection, and open the audio Play hardware devices for audio playback, so as to ensure the normal progress of the call.
  • step 1206 may be performed.
  • Step 1206 After the first device establishes the call audio link, if it detects that the cooperative call function is switched from the off state to the on state, then the input device of the call audio link is switched from the audio collection hardware device to a virtual input module, and the The output device of the call audio link is switched from the audio playback hardware device to a virtual output module.
  • the first device After the first device closes the coordinated call, it can also turn on the coordinated call to switch to the second device to collect and play the call voice.
  • the first device may enable the collaborative call in multiple possible ways, which have been described in detail above, and will not be repeated in this embodiment of the present application. For example, after the first device establishes a call audio link, if it detects that the user turns on the coordinated call switch displayed by the first device or the second device, it switches the coordinated call function from the off state to the on state.
  • the hardware device is switched to a virtual output module, so that the audio collection hardware device and the audio playback hardware device are turned off during the collaborative call process to reduce power consumption.
  • the first device may also turn off the collaborative call function when the call ends. For example, the first device receives the call end operation, and in response to the call end operation, the first device closes the coordinated call function, and sets the input device of the call audio link as the audio collection hardware device, and sets the call audio link output device Set the hardware device for this audio playback.
  • the call end operation is an operation for instructing to end a call, for example, the call end operation may be an operation of hanging up the phone.
  • the call ending operation may be directly triggered by the user in the first device, for example, it may be triggered after the user clicks an end button in the call interface on the first device.
  • the call ending operation may be triggered by the user through the screen image of the first device displayed on the second device, for example, the user may click on the second device in the call interface of the first device displayed on the second device. Fired after the hangup button.
  • the first device If the first device does not make a coordinated call before receiving the call end operation, that is, the coordinated call function is turned off, then the first device will keep the coordinated call function turned off when receiving the call end operation, and keep the call audio link
  • the input device of the channel is the audio collection hardware device
  • the output device of the call audio link is the audio playback hardware device. If the first device performs a coordinated call before receiving the call end operation, that is, the coordinated call function is in the on state, then the first device will switch the coordinated call function from the on state to the off state when receiving the call end operation, and will The input device of the call audio link is switched from the virtual input device to the audio collection hardware device, and the output device of the call audio link is switched from the virtual output device to the audio playback hardware device.
  • the first device if the first device conducts a coordinated call during the call, the first device will shut down the audio playback hardware device and the audio playback hardware device.
  • the first device receives the call uplink voice data collected by the second device sent by the second device when the coordinated call function is turned on, and sends the call uplink voice data to to the remote communication device, and receive the communication downlink voice data sent by the remote communication device, and send the communication downlink voice data to the second device for playback, so as to realize the cooperative communication with the second device.
  • the first device does not make a coordinated call during the call, for example, the first device has not started the coordinated call after starting the call, or the first device turns off the coordinated call after starting the coordinated call function during the call. call, the first device will turn on the audio playback hardware device and the audio playback hardware device.
  • the first device collects the call uplink voice data of the local user through the audio collection hardware device, and sends the call uplink
  • the voice data is sent to the remote communication device.
  • the remote call device collects the call downlink voice data of the remote user, and sends the call downlink voice data to the first device.
  • the first device After receiving the call downlink voice data sent by the remote call device, the first device sends the call downlink voice data. The data is played through the audio playing hardware device, so as to realize the normal progress of the call.
  • the software system of the first device may include a call application and a multi-screen collaborative application in the application layer, an audio framework and DMSDP in the application framework layer, an audio service in the system layer, and an extension layer
  • the Audio HAL in, and the PCM device in the kernel layer can be the Primary Audio HAL.
  • the first device also includes an audio chip, which can communicate with the remote communication device, for example, the audio chip can communicate with the remote communication device through a modem processor, that is, through the modem processor Send the call uplink voice data to the remote call device, and receive the call downlink voice data sent by the remote call device through the modem processor.
  • the coordinated call process may include the following steps 1301 - 1311 .
  • Step 1301 The call application program detects the operation of making a call or answering an incoming call on the call interface, and then instructs the audio service to call the Audio HAL to establish a call audio link through the audio framework.
  • the call application program detects the operation of making a call or receiving an incoming call on the call interface (ie, the incall UI interface), and then determines that the first device needs to make a call, so that the call establishment process can be started.
  • the calling application program can instruct the audio service through the audio framework to call the Audio HAL, so that the Audio HAL starts a voice call (voice call) process to realize call establishment, specifically as described in step 1302.
  • Step 1302 Audio HAL instructs the audio chip to establish a call audio link, and sets the input device of the call audio link as the microphone of the first device, and sets the output device of the call audio link as the earpiece of the first device.
  • the Audio HAL After the Audio HAL starts the voice call process, it selects the sound emitting device and performs routing switching to realize the establishment of the call audio link.
  • selecting the sound emitting device is to instruct the audio chip to set the input device of the call audio link as the microphone of the first device, and set the output device of the call audio link as the earpiece of the first device.
  • Routing switching is to instruct the audio chip to send the call uplink voice data collected by the microphone of the first device to the remote call device, and send the received call downlink voice data sent by the remote call device to the earpiece of the first device for playback .
  • step 1302 the input device of the call audio link is set to the microphone of the first device, and the output device of the call audio link is set to the earpiece of the first device.
  • the audio collection hardware device of the first device, the operation of setting the output device of the call audio link as the audio playback hardware device of the first device is the same, which will not be repeated in this embodiment of the present application.
  • Step 1303 When the first device and the second device are in the multi-screen collaborative state, the multi-screen collaborative application program monitors the call status, and if it detects that the call state changes from idle to active, then judges whether the collaborative call function is enabled.
  • the multi-screen collaborative application program will continue to monitor the call status of the first device during the multi-screen collaboration process. If it detects that the call status has changed from idle (idle) to call (offhook), it will determine that the first device has started a call. At this time The multi-screen collaborative application program can determine whether the collaborative call function is enabled. If the coordinated call function is enabled, you need to make a coordinated call during this call; if the coordinated call switch function is turned off, you do not need to perform a coordinated call during this call.
  • the coordinated call function When the coordinated call function is turned on, it means that the user is allowed to establish a coordinated call, and when the coordinated call function is turned off, it means that the user is not allowed to establish a coordinated call.
  • the user can manually enable or disable the collaborative call function.
  • the user may click on the coordinated call switch to turn on and off the coordinated call switch, so as to enable and disable the coordinated call function.
  • the enabling and disabling of the coordinated call function may also be determined by the user's behavior of making a call or answering an incoming call. Specifically, if the user directly makes a call or answers an incoming call on the first device during the multi-screen collaboration between the first device and the second device, the first device will automatically turn off the coordinated call function. Or, if during the multi-screen collaboration between the first device and the second device, the user makes a call or answers an incoming call on the first device by manipulating the screen of the first device displayed on the second device, the first The device will automatically enable the collaborative calling function.
  • Step 1304 When the coordinated call function is enabled, the multi-screen coordinated application program sends a first switching instruction to the DMSDP to instruct the DMSDP to establish the coordinated call.
  • the first switching instruction is used to instruct the DMSDP to establish a coordinated call, that is, to instruct to switch the voice of the call to the second device, so that the second device can collect and play the voice of the call.
  • step 1303 and step 1304 are only described by taking the multi-screen cooperative application program as an example to send the first switching instruction to the DMSDP when it detects that the call state has changed from idle to in-call, and the coordinated call function is enabled.
  • the multi-screen coordinated application program may also send the first switching instruction to the DMSDP in other cases.
  • the multi-screen coordinated application may also send a first switching instruction to the DMSDP when it detects that the coordinated call function is switched from the off state to the on state, and the monitored call state of the first device is in call.
  • Step 1305 After DMSDP receives the first switching instruction sent by the multi-screen collaborative application program, if it determines that the call status it monitors is in-call, it calls the Audio HAL to establish a collaborative call.
  • the DMSDP will also continuously monitor the call state of the first device during the coordinated call. After receiving the first switching instruction, the DMSDP determines that the multi-screen coordinated application indicates that a coordinated call needs to be established. At this time, the DMSDP will determine whether to establish a cooperative call according to the call status monitored by itself.
  • the DMSDP determines that the call state monitored by itself is idle, and determines that the received first switching instruction does not match the call state it has monitored, it does not establish a coordinated call.
  • the DMSDP determines that the conversation status monitored by itself is in the conversation, it determines that the first switching instruction received matches the conversation status monitored by itself, and then calls the Audio HAL to set up a coordinated conversation, specifically as described in step 1306.
  • Step 1306 Audio HAL creates the Stream stream corresponding to the uplink voice data of the call, to open the PCM device for obtaining the uplink voice data of the call and the corresponding channel in the audio chip, and creates the Stream stream corresponding to the downlink voice data of the call, to open the channel for the uplink voice data of the call Obtain the corresponding path in the PCM device and the audio chip of the downlink voice data of the call, and realize the establishment of the cooperative call.
  • DMSDP receives the call uplink voice data collected by the second device sent by the second device, and DMSDP sends the call uplink voice data to the Audio HAL
  • Audio HAL writes the uplink voice data of the call into the PCM device
  • the PCM device sends the uplink voice data of the call to the audio chip
  • the audio chip sends the uplink voice data of the call to the remote call device through the corresponding channel.
  • the audio chip receives the call downlink voice data sent by the remote call device through the corresponding channel, and sends the call downlink voice data to the PCM device, and Audio HAL reads the call downlink voice data from the PCM device, and sends the call downlink voice data to the PCM device.
  • the voice data is sent to the DMSDP, and the DMSDP sends the call downlink voice data to the second device for playback by the second device.
  • Step 1307 After the cooperative call is established, the Audio HAL instructs the audio chip to switch the input device of the call audio link from the microphone to the IN_PROXY module, and switch the output device of the call audio link from the earpiece to the OUT_PROXY module.
  • step 1307 the input device of the call audio link is switched from the microphone to the IN_PROXY module, and the output device of the call audio link is switched from the earpiece to the OUT_PROXY module.
  • the operations of switching the collection hardware device to the virtual input module and switching the output device of the call audio link from the audio playback hardware device to the virtual output module are the same, and will not be repeated in this embodiment of the present application.
  • Step 1308 When the first device and the second device are in the multi-screen collaborative state, if the multi-screen collaborative application program detects that the call state has changed from in-call to idle, or detects that the collaborative call function has changed from the on state to the off state, Then send a second switching instruction to the DMSDP to instruct to close the coordinated call.
  • the second switching instruction is used to instruct the DMSDP to close the coordinated call, that is, to instruct to switch the call voice back to the first device, so that the first device can collect and play the call voice.
  • the multi-screen collaborative application detects that the call status of the first device has changed from in-call to idle, it means that the first device has ended the call, and at this time may instruct to close the coordinated call. For example, after the user hangs up the phone, the call state of the first device changes from in-call to idle. At this time, the multi-screen collaborative application monitors the change of the call state and can instruct to close the collaborative call.
  • the multi-screen collaborative application program detects that the collaborative call function has been turned from the on state to the off state, it means that the user wants to collect and play the call voice on the first device, and at this time can instruct to turn off the collaborative call. For example, the user can manually click the coordinated call switch to turn off the coordinated call function. At this time, after the multi-screen collaborative application detects that the coordinated call switch is switched from on to off, it can instruct to turn off the coordinated call.
  • Step 1309 After receiving the second switching instruction sent by the multi-screen cooperative application program, the DMSDP invokes the Audio HAL to close the cooperative call.
  • the DMSDP After receiving the second switching instruction, the DMSDP determines that the multi-screen coordinated application indicates that the coordinated call needs to be terminated. Therefore, at this time, the DMSDP can call the Audio HAL to close the coordinated call, as described in step 1310.
  • Step 1310 Audio HAL closes the Stream stream corresponding to the uplink voice data of the call, so as to close the PCM device and the corresponding path in the audio chip used to obtain the uplink voice data of the call, and close the Stream stream corresponding to the downlink voice data of the call, so as to close the channel used for Obtain the corresponding path in the PCM device and the audio chip of the downlink voice data of the call to realize the closing of the cooperative call.
  • the collection and playback of the call voice returns to the original state, that is, it is switched back to the first device for execution.
  • the first device needs to collect and play the call voice by itself.
  • Step 1311 While closing the coordinated call, the Audio HAL instructs the audio chip to switch the input device of the call audio link from the IN_PROXY module to its own microphone, and switch the output device of the call audio link from the OUT_PROXY module to its own earpiece.
  • the microphone of the first device collects the uplink voice data of the call and sends it to the audio chip, and the audio chip sends the uplink voice data of the call collected by the microphone of the first device to the remote call equipment.
  • the remote call device sends the call downlink voice data to the audio chip, and the audio chip sends the received call downlink voice data sent by the remote call device to the earpiece of the first device for playback.
  • step 1311 the input device of the call audio link is switched from the IN_PROXY module to its own microphone, and the output device of the call audio link is switched from the OUT_PROXY module to its own listening operation.
  • the operation of switching the device from the virtual input module to the audio collection hardware device and switching the output device of the call audio link from the virtual output module to the audio playback hardware device is the same, and will not be repeated in this embodiment of the application.
  • the first device and the second device when the first device and the second device are in a multi-screen coordinated state, if the first device receives a call operation, it will establish a call audio link, and set the input device of the call audio link to As the audio collection hardware device of the first device, the output device of the call audio link is set as the audio playback hardware device of the first device.
  • the first device when it receives the call operation, it can also detect the state of the coordinated call function, and if the coordinated call function is turned on, the input device of the call audio link is switched from the audio collection hardware device to a virtual input module , switching the output device of the call audio link from the audio playback hardware device to a virtual output module, so as to close the audio collection hardware device and the audio playback hardware device during the coordinated call, so that the first device no longer collects audio, Audio is no longer played, thereby reducing hardware power consumption while meeting the needs of collaborative calls.
  • Fig. 14 is a schematic structural diagram of a collaborative communication device provided by an embodiment of the present application.
  • the device can be realized by software, hardware or a combination of the two as part or all of a computer device.
  • the computer device can be implemented as shown in Fig. 1-Fig. 2 terminal as shown in the example.
  • the device includes: a receiving module 1401 , an establishing module 1402 , and a switching module 1403 .
  • the receiving module 1401 is configured to receive a call operation, wherein the device and the second device are in a multi-screen coordinated state;
  • the establishment module 1402 is used to establish a call audio link in response to a call operation, and set the input device of the call audio link as the audio collection hardware device of the device, and set the output device of the call audio link as the audio of the device Play hardware equipment;
  • the switching module 1403 is used to switch the input device of the call audio link from an audio collection hardware device to a virtual input module, and switch the output device of the call audio link from an audio playback hardware device if it is detected that the coordinated call function is in an open state It is a virtual output module, and the coordinated call function is used to instruct the second device to collect and play the call voice.
  • the virtual input module does not collect audio
  • the virtual output module does not play audio.
  • the switching module 1403 is also used for:
  • the input device of the call audio link is switched from a virtual input module to an audio collection hardware device, and the output device of the call audio link Switch from a virtual output module to an audio playback hardware device.
  • the switching module 1403 is also used for:
  • the input device of the call audio link is switched from an audio collection hardware device to a virtual input module, and the output device of the call audio link is switched to a virtual input module. Switch from an audio playback hardware device to a virtual output module.
  • the device also includes:
  • the first call module is configured to receive the call uplink voice data collected by the second device sent by the second device and send the call uplink voice data to
  • the remote communication device receives the communication downlink voice data sent by the remote communication device, and sends the communication downlink voice data to the second device for playing.
  • the device also includes:
  • the second call module is used to collect the uplink voice data of the call through the audio collection hardware device, and send the uplink voice data of the call to the remote call device after the call audio link is established, and when the coordinated call function is in a closed state, and Receive the call downlink voice data sent by the remote call device, and play the call downlink voice data through the audio playback hardware device.
  • the device also includes:
  • the opening module is used to enable the cooperative call function in response to the call operation if the call operation is triggered by the user through the screen image of the device displayed by the second device;
  • the closing module is used to close the coordinated calling function in response to the calling operation if the calling operation is triggered by the user on the device.
  • the device also includes:
  • the closing module is used to switch the coordinated calling function from the on state to the off state if it is detected that the user turns off the cooperative calling switch displayed by the device or the second device after the call audio link is established;
  • the opening module is used to switch the cooperative calling function from the off state to the on state if it is detected that the user turns on the cooperative calling switch displayed by the device or the second device after the call audio link is established.
  • the device also includes:
  • the receiving module 1401 is also used to receive a call end operation
  • the setting module is used to close the coordinated call function in response to the call end operation, and set the input device of the call audio link as an audio collection hardware device, and set the output device of the call audio link as an audio playback hardware device.
  • the audio collection hardware device is a microphone
  • the audio playback hardware device is a speaker or an earpiece.
  • the second device when the second device is in a multi-screen cooperative state, if a call operation is received, a call audio link is established, and the input device of the call audio link is set as its own audio collection hardware Device, set the output device of the call audio link as its own audio playback hardware device.
  • the state of the coordinated call function can also be detected.
  • the input device of the call audio link is switched from the audio collection hardware device to a virtual input module, and the call The output device of the audio link is switched from the audio playback hardware device to a virtual output module, so as to close the audio collection hardware device and the audio playback hardware device during the cooperative call, so that it no longer collects audio itself, nor plays audio , thereby reducing hardware power consumption while meeting the cooperative call requirements.
  • the coordinated call device provided by the above-mentioned embodiments only uses the division of the above-mentioned functional modules as an example for illustration during the coordinated call.
  • the above-mentioned function allocation can be completed by different functional modules according to needs.
  • the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
  • the functional units and modules in the above-mentioned embodiments can be integrated into one processing unit, or each unit can exist separately physically, or two or more units can be integrated into one unit, and the above-mentioned integrated units can use hardware It can also be implemented in the form of software functional units.
  • the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present application.
  • the coordinated calling device provided by the above embodiments and the coordinated calling method embodiments belong to the same concept.
  • the specific working process and technical effects of the units and modules in the above embodiments can be found in the method embodiments, and will not be repeated here.
  • all or part may be implemented by software, hardware, firmware or any combination thereof.
  • software When implemented using software, it may be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part.
  • the computer can be a general purpose computer, a special purpose computer, a computer network or other programmable devices.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be accessed from a website, computer, server, or data center Transmission to another website site, computer, server or data center by wired (such as: coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or wireless (such as: infrared, wireless, microwave, etc.).
  • the computer-readable storage medium may be any available medium that can be accessed by a computer, or may be a data storage device such as a server or a data center integrated with one or more available media.
  • the available medium may be a magnetic medium (such as a floppy disk, a hard disk, a magnetic tape), an optical medium (such as a digital versatile disc (Digital Versatile Disc, DVD)) or a semiconductor medium (such as a solid state disk (Solid State Disk, SSD)) wait.
  • a magnetic medium such as a floppy disk, a hard disk, a magnetic tape
  • an optical medium such as a digital versatile disc (Digital Versatile Disc, DVD)
  • a semiconductor medium such as a solid state disk (Solid State Disk, SSD)

Landscapes

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

Abstract

The present application relates to the technical field of terminals, and discloses a collaborative calling method and apparatus, a device, a storage medium, and a program product. The method comprises: if a first device receives a calling operation when the first device and a second device are in a multi-screen collaborative state, establishing a calling audio link, setting an input device of the calling audio link as an audio acquisition hardware device of the first device, and setting an output device of the calling audio link as an audio playback hardware device of the first device. When receiving the calling operation, the first device also detects the state of a collaborative calling function, and if the collaborative calling function is in an enabled state, the input device of the calling audio link is switched from the audio acquisition hardware device to a virtual input module, and the output device of the calling audio link is switched from the audio playback hardware device to a virtual output module, so that the audio acquisition hardware device and the audio playback hardware device of the first device are turned off during the collaborative calling, thereby reducing hardware power consumption while meeting the collaborative calling requirement.

Description

协同通话方法、装置、设备、存储介质和程序产品Cooperative call method, device, equipment, storage medium and program product
本申请要求于2022年01月10日提交到国家知识产权局、申请号为202210023658.9、申请名称为“协同通话方法、装置、设备、存储介质和程序产品”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application submitted to the State Intellectual Property Office on January 10, 2022, with the application number 202210023658.9, and the application name "Collaborative call method, device, equipment, storage medium and program product", all of which The contents are incorporated by reference in this application.
技术领域technical field
本申请涉及终端技术领域,特别涉及一种协同通话方法、装置、设备、存储介质和程序产品。The present application relates to the technical field of terminals, and in particular to a method, device, device, storage medium and program product for a collaborative call.
背景技术Background technique
随着终端技术的快速发展,多屏协同技术得到广泛的应用。多屏协同是指在第一设备(如手机)与第二设备(如平板电脑)建立连接后,在第二设备的界面中镜像显示第一设备的屏幕画面。这种情况下,用户可以通过操作第二设备的界面中所显示的第一设备的屏幕画面,使第一设备执行相应的功能。With the rapid development of terminal technology, multi-screen collaboration technology has been widely used. Multi-screen collaboration refers to mirroring and displaying the screen image of the first device on the interface of the second device after the first device (such as a mobile phone) establishes a connection with the second device (such as a tablet computer). In this case, the user can make the first device execute a corresponding function by manipulating the screen image of the first device displayed on the interface of the second device.
在多屏协同的场景下,若第一设备进行通话,则可以切换至第二设备进行通话语音的采集和播放,即可以进行协同通话。具体地,第一设备与第二设备进行协同通话时,第二设备的麦克风采集本端用户的通话语音并发送至第一设备,由第一设备将该通话语音发送至远端通话设备;远端通话设备将远端用户的通话语音发送至第一设备,第一设备将该通话语音发送至第二设备,由第二设备的扬声器进行播放。In the scenario of multi-screen collaboration, if the first device is in a call, it can be switched to the second device to collect and play the voice of the call, that is, a collaborative call can be made. Specifically, when the first device and the second device conduct a coordinated call, the microphone of the second device collects the call voice of the local user and sends it to the first device, and the first device sends the call voice to the remote call device; The end call device sends the call voice of the remote user to the first device, and the first device sends the call voice to the second device, which is played by the speaker of the second device.
然而,相关技术中,在第一设备与第二设备进行协同通话的过程中,第一设备仍会打开自身的麦克风、扬声器和听筒等硬件,从而会存在功耗消耗。However, in the related art, during the coordinated call between the first device and the second device, the first device still turns on its own hardware such as a microphone, a speaker, and an earpiece, thereby consuming power consumption.
发明内容Contents of the invention
本申请提供了一种协同通话方法、装置、设备、存储介质和程序产品,可以在协同通话时关闭麦克风、扬声器和听筒等硬件,以减少硬件功耗消耗。所述技术方案如下:The present application provides a coordinated call method, device, device, storage medium and program product, which can turn off hardware such as a microphone, a loudspeaker, and an earpiece during a coordinated call to reduce hardware power consumption. Described technical scheme is as follows:
第一方面,提供了一种协同通话方法。在该方法中,第一设备接收通话操作,其中,第一设备与第二设备处于多屏协同状态。之后,第一设备响应于通话操作,建立通话音频链路,且将通话音频链路的输入设备设置为第一设备的音频采集硬件设备,将通话音频链路的输出设备设置为第一设备的音频播放硬件设备,并且,第一设备检测协同通话功能的状态,若检测到协同通话功能处于开启状态,则将通话音频链路的输入设备由音频采集硬件设备切换为虚拟输入模块,将通话音频链路的输出设备由音频播放硬件设备切换为虚拟输出模块。In the first aspect, a coordinated call method is provided. In this method, the first device receives a call operation, wherein the first device and the second device are in a multi-screen coordinated state. Afterwards, the first device establishes a call audio link in response to the call operation, and sets the input device of the call audio link as the audio collection hardware device of the first device, and sets the output device of the call audio link as the first device's audio collection device. Audio playback hardware device, and the first device detects the state of the coordinated call function, if it detects that the coordinated call function is in an open state, then the input device of the call audio link is switched from the audio collection hardware device to a virtual input module, and the call audio The output device of the link is switched from an audio playback hardware device to a virtual output module.
第一设备与第二设备处于多屏协同状态时,第一设备的屏幕画面显示于第二设备的界面。这种情况下,用户可以通过操作第二设备的界面中所显示的第一设备的屏幕画面,使第一设备执行相应的功能。When the first device and the second device are in a multi-screen coordinated state, the screen image of the first device is displayed on the interface of the second device. In this case, the user can make the first device execute a corresponding function by manipulating the screen image of the first device displayed on the interface of the second device.
第一设备可以启动协同通话,以通过第二设备进行通话语音的采集和播放。比如,在该通话操作是用户通过第二设备所显示的第一设备的屏幕画面触发的情况下,第一设备在接收到该通话操作时开启协同通话功能。或者,第一设备在接收到该通话操作之前,在与 第二设备进行多屏协同的过程中,可以在检测到一些特定模式开启时自动开启协同通话功能。The first device can start a coordinated call, so as to collect and play the call voice through the second device. For example, in the case that the call operation is triggered by the user through the screen image of the first device displayed by the second device, the first device starts the coordinated call function when receiving the call operation. Or, before receiving the call operation, the first device may automatically enable the coordinated call function when it detects that some specific modes are activated during the multi-screen coordination process with the second device.
第一设备的音频采集硬件设备是用于采集音频的硬件,如该音频采集硬件设备可以为麦克风等。第一设备的音频播放硬件设备是用于播放音频的硬件,如该音频播放硬件设备可以为扬声器或听筒等。The audio collection hardware device of the first device is hardware for collecting audio, for example, the audio collection hardware device may be a microphone or the like. The audio playing hardware device of the first device is hardware for playing audio, for example, the audio playing hardware device may be a loudspeaker or an earpiece.
在第一设备开启协同通话功能后,由于通话语音的采集和播放均在第二设备执行,所以第一设备已经没有通话语音的采集和播放需求,因而在本申请中,第一设备在检测到协同通话功能处于开启状态时,可以将通话语音的输入设备由该音频采集硬件设备切换为虚拟输入模块,将通话语音的输出设备由该音频播放硬件设备切换为虚拟输出模块,以在协同通话过程中关闭该音频采集硬件设备和该音频播放硬件设备,减少功耗消耗。After the first device enables the coordinated call function, since the collection and playback of call voices are performed on the second device, the first device no longer needs to collect and play call voices. Therefore, in this application, the first device detects When the collaborative call function is turned on, the input device of the call voice can be switched from the audio collection hardware device to the virtual input module, and the output device of the call voice can be switched from the audio playback hardware device to the virtual output module, so that during the collaborative call process The audio collection hardware device and the audio playback hardware device are turned off in the middle, so as to reduce power consumption.
虚拟输入模块和虚拟输出模块均为虚拟的软件模块,不是硬件设备。虚拟输入模块不进行音频采集,如虚拟输入模块可以为IN_PROXY模块,虚拟输出模块不进行音频播放,如虚拟输出模块可以为OUT_PROXY模块。如此,第一设备将通话语音的输入设备切换为虚拟输入模块后,第一设备不再采集音频,第一设备将通话语音的输出设备切换为虚拟输出模块后,第一设备不再播放音频,从而在满足协同通话需求的同时,还降低了硬件功耗消耗。Both the virtual input module and the virtual output module are virtual software modules, not hardware devices. The virtual input module does not perform audio collection, for example, the virtual input module can be an IN_PROXY module, and the virtual output module does not perform audio playback, for example, the virtual output module can be an OUT_PROXY module. In this way, after the first device switches the input device of the call voice to the virtual input module, the first device no longer collects audio, and after the first device switches the output device of the call voice to the virtual output module, the first device no longer plays audio, In this way, while meeting the requirements of cooperative calls, the power consumption of hardware is also reduced.
值得注意的是,第一设备在接收到通话操作时,检测协同通话功能的状态,若检测到协同通话功能处于关闭状态,则不对通话音频链路的输入设备和输出设备进行切换,依旧保持通话音频链路的输入设备为第一设备的音频采集硬件设备,且保持通话音频链路的输出设备为第一设备的音频播放硬件设备。若协同通话功能处于关闭状态,说明需要由第一设备进行通话语音的采集和播放,因而需要保持通话音频链路的输入设备为第一设备的音频采集硬件设备,且保持通话音频链路的输出设备为第一设备的音频播放硬件设备,从而保证通话的正常进行。It is worth noting that when the first device receives a call operation, it detects the status of the coordinated call function, and if it detects that the coordinated call function is off, it does not switch between the input device and the output device of the call audio link, and still maintains the call The input device of the audio link is the audio collection hardware device of the first device, and the output device of the call-hold audio link is the audio playback hardware device of the first device. If the cooperative call function is turned off, it means that the first device needs to collect and play the call voice, so the input device of the call audio link needs to be the audio collection hardware device of the first device, and the output of the call audio link should be kept The device is an audio playback hardware device of the first device, so as to ensure the normal progress of the call.
比如,在该通话操作是用户在第一设备触发的情况下,第一设备在接收到该通话操作时关闭协同通话功能。或者,第一设备在接收到该通话操作之前,在与第二设备进行多屏协同的过程中,可以在检测到一些特定模式关闭时自动关闭协同通话功能。For example, in the case that the call operation is triggered by the user on the first device, the first device closes the coordinated call function when receiving the call operation. Or, before receiving the call operation, the first device may automatically turn off the coordinated call function when it detects that some specific modes are closed during the multi-screen coordination process with the second device.
在一种可能的情况中,第一设备在建立通话音频链路后,若检测到协同通话功能由开启状态切换为关闭状态,则将通话音频链路的输入设备由虚拟输入模块切换为音频采集硬件设备,将通话音频链路的输出设备由虚拟输出模块切换为音频播放硬件设备。In a possible situation, after the first device establishes the call audio link, if it detects that the cooperative call function is switched from the on state to the off state, then the input device of the call audio link is switched from the virtual input module to the audio collection Hardware device, switch the output device of the call audio link from a virtual output module to an audio playback hardware device.
第一设备与第二设备进行协同通话后,还可以关闭协同通话,以由第一设备继续进行通话语音的采集和播放。比如,第一设备在建立通话音频链路后,若检测到用户关闭第一设备或第二设备显示的协同通话开关,则将协同通话功能由开启状态切换为关闭状态。After the coordinated call between the first device and the second device, the coordinated call can also be turned off, so that the first device can continue to collect and play the voice of the call. For example, after the first device establishes a call audio link, if it detects that the user has turned off the coordinated call switch displayed by the first device or the second device, it switches the coordinated call function from the on state to the off state.
第一设备关闭协同通话后,即将通话语音的采集和播放切换回第一设备执行。这种情况下,第一设备存在通话语音的采集和播放需求,因而在本申请中,第一设备在检测到协同通话功能由开启状态切换为关闭状态时,可以将通话音频链路的输入设备由虚拟输入模块切换为该音频采集硬件设备,将通话音频链路的输出设备由虚拟输出模块切换为该音频播放硬件设备,以打开该音频采集硬件设备来进行音频采集,且打开该音频播放硬件设备来进行音频播放,从而保证通话的正常进行。After the first device closes the coordinated call, it switches back the collection and playback of the call voice to the first device for execution. In this case, the first device needs to collect and play the voice of the call. Therefore, in this application, when the first device detects that the coordinated call function is switched from the on state to the off state, the input device of the call audio link can be Switch from the virtual input module to the audio collection hardware device, switch the output device of the call audio link from the virtual output module to the audio playback hardware device, to open the audio collection hardware device for audio collection, and turn on the audio playback hardware The device is used for audio playback, so as to ensure the normal progress of the call.
在一种可能的情况中,第一设备在建立通话音频链路后,若检测到协同通话功能由关 闭状态切换为开启状态,则将通话音频链路的输入设备由音频采集硬件设备切换为虚拟输入模块,将通话音频链路的输出设备由音频播放硬件设备切换为虚拟输出模块。In a possible situation, after the first device establishes the call audio link, if it detects that the coordinated call function is switched from the off state to the on state, it will switch the input device of the call audio link from the audio collection hardware device to the virtual The input module switches the output device of the call audio link from an audio playback hardware device to a virtual output module.
第一设备在关闭协同通话后,还可以又打开协同通话,以切换至第二设备进行通话语音的采集和播放。比如,第一设备在建立通话音频链路后,若检测到用户打开第一设备或第二设备显示的协同通话开关,则将协同通话功能由关闭状态切换为开启状态。After the first device closes the coordinated call, it can also turn on the coordinated call to switch to the second device to collect and play the call voice. For example, after the first device establishes a call audio link, if it detects that the user turns on the coordinated call switch displayed by the first device or the second device, it switches the coordinated call function from the off state to the on state.
在第一设备与第二设备进行协同通话后,由于通话语音的采集和播放均在第二设备执行,所以第一设备已经没有通话语音的采集和播放需求,因而在本申请中,第一设备在检测到协同通话功能由关闭状态切换为开启状态时,可以将通话音频链路的输入设备由该音频采集硬件设备切换为虚拟输入模块,将通话音频链路的输出设备由该音频播放硬件设备切换为虚拟输出模块,以在协同通话过程中关闭该音频采集硬件设备和该音频播放硬件设备,减少功耗消耗。After the first device and the second device have a coordinated call, since the collection and playback of the call voice are performed on the second device, the first device no longer needs to collect and play the call voice. Therefore, in this application, the first device When it is detected that the cooperative call function is switched from the closed state to the open state, the input device of the call audio link can be switched from the audio collection hardware device to a virtual input module, and the output device of the call audio link can be replaced by the audio playback hardware device Switch to a virtual output module to turn off the audio collection hardware device and the audio playback hardware device during a cooperative call to reduce power consumption.
值得注意的是,本申请中,第一设备在通话结束时,还可以关闭协同通话功能。示例地,第一设备接收通话结束操作,响应于通话结束操作,第一设备关闭协同通话功能,且将通话音频链路的输入设备设置为该音频采集硬件设备,将通话音频链路的输出设备设置为该音频播放硬件设备。It should be noted that in this application, the first device may also turn off the collaborative call function when the call ends. For example, the first device receives the call end operation, and in response to the call end operation, the first device closes the coordinated call function, and sets the input device of the call audio link as the audio collection hardware device, and sets the call audio link output device Set the hardware device for this audio playback.
该通话结束操作是用于指示结束通话的操作,比如,该通话结束操作可以为挂断电话的操作。该通话结束操作可以是用户直接在第一设备中触发的,比如,可以是用户在第一设备中点击通话界面中的挂断按钮后触发的。或者,该通话结束操作可以是用户通过第二设备所显示的第一设备的屏幕画面触发的,比如,可以是用户在第二设备中点击第二设备所显示的第一设备的通话界面中的挂断按钮后触发的。The call end operation is an operation for instructing to end a call, for example, the call end operation may be an operation of hanging up the phone. The call ending operation may be directly triggered by the user in the first device, for example, it may be triggered after the user clicks an end button in the call interface on the first device. Alternatively, the call ending operation may be triggered by the user through the screen image of the first device displayed on the second device, for example, the user may click on the second device in the call interface of the first device displayed on the second device. Fired after the hangup button.
由以上描述可知,第一设备在进行通话的过程中若进行协同通话,则第一设备会关闭该音频播放硬件设备和该音频播放硬件设备。在此情况下,第一设备在建立通话音频链路后,在协同通话功能处于开启状态的情况下,接收第二设备发送的由第二设备采集的通话上行语音数据,将通话上行语音数据发送至远端通话设备,以及接收远端通话设备发送的通话下行语音数据,将通话下行语音数据发送至第二设备进行播放,以实现与第二设备之间的协同通话。It can be seen from the above description that if the first device conducts a coordinated call during the call, the first device will shut down the audio playback hardware device and the audio playback hardware device. In this case, after the call audio link is established, the first device receives the call uplink voice data collected by the second device sent by the second device when the coordinated call function is turned on, and sends the call uplink voice data to to the remote communication device, and receive the communication downlink voice data sent by the remote communication device, and send the communication downlink voice data to the second device for playback, so as to realize the cooperative communication with the second device.
第一设备在进行通话的过程中若未进行协同通话,比如,第一设备在开始进行通话后一直未启动协同通话,或者第一设备在进行通话的过程中启动协同通话功能后又关闭了协同通话,则第一设备会打开该音频播放硬件设备和该音频播放硬件设备。在此情况下,第一设备在建立通话音频链路后,在协同通话功能处于关闭状态的情况下,通过音频采集硬件设备采集通话上行语音数据,将通话上行语音数据发送至远端通话设备,以及接收远端通话设备发送的通话下行语音数据,将通话下行语音数据通过音频播放硬件设备进行播放,以实现通话的正常进行。If the first device does not make a coordinated call during the call, for example, the first device has not started the coordinated call after starting the call, or the first device turns off the coordinated call after starting the coordinated call function during the call. call, the first device will turn on the audio playback hardware device and the audio playback hardware device. In this case, after the call audio link is established, the first device collects the uplink voice data of the call through the audio collection hardware device, and sends the uplink voice data of the call to the remote call device when the cooperative call function is turned off. And receive the call downlink voice data sent by the remote call device, and play the call downlink voice data through the audio playback hardware device, so as to realize the normal progress of the call.
第二方面,提供了一种协同通话装置,所述协同通话装置具有实现上述第一方面中协同通话方法行为的功能。所述协同通话装置包括至少一个模块,所述至少一个模块用于实现上述第一方面所提供的协同通话方法。In the second aspect, a coordinated calling device is provided, and the coordinated calling device has the function of realizing the behavior of the coordinated calling method in the above first aspect. The coordinated calling device includes at least one module, and the at least one module is used to implement the coordinated calling method provided in the first aspect above.
第三方面,提供了一种协同通话装置,所述协同通话装置的结构中包括处理器和存储器,所述存储器用于存储支持协同通话装置执行上述第一方面所提供的协同通话方法的程序,以及存储用于实现上述第一方面所述的协同通话方法所涉及的数据。所述处理器被配 置为用于执行所述存储器中存储的程序。所述协同通话装置还可以包括通信总线,所述通信总线用于在所述处理器与所述存储器之间建立连接。In the third aspect, a cooperative communication device is provided, the structure of the coordinated communication device includes a processor and a memory, and the memory is used to store a program that supports the coordinated communication device to execute the coordinated communication method provided in the first aspect above, And storing the data involved in realizing the cooperative calling method described in the first aspect above. The processor is configured to execute programs stored in the memory. The cooperative communication device may further include a communication bus for establishing a connection between the processor and the memory.
第四方面,提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述第一方面所述的协同通话方法。In a fourth aspect, a computer-readable storage medium is provided, wherein instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is run on a computer, the computer is made to execute the collaborative calling method described in the above-mentioned first aspect.
第五方面,提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第一方面所述的协同通话方法。A fifth aspect provides a computer program product containing instructions, which when run on a computer, causes the computer to execute the coordinated calling method described in the first aspect above.
上述第二方面、第三方面、第四方面和第五方面所获得的技术效果与上述第一方面中对应的技术手段获得的技术效果近似,在这里不再赘述。The technical effects obtained by the above-mentioned second aspect, third aspect, fourth aspect and fifth aspect are similar to those obtained by the corresponding technical means in the above-mentioned first aspect, and will not be repeated here.
附图说明Description of drawings
图1是本申请实施例提供的一种终端的结构示意图;FIG. 1 is a schematic structural diagram of a terminal provided in an embodiment of the present application;
图2是本申请实施例提供的一种终端的软件系统的框图;FIG. 2 is a block diagram of a software system of a terminal provided in an embodiment of the present application;
图3是本申请实施例提供的一种非多屏协同场景下的通话数据流的示意图;FIG. 3 is a schematic diagram of a call data flow in a non-multi-screen collaborative scenario provided by an embodiment of the present application;
图4是本申请实施例提供的一种多屏协同场景下的通话数据流的示意图;FIG. 4 is a schematic diagram of a call data flow in a multi-screen collaborative scenario provided by an embodiment of the present application;
图5是本申请实施例提供的一种平板电脑的界面示意图;Fig. 5 is a schematic diagram of an interface of a tablet computer provided by an embodiment of the present application;
图6是本申请实施例提供的一种手机的界面示意图;Fig. 6 is a schematic diagram of the interface of a mobile phone provided by the embodiment of the present application;
图7是本申请实施例提供的另一种平板电脑的界面示意图;Fig. 7 is a schematic interface diagram of another tablet computer provided by the embodiment of the present application;
图8是本申请实施例提供的另一种手机的界面示意图;Fig. 8 is a schematic diagram of the interface of another mobile phone provided by the embodiment of the present application;
图9是本申请实施例提供的一种多屏协同场景下的界面示意图;FIG. 9 is a schematic diagram of an interface in a multi-screen collaboration scenario provided by an embodiment of the present application;
图10是本申请实施例提供的另一种多屏协同场景下的界面示意图;Fig. 10 is a schematic diagram of an interface in another multi-screen collaboration scenario provided by the embodiment of the present application;
图11是本申请实施例提供的一种多屏协同系统的示意图;Fig. 11 is a schematic diagram of a multi-screen collaboration system provided by an embodiment of the present application;
图12是本申请实施例提供的一种协同通话方法的流程图;Fig. 12 is a flow chart of a coordinated call method provided by an embodiment of the present application;
图13是本申请实施例提供的一种协同通话过程的流程图;FIG. 13 is a flow chart of a coordinated call process provided by an embodiment of the present application;
图14是本申请实施例提供的一种协同通话装置的结构示意图。Fig. 14 is a schematic structural diagram of a collaborative communication device provided by an embodiment of the present application.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请的实施方式作进一步地详细描述。In order to make the purpose, technical solution and advantages of the present application clearer, the implementation manner of the present application will be further described in detail below in conjunction with the accompanying drawings.
应当理解的是,本申请提及的“多个”是指两个或两个以上。在本申请的描述中,除非另有说明,“/”表示或的意思,比如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,比如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,为了便于清楚描述本申请的技术方案,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。It should be understood that the "plurality" mentioned in this application means two or more. In the description of this application, unless otherwise specified, "/" means or means, for example, A/B can mean A or B; "and/or" in this article is just a description of the relationship between associated objects, It means that there can be three kinds of relationships, for example, A and/or B, which can mean: A exists alone, A and B exist simultaneously, and B exists alone. In addition, in order to clearly describe the technical solution of the present application, words such as "first" and "second" are used to distinguish the same or similar items with basically the same function and effect. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit the difference.
在本申请中描述的“一个实施例”或“一些实施例”等语句意味着在本申请的一个或多个实施例中包括该实施例描述的特定特征、结构或特点。由此,在本申请中的不同之处出现的“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等语句不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。此外,术语“包括”、“包含”、“具 有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。Phrases such as "one embodiment" or "some embodiments" described in this application mean that a particular feature, structure, or characteristic described by the embodiment is included in one or more embodiments of the present application. Thus, appearances of "in one embodiment," "in some embodiments," "in other embodiments," "in other embodiments," etc. in various places in this application are not necessarily All refer to the same embodiment, but mean "one or more but not all embodiments" unless specifically stated otherwise. In addition, the terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless specifically stated otherwise.
下面对本申请实施例涉及的终端予以说明。The terminal involved in the embodiment of the present application will be described below.
图1是本申请实施例提供的一种终端的结构示意图。参见图1,终端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 identity module,SIM)卡接口195等。其中,传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。FIG. 1 is a schematic structural diagram of a terminal provided by an embodiment of the present application. 1, the terminal 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, a battery 142, and an antenna 1 , antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and a subscriber identity module (subscriber identity module, SIM) card interface 195, etc. Among them, the sensor module 180 may include a pressure sensor 180A, a gyro 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 environmental Light sensor 180L, bone conduction sensor 180M, etc.
可以理解的是,本申请实施例示意的结构并不构成对终端100的具体限定。在本申请另一些实施例中,终端100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that, the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the terminal 100 . In other embodiments of the present application, the terminal 100 may include more or fewer components than shown in the figure, or combine some components, or separate some 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, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU) wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
其中,控制器可以是终端100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。Wherein, the controller may be the nerve center and command center of the terminal 100 . The controller can generate an operation control signal according to the instruction opcode and 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 directly recalled from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过终端100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为终端100供电。The charging management module 140 is configured to receive a charging input from a charger. Wherein, the charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger through the USB interface 130 . In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through the wireless charging coil of the terminal 100 . While the charging management module 140 is charging the battery 142 , it can also supply power to the terminal 100 through the power management module 141 .
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 . The power management module 141 receives the input from the battery 142 and/or the charging management module 140 to provide power for the processor 110 , the internal memory 121 , the external memory, the display screen 194 , the camera 193 and the wireless communication module 160 . The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 may also be disposed in the processor 110 . In some other embodiments, the power management module 141 and the charging management module 140 may also be set in the same device.
终端100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the terminal 100 can be realized by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
移动通信模块150可以提供应用在终端100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on the terminal 100 . The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like. The mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves and radiate them through the antenna 1 . In some embodiments, at least part of the functional modules of the mobile communication module 150 may be set in the processor 110 . In some embodiments, at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be set in the same device.
无线通信模块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)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite system, etc. (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. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 . The wireless communication module 160 can also receive the signal to be sent from the processor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
终端100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The terminal 100 realizes the display function through the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
终端100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The terminal 100 can realize the shooting function through the ISP, the camera 193 , the video codec, the GPU, the display screen 194 and the application processor.
外部存储器接口120可以用于连接外部存储卡,比如Micro SD卡,实现扩展终端100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。比如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the terminal 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 and other files in the external memory card.
内部存储器121可以用于存储计算机可执行程序代码,计算机可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,来执行终端100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储终端100在使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,比如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。The internal memory 121 may be used to store computer-executable program codes including instructions. The processor 110 executes various functional applications and data processing of the terminal 100 by executing instructions stored in the internal memory 121 . 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, etc.) and the like. The storage data area can store data (such as audio data, phone book, etc.) created by the terminal 100 during use. 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.
终端100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D以及应用处理器等实现音频功能,比如音乐播放,录音等。The terminal 100 can implement audio functions, such as music playing and recording, through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor.
音频模块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 .
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和终端100的接触和分离。终端100可以支持1个或N个SIM卡接口,N为大于1的整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。终端100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,终端100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在终端100中,不能和终端100分离。The SIM card interface 195 is used for connecting a SIM card. The SIM card can be connected and separated from the terminal 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 . The terminal 100 may support 1 or N SIM card interfaces, where N is an integer greater than 1. SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of multiple cards may be the same or different. The SIM card interface 195 is also compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. The terminal 100 interacts with the network through the SIM card to implement functions such as calling and data communication. In some embodiments, the terminal 100 adopts an eSIM, that is, an embedded SIM card. The eSIM card can be embedded in the terminal 100 and cannot be separated from the terminal 100 .
接下来对终端100的软件系统予以说明。Next, the software system of the terminal 100 will be described.
终端100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的安卓(Android)系统为例,对终端100的软件系统进行示例性说明。The software system of the terminal 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. In this embodiment of the present application, the software system of the terminal 100 is exemplarily described by taking an Android system with a layered architecture as an example.
图2是本申请实施例提供的一种终端100的软件系统的框图。参见图2,分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分从上至下分为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统层,扩展层,以及内核层。FIG. 2 is a block diagram of a software system of a terminal 100 provided by an embodiment of the present application. Referring to Figure 2, 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 application program layer, application program framework layer, Android runtime (Android runtime) and system layer, extension layer, and kernel layer from top to bottom.
应用程序层可以包括一系列应用程序包。如图2所示,应用程序包可以包括多屏协同,相机,图库,日历,通话,地图,导航,WLAN,蓝牙,短信息等应用程序。多屏协同应用程序用于开启多屏协同功能。The application layer can consist of a series of application packages. As shown in Figure 2, the application package may include applications such as multi-screen collaboration, camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, and short message. The multi-screen collaboration application is used to enable the multi-screen collaboration function.
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。如图2所示,应用程序框架层可以包括音频框架(Audio Framework),分布式移动感知平台(distributed mobile sensing development platform,DMSDP),窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。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. As shown in Figure 2, the application framework layer can include audio framework (Audio Framework), distributed mobile sensing development platform (distributed mobile sensing development platform, DMSDP), window manager, content provider, view system, phone manager, resource manager, notification manager, etc.
音频框架负责回放数据的输出、录音数据的采集以及音频事务的综合管理等。DMSDP用于为多屏协同过程提供功能支持,如可实现多屏协同过程中的协同通话。窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问,这些数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。视图系统包括可视控件,比如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序的显示界面,显示界面可以由一个或多个视图组成,比如,包括显示短信通知图标的视图,包括显示文字的视图,以及包括显示图片的视图。电话管理器用于提供终端100的通信功能,比如通话状态的管理(包括接通,挂断等)。资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等。通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如,通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或滚动条文本形式出现在系统顶部状态栏的通知,比如后台运行的应用程序的通知。通知管理器还可以是以对话窗口形式出现在屏幕上的通知,比如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。The audio framework is responsible for the output of playback data, the collection of recording data, and the comprehensive management of audio affairs. DMSDP is used to provide functional support for the multi-screen collaborative process, for example, it can realize the collaborative call in the multi-screen collaborative process. A window manager is used to manage window programs. The window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc. Content providers are used to store and retrieve data, and make these data accessible to applications. These data can include video, images, audio, calls made and received, browsing history and bookmarks, phonebook, etc. The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. The view system can be used to build the display interface of the application, and the display interface can be composed of one or more views, for example, including a view for displaying SMS notification icons, a view for displaying text, and a view for displaying pictures. The phone manager is used to provide communication functions of the terminal 100, such as management of call status (including connecting, hanging up, etc.). The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, etc. The notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and can automatically disappear after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be notifications that appear in the status bar at the top of the system in the form of charts or scrolling text, such as notifications for applications running in the background. The notification manager can also be a notification that appears on the screen in the form of a dialog window, such as prompting text information in the status bar, making a prompt sound, vibrating the electronic device, and flashing an indicator light.
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。 核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。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.
系统层可以包括多个功能模块,比如:音频服务(Audio Services),表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(比如:OpenGL ES),二维图形引擎(比如:SGL)等。音频服务是音频策略的制定者,负责音频设备切换的策略抉择、音量调节策略等,且是音频策略的执行者,负责输入输出流设备的管理及音频流数据的处理传输。表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,比如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。二维图形引擎是二维绘图的绘图引擎。The system layer can include multiple functional modules, such as: audio services (Audio Services), surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (such as: OpenGL ES), 2D graphics engine (such as : SGL) and so on. The audio service is the maker of the audio strategy, responsible for the strategy selection of audio device switching, volume adjustment strategy, etc., and the executor of the audio strategy, responsible for the management of input and output stream devices and the processing and transmission of audio stream data. The surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications. The media library supports playback and recording of various commonly used audio and video formats, as well as still image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc. The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing, etc. 2D graphics engine is a drawing engine for 2D drawing.
扩展层也可称为硬件抽象层(hardware abstracting layer,HAL),其可以实现对内核驱动程序的封装,向上提供接口,屏蔽低层的实现细节。扩展层向上衔接Android Runtime和Framework,向下衔接驱动程序。扩展层可以包括音频硬件抽象层(Audio HAL),负责与音频硬件设备的交互。The extension layer can also be called the hardware abstraction layer (hardware abstracting layer, HAL), which can realize the encapsulation of the kernel driver, provide an interface upward, and shield the implementation details of the lower layer. The extension layer is connected upwards to Android Runtime and Framework, and downwards to the driver. The extension layer can include the Audio Hardware Abstraction Layer (Audio HAL), which is responsible for interacting with audio hardware devices.
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动,脉冲编码调制(pulse code modulation,PCM)设备。The kernel layer is the layer between hardware and software. The kernel layer includes at least a display driver, a camera driver, an audio driver, a sensor driver, and a pulse code modulation (PCM) device.
下面以手机和平板电脑进行多屏协同为例,对本申请实施例涉及的应用场景予以说明。The application scenario involved in the embodiment of the present application will be described below by taking multi-screen collaboration between a mobile phone and a tablet computer as an example.
手机在拨打电话或接听来电的情况下,可以与远端通话设备进行通话。该通话可以包括语音通话、视频通话等,本申请实施例对此不作限定。比如,该通话可以是通过运营商服务建立的通话,如可以为2G通话、3G通话、4G通话、5G通话等。When the mobile phone is making a call or receiving an incoming call, it can communicate with the remote call device. The call may include a voice call, a video call, etc., which is not limited in this embodiment of the present application. For example, the call may be a call established through an operator service, such as a 2G call, a 3G call, a 4G call, or a 5G call.
在手机进行通话的情况下,涉及通话上行(uplink)语音数据的采集以及通话下行(downlink)语音数据的播放。In the case of a phone call, it involves the collection of uplink (uplink) voice data and the playback of downlink (downlink) voice data.
通话上行语音数据是指在手机进行通话的过程中,手机或与手机进行协同通话的平板电脑采集到的本端用户的通话语音数据,通话上行语音数据需要发送至远端通话设备。通话下行语音数据是指在手机进行通话的过程中,手机接收到的远端通话设备发送的远端用户的通话语音数据,通话下行语音数据需要在手机或与手机进行协同通话的平板电脑中播放。The uplink voice data of the call refers to the call voice data of the local user collected by the mobile phone or the tablet computer that conducts a cooperative call with the mobile phone during the call on the mobile phone. The uplink voice data of the call needs to be sent to the remote call device. The downlink voice data of the call refers to the call voice data of the remote user sent by the remote call device received by the mobile phone during the call on the mobile phone. The downlink voice data of the call needs to be played on the mobile phone or the tablet computer that conducts a coordinated call with the mobile phone .
在手机未与平板电脑进行多屏协同的情况下,若手机进行通话,则手机的麦克风(Mic)采集本端用户的通话语音,并将该通话语音发送至远端通话设备;远端通话设备将远端用户的通话语音发送至手机,手机将该通话语音通过自身的扬声器(Speaker)或听筒进行播放。In the case that the mobile phone does not perform multi-screen collaboration with the tablet computer, if the mobile phone makes a call, the microphone (Mic) of the mobile phone collects the call voice of the local user, and sends the call voice to the remote call device; the remote call device Send the call voice of the remote user to the mobile phone, and the mobile phone plays the call voice through its own speaker (Speaker) or earpiece.
非多屏协同场景下的通话数据流如图3所示,通话上下行语音数据在手机的音频芯片和器件(麦克风、扬声器、听筒)之间流转,该音频芯片可以为ADSP(Audio DSP)等。具体地,手机的麦克风采集本端用户的通话语音,将该通话语音发送至手机的音频芯片,手机的音频芯片将该通话语音通过手机的调制解调处理器(modem processor)发送到远端 通话设备。同时,手机的音频芯片通过手机的调制解调处理器接收远端通话设备发送的远端用户的通话语音,将该通话语音发送至手机的扬声器或听筒进行播放。The call data flow in the non-multi-screen collaborative scenario is shown in Figure 3. The uplink and downlink voice data of the call is transferred between the audio chip and the device (microphone, speaker, receiver) of the mobile phone. The audio chip can be ADSP (Audio DSP), etc. . Specifically, the microphone of the mobile phone collects the call voice of the local user, and sends the call voice to the audio chip of the mobile phone, and the audio chip of the mobile phone sends the call voice to the remote call via the modem processor of the mobile phone. equipment. At the same time, the audio chip of the mobile phone receives the voice of the remote user sent by the remote communication device through the modem processor of the mobile phone, and sends the voice of the voice to the speaker or earpiece of the mobile phone for playback.
在手机与平板电脑进行多屏协同的情况下,手机可以切换至平板电脑进行通话语音的采集和播放,即可以进行协同通话。具体地,手机与平板电脑进行协同通话时,平板电脑的麦克风采集本端用户的通话语音并发送手机,由手机将该通话语音发送至远端通话设备;远端通话设备将远端用户的通话语音发送至手机,手机将该通话语音发送至平板电脑,由平板电脑的扬声器进行播放。In the case of multi-screen collaboration between the mobile phone and the tablet computer, the mobile phone can be switched to the tablet computer to collect and play the voice of the call, that is, the collaborative call can be performed. Specifically, when a mobile phone and a tablet computer make a cooperative call, the microphone of the tablet computer collects the call voice of the local user and sends it to the mobile phone, and the mobile phone sends the call voice to the remote call device; the remote call device transmits the call voice of the remote user The voice is sent to the mobile phone, and the mobile phone sends the call voice to the tablet computer, which is played by the speaker of the tablet computer.
多屏协同场景下的通话数据流如图4所示,通话上下行语音数据在手机的音频芯片和Audio HAL之间流转。具体地,平板电脑的麦克风采集本端用户的通话语音,将该通话语音发送至手机。手机的Audio HAL接收到该通话语音后,将该通话语音发送至手机的音频芯片,手机的音频芯片将该通话语音通过手机的调制解调处理器发送到远端通话设备。同时,手机的音频芯片通过手机的调制解调处理器接收远端通话设备发送的远端用户的通话语音,将该通话语音发送至手机的Audio HAL,手机的Audio HAL将该通话语音发送至平板电脑,由平板电脑的扬声器进行播放。The call data flow in the multi-screen collaboration scenario is shown in Figure 4. The uplink and downlink voice data of the call is transferred between the audio chip of the mobile phone and the Audio HAL. Specifically, the microphone of the tablet computer collects the call voice of the local user, and sends the call voice to the mobile phone. After the Audio HAL of the mobile phone receives the call voice, it sends the call voice to the audio chip of the mobile phone, and the audio chip of the mobile phone sends the call voice to the remote call device through the modem processor of the mobile phone. At the same time, the audio chip of the mobile phone receives the call voice of the remote user sent by the remote call device through the modem processor of the mobile phone, and sends the call voice to the Audio HAL of the mobile phone, and the Audio HAL of the mobile phone sends the call voice to the tablet computer, played through the tablet's speakers.
如此,在手机与平板电脑进行协同通话的情况下,手机的麦克风不再拾音,手机的扬声器和听筒也不再出声。相关技术中,手机直接通过调用设备静音接口来将麦克风、扬声器和听筒静音,如此,手机的麦克风采集到的声音不会被传输,且手机的扬声器和听筒不会播放声音。然而,这种情况下,手机仍会打开自身的麦克风、扬声器和听筒等硬件,从而会存在功耗消耗。In this way, when the mobile phone and the tablet computer are in a coordinated call, the microphone of the mobile phone no longer picks up sound, and the speaker and earpiece of the mobile phone no longer produce sound. In related technologies, the mobile phone directly mutes the microphone, speaker and earpiece by calling the device mute interface, so that the sound collected by the microphone of the mobile phone will not be transmitted, and the speaker and earpiece of the mobile phone will not play sound. However, in this case, the mobile phone will still turn on hardware such as its own microphone, speaker, and earpiece, thereby consuming power consumption.
为此,本申请实施例提供了一种协同通话方法,可以在手机与平板电脑进行协同通话的情况下,直接关闭手机的麦克风、扬声器和听筒等硬件,从而可以减少功耗消耗。To this end, the embodiment of the present application provides a coordinated call method, which can directly turn off hardware such as a microphone, a speaker, and an earpiece of the mobile phone when the mobile phone and the tablet computer are in a coordinated call, thereby reducing power consumption.
下面对多屏协同的几种可能的连接方式予以说明。Several possible connection modes of multi-screen collaboration are described below.
1.通过蓝牙建立连接。1. Establish a connection via Bluetooth.
示例地,若用户想要将手机与平板电脑进行协同工作,则可以先将手机和平板电脑中的蓝牙均开启。然后,用户手动在手机中开启多屏协同功能。比如,用户可以在手机的界面中通过“设置”-“更多连接”-“多屏协同”的路径找到“多屏协同”的开关,将该开关设为开启状态,就开启了手机的多屏协同功能。For example, if the user wants to cooperate with the mobile phone and the tablet computer, the Bluetooth in both the mobile phone and the tablet computer can be turned on first. Then, the user manually turns on the multi-screen collaboration function in the mobile phone. For example, the user can find the switch of "multi-screen collaboration" through the path of "Settings"-"More Connections"-"Multi-screen Collaboration" in the interface of the mobile phone. screen coordination function.
参见图5所示的平板电脑的界面示意图,如图5中的(a)图所示,用户从平板电脑的状态栏下滑出通知面板,该通知面板中包括“多屏协同”选项51。用户点击“多屏协同”选项51,平板电脑响应于用户对“多屏协同”选项51的触发操作,展示第一提示窗口,第一提示窗口中包括用于指示用户如何操作以实现多屏协同的第一操作提示信息。例如,如图5中的(b)图所示,第一操作提示信息包括“1.将您的手机蓝牙开启并靠近本机,发现本机后点击“连接”。2.连接后,您可在平板电脑上操作手机,实现设备间数据共享。”的提示内容。如此,用户可以根据第一操作提示信息进行相应操作,如将手机靠近平板电脑。Referring to the schematic diagram of the interface of the tablet computer shown in FIG. 5 , as shown in (a) of FIG. 5 , the user slides out of the notification panel from the status bar of the tablet computer, and the notification panel includes the option 51 of "multi-screen collaboration". The user clicks on the "multi-screen collaboration" option 51, and the tablet computer displays a first prompt window in response to the user's trigger operation on the "multi-screen collaboration" option 51. The first prompt window includes instructions for instructing the user how to operate to achieve multi-screen collaboration The prompt message for the first operation. For example, as shown in (b) in Figure 5, the first operation prompt information includes "1. Turn on the Bluetooth of your mobile phone and approach this machine, and click "Connect" after finding this machine. 2. After connecting, you can Operate the mobile phone on the tablet computer to realize data sharing between devices." prompt content. In this way, the user can perform corresponding operations according to the first operation prompt information, such as bringing the mobile phone close to the tablet computer.
在一个示例中,参见图6所示的手机的界面示意图,在手机靠近平板电脑的过程中,当手机发现平板电脑时,手机显示第二提示窗口,如图6中的(a)图所示,第二提示窗口中包括“是否与发现的设备建立协同连接”的提示内容,以及“连接”选项61和“取消” 选项62。当用户点击“连接”选项61时,说明用户确认要建立协同连接,手机响应于用户对“连接”选项61的触发操作,通过蓝牙与平板电脑建立协同连接。当用户点击“取消”选项62时,说明用户不想要建立协同连接,手机响应于用户对“取消”选项62的触发操作,不执行建立协同连接的操作。在另一个示例中,在手机靠近平板电脑的过程中,当手机发现平板电脑时,也可以不显示第二提示窗口,而是自动通过蓝牙与平板电脑建立协同连接。In one example, referring to the schematic diagram of the interface of the mobile phone shown in Figure 6, when the mobile phone finds the tablet when the mobile phone is close to the tablet, the mobile phone displays a second prompt window, as shown in (a) in Figure 6 , the second prompt window includes the prompt content of “whether to establish a cooperative connection with the discovered device”, and a “connect” option 61 and a “cancel” option 62 . When the user clicks on the "Connect" option 61, it means that the user confirms to establish a collaborative connection, and the mobile phone responds to the user's trigger operation on the "Connect" option 61, and establishes a collaborative connection with the tablet computer via Bluetooth. When the user clicks the "cancel" option 62, it means that the user does not want to establish a coordinated connection, and the mobile phone does not perform the operation of establishing a coordinated connection in response to the user's trigger operation on the "cancel" option 62. In another example, when the mobile phone is close to the tablet computer, when the mobile phone finds the tablet computer, it may not display the second prompt window, but automatically establishes a cooperative connection with the tablet computer via Bluetooth.
作为示例而非限定,在手机通过蓝牙与平板电脑建立协同连接的过程中,为了显示建立协同连接的进度,手机还可以显示用于指示正在连接的第三提示窗口,比如,可以显示如图6中的(b)图所示的第三提示窗口。可选地,第三提示窗口中包括“取消”选项,以便于用户在需要的情况下随时取消连接。As an example and not limitation, in the process of establishing a cooperative connection between the mobile phone and the tablet computer through Bluetooth, in order to display the progress of establishing the cooperative connection, the mobile phone can also display a third prompt window for indicating that it is connecting, for example, it can be displayed as shown in Figure 6 The third prompt window shown in (b) figure. Optionally, the third prompt window includes a "cancel" option, so that the user can cancel the connection at any time if necessary.
2.通过扫码的方式建立连接。2. Establish a connection by scanning the code.
示例地,用户可以在平板电脑的界面中通过“我的手机”-“立即连接”-“扫码连接”路径找到“扫码连接”的按钮,用户点击该按钮,平板电脑响应于用户对该按钮的触发操作,显示用于建立协同连接的二维码,比如,可以显示如图7所示的二维码。可选地,平板电脑还可以显示用于提示用户如何操作以实现多屏协同的第二操作提示信息,比如,如图7所示,第二操作提示信息可以为“使用手机浏览器扫码连接”。For example, the user can find the button of "scan code connection" through the path of "my mobile phone"-"connect now"-"scan code connection" in the interface of the tablet computer. The trigger operation of the button displays a two-dimensional code for establishing a cooperative connection, for example, the two-dimensional code shown in FIG. 7 may be displayed. Optionally, the tablet computer may also display second operation prompt information for prompting the user how to operate to realize multi-screen collaboration. For example, as shown in FIG. ".
在一个示例中,参见图8所示的手机的界面示意图,用户可以在手机的浏览器(或智慧视觉)中进入显示有“扫一扫”选项的界面,比如,可以进入如图8中的(a)图所示的浏览器的界面,该界面中显示有“扫一扫”选项81。用户可以点击“扫一扫”选项81,手机响应于用户对“扫一扫”选项81的触发操作,启动摄像头,显示如图8中的(b)图所示的扫码界面,如此用户可将摄像头对准平板电脑显示的二维码进行扫码操作。In one example, referring to the schematic diagram of the interface of the mobile phone shown in Figure 8, the user can enter the interface displaying the "scan" option in the browser (or smart vision) of the mobile phone, for example, can enter the interface shown in Figure 8 (a) The interface of the browser shown in the figure, in which the option 81 of "scan" is displayed. The user can click on the "scan" option 81, and the mobile phone starts the camera in response to the user's trigger operation on the "scan" option 81, and displays the code scanning interface shown in (b) in Figure 8, so that the user can Point the camera at the QR code displayed on the tablet to scan the code.
在一个示例中,手机扫码成功后,向平板电脑发送建立协同连接的请求。平板电脑接收到手机发送的该请求后,可以显示第四提示窗口,第四提示窗口中包括用于提示用户是否同意建立协同连接的提示信息,比如,该提示信息可以包括“xx设备请求与本端建立协同连接,是否同意建立协同连接?”的提示内容,以及“同意”选项和“拒绝”选项。当用户点击“同意”选项时,说明用户允许手机与平板电脑建立协同连接,平板电脑响应于用户对“同意”选项的触发操作,与手机建立协同连接。当用户点击“拒绝”选项时,说明用户不允许手机与平板电脑建立协同连接,平板电脑响应于用户对“拒绝”选项的触发操作,通知手机建立协同连接失败。In one example, after the mobile phone scans the code successfully, it sends a request for establishing a cooperative connection to the tablet computer. After the tablet computer receives the request sent by the mobile phone, it can display a fourth prompt window, which includes prompt information for prompting the user whether to agree to establish a collaborative connection. For example, the prompt information can include "xx device request and this Do you agree to establish a collaborative connection?”, as well as the options of “Agree” and “Deny”. When the user clicks the "Agree" option, it means that the user allows the mobile phone to establish a collaborative connection with the tablet computer, and the tablet computer establishes a collaborative connection with the mobile phone in response to the user's trigger operation on the "Agree" option. When the user clicks the "deny" option, it means that the user does not allow the mobile phone to establish a cooperative connection with the tablet computer, and the tablet computer notifies the mobile phone that the cooperative connection establishment fails in response to the user's trigger operation on the "deny" option.
需要说明的是,上述仅是以用户在平板电脑中通过“我的手机”-“立即连接”-“扫码连接”的路径打开二维码为例进行说明。可选地,还可以通过其他路径打开二维码。比如,如图5中的(b)图所示,第一提示窗口中除了包括第一操作提示信息之外,还包括“发现不了本机?您也可扫码连接”的提示内容,其中“扫码连接”四个字是可触发的。用户可以点击第一提示窗口中的“扫码连接”内容,平板电脑响应于用户对“扫码连接”内容的触发操作,显示如图7所示的二维码。如此,用户可通过手机扫描平板电脑显示的二维码,从而通过扫码的方式建立协同连接。It should be noted that the above is only an example of the user opening the QR code on the tablet computer through the path of "My Phone"-"Connect Now"-"Scan Code Connection". Optionally, the QR code can also be opened through other paths. For example, as shown in (b) in Figure 5, in addition to the first operation prompt information, the first prompt window also includes the prompt content "Can't find this machine? You can also scan the code to connect", in which " The four words "scan code connection" can be triggered. The user can click on the "scan code to connect" content in the first prompt window, and the tablet computer displays the QR code shown in Figure 7 in response to the user's trigger operation on the "scan code to connect" content. In this way, the user can scan the QR code displayed on the tablet computer through the mobile phone, so as to establish a collaborative connection by scanning the code.
3.通过碰一碰的方式建立连接。3. Establish a connection by touching.
用户可以在手机和平板电脑中均开启NFC和多屏协同功能。之后,用户将手机背部的NFC区域(通常位于手机背部摄像头周围)触碰平板电脑的NFC区域(通常位于平板电 脑的右下角区域),手机和平板电脑响应于用户的触碰操作,通过NFC建立协同连接。可选地,在通过NFC建立协同连接之前,平板电脑和手机还可以提示用户是否同意建立协同连接,在用户同意建立协同连接后,手机和平板电脑执行建立协同连接的操作。在一个示例中,当手机与平板电脑成功建立协同连接时,手机还可以通过振动或响铃的方式对用户进行提醒。Users can enable NFC and multi-screen collaboration functions in both mobile phones and tablets. After that, the user touches the NFC area on the back of the mobile phone (usually located around the camera on the back of the mobile phone) to the NFC area of the tablet (usually located in the lower right corner of the tablet), and the mobile phone and the tablet respond to the user's touch operation. collaborative connection. Optionally, before establishing a coordinated connection through NFC, the tablet computer and the mobile phone may also prompt the user whether to agree to establish the coordinated connection, and after the user agrees to establish the coordinated connection, the mobile phone and the tablet computer execute the operation of establishing the coordinated connection. In an example, when the cooperative connection between the mobile phone and the tablet computer is successfully established, the mobile phone can also remind the user by vibrating or ringing.
需要说明的是,上述几种可能的连接方式均是以通过无线连接方式实现为例进行说明。在另一实施例中,还可以通过有线连接方式实现,比如可以通过Type-C转高清晰度多媒体接口(high definition multimedia interface,HDMI)的连接线实现,本申请实施例对此不作限定。It should be noted that, the foregoing several possible connection modes are described by taking wireless connection as an example. In another embodiment, it can also be implemented through a wired connection, for example, it can be implemented through a Type-C to high definition multimedia interface (high definition multimedia interface, HDMI) connection line, which is not limited in this embodiment of the present application.
手机与平板电脑成功建立协同连接后,如图9所示,平板电脑会镜像显示手机的屏幕画面。如此,用户可根据需求在平板电脑中通过操作平板电脑所显示的手机的屏幕画面,使手机执行相应的功能。在一个示例中,手机和平板电脑同步显示如图9所示的手机的主界面,若用户想要拨打电话,则可以在平板电脑所显示的手机的主界面中点击拨打电话的图标,以打开手机的拨号界面,此时手机和平板电脑会同步显示手机的拨号界面。然后用户可以在平板电脑所显示的手机的拨号界面中进行拨号操作,以实现在手机中拨打电话。After the mobile phone and the tablet computer successfully establish a collaborative connection, as shown in Figure 9, the tablet computer will mirror the screen image of the mobile phone. In this way, the user can make the mobile phone perform corresponding functions by operating the screen image of the mobile phone displayed on the tablet computer in the tablet computer as required. In one example, the mobile phone and the tablet computer synchronously display the main interface of the mobile phone as shown in Figure 9. If the user wants to make a call, he can click the icon of making a call in the main interface of the mobile phone displayed on the tablet computer to open The dialing interface of the mobile phone. At this time, the mobile phone and the tablet computer will display the dialing interface of the mobile phone synchronously. Then the user can perform a dialing operation in the dialing interface of the mobile phone displayed on the tablet computer, so as to realize calling in the mobile phone.
在手机中拨打电话后,若手机开始进行通话,则如图10所示,手机和平板电脑会同步显示手机的通话界面。在手机进行通话时,可以选择切换至平板电脑进行通话语音的采集和播放,即可以进行协同通话。具体地,手机与平板电脑进行协同通话时,平板电脑的麦克风采集本端用户的通话语音并发送至手机,由手机将该通话语音发送至远端通话设备;远端通话设备将远端用户的通话语音发送至手机,手机将该通话语音发送至平板电脑,由平板电脑的扬声器进行播放。After making a call in the mobile phone, if the mobile phone starts to make a call, as shown in FIG. 10 , the mobile phone and the tablet computer will synchronously display the call interface of the mobile phone. When the mobile phone is in a call, you can choose to switch to the tablet computer to collect and play the call voice, that is, you can make a collaborative call. Specifically, when a mobile phone and a tablet computer make a cooperative call, the microphone of the tablet computer collects the call voice of the local user and sends it to the mobile phone, and the mobile phone sends the call voice to the remote call device; the remote call device transmits the call voice of the remote user The call voice is sent to the mobile phone, and the phone sends the call voice to the tablet computer, which is played by the speaker of the tablet computer.
例如,手机与平板电脑进行多屏协同后,若手机开始进行通话,则如图10所示,用户在平板电脑中下拉平板电脑的通知栏后,平板电脑的通知栏中可以显示“已协同至手机”的提示内容,该通知栏中还可以包括用于切换通话语音至平板电脑的开关,用户可以根据需求操作该开关,以指示是否切换通话语音至平板电脑,即是否进行协同通话。或者,用户也可以在手机中下拉手机的通知栏,手机的通知栏中可以显示“已协同至平板电脑”的提示内容,该通知栏中还可以包括用于切换通话语音至平板电脑的开关,用户可以根据需求操作该开关,以指示是否进行协同通话。若在手机进行通话的过程中,用户在平板电脑或手机上通过操作用于切换通话语音至平板电脑的开关,来指示将通话语音切换至平板电脑,即指示进行协同通话,则手机正在进行的通话的通话语音的采集和播放在平板电脑侧执行。若在手机进行通话的过程中,用户在平板电脑或手机上通过操作用于切换通话语音至平板电脑的开关,来指示不将通话语音切换至平板电脑,即指示不进行协同通话,则手机正在进行的通话的通话语音的采集和播放仍在手机侧执行。For example, after the multi-screen coordination between the mobile phone and the tablet computer, if the mobile phone starts to make a call, as shown in Figure 10, after the user pulls down the notification bar of the tablet computer on the tablet computer, the notification bar of the tablet computer may display "Collaborated to mobile phone", the notification bar may also include a switch for switching the call voice to the tablet computer, and the user can operate the switch as required to indicate whether to switch the call voice to the tablet computer, that is, whether to perform a collaborative call. Alternatively, the user can also pull down the notification bar of the mobile phone, and the notification bar of the mobile phone can display the prompt content of "already coordinated to the tablet computer", and the notification bar can also include a switch for switching the call voice to the tablet computer, The user can operate the switch as required to indicate whether to make a collaborative call. If during the call on the mobile phone, the user instructs to switch the call voice to the tablet computer by operating the switch for switching the call voice to the tablet computer on the tablet computer or the mobile phone, that is, to instruct a coordinated call, then the ongoing call of the mobile phone The collection and playback of the call voice of the call is performed on the tablet computer side. If during the call on the mobile phone, the user instructs not to switch the call voice to the tablet computer by operating the switch for switching the call voice to the tablet computer on the tablet computer or mobile phone, that is, to indicate not to make a coordinated call, the mobile phone is The collection and playback of the call voice of the ongoing call is still performed on the mobile phone side.
值得注意的是,在一些实施例中,在多屏协同的场景下,手机也可以默认自动进行协同通话。也即,手机与平板电脑进行多屏协同后,若手机开始进行通话,则无需用户操作,可以自动进行协同通话,即自动将通话语音的采集和播放切换至平板电脑侧执行。这种情况下,若用户不想进行协同通话,则可以在平板电脑或手机上通过操作用于切换通话语音至平板电脑的开关,来指示不将通话语音切换至平板电脑,即指示关闭协同通话,将通话语音切换回手机,此时手机正在进行的通话的通话语音的采集和播放将切换回手机侧继续 执行。It is worth noting that, in some embodiments, in a scenario of multi-screen collaboration, the mobile phone may automatically perform a collaborative call by default. That is to say, after the multi-screen collaboration between the mobile phone and the tablet computer, if the mobile phone starts to make a call, no user operation is required, and the coordinated call can be carried out automatically, that is, the collection and playback of the call voice is automatically switched to the tablet side for execution. In this case, if the user does not want to make a coordinated call, he can operate the switch for switching the call voice to the tablet computer on the tablet computer or mobile phone to instruct not to switch the call voice to the tablet computer, that is, to instruct to turn off the coordinated call, Switch the call voice back to the mobile phone, at this time the collection and playback of the call voice of the ongoing call on the mobile phone will be switched back to the mobile phone side to continue execution.
在手机与平板电脑进行协同通话时,通话语音切换至平板电脑侧,期望手机侧不再出声。为此,本申请实施例提供了一种协同通话方法,可以在协同通话过程中,关闭手机的麦克风、扬声器和听筒等硬件,从而可以减少功耗消耗。When the mobile phone and the tablet computer are in a coordinated call, the voice of the call is switched to the tablet computer side, and it is expected that the phone side will no longer make a sound. To this end, the embodiment of the present application provides a coordinated call method, which can turn off hardware such as a microphone, a loudspeaker, and an earpiece of a mobile phone during a coordinated call, thereby reducing power consumption.
本申请实施例提供的协同通话方法可以应用于多屏协同系统,下面对多屏协同系统予以说明。The coordinated call method provided in the embodiment of the present application can be applied to a multi-screen coordinated system, and the multi-screen coordinated system will be described below.
图11是本申请实施例提供的一种多屏协同系统的示意图。参见图11,该多屏协同系统可以包括第一设备1101和第二设备1102。Fig. 11 is a schematic diagram of a multi-screen collaboration system provided by an embodiment of the present application. Referring to FIG. 11 , the multi-screen collaboration system may include a first device 1101 and a second device 1102 .
第一设备1101与第二设备1102可以通过有线连接或无线连接进行通信。The first device 1101 and the second device 1102 may communicate through a wired connection or a wireless connection.
第一设备1101和第二设备1102均可以为终端,该终端可以为上文图1-图2实施例所述的终端。比如,该终端可以为手机、平板电脑、可穿戴设备、车载设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、个人计算机(personal computer,PC)、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)、电视等,本申请实施例对此不作限定。Both the first device 1101 and the second device 1102 may be terminals, and the terminals may be the terminals described in the embodiments of FIGS. 1-2 above. For example, the terminal can be a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (augmented reality, AR)/virtual reality (virtual reality, VR) device, a notebook computer, a personal computer (personal computer, PC), a super Mobile personal computer (ultra-mobile personal computer, UMPC), netbook, personal digital assistant (personal digital assistant, PDA), television, etc., the embodiments of the present application are not limited to this.
第一设备1101与第二设备1102可以进行多屏协同。第一设备1101与第二设备1102进行多屏协同后,第一设备1101的屏幕画面可以显示于第二设备1102的界面。The first device 1101 and the second device 1102 can perform multi-screen collaboration. After the first device 1101 and the second device 1102 perform multi-screen collaboration, the screen image of the first device 1101 may be displayed on the interface of the second device 1102 .
第一设备1101和第二设备1102可以为不同类型的终端,也可以为相同类型的终端,本申请实施例对此不作限定。比如,两者均可以为手机或平板电脑等终端。The first device 1101 and the second device 1102 may be terminals of different types, or terminals of the same type, which is not limited in this embodiment of the present application. For example, both may be terminals such as a mobile phone or a tablet computer.
在一种可能的实现方式中,第一设备1101的屏幕尺寸小于第二设备1102的屏幕尺寸,以在小屏与大屏进行多屏协同时,将小屏的屏幕画面作为一个窗口显示至大屏的界面,可供用户在大屏的界面中对小屏的屏幕画面进行操作,提高用户的操作体验。比如,第一设备1101为手机,第二设备1102为平板电脑或电视。或者,第一设备1101为平板电脑,第二设备1102为电视。当然,第一设备1101的屏幕尺寸也可以大于第二设备1102的屏幕尺寸。比如,第一设备1101为平板电脑,第二设备1102为手机。In a possible implementation, the screen size of the first device 1101 is smaller than the screen size of the second device 1102, so that when the small screen and the large screen perform multi-screen coordination, the screen image of the small screen is displayed on the large screen as a window. The interface of the large screen allows the user to operate the screen images of the small screen in the interface of the large screen, thereby improving the user's operating experience. For example, the first device 1101 is a mobile phone, and the second device 1102 is a tablet computer or a TV. Alternatively, the first device 1101 is a tablet computer, and the second device 1102 is a TV. Certainly, the screen size of the first device 1101 may also be larger than the screen size of the second device 1102 . For example, the first device 1101 is a tablet computer, and the second device 1102 is a mobile phone.
在第一设备1101与第二设备1102进行多屏协同的情况下,若第一设备1101开始进行通话,则可以启动协同通话,以切换至第二设备1102进行通话语音的采集和播放。In the case of multi-screen collaboration between the first device 1101 and the second device 1102, if the first device 1101 starts a call, the coordinated call can be started to switch to the second device 1102 to collect and play the call voice.
本申请实施例提供的协同通话方法就应用于第一设备1101与第二设备1102进行多屏协同的场景下。这种情况下,第一设备1101通过执行本申请实施例提供的协同通话方法,可以在与第二设备1102进行多屏协同的情况下,在启动协同通话时关闭第一设备1101的麦克风、扬声器和听筒等硬件,以减少功耗消耗。The coordinated call method provided in the embodiment of the present application is applied in a scenario where the first device 1101 and the second device 1102 perform multi-screen coordination. In this case, the first device 1101 can turn off the microphone and speaker of the first device 1101 when the coordinated call is started in the case of multi-screen collaboration with the second device 1102 by executing the coordinated call method provided in the embodiment of the present application. and handset and other hardware to reduce power consumption.
下面对本申请实施例提供的协同通话方法进行说明。The coordinated call method provided by the embodiment of the present application will be described below.
本申请实施例提供的协同通话方法应用于第一设备,第一设备与第二设备可进行多屏协同,多屏协同是指将第一设备的屏幕画面显示于第二设备的界面。The coordinated call method provided by the embodiment of the present application is applied to the first device, and the first device and the second device can perform multi-screen coordination, and the multi-screen cooperation refers to displaying the screen of the first device on the interface of the second device.
第一设备与第二设备进行多屏协同后,第一设备的屏幕画面显示于第二设备的界面。这种情况下,用户可以通过操作第二设备的界面中所显示的第一设备的屏幕画面,使第一设备执行相应的功能。第一设备与第二设备可以通过多种可能的方式实现多屏协同,比如,可以通过蓝牙、扫码、碰一碰等方式实现多屏协同,这几种方式已在上文进行详细说明, 本申请实施例对此不再赘述。After the first device and the second device perform multi-screen collaboration, the screen image of the first device is displayed on the interface of the second device. In this case, the user can make the first device execute a corresponding function by manipulating the screen image of the first device displayed on the interface of the second device. The first device and the second device can realize multi-screen collaboration in many possible ways. For example, multi-screen collaboration can be realized through Bluetooth, code scanning, touch, etc. These methods have been described in detail above. This embodiment of the present application will not describe it in detail.
第一设备为能够进行通话的设备。第一设备中可以安装有一张或多张SIM卡,第一设备可以使用该一张或多张SIM卡中的任意一张SIM卡进行通话。比如,在第一设备仅安装有一张SIM卡的情况下,第一设备可以直接使用这张SIM卡进行通话,如可以使用这张SIM卡拨打电话,或使用这张SIM卡接听来电。在第一设备安装有多张SIM卡的情况下,第一设备可以使用该多张SIM卡中的一张SIM卡进行通话,如可以使用这张SIM卡拨打电话,或使用这张SIM卡接听来电。The first device is a device capable of talking. One or more SIM cards may be installed in the first device, and the first device may use any one of the one or more SIM cards to make a call. For example, if only one SIM card is installed in the first device, the first device can directly use this SIM card to make a call, such as using this SIM card to make a call, or use this SIM card to receive an incoming call. In the case that the first device is equipped with multiple SIM cards, the first device can use one of the multiple SIM cards to make calls, such as using this SIM card to make calls, or using this SIM card to answer calls call.
接下来对第一设备与第二设备进行多屏协同的情况下,涉及到的通话场景和通话语音切换场景进行说明。Next, when the first device and the second device perform multi-screen collaboration, the involved call scene and call voice switching scene will be described.
通话场景:Call scene:
在第一设备与第二设备进行多屏协同的情况下,用户可以直接在第一设备中进行操作以使第一设备开始进行通话,或者,用户可以在第二设备中进行操作以使第一设备开始进行通话。In the case of multi-screen collaboration between the first device and the second device, the user can directly operate on the first device to make the first device start a call, or the user can operate on the second device to make the first The device starts talking.
示例地,以在第一设备中拨打电话来开始进行通话为例,对几种可能的操作方式进行说明。As an example, several possible operation modes are described by taking the first device as an example to start a call by making a call.
第一种可能的操作方式中,若用户想要在第一设备中拨打电话,可以直接在第一设备执行操作来实现。In the first possible operation mode, if the user wants to make a call on the first device, the user may directly perform an operation on the first device.
比如,用户可以在第一设备的主界面中点击拨打电话的图标,以打开第一设备的拨号界面,然后用户可以在第一设备的拨号界面中进行拨号操作,以在第一设备中拨打电话来开始进行通话。其中,在第一设备仅安装有一张SIM卡的情况下,用户可以在第一设备的拨号界面中直接进行拨号操作,如此是在第一设备中使用这张SIM卡来拨打电话;在第一设备安装有多张SIM卡的情况下,用户可以在第一设备的拨号界面中先选择一张SIM卡,再在第一设备的拨号界面进行拨号操作,如此是在第一设备中使用所选择的这张SIM卡来拨打电话。For example, the user can click the icon of making a call in the main interface of the first device to open the dialing interface of the first device, and then the user can perform a dialing operation in the dialing interface of the first device to make a call in the first device to start a call. Wherein, in the case that the first device is only equipped with a SIM card, the user can directly perform a dialing operation in the dialing interface of the first device, so that the SIM card is used to make a call in the first device; When the device is equipped with multiple SIM cards, the user can first select a SIM card in the dialing interface of the first device, and then perform a dialing operation on the dialing interface of the first device. In this way, the selected SIM card is used in the first device. This SIM card to make calls.
第二种可能的操作方式中,若用户想要在第一设备中拨打电话,可以在与第一设备进行多屏协同的第二设备执行操作来实现。In the second possible operation mode, if the user wants to make a call on the first device, the operation can be implemented on the second device that performs multi-screen coordination with the first device.
比如,第一设备与第二设备进行多屏协同后,第一设备和第二设备同步显示第一设备的主界面,用户可以在第二设备所显示的第一设备的主界面中点击拨打电话的图标,以打开第一设备的拨号界面,此时第一设备和第二设备会同步显示第一设备的拨号界面,然后用户可以在第二设备所显示的第一设备的拨号界面中进行拨号操作,以实现在第一设备中拨打电话来开始进行通话。其中,在第一设备仅安装有一张SIM卡的情况下,用户可以在第二设备所显示的第一设备的拨号界面中直接进行拨号操作,如此可实现在第一设备中使用这张SIM卡来拨打电话;在第一设备安装有多张SIM卡的情况下,用户可以在第二设备所显示的第一设备的拨号界面中先选择一张SIM卡,再在第二设备所显示的第一设备的拨号界面进行拨号操作,如此可实现在第一设备中使用所选择的这张SIM卡来拨打电话。For example, after the multi-screen collaboration between the first device and the second device, the first device and the second device display the main interface of the first device synchronously, and the user can click to make a call in the main interface of the first device displayed on the second device icon to open the dialing interface of the first device, then the first device and the second device will display the dialing interface of the first device synchronously, and then the user can dial in the dialing interface of the first device displayed on the second device operation, to implement making a call in the first device to start a call. Wherein, in the case that only one SIM card is installed in the first device, the user can directly perform the dialing operation in the dialing interface of the first device displayed on the second device, so that the SIM card can be used in the first device To make a call; in the case of multiple SIM cards installed in the first device, the user can first select a SIM card in the dialing interface of the first device displayed on the second device, and then select a SIM card on the second device displayed on the second device. The dialing interface of a device performs a dialing operation, so that the selected SIM card can be used in the first device to make a call.
第三种可能的操作方式中,若用户想要在第一设备中拨打电话,可以在第一设备和与第一设备进行多屏协同的第二设备均执行操作来实现。In the third possible operation mode, if the user wants to make a call on the first device, it can be realized by performing operations on both the first device and the second device that performs multi-screen collaboration with the first device.
比如,第一设备与第二设备进行多屏协同后,第一设备和第二设备同步显示第一设备的主界面,用户可以在第二设备所显示的第一设备的主界面中点击拨打电话的图标,以打 开第一设备的拨号界面,此时第一设备和第二设备会同步显示第一设备的拨号界面,然后用户可以在第一设备的拨号界面中进行拨号操作,以在第一设备中拨打电话来开始进行通话。其中,在第一设备仅安装有一张SIM卡的情况下,用户可以在第一设备的拨号界面中直接进行拨号操作,如此是在第一设备中使用这张SIM卡来拨打电话;在第一设备安装有多张SIM卡的情况下,用户可以在第一设备的拨号界面中先选择一张SIM卡,再在第一设备的拨号界面进行拨号操作,如此是在第一设备中使用所选择的这张SIM卡来拨打电话。For example, after the multi-screen collaboration between the first device and the second device, the first device and the second device display the main interface of the first device synchronously, and the user can click to make a call in the main interface of the first device displayed on the second device icon to open the dialing interface of the first device. At this time, the first device and the second device will display the dialing interface of the first device synchronously, and then the user can perform dialing operations in the dialing interface of the first device to Make a call from your device to start a call. Wherein, in the case that the first device is only equipped with a SIM card, the user can directly perform a dialing operation in the dialing interface of the first device, so that the SIM card is used to make a call in the first device; When the device is equipped with multiple SIM cards, the user can first select a SIM card in the dialing interface of the first device, and then perform a dialing operation on the dialing interface of the first device. In this way, the selected SIM card is used in the first device. use this SIM card to make calls.
又比如,第一设备与第二设备进行多屏协同后,第一设备和第二设备同步显示第一设备的主界面,用户可以在第一设备的主界面中点击拨打电话的图标,以打开第一设备的拨号界面,此时第一设备和第二设备会同步显示第一设备的拨号界面,然后用户可以在第二设备所显示的第一设备的拨号界面中进行拨号操作,以实现在第一设备中拨打电话来开始进行通话。其中,在第一设备仅安装有一张SIM卡的情况下,用户可以在第二设备所显示的第一设备的拨号界面中直接进行拨号操作,如此可实现在第一设备中使用这张SIM卡来拨打电话;在第一设备安装有多张SIM卡的情况下,用户可以在第二设备所显示的第一设备的拨号界面中先选择一张SIM卡,再在第二设备所显示的第一设备的拨号界面进行拨号操作,如此可实现在第一设备中使用所选择的这张SIM卡来拨打电话。For another example, after the first device and the second device perform multi-screen collaboration, the first device and the second device display the main interface of the first device synchronously, and the user can click the icon of making a call in the main interface of the first device to open the The dialing interface of the first device, at this time, the first device and the second device will display the dialing interface of the first device synchronously, and then the user can perform dialing operations in the dialing interface of the first device displayed on the second device, so as to realize A phone call is made in the first device to start the conversation. Wherein, in the case that only one SIM card is installed in the first device, the user can directly perform the dialing operation in the dialing interface of the first device displayed on the second device, so that the SIM card can be used in the first device To make a call; in the case of multiple SIM cards installed in the first device, the user can first select a SIM card in the dialing interface of the first device displayed on the second device, and then select a SIM card on the second device displayed on the second device. The dialing interface of a device performs a dialing operation, so that the selected SIM card can be used in the first device to make a call.
示例地,以在第一设备中接听来电来开始进行通话为例,对几种可能的操作方式进行说明。As an example, several possible operation modes are described by taking the first device as an example of answering an incoming call and starting a call.
第一种可能的操作方式,在第一设备存在来电时,若用户想要在第一设备中接听来电,可以直接在第一设备执行操作来实现。In the first possible operation mode, when there is an incoming call on the first device, if the user wants to answer the incoming call on the first device, he can directly perform an operation on the first device.
比如,若第一设备存在来电,第一设备会显示来电界面,用户可以在第一设备的来电界面中点击接听按钮,以在第一设备中接听来电来开始进行通话。其中,在第一设备仅安装有一张SIM卡的情况下,第一设备中的来电是针对这张SIM卡的来电,如此是在第一设备中使用这张SIM卡来接听来电;在第一设备安装有多张SIM卡的情况下,第一设备中的来电是针对这多张SIM卡中的一张SIM卡的来电,如此是在第一设备中使用这张SIM卡来接听来电。For example, if there is an incoming call in the first device, the first device will display an incoming call interface, and the user can click an answer button on the incoming call interface of the first device to answer the incoming call in the first device to start a call. Wherein, under the situation that only a SIM card is installed in the first device, the incoming call in the first device is the incoming call for this SIM card, so is to use this SIM card to answer the incoming call in the first device; When the device is equipped with multiple SIM cards, the incoming call in the first device is for one of the multiple SIM cards, so that the first device uses this SIM card to answer the incoming call.
第二种可能的操作方式,在第一设备存在来电时,若用户想要在第一设备中接听来电,可以在与第一设备进行多屏协同的第二设备执行操作来实现。In the second possible operation mode, when there is an incoming call on the first device, if the user wants to answer the call on the first device, the operation can be implemented on the second device that performs multi-screen coordination with the first device.
比如,第一设备与第二设备进行多屏协同后,若第一设备存在来电,第一设备和第二设备会同步显示第一设备的来电界面,用户可以在第二设备所显示的第一设备的来电界面中点击接听按钮,以实现在第一设备中接听来电来开始进行通话。其中,在第一设备仅安装有一张SIM卡的情况下,第一设备中的来电是针对这张SIM卡的来电,如此是在第一设备中使用这张SIM卡来接听来电;在第一设备安装有多张SIM卡的情况下,第一设备中的来电是针对这多张SIM卡中的一张SIM卡的来电,如此是在第一设备中使用这张SIM卡来接听来电。For example, after the first device and the second device perform multi-screen collaboration, if there is an incoming call on the first device, the first device and the second device will simultaneously display the incoming call interface of the first device, and the user can display the first Click the answer button in the incoming call interface of the device to realize answering the incoming call in the first device to start the call. Wherein, under the situation that only a SIM card is installed in the first device, the incoming call in the first device is the incoming call for this SIM card, so is to use this SIM card to answer the incoming call in the first device; When the device is equipped with multiple SIM cards, the incoming call in the first device is for one of the multiple SIM cards, so that the first device uses this SIM card to answer the incoming call.
通话语音切换场景:Call voice switching scene:
在第一设备与第二设备进行多屏协同的情况下,第一设备和第二设备中均包括有协同通话开关,协同通话开关用于指示在第一设备进行通话时是否由第二设备进行通话语音的采集和播放,即指示是否开启协同通话功能。示例地,第一设备的下拉通知栏和第二设备的下拉通知栏中均可以包括协同通话开关,以便用户可以在第一设备或第二设备中打开或 关闭协同通话开关。当然,协同通话开关也可以设于第一设备和第二设备的其他界面中,本申请实施例对此不作限定。In the case of multi-screen collaboration between the first device and the second device, both the first device and the second device include a coordinated call switch, and the coordinated call switch is used to indicate whether the second device will perform the call when the first device is in a call. The collection and playback of call voice indicates whether to enable the collaborative call function. For example, both the drop-down notification bar of the first device and the drop-down notification bar of the second device may include a coordinated call switch, so that the user can turn on or off the coordinated call switch in the first device or the second device. Of course, the cooperative call switch can also be set in other interfaces of the first device and the second device, which is not limited in this embodiment of the present application.
在协同通话开关打开时,即开启了协同通话功能。这种情况下,若第一设备在与第二设备进行多屏协同的过程中进行通话,则在第一设备进行通话的过程中会进行协同通话,即在第一设备进行通话的过程中会通过第二设备进行通话语音的采集和播放。具体来讲,第一设备与第二设备进行协同通话时,第二设备的麦克风采集本端用户的通话语音并发送至第一设备,由第一设备将该通话语音发送至远端通话设备;远端通话设备将远端用户的通话语音发送至第一设备,第一设备将该通话语音发送至第二设备,由第二设备的扬声器进行播放。When the coordinated call switch is turned on, the coordinated call function is turned on. In this case, if the first device is in a call with the second device during the multi-screen collaborative call, the coordinated call will be made during the call with the first device, that is, the The call voice is collected and played through the second device. Specifically, when the first device and the second device conduct a coordinated call, the microphone of the second device collects the call voice of the local user and sends it to the first device, and the first device sends the call voice to the remote call device; The remote call device sends the call voice of the remote user to the first device, and the first device sends the call voice to the second device, which is played by a loudspeaker of the second device.
在协同通话开关关闭时,即关闭了协同通话功能。这种情况下,若第一设备在与第二设备进行多屏协同的过程中进行通话,则在第一设备进行通话的过程中不会进行协同通话,即在第一设备进行通话的过程中仍旧由第一设备进行通话语音的采集和播放。具体来讲,第一设备的麦克风采集本端用户的通话语音并发送至远端通话设备;远端通话设备将远端用户的通话语音发送至第一设备,由第一设备的扬声器进行播放。When the coordinated call switch is turned off, the coordinated call function is turned off. In this case, if the first device is in a call with the second device during the multi-screen collaborative call, the coordinated call will not be made during the call with the first device, that is, during the call with the first device The collection and playback of the call voice is still performed by the first device. Specifically, the microphone of the first device collects the call voice of the local user and sends it to the remote call device; the remote call device sends the call voice of the remote user to the first device, which is played by the speaker of the first device.
在一些实施例中,在第一设备与第二设备刚开始进行多屏协同时,默认会开启协同通话功能,也即,在第一设备与第二设备建立多屏协同连接时,会开启协同通话功能。在另一些实施例中,在第一设备与第二设备进行多屏协同的过程中,也可以由特定模式关联触发协同通话功能的开启,比如,若用户在第二设备中播放音频或视频,则第一设备可以开启协同通话功能。这种情况下,在开启协同通话功能时,第一设备和第二设备也可以同步打开协同通话开关,在关闭协同通话时,第一设备和第二设备也可以同步关闭协同通话开关。In some embodiments, when the first device and the second device start multi-screen collaboration, the coordinated call function is enabled by default, that is, when the first device and the second device establish a multi-screen coordinated connection, the coordinated call function is enabled. call function. In some other embodiments, during the multi-screen collaboration between the first device and the second device, the activation of the coordinated call function may also be triggered by a specific mode association, for example, if the user plays audio or video on the second device, Then the first device can enable the collaborative call function. In this case, when the coordinated call function is turned on, the first device and the second device can also turn on the coordinated call switch synchronously, and when the coordinated call is turned off, the first device and the second device can also synchronously turn off the coordinated call switch.
作为一种示例,用户如果想要关闭协同通话功能,则可以在第一设备与第二设备进行多屏协同的过程中,直接在第一设备中关闭协同通话开关,或者直接在第二设备中关闭协同通话开关,以关闭协同通话功能。用户如果在关闭协同通话功能后又想要开启协同通话功能,则可以在第一设备与第二设备进行多屏协同的过程中,直接在第一设备中打开协同通话开关,或者直接在第二设备中打开协同通话开关,以开启协同通话功能。As an example, if the user wants to turn off the coordinated call function, he can directly turn off the coordinated call switch on the first device during the multi-screen coordinated process between the first device and the second device, or directly turn off the coordinated call switch on the second device. Turn off the coordinated call switch to disable the coordinated call function. If the user wants to turn on the coordinated call function after turning off the coordinated call function, he can directly turn on the coordinated call switch on the first device during the multi-screen coordinated process between the first device and the second device, or directly on the second device. Turn on the coordinated call switch on the device to enable the coordinated call function.
比如,在第一设备与第二设备进行多屏协同的过程中已开启协同通话功能。若第一设备尚未开始进行通话,用户想要关闭协同通话功能,则可以直接在第一设备或第二设备中关闭协同通话开关。如此,若第一设备后续开始进行通话,则仍旧由第一设备进行通话语音的采集和播放。For example, the collaborative call function has been enabled during the multi-screen collaboration between the first device and the second device. If the first device has not started a call and the user wants to turn off the coordinated call function, the coordinated call switch can be directly turned off in the first device or the second device. In this way, if the first device subsequently starts a call, the first device still collects and plays the call voice.
或者,在第一设备与第二设备进行多屏协同的过程中已关闭协同通话功能。若第一设备尚未开始进行通话,用户想要打开协同通话功能,则可以直接在第一设备或第二设备中打开协同通话开关。如此,若第一设备后续开始进行通话,则由第二设备进行通话语音的采集和播放。Or, the collaborative call function has been turned off during the multi-screen coordination between the first device and the second device. If the first device has not started a call and the user wants to enable the coordinated call function, the user can directly turn on the coordinated call switch in the first device or the second device. In this way, if the first device subsequently starts a call, the second device will collect and play the call voice.
又比如,在第一设备与第二设备进行多屏协同的过程中已开启协同通话功能。若第一设备已开始进行通话,此时是由第二设备进行通话语音的采集和播放。而用户想要关闭协同通话功能,则可以直接在第一设备或第二设备中关闭协同通话开关。如此,第一设备正在进行的通话的通话语音会切换至第一设备进行采集和播放。For another example, the collaborative call function has been enabled during the multi-screen collaboration between the first device and the second device. If the first device has started a call, the second device collects and plays the call voice at this time. If the user wants to turn off the coordinated call function, he can directly turn off the coordinated call switch in the first device or the second device. In this way, the call voice of the ongoing call of the first device will be switched to the first device for collection and playback.
或者,在第一设备与第二设备进行多屏协同的过程中已关闭协同通话功能。若第一设 备已开始进行通话,此时是由第一设备进行通话语音的采集和播放。而用户想要打开协同通话功能,则可以直接在第一设备或第二设备中打开协同通话开关。如此,第一设备正在进行的通话的通话语音会切换至第二设备进行采集和播放。Or, the collaborative call function has been turned off during the multi-screen coordination between the first device and the second device. If the first device has started talking, it is now the first device that collects and plays the voice of the call. If the user wants to enable the coordinated call function, he can directly turn on the coordinated call switch in the first device or the second device. In this way, the call voice of the ongoing call of the first device will be switched to the second device for collection and playback.
作为另一种示例,协同通话功能的开启和关闭也可以由用户的拨打电话行为或接听来电行为而决定。具体来讲,若在第一设备与第二设备进行多屏协同的过程中,用户直接在第一设备拨打电话或接听来电,则会关闭协同通话功能,即在第一设备进行通话的过程中由第一设备进行通话语音的采集和播放,此时第一设备和第二设备中的协同通话开关也会处于关闭状态。或者,若在第一设备与第二设备进行多屏协同的过程中,用户通过操作第二设备所显示的第一设备的屏幕画面,来实现在第一设备拨打电话或接听来电,则会开启协同通话功能,即在第一设备进行通话的过程中由第二设备进行通话语音的采集和播放,此时第一设备和第二设备中的协同通话开关也会处于打开状态。As another example, the enabling and disabling of the collaborative call function may also be determined by the user's behavior of making a call or answering an incoming call. Specifically, if the user directly makes a call or answers an incoming call on the first device during the multi-screen collaboration between the first device and the second device, the coordinated call function will be turned off, that is, during the call on the first device The call voice is collected and played by the first device, and at this time, the cooperative call switch in the first device and the second device is also in an off state. Or, if during the multi-screen collaboration between the first device and the second device, the user operates the screen of the first device displayed on the second device to make a call or answer an incoming call on the first device, the Coordinated call function, that is, the second device collects and plays the call voice during the call of the first device, and at this time, the coordinated call switch in the first device and the second device will also be turned on.
由以上描述可知,用户可以通过两种方式来开启和关闭协同通话功能。It can be seen from the above description that the user can enable and disable the collaborative call function in two ways.
具体来讲,第一设备若在与第二设备进行多屏协同的过程中接收到用户触发的第一指令,则可以关闭协同通话功能。第一指令用于指示在第一设备进行通话时由第一设备进行通话语音的采集和播放。可选地,第一指令是用户在第一设备或第二设备中关闭协同通话开关时触发的;或者,第一指令是用户在第一设备拨打电话或接听来电时触发的。Specifically, if the first device receives the first instruction triggered by the user during the multi-screen coordination with the second device, it may turn off the coordinated calling function. The first instruction is used to instruct the first device to collect and play the call voice when the first device is in a call. Optionally, the first instruction is triggered when the user turns off the coordinated call switch in the first device or the second device; or, the first instruction is triggered when the user makes a call or receives an incoming call on the first device.
第一设备若在与第二设备进行多屏协同的过程中接收到用户触发的第二指令,则可以开启协同通话功能。第二指令用于指示在第一设备进行运营通话时由第二设备进行通话语音的采集和播放。可选地,第二指令是用户在第一设备或第二设备中打开协同通话开关时触发的;或者,第二指令是用户通过操作第二设备所显示的第一设备的屏幕画面,以使第一设备拨打电话或接听来电时触发的。If the first device receives the second instruction triggered by the user during the multi-screen coordination with the second device, it may enable the coordinated calling function. The second instruction is used to instruct the second device to collect and play the call voice when the first device is in an operation call. Optionally, the second instruction is triggered when the user turns on the coordinated call switch in the first device or the second device; or, the second instruction is the screen image of the first device displayed by the user through the operation of the second device, so that Fired when the first device makes a call or receives an incoming call.
此外,第一设备也可以自动开启协同通话功能。比如,第一设备在与第二设备建立多屏协同连接时,可以自动开启协同通话功能;或者,第一设备在与第二设备进行多屏协同的过程中,在检测到一些特定模式开启时,可以自动开启协同通话功能。In addition, the first device may also automatically enable the collaborative calling function. For example, when the first device establishes a multi-screen collaborative connection with the second device, it can automatically enable the coordinated call function; or, during the multi-screen collaborative process with the second device, the first device detects that some specific modes , the collaborative call function can be automatically enabled.
第一设备也可以自动关闭协同通话功能。比如,第一设备在与第二设备进行多屏协同的过程中,在检测到一些特定模式关闭时,可以自动关闭协同通话功能;或者,第一设备在通话结束时,即在挂断电话时,可以自动关闭协同通话功能。The first device may also automatically disable the collaborative call function. For example, in the process of multi-screen collaboration between the first device and the second device, when it detects that some specific modes are closed, it can automatically turn off the coordinated call function; or, when the first device ends the call, that is, when it hangs up the phone , you can automatically turn off the collaborative call function.
接下来对本申请实施例提供的协同通话方法的整体流程进行说明。Next, the overall flow of the coordinated call method provided by the embodiment of the present application will be described.
图12是本申请实施例提供的一种协同通话方法的流程图。参见图12,该方法包括:Fig. 12 is a flow chart of a coordinated call method provided by an embodiment of the present application. Referring to Figure 12, the method includes:
步骤1201:第一设备与第二设备进行多屏协同。Step 1201: The first device performs multi-screen collaboration with the second device.
第一设备与第二设备进行多屏协同后,第一设备与第二设备处于多屏协同状态,第一设备的屏幕画面显示于第二设备的界面。这种情况下,用户可以通过操作第二设备的界面中所显示的第一设备的屏幕画面,使第一设备执行相应的功能。第一设备与第二设备可以通过多种可能的方式实现多屏协同,比如,可以通过蓝牙、扫码、碰一碰等方式实现多屏协同,这几种方式已在上文进行详细说明,本申请实施例对此不再赘述。After the first device and the second device perform multi-screen coordination, the first device and the second device are in a multi-screen coordination state, and the screen image of the first device is displayed on the interface of the second device. In this case, the user can make the first device execute a corresponding function by manipulating the screen image of the first device displayed on the interface of the second device. The first device and the second device can realize multi-screen collaboration in many possible ways. For example, multi-screen collaboration can be realized through Bluetooth, code scanning, touch, etc. These methods have been described in detail above. This embodiment of the present application will not describe it in detail.
步骤1202:第一设备接收通话操作。Step 1202: the first device receives a call operation.
该通话操作是用于指示第一设备进行通话的操作,如该通话操作可以是拨打电话或接听来电的操作。该通话操作可以是用户直接在第一设备中触发的,或者,该通话操作可以是用户通过第二设备所显示的第一设备的屏幕画面触发的。该通话操作的多种可能的触发 方式已在上文进行详细说明,本申请实施例对此不再赘述。The call operation is an operation for instructing the first device to make a call, for example, the call operation may be an operation of making a call or answering an incoming call. The call operation may be directly triggered by the user in the first device, or the call operation may be triggered by the user through a screen image of the first device displayed on the second device. Various possible triggering modes of the call operation have been described in detail above, and will not be repeated in this embodiment of the application.
步骤1203:第一设备响应于该通话操作,建立通话音频链路,且将通话音频链路的输入设备设置为第一设备的音频采集硬件设备,将通话音频链路的输出设备设置为第一设备的音频播放硬件设备。Step 1203: The first device establishes a call audio link in response to the call operation, and sets the input device of the call audio link as the audio collection hardware device of the first device, and sets the output device of the call audio link as the first The device's audio playback hardware.
第一设备在接收到该通话操作后,确定自身需要进行通话,因而需要建立通话音频链路,且设置通话音频链路的输入设备和输出设备。通话音频链路的输入设备是用于采集通话上行语音数据的设备,通话音频链路的输出设备是用于播放通话下行语音数据的设备。第一设备在接收到该通话操作时,会将通话音频链路的输入设备设置为自身的音频采集硬件设备,以通过该音频采集硬件设备采集音频,且会将通话音频链路的输出设备设置为自身的音频播放硬件设备,以通过该音频播放硬件设备播放音频。After receiving the call operation, the first device determines that it needs to make a call, and thus needs to establish a call audio link, and set an input device and an output device of the call audio link. The input device of the call audio link is a device for collecting the uplink voice data of the call, and the output device of the call audio link is a device for playing the downlink voice data of the call. When the first device receives the call operation, it will set the input device of the call audio link as its own audio collection hardware device, so as to collect audio through the audio collection hardware device, and will set the output device of the call audio link to An audio playback hardware device for itself to play audio through the audio playback hardware device.
第一设备的音频采集硬件设备是用于采集音频的硬件,如该音频采集硬件设备可以为麦克风等。第一设备的音频播放硬件设备是用于播放音频的硬件,如该音频播放硬件设备可以为扬声器或听筒等。The audio collection hardware device of the first device is hardware for collecting audio, for example, the audio collection hardware device may be a microphone or the like. The audio playing hardware device of the first device is hardware for playing audio, for example, the audio playing hardware device may be a loudspeaker or an earpiece.
步骤1204:第一设备检测协同通话功能的状态,若检测到协同通话功能处于开启状态,则将通话音频链路的输入设备由该音频采集硬件设备切换为虚拟输入模块,将通话音频链路的输出设备由该音频播放硬件设备切换为虚拟输出模块。Step 1204: The first device detects the status of the coordinated call function. If it detects that the coordinated call function is on, the input device of the call audio link is switched from the audio collection hardware device to a virtual input module, and the call audio link is switched to a virtual input module. The output device is switched from the audio playback hardware device to a virtual output module.
第一设备在接收到通话操作时,还可以检测协同通话功能的状态,以根据该协同通话功能的状态确定是否要对通话音频链路的输入设备和输出设备进行切换。When the first device receives a call operation, it may also detect the state of the coordinated call function, so as to determine whether to switch the input device and the output device of the call audio link according to the state of the coordinated call function.
第一设备可以开启协同通话功能,以通过第二设备进行通话语音的采集和播放。第一设备可以通过多种可能的方式开启协同通话功能,这多种可能的方式已在上文进行详细说明,本申请实施例对此不再赘述。The first device can enable the coordinated call function, so as to collect and play the call voice through the second device. The first device may enable the collaborative call function in various possible ways, which have been described in detail above, and will not be repeated in this embodiment of the present application.
比如,在该通话操作是用户通过第二设备所显示的第一设备的屏幕画面触发的情况下,第一设备在接收到该通话操作时开启协同通话功能。或者,第一设备在接收到该通话操作之前,在与第二设备进行多屏协同的过程中,可以在检测到一些特定模式开启时自动开启协同通话功能。For example, in the case that the call operation is triggered by the user through the screen image of the first device displayed by the second device, the first device starts the coordinated call function when receiving the call operation. Or, before receiving the call operation, the first device may automatically enable the coordinated call function when it detects that some specific modes are activated during the multi-screen coordination process with the second device.
第一设备开启协同通话功能后,即将通话语音的采集和播放切换至第二设备执行。具体地,在第一设备与第二设备进行协同通话的过程中,第二设备采集本端用户的通话上行语音数据(如第二设备可以通过自身的麦克风采集通话上行语音数据),将该通话上行语音数据发送至第一设备,第一设备将该通话上行语音数据发送至远端通话设备。同时,远端通话设备采集远端用户的通话下行语音数据,将该通话下行语音数据发送至第一设备,第一设备将该通话下行语音数据发送至第二设备,由第二设备进行播放(如第二设备可以通过自身的扬声器播放通话下行语音数据)。After the first device activates the coordinated call function, it is about to switch the collection and playback of the call voice to the second device for execution. Specifically, during the coordinated call between the first device and the second device, the second device collects the call uplink voice data of the local user (for example, the second device can collect call uplink voice data through its own microphone), and the call The uplink voice data is sent to the first device, and the first device sends the call uplink voice data to the remote call device. At the same time, the remote call device collects the call downlink voice data of the remote user, sends the call downlink voice data to the first device, and the first device sends the call downlink voice data to the second device, and the second device plays it ( For example, the second device can play the call downlink voice data through its own speaker).
在第一设备与第二设备进行协同通话后,由于通话语音的采集和播放均在第二设备执行,所以第一设备已经没有通话语音的采集和播放需求,因而在本申请实施例中,第一设备在检测到协同通话功能处于开启状态时,可以将通话音频链路的输入设备由该音频采集硬件设备切换为虚拟输入模块,将通话音频链路的输出设备由该音频播放硬件设备切换为虚拟输出模块,以在协同通话过程中关闭该音频采集硬件设备和该音频播放硬件设备,减少功耗消耗。After the first device and the second device have a cooperative call, since the collection and playback of the call voice are performed on the second device, the first device no longer needs to collect and play the call voice. Therefore, in the embodiment of this application, the second When a device detects that the coordinated call function is on, it can switch the input device of the call audio link from the audio collection hardware device to a virtual input module, and switch the output device of the call audio link from the audio playback hardware device to a virtual input module. The virtual output module is used to turn off the audio collection hardware device and the audio playback hardware device during the coordinated call to reduce power consumption.
虚拟输入模块和虚拟输出模块均为虚拟的软件模块,不是硬件设备。虚拟输入模块不 进行音频采集,如虚拟输入模块可以为IN_PROXY模块,虚拟输出模块不进行音频播放,如虚拟输出模块可以为OUT_PROXY模块。如此,第一设备将通话音频链路的输入设备切换为虚拟输入模块后,第一设备不再采集音频,第一设备将通话音频链路的输出设备切换为虚拟输出模块后,第一设备不再播放音频,从而在满足协同通话需求的同时,还降低了硬件功耗消耗。Both the virtual input module and the virtual output module are virtual software modules, not hardware devices. The virtual input module does not perform audio collection, such as the virtual input module can be an IN_PROXY module, and the virtual output module does not perform audio playback, such as the virtual output module can be an OUT_PROXY module. In this way, after the first device switches the input device of the call audio link to a virtual input module, the first device no longer collects audio, and after the first device switches the output device of the call audio link to a virtual output module, the first device does not Play the audio again, so as to meet the needs of collaborative calls and reduce hardware power consumption.
值得注意的是,第一设备在接收到通话操作时,检测协同通话功能的状态,若检测到协同通话功能处于关闭状态,则不对通话音频链路的输入设备和输出设备进行切换,依旧保持通话音频链路的输入设备为第一设备的音频采集硬件设备,且保持通话音频链路的输出设备为第一设备的音频播放硬件设备。若协同通话功能处于关闭状态,说明需要由第一设备进行通话语音的采集和播放,因而需要保持通话音频链路的输入设备为第一设备的音频采集硬件设备,且保持通话音频链路的输出设备为第一设备的音频播放硬件设备,从而保证通话的正常进行。It is worth noting that when the first device receives a call operation, it detects the status of the coordinated call function, and if it detects that the coordinated call function is off, it does not switch between the input device and the output device of the call audio link, and still maintains the call The input device of the audio link is the audio collection hardware device of the first device, and the output device of the call-hold audio link is the audio playback hardware device of the first device. If the cooperative call function is turned off, it means that the first device needs to collect and play the call voice, so the input device of the call audio link needs to be the audio collection hardware device of the first device, and the output of the call audio link should be kept The device is an audio playback hardware device of the first device, so as to ensure the normal progress of the call.
比如,在该通话操作是用户在第一设备触发的情况下,第一设备在接收到该通话操作时关闭协同通话功能。或者,第一设备在接收到该通话操作之前,在与第二设备进行多屏协同的过程中,可以在检测到一些特定模式关闭时自动关闭协同通话功能。For example, in the case that the call operation is triggered by the user on the first device, the first device closes the coordinated call function when receiving the call operation. Or, before receiving the call operation, the first device may automatically turn off the coordinated call function when it detects that some specific modes are closed during the multi-screen coordination process with the second device.
在一些实施例中,若第一设备在进行通话的过程中关闭协同通话功能,则可以继续执行如下步骤1205。In some embodiments, if the first device disables the coordinated call function during the call, the following step 1205 may be performed.
步骤1205:第一设备在建立通话音频链路后,若检测到协同通话功能由开启状态切换为关闭状态,则将通话音频链路的输入设备由虚拟输入模块切换为该音频采集硬件设备,将通话音频链路的输出设备由虚拟输出模块切换为该音频播放硬件设备。Step 1205: After the first device establishes the call audio link, if it detects that the cooperative call function is switched from the on state to the off state, then the input device of the call audio link is switched from the virtual input module to the audio collection hardware device, and the The output device of the call audio link is switched from the virtual output module to the audio playback hardware device.
第一设备与第二设备进行协同通话后,还可以关闭协同通话,以由第一设备继续进行通话语音的采集和播放。第一设备可以通过多种可能的方式关闭协同通话,这多种可能的方式已在上文进行详细说明,本申请实施例对此不再赘述。比如,第一设备在建立通话音频链路后,若检测到用户关闭第一设备或第二设备显示的协同通话开关,则将协同通话功能由开启状态切换为关闭状态。After the coordinated call between the first device and the second device, the coordinated call can also be turned off, so that the first device can continue to collect and play the voice of the call. The first device may disable the coordinated call in various possible ways, which have been described in detail above, and will not be repeated in this embodiment of the present application. For example, after the first device establishes a call audio link, if it detects that the user has turned off the coordinated call switch displayed by the first device or the second device, it switches the coordinated call function from the on state to the off state.
第一设备关闭协同通话后,即将通话语音的采集和播放切换回第一设备执行。这种情况下,第一设备存在通话语音的采集和播放需求,因而在本申请实施例中,第一设备在检测到协同通话功能由开启状态切换为关闭状态时,可以将通话音频链路的输入设备由虚拟输入模块切换为该音频采集硬件设备,将通话音频链路的输出设备由虚拟输出模块切换为该音频播放硬件设备,以打开该音频采集硬件设备来进行音频采集,且打开该音频播放硬件设备来进行音频播放,从而保证通话的正常进行。After the first device closes the coordinated call, it switches back the collection and playback of the call voice to the first device for execution. In this case, the first device needs to collect and play the voice of the call. Therefore, in this embodiment of the application, when the first device detects that the coordinated call function is switched from the on state to the off state, it can switch the audio link of the call to The input device is switched from the virtual input module to the audio collection hardware device, and the output device of the call audio link is switched from the virtual output module to the audio playback hardware device to open the audio collection hardware device for audio collection, and open the audio Play hardware devices for audio playback, so as to ensure the normal progress of the call.
在一些实施例中,若第一设备在进行通话的过程中开启协同通话功能,则可以继续执行如下步骤1206。In some embodiments, if the first device enables the coordinated call function during the call, the following step 1206 may be performed.
步骤1206:第一设备在建立通话音频链路后,若检测到协同通话功能由关闭状态切换为开启状态,则将通话音频链路的输入设备由该音频采集硬件设备切换为虚拟输入模块,将通话音频链路的输出设备由该音频播放硬件设备切换为虚拟输出模块。Step 1206: After the first device establishes the call audio link, if it detects that the cooperative call function is switched from the off state to the on state, then the input device of the call audio link is switched from the audio collection hardware device to a virtual input module, and the The output device of the call audio link is switched from the audio playback hardware device to a virtual output module.
第一设备在关闭协同通话后,还可以又打开协同通话,以切换至第二设备进行通话语音的采集和播放。第一设备可以通过多种可能的方式打开协同通话,这多种可能的方式已在上文进行详细说明,本申请实施例对此不再赘述。比如,第一设备在建立通话音频链路 后,若检测到用户打开第一设备或第二设备显示的协同通话开关,则将协同通话功能由关闭状态切换为开启状态。After the first device closes the coordinated call, it can also turn on the coordinated call to switch to the second device to collect and play the call voice. The first device may enable the collaborative call in multiple possible ways, which have been described in detail above, and will not be repeated in this embodiment of the present application. For example, after the first device establishes a call audio link, if it detects that the user turns on the coordinated call switch displayed by the first device or the second device, it switches the coordinated call function from the off state to the on state.
在第一设备与第二设备进行协同通话后,由于通话语音的采集和播放均在第二设备执行,所以第一设备已经没有通话语音的采集和播放需求,因而在本申请实施例中,第一设备在检测到协同通话功能由关闭状态切换为开启状态时,可以将通话音频链路的输入设备由该音频采集硬件设备切换为虚拟输入模块,将通话音频链路的输出设备由该音频播放硬件设备切换为虚拟输出模块,以在协同通话过程中关闭该音频采集硬件设备和该音频播放硬件设备,减少功耗消耗。After the first device and the second device have a cooperative call, since the collection and playback of the call voice are performed on the second device, the first device no longer needs to collect and play the call voice. Therefore, in the embodiment of this application, the second When a device detects that the coordinated call function is switched from off to on, it can switch the input device of the call audio link from the audio collection hardware device to a virtual input module, and use the audio to play the output device of the call audio link The hardware device is switched to a virtual output module, so that the audio collection hardware device and the audio playback hardware device are turned off during the collaborative call process to reduce power consumption.
值得注意的是,本申请实施例中,第一设备在通话结束时,还可以关闭协同通话功能。示例地,第一设备接收通话结束操作,响应于通话结束操作,第一设备关闭协同通话功能,且将通话音频链路的输入设备设置为该音频采集硬件设备,将通话音频链路的输出设备设置为该音频播放硬件设备。It should be noted that in this embodiment of the present application, the first device may also turn off the collaborative call function when the call ends. For example, the first device receives the call end operation, and in response to the call end operation, the first device closes the coordinated call function, and sets the input device of the call audio link as the audio collection hardware device, and sets the call audio link output device Set the hardware device for this audio playback.
该通话结束操作是用于指示结束通话的操作,比如,该通话结束操作可以为挂断电话的操作。该通话结束操作可以是用户直接在第一设备中触发的,比如,可以是用户在第一设备中点击通话界面中的挂断按钮后触发的。或者,该通话结束操作可以是用户通过第二设备所显示的第一设备的屏幕画面触发的,比如,可以是用户在第二设备中点击第二设备所显示的第一设备的通话界面中的挂断按钮后触发的。The call end operation is an operation for instructing to end a call, for example, the call end operation may be an operation of hanging up the phone. The call ending operation may be directly triggered by the user in the first device, for example, it may be triggered after the user clicks an end button in the call interface on the first device. Alternatively, the call ending operation may be triggered by the user through the screen image of the first device displayed on the second device, for example, the user may click on the second device in the call interface of the first device displayed on the second device. Fired after the hangup button.
若在接收到通话结束操作之前,第一设备未进行协同通话,即协同通话功能处于关闭状态,则第一设备在接收到通话结束操作时,保持协同通话功能处于关闭状态,且保持通话音频链路的输入设备为该音频采集硬件设备,保持通话音频链路的输出设备为该音频播放硬件设备。若在接收到通话结束操作之前,第一设备进行协同通话,即协同通话功能处于开启状态,则第一设备在接收到通话结束操作时,将协同通话功能由开启状态切换为关闭状态,且将通话音频链路的输入设备由虚拟输入设备切换为该音频采集硬件设备,将通话音频链路的输出设备由虚拟输出设备切换为该音频播放硬件设备。If the first device does not make a coordinated call before receiving the call end operation, that is, the coordinated call function is turned off, then the first device will keep the coordinated call function turned off when receiving the call end operation, and keep the call audio link The input device of the channel is the audio collection hardware device, and the output device of the call audio link is the audio playback hardware device. If the first device performs a coordinated call before receiving the call end operation, that is, the coordinated call function is in the on state, then the first device will switch the coordinated call function from the on state to the off state when receiving the call end operation, and will The input device of the call audio link is switched from the virtual input device to the audio collection hardware device, and the output device of the call audio link is switched from the virtual output device to the audio playback hardware device.
由以上描述可知,第一设备在进行通话的过程中若进行协同通话,则第一设备会关闭该音频播放硬件设备和该音频播放硬件设备。在此情况下,第一设备在建立通话音频链路后,在协同通话功能处于开启状态的情况下,接收第二设备发送的由第二设备采集的通话上行语音数据,将通话上行语音数据发送至远端通话设备,以及接收远端通话设备发送的通话下行语音数据,将通话下行语音数据发送至第二设备进行播放,以实现与第二设备之间的协同通话。It can be seen from the above description that if the first device conducts a coordinated call during the call, the first device will shut down the audio playback hardware device and the audio playback hardware device. In this case, after the call audio link is established, the first device receives the call uplink voice data collected by the second device sent by the second device when the coordinated call function is turned on, and sends the call uplink voice data to to the remote communication device, and receive the communication downlink voice data sent by the remote communication device, and send the communication downlink voice data to the second device for playback, so as to realize the cooperative communication with the second device.
第一设备在进行通话的过程中若未进行协同通话,比如,第一设备在开始进行通话后一直未启动协同通话,或者第一设备在进行通话的过程中启动协同通话功能后又关闭了协同通话,则第一设备会打开该音频播放硬件设备和该音频播放硬件设备。在此情况下,第一设备在建立通话音频链路后,在协同通话功能处于关闭状态的情况下,第一设备通过该音频采集硬件设备采集本端用户的通话上行语音数据,将该通话上行语音数据发送至远端通话设备。同时,远端通话设备采集远端用户的通话下行语音数据,将该通话下行语音数据发送至第一设备,第一设备接收到远端通话设备发送的通话下行语音数据后,将该通话下行语音数据通过该音频播放硬件设备进行播放,以实现通话的正常进行。If the first device does not make a coordinated call during the call, for example, the first device has not started the coordinated call after starting the call, or the first device turns off the coordinated call after starting the coordinated call function during the call. call, the first device will turn on the audio playback hardware device and the audio playback hardware device. In this case, after the first device establishes the call audio link, when the cooperative call function is turned off, the first device collects the call uplink voice data of the local user through the audio collection hardware device, and sends the call uplink The voice data is sent to the remote communication device. At the same time, the remote call device collects the call downlink voice data of the remote user, and sends the call downlink voice data to the first device. After receiving the call downlink voice data sent by the remote call device, the first device sends the call downlink voice data. The data is played through the audio playing hardware device, so as to realize the normal progress of the call.
为了便于理解,下面结合图2所示的软件系统和图13所示的协同通话过程的流程图, 来对上述协同通话方法进行举例说明。For ease of understanding, the above-mentioned cooperative calling method will be illustrated below in combination with the software system shown in FIG. 2 and the flow chart of the coordinated calling process shown in FIG. 13 .
参见图2,第一设备的软件系统可以包括应用程序层中的通话应用程序和多屏协同应用程序,以及应用程序框架层中的音频框架和DMSDP,以及系统层中的音频服务,以及扩展层中的Audio HAL,以及内核层中的PCM设备,示例地,该Audio HAL可以为Primary Audio HAL。此外,第一设备中还包括音频芯片,该音频芯片可以与远端通话设备进行通信,比如,该音频芯片可以通过调制解调处理器与远端通话设备进行通信,即通过调制解调处理器向远端通话设备发送通话上行语音数据,且通过调制解调处理器接收远端通话设备发送的通话下行语音数据。Referring to Figure 2, the software system of the first device may include a call application and a multi-screen collaborative application in the application layer, an audio framework and DMSDP in the application framework layer, an audio service in the system layer, and an extension layer The Audio HAL in, and the PCM device in the kernel layer, for example, the Audio HAL can be the Primary Audio HAL. In addition, the first device also includes an audio chip, which can communicate with the remote communication device, for example, the audio chip can communicate with the remote communication device through a modem processor, that is, through the modem processor Send the call uplink voice data to the remote call device, and receive the call downlink voice data sent by the remote call device through the modem processor.
参见图13,该协同通话过程可以包括如下步骤1301-步骤1311。Referring to FIG. 13 , the coordinated call process may include the following steps 1301 - 1311 .
步骤1301:通话应用程序在通话界面检测到拨打电话或接听来电的操作,则通过音频框架指示音频服务调用Audio HAL建立通话音频链路。Step 1301: The call application program detects the operation of making a call or answering an incoming call on the call interface, and then instructs the audio service to call the Audio HAL to establish a call audio link through the audio framework.
通话应用程序在通话界面(即incall UI界面)检测到拨打电话或接听来电的操作,则确定第一设备需要进行通话,因而可以启动通话建立流程。此时通话应用程序可以通过音频框架指示音频服务来调用Audio HAL,以使Audio HAL启动语音通话(voice call)流程,实现通话建立,具体如步骤1302所述。The call application program detects the operation of making a call or receiving an incoming call on the call interface (ie, the incall UI interface), and then determines that the first device needs to make a call, so that the call establishment process can be started. At this time, the calling application program can instruct the audio service through the audio framework to call the Audio HAL, so that the Audio HAL starts a voice call (voice call) process to realize call establishment, specifically as described in step 1302.
步骤1302:Audio HAL指示音频芯片建立通话音频链路,且将通话音频链路的输入设备设置为第一设备的麦克风,将通话音频链路的输出设备设置为第一设备的听筒。Step 1302: Audio HAL instructs the audio chip to establish a call audio link, and sets the input device of the call audio link as the microphone of the first device, and sets the output device of the call audio link as the earpiece of the first device.
Audio HAL启动voice call流程后,选择发声设备以及进行路由切换,以实现通话音频链路的建立。其中,选择发声设备是指示音频芯片将通话音频链路的输入设备设置为第一设备的麦克风,将通话音频链路的输出设备设置为第一设备的听筒。进行路由切换是指示音频芯片将第一设备的麦克风采集的通话上行语音数据发送至远端通话设备,且将接收到的远端通话设备发送的通话下行语音数据发送至第一设备的听筒进行播放。After the Audio HAL starts the voice call process, it selects the sound emitting device and performs routing switching to realize the establishment of the call audio link. Wherein, selecting the sound emitting device is to instruct the audio chip to set the input device of the call audio link as the microphone of the first device, and set the output device of the call audio link as the earpiece of the first device. Routing switching is to instruct the audio chip to send the call uplink voice data collected by the microphone of the first device to the remote call device, and send the received call downlink voice data sent by the remote call device to the earpiece of the first device for playback .
步骤1302中将通话音频链路的输入设备设置为第一设备的麦克风,将通话音频链路的输出设备设置为第一设备的听筒的操作与上述步骤1203中将通话音频链路的输入设备设置为第一设备的音频采集硬件设备,将通话音频链路的输出设备设置为第一设备的音频播放硬件设备的操作相同,本申请实施例对此不再赘述。In step 1302, the input device of the call audio link is set to the microphone of the first device, and the output device of the call audio link is set to the earpiece of the first device. The audio collection hardware device of the first device, the operation of setting the output device of the call audio link as the audio playback hardware device of the first device is the same, which will not be repeated in this embodiment of the present application.
步骤1303:多屏协同应用程序在第一设备与第二设备处于多屏协同状态时,监听通话状态,若监听到通话状态由空闲转为通话中,则判断协同通话功能是否已开启。Step 1303: When the first device and the second device are in the multi-screen collaborative state, the multi-screen collaborative application program monitors the call status, and if it detects that the call state changes from idle to active, then judges whether the collaborative call function is enabled.
多屏协同应用程序在多屏协同过程中会持续监听第一设备的通话状态,若监听到通话状态由空闲(idle)转为通话中(offhook),则确定第一设备开始进行通话,此时多屏协同应用程序可以判断协同通话功能是否已开启。如果协同通话功能已开启,则需要在此通话过程中进行协同通话;如果协同通话开关功能已关闭,则不需要在此通话过程中进行协同通话。The multi-screen collaborative application program will continue to monitor the call status of the first device during the multi-screen collaboration process. If it detects that the call status has changed from idle (idle) to call (offhook), it will determine that the first device has started a call. At this time The multi-screen collaborative application program can determine whether the collaborative call function is enabled. If the coordinated call function is enabled, you need to make a coordinated call during this call; if the coordinated call switch function is turned off, you do not need to perform a coordinated call during this call.
协同通话功能处于开启状态时说明用户允许建立协同通话,协同通话功能处于关闭状态时说明用户不允许建立协同通话。When the coordinated call function is turned on, it means that the user is allowed to establish a coordinated call, and when the coordinated call function is turned off, it means that the user is not allowed to establish a coordinated call.
一种可能的方式中,用户可以手动开启或关闭协同通话功能。比如,用户可以点击协同通话开关来打开和关闭协同通话开关,以实现协同通话功能的开启和关闭。In one possible manner, the user can manually enable or disable the collaborative call function. For example, the user may click on the coordinated call switch to turn on and off the coordinated call switch, so as to enable and disable the coordinated call function.
另一种可能的方式中,协同通话功能的开启和关闭也可以由用户的拨打电话行为或接听来电行为而决定。具体来讲,若在第一设备与第二设备进行多屏协同的过程中,用户直 接在第一设备拨打电话或接听来电,则第一设备会自动关闭协同通话功能。或者,若在第一设备与第二设备进行多屏协同的过程中,用户通过操作第二设备所显示的第一设备的屏幕画面,来实现在第一设备拨打电话或接听来电,则第一设备会自动开启协同通话功能。In another possible manner, the enabling and disabling of the coordinated call function may also be determined by the user's behavior of making a call or answering an incoming call. Specifically, if the user directly makes a call or answers an incoming call on the first device during the multi-screen collaboration between the first device and the second device, the first device will automatically turn off the coordinated call function. Or, if during the multi-screen collaboration between the first device and the second device, the user makes a call or answers an incoming call on the first device by manipulating the screen of the first device displayed on the second device, the first The device will automatically enable the collaborative calling function.
步骤1304:多屏协同应用程序在协同通话功能已开启的情况下,向DMSDP发送第一切换指令,以指示DMSDP进行协同通话建立。Step 1304: When the coordinated call function is enabled, the multi-screen coordinated application program sends a first switching instruction to the DMSDP to instruct the DMSDP to establish the coordinated call.
第一切换指令用于指示DMSDP建立协同通话,即指示将通话语音切换至第二设备,以由第二设备进行通话语音的采集和播放。The first switching instruction is used to instruct the DMSDP to establish a coordinated call, that is, to instruct to switch the voice of the call to the second device, so that the second device can collect and play the voice of the call.
值得注意的是,上述步骤1303和步骤1304仅是以多屏协同应用程序监听到通话状态由空闲转为通话中,且协同通话功能已开启时向DMSDP发送第一切换指令为例进行说明。可选地,多屏协同应用程序也可以在其他情况下向DMSDP发送第一切换指令。比如,多屏协同应用程序可以在检测到协同通话功能由关闭状态切换为开启状态时,在监听到的第一设备的通话状态为通话中的情况下,也可以向DMSDP发送第一切换指令。It is worth noting that the above step 1303 and step 1304 are only described by taking the multi-screen cooperative application program as an example to send the first switching instruction to the DMSDP when it detects that the call state has changed from idle to in-call, and the coordinated call function is enabled. Optionally, the multi-screen coordinated application program may also send the first switching instruction to the DMSDP in other cases. For example, the multi-screen coordinated application may also send a first switching instruction to the DMSDP when it detects that the coordinated call function is switched from the off state to the on state, and the monitored call state of the first device is in call.
步骤1305:DMSDP接收到多屏协同应用程序发送的第一切换指令后,若确定自身监听到的通话状态为通话中,则调用Audio HAL进行协同通话建立。Step 1305: After DMSDP receives the first switching instruction sent by the multi-screen collaborative application program, if it determines that the call status it monitors is in-call, it calls the Audio HAL to establish a collaborative call.
DMSDP在协同通话过程中也会持续监听第一设备的通话状态。DMSDP接收到第一切换指令后,确定多屏协同应用程序指示需要建立协同通话。此时DMSDP会根据自身监听到的通话状态,来确定是否要建立协同通话。The DMSDP will also continuously monitor the call state of the first device during the coordinated call. After receiving the first switching instruction, the DMSDP determines that the multi-screen coordinated application indicates that a coordinated call needs to be established. At this time, the DMSDP will determine whether to establish a cooperative call according to the call status monitored by itself.
具体地,DMSDP在确定自身监听到的通话状态为空闲的情况下,确定接收到的第一切换指令与自身监听到的通话状态不符,则不建立协同通话。DMSDP在确定自身监听到的通话状态为通话中的情况下,确定接收到的第一切换指令与自身监听到的通话状态相符,则调用Audio HAL进行协同通话建立,具体如步骤1306所述。Specifically, when the DMSDP determines that the call state monitored by itself is idle, and determines that the received first switching instruction does not match the call state it has monitored, it does not establish a coordinated call. When the DMSDP determines that the conversation status monitored by itself is in the conversation, it determines that the first switching instruction received matches the conversation status monitored by itself, and then calls the Audio HAL to set up a coordinated conversation, specifically as described in step 1306.
步骤1306:Audio HAL创建通话上行语音数据对应的Stream流,以打开用于获取通话上行语音数据的PCM设备和音频芯片中对应的通路,以及创建通话下行语音数据对应的Stream流,以打开用于获取通话下行语音数据的PCM设备和音频芯片中对应的通路,实现协同通话的建立。Step 1306: Audio HAL creates the Stream stream corresponding to the uplink voice data of the call, to open the PCM device for obtaining the uplink voice data of the call and the corresponding channel in the audio chip, and creates the Stream stream corresponding to the downlink voice data of the call, to open the channel for the uplink voice data of the call Obtain the corresponding path in the PCM device and the audio chip of the downlink voice data of the call, and realize the establishment of the cooperative call.
这种情况下,在第一设备与第二设备进行协同通话的过程中,DMSDP接收第二设备发送的由第二设备采集的通话上行语音数据,DMSDP将该通话上行语音数据发送至Audio HAL,Audio HAL将该通话上行语音数据写入PCM设备,PCM设备将该通话上行语音数据发送至音频芯片,音频芯片通过对应的通路将该通话上行语音数据发送至远端通话设备。In this case, during the coordinated call between the first device and the second device, DMSDP receives the call uplink voice data collected by the second device sent by the second device, and DMSDP sends the call uplink voice data to the Audio HAL, Audio HAL writes the uplink voice data of the call into the PCM device, and the PCM device sends the uplink voice data of the call to the audio chip, and the audio chip sends the uplink voice data of the call to the remote call device through the corresponding channel.
同时,音频芯片通过对应的通路接收远端通话设备发送的通话下行语音数据,将该通话下行语音数据发送至PCM设备,Audio HAL从该PCM设备中读取该通话下行语音数据,将该通话下行语音数据发送至DMSDP,DMSDP将该通话下行语音数据发送至第二设备,由第二设备进行播放。At the same time, the audio chip receives the call downlink voice data sent by the remote call device through the corresponding channel, and sends the call downlink voice data to the PCM device, and Audio HAL reads the call downlink voice data from the PCM device, and sends the call downlink voice data to the PCM device. The voice data is sent to the DMSDP, and the DMSDP sends the call downlink voice data to the second device for playback by the second device.
步骤1307:Audio HAL在建立协同通话后,指示音频芯片将通话音频链路的输入设备由麦克风切换为IN_PROXY模块,将通话音频链路的输出设备由听筒切换为OUT_PROXY模块。Step 1307: After the cooperative call is established, the Audio HAL instructs the audio chip to switch the input device of the call audio link from the microphone to the IN_PROXY module, and switch the output device of the call audio link from the earpiece to the OUT_PROXY module.
在第一设备与第二设备进行协同通话后,由于通话语音的采集和播放均在第二设备执行,所以第一设备已经没有通话语音的采集和播放需求,因而在本申请实施例中,第一设备在启动协同通话后,可以将通话音频链路的输入设备由第一设备的麦克风切换为 IN_PROXY模块,将通话音频链路的输出设备由第一设备的听筒切换为OUT_PROXY模块,以在协同通话过程中关闭第一设备的麦克风和听筒。如此,第一设备不再采集音频和播放音频,从而在满足协同通话需求的同时,降低了硬件功耗消耗。After the first device and the second device have a cooperative call, since the collection and playback of the call voice are performed on the second device, the first device no longer needs to collect and play the call voice. Therefore, in the embodiment of this application, the second After a device starts a cooperative call, it can switch the input device of the call audio link from the microphone of the first device to the IN_PROXY module, and switch the output device of the call audio link from the earpiece of the first device to the OUT_PROXY module, so as to Turn off the microphone and earpiece of the first device during a call. In this way, the first device no longer collects audio and plays audio, thereby reducing hardware power consumption while meeting the requirements of collaborative calls.
步骤1307中将通话音频链路的输入设备由麦克风切换为IN_PROXY模块,将通话音频链路的输出设备由听筒切换为OUT_PROXY模块的操作与上述步骤1204中将通话音频链路的输入设备由该音频采集硬件设备切换为虚拟输入模块,将通话音频链路的输出设备由该音频播放硬件设备切换为虚拟输出模块的操作相同,本申请实施例对此不再赘述。In step 1307, the input device of the call audio link is switched from the microphone to the IN_PROXY module, and the output device of the call audio link is switched from the earpiece to the OUT_PROXY module. The operations of switching the collection hardware device to the virtual input module and switching the output device of the call audio link from the audio playback hardware device to the virtual output module are the same, and will not be repeated in this embodiment of the present application.
步骤1308:多屏协同应用程序在第一设备与第二设备处于多屏协同状态的情况下,若监听到通话状态由通话中转为空闲,或检测到协同通话功能由开启状态转为关闭状态,则向DMSDP发送第二切换指令,以指示关闭协同通话。Step 1308: When the first device and the second device are in the multi-screen collaborative state, if the multi-screen collaborative application program detects that the call state has changed from in-call to idle, or detects that the collaborative call function has changed from the on state to the off state, Then send a second switching instruction to the DMSDP to instruct to close the coordinated call.
第二切换指令用于指示DMSDP关闭协同通话,即指示将通话语音切换回第一设备,以由第一设备进行通话语音的采集和播放。The second switching instruction is used to instruct the DMSDP to close the coordinated call, that is, to instruct to switch the call voice back to the first device, so that the first device can collect and play the call voice.
若多屏协同应用程序监听到第一设备的通话状态由通话中转为空闲,说明第一设备已经结束通话,则此时可以指示关闭协同通话。比如,用户挂断电话后,第一设备的通话状态由通话中转为空闲,此时多屏协同应用程序监听到此通话状态的改变,就可以指示关闭协同通话。If the multi-screen collaborative application detects that the call status of the first device has changed from in-call to idle, it means that the first device has ended the call, and at this time may instruct to close the coordinated call. For example, after the user hangs up the phone, the call state of the first device changes from in-call to idle. At this time, the multi-screen collaborative application monitors the change of the call state and can instruct to close the collaborative call.
若多屏协同应用程序检测到协同通话功能由开启状态转为关闭状态,说明用户想要在第一设备进行通话语音的采集和播放,则此时可以指示关闭协同通话。比如,用户可以手动点击协同通话开关来关闭协同通话功能,此时多屏协同应用程序检测到协同通话开关由打开切换为关闭后,就可以指示关闭协同通话。If the multi-screen collaborative application program detects that the collaborative call function has been turned from the on state to the off state, it means that the user wants to collect and play the call voice on the first device, and at this time can instruct to turn off the collaborative call. For example, the user can manually click the coordinated call switch to turn off the coordinated call function. At this time, after the multi-screen collaborative application detects that the coordinated call switch is switched from on to off, it can instruct to turn off the coordinated call.
步骤1309:DMSDP接收到多屏协同应用程序发送的第二切换指令后,调用Audio HAL关闭协同通话。Step 1309: After receiving the second switching instruction sent by the multi-screen cooperative application program, the DMSDP invokes the Audio HAL to close the cooperative call.
DMSDP接收到第二切换指令后,确定多屏协同应用程序指示需要结束协同通话。因而此时DMSDP可以调用Audio HAL关闭协同通话,具体如步骤1310所述。After receiving the second switching instruction, the DMSDP determines that the multi-screen coordinated application indicates that the coordinated call needs to be terminated. Therefore, at this time, the DMSDP can call the Audio HAL to close the coordinated call, as described in step 1310.
步骤1310:Audio HAL关闭通话上行语音数据对应的Stream流,以关闭用于获取通话上行语音数据的PCM设备和音频芯片中对应的通路,以及关闭通话下行语音数据对应的Stream流,以关闭用于获取通话下行语音数据的PCM设备和音频芯片中对应的通路,实现协同通话的关闭。Step 1310: Audio HAL closes the Stream stream corresponding to the uplink voice data of the call, so as to close the PCM device and the corresponding path in the audio chip used to obtain the uplink voice data of the call, and close the Stream stream corresponding to the downlink voice data of the call, so as to close the channel used for Obtain the corresponding path in the PCM device and the audio chip of the downlink voice data of the call to realize the closing of the cooperative call.
协同通话关闭后,通话语音的采集和播放恢复原始状态,即切换回第一设备执行。这种情况下,若第一设备关闭协同通话后还在进行通话,则需要第一设备自身进行通话语音的采集和播放。After the collaborative call is closed, the collection and playback of the call voice returns to the original state, that is, it is switched back to the first device for execution. In this case, if the first device is still talking after closing the coordinated call, the first device needs to collect and play the call voice by itself.
步骤1311:Audio HAL在关闭协同通话的同时,指示音频芯片将通话音频链路的输入设备由IN_PROXY模块切换为自身的麦克风,将通话音频链路的输出设备由OUT_PROXY模块切换为自身的听筒。Step 1311: While closing the coordinated call, the Audio HAL instructs the audio chip to switch the input device of the call audio link from the IN_PROXY module to its own microphone, and switch the output device of the call audio link from the OUT_PROXY module to its own earpiece.
这种情况下,若第一设备还在进行通话,则第一设备的麦克风采集通话上行语音数据并发送至音频芯片,音频芯片将第一设备的麦克风采集的通话上行语音数据发送至远端通话设备。远端通话设备将通话下行语音数据发送至音频芯片,音频芯片将接收到的远端通话设备发送的通话下行语音数据发送至第一设备的听筒进行播放。In this case, if the first device is still talking, the microphone of the first device collects the uplink voice data of the call and sends it to the audio chip, and the audio chip sends the uplink voice data of the call collected by the microphone of the first device to the remote call equipment. The remote call device sends the call downlink voice data to the audio chip, and the audio chip sends the received call downlink voice data sent by the remote call device to the earpiece of the first device for playback.
步骤1311中将通话音频链路的输入设备由IN_PROXY模块切换为自身的麦克风,将 通话音频链路的输出设备由OUT_PROXY模块切换为自身的听的操作与上述步骤1205中将通话音频链路的输入设备由虚拟输入模块切换为该音频采集硬件设备,将通话音频链路的输出设备由虚拟输出模块切换为该音频播放硬件设备的操作相同,本申请实施例对此不再赘述。In step 1311, the input device of the call audio link is switched from the IN_PROXY module to its own microphone, and the output device of the call audio link is switched from the OUT_PROXY module to its own listening operation. The operation of switching the device from the virtual input module to the audio collection hardware device and switching the output device of the call audio link from the virtual output module to the audio playback hardware device is the same, and will not be repeated in this embodiment of the application.
在本申请实施例中,在第一设备与第二设备处于多屏协同状态的情况下,若第一设备接收到通话操作,则建立通话音频链路,且将通话音频链路的输入设备设置为第一设备的音频采集硬件设备,将通话音频链路的输出设备设置为第一设备的音频播放硬件设备。同时,第一设备在接收到该通话操作时,还可以检测协同通话功能的状态,若协同通话功能处于开启状态,则将通话音频链路的输入设备由该音频采集硬件设备切换为虚拟输入模块,将通话音频链路的输出设备由该音频播放硬件设备切换为虚拟输出模块,以在协同通话过程中关闭该音频采集硬件设备和该音频播放硬件设备,如此,第一设备不再采集音频,也不再播放音频,从而在满足协同通话需求的同时,降低了硬件功耗消耗。In this embodiment of the application, when the first device and the second device are in a multi-screen coordinated state, if the first device receives a call operation, it will establish a call audio link, and set the input device of the call audio link to As the audio collection hardware device of the first device, the output device of the call audio link is set as the audio playback hardware device of the first device. At the same time, when the first device receives the call operation, it can also detect the state of the coordinated call function, and if the coordinated call function is turned on, the input device of the call audio link is switched from the audio collection hardware device to a virtual input module , switching the output device of the call audio link from the audio playback hardware device to a virtual output module, so as to close the audio collection hardware device and the audio playback hardware device during the coordinated call, so that the first device no longer collects audio, Audio is no longer played, thereby reducing hardware power consumption while meeting the needs of collaborative calls.
图14是本申请实施例提供的一种协同通话装置的结构示意图,该装置可以由软件、硬件或者两者的结合实现成为计算机设备的部分或者全部,该计算机设备可以为图1-图2实施例所示的终端。参见图14,该装置包括:接收模块1401、建立模块1402、切换模块1403。Fig. 14 is a schematic structural diagram of a collaborative communication device provided by an embodiment of the present application. The device can be realized by software, hardware or a combination of the two as part or all of a computer device. The computer device can be implemented as shown in Fig. 1-Fig. 2 terminal as shown in the example. Referring to FIG. 14 , the device includes: a receiving module 1401 , an establishing module 1402 , and a switching module 1403 .
接收模块1401,用于接收通话操作,其中,该装置与第二设备处于多屏协同状态;The receiving module 1401 is configured to receive a call operation, wherein the device and the second device are in a multi-screen coordinated state;
建立模块1402,用于响应于通话操作,建立通话音频链路,且将通话音频链路的输入设备设置为该装置的音频采集硬件设备,将通话音频链路的输出设备设置为该装置的音频播放硬件设备;The establishment module 1402 is used to establish a call audio link in response to a call operation, and set the input device of the call audio link as the audio collection hardware device of the device, and set the output device of the call audio link as the audio of the device Play hardware equipment;
切换模块1403,用于若检测到协同通话功能处于开启状态,则将通话音频链路的输入设备由音频采集硬件设备切换为虚拟输入模块,将通话音频链路的输出设备由音频播放硬件设备切换为虚拟输出模块,协同通话功能用于指示由第二设备进行通话语音的采集和播放,虚拟输入模块不进行音频采集,虚拟输出模块不进行音频播放。The switching module 1403 is used to switch the input device of the call audio link from an audio collection hardware device to a virtual input module, and switch the output device of the call audio link from an audio playback hardware device if it is detected that the coordinated call function is in an open state It is a virtual output module, and the coordinated call function is used to instruct the second device to collect and play the call voice. The virtual input module does not collect audio, and the virtual output module does not play audio.
可选地,切换模块1403还用于:Optionally, the switching module 1403 is also used for:
在建立通话音频链路后,若检测到协同通话功能由开启状态切换为关闭状态,则将通话音频链路的输入设备由虚拟输入模块切换为音频采集硬件设备,将通话音频链路的输出设备由虚拟输出模块切换为音频播放硬件设备。After the call audio link is established, if it is detected that the cooperative call function is switched from the on state to the off state, the input device of the call audio link is switched from a virtual input module to an audio collection hardware device, and the output device of the call audio link Switch from a virtual output module to an audio playback hardware device.
可选地,切换模块1403还用于:Optionally, the switching module 1403 is also used for:
在建立通话音频链路后,若检测到协同通话功能由关闭状态切换为开启状态,则将通话音频链路的输入设备由音频采集硬件设备切换为虚拟输入模块,将通话音频链路的输出设备由音频播放硬件设备切换为虚拟输出模块。After the call audio link is established, if it is detected that the coordinated call function is switched from off to on, the input device of the call audio link is switched from an audio collection hardware device to a virtual input module, and the output device of the call audio link is switched to a virtual input module. Switch from an audio playback hardware device to a virtual output module.
可选地,该装置还包括:Optionally, the device also includes:
第一通话模块,用于在建立通话音频链路后,在协同通话功能处于开启状态的情况下,接收第二设备发送的由第二设备采集的通话上行语音数据,将通话上行语音数据发送至远端通话设备,以及接收远端通话设备发送的通话下行语音数据,将通话下行语音数据发送至第二设备进行播放。The first call module is configured to receive the call uplink voice data collected by the second device sent by the second device and send the call uplink voice data to The remote communication device receives the communication downlink voice data sent by the remote communication device, and sends the communication downlink voice data to the second device for playing.
可选地,该装置还包括:Optionally, the device also includes:
第二通话模块,用于在建立通话音频链路后,在协同通话功能处于关闭状态的情况下,通过音频采集硬件设备采集通话上行语音数据,将通话上行语音数据发送至远端通话设备,以及接收远端通话设备发送的通话下行语音数据,将通话下行语音数据通过音频播放硬件设备进行播放。The second call module is used to collect the uplink voice data of the call through the audio collection hardware device, and send the uplink voice data of the call to the remote call device after the call audio link is established, and when the coordinated call function is in a closed state, and Receive the call downlink voice data sent by the remote call device, and play the call downlink voice data through the audio playback hardware device.
可选地,该装置还包括:Optionally, the device also includes:
开启模块,用于若通话操作是用户通过第二设备所显示的该装置的屏幕画面触发的,则响应于通话操作,开启协同通话功能;The opening module is used to enable the cooperative call function in response to the call operation if the call operation is triggered by the user through the screen image of the device displayed by the second device;
关闭模块,用于若通话操作是用户在该装置触发的,则响应于通话操作,关闭协同通话功能。The closing module is used to close the coordinated calling function in response to the calling operation if the calling operation is triggered by the user on the device.
可选地,该装置还包括:Optionally, the device also includes:
关闭模块,用于在建立通话音频链路后,若检测到用户关闭该装置或第二设备显示的协同通话开关,则将协同通话功能由开启状态切换为关闭状态;The closing module is used to switch the coordinated calling function from the on state to the off state if it is detected that the user turns off the cooperative calling switch displayed by the device or the second device after the call audio link is established;
开启模块,用于在建立通话音频链路后,若检测到用户打开该装置或第二设备显示的协同通话开关,则将协同通话功能由关闭状态切换为开启状态。The opening module is used to switch the cooperative calling function from the off state to the on state if it is detected that the user turns on the cooperative calling switch displayed by the device or the second device after the call audio link is established.
可选地,该装置还包括:Optionally, the device also includes:
接收模块1401,还用于接收通话结束操作;The receiving module 1401 is also used to receive a call end operation;
设置模块,用于响应于通话结束操作,关闭协同通话功能,且将通话音频链路的输入设备设置为音频采集硬件设备,将通话音频链路的输出设备设置为音频播放硬件设备。The setting module is used to close the coordinated call function in response to the call end operation, and set the input device of the call audio link as an audio collection hardware device, and set the output device of the call audio link as an audio playback hardware device.
可选地,音频采集硬件设备为麦克风,音频播放硬件设备为扬声器或听筒。Optionally, the audio collection hardware device is a microphone, and the audio playback hardware device is a speaker or an earpiece.
在本申请实施例中,在与第二设备处于多屏协同状态的情况下,若接收到通话操作,则建立通话音频链路,且将通话音频链路的输入设备设置为自身的音频采集硬件设备,将通话音频链路的输出设备设置为自身的音频播放硬件设备。同时,在接收到该通话操作时,还可以检测协同通话功能的状态,若协同通话功能处于开启状态,则将通话音频链路的输入设备由该音频采集硬件设备切换为虚拟输入模块,将通话音频链路的输出设备由该音频播放硬件设备切换为虚拟输出模块,以在协同通话过程中关闭该音频采集硬件设备和该音频播放硬件设备,如此,自身不再采集音频,也不再播放音频,从而在满足协同通话需求的同时,降低了硬件功耗消耗。In this embodiment of the application, when the second device is in a multi-screen cooperative state, if a call operation is received, a call audio link is established, and the input device of the call audio link is set as its own audio collection hardware Device, set the output device of the call audio link as its own audio playback hardware device. At the same time, when the call operation is received, the state of the coordinated call function can also be detected. If the coordinated call function is turned on, the input device of the call audio link is switched from the audio collection hardware device to a virtual input module, and the call The output device of the audio link is switched from the audio playback hardware device to a virtual output module, so as to close the audio collection hardware device and the audio playback hardware device during the cooperative call, so that it no longer collects audio itself, nor plays audio , thereby reducing hardware power consumption while meeting the cooperative call requirements.
需要说明的是:上述实施例提供的协同通话装置在协同通话时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。It should be noted that: the coordinated call device provided by the above-mentioned embodiments only uses the division of the above-mentioned functional modules as an example for illustration during the coordinated call. In practical applications, the above-mentioned function allocation can be completed by different functional modules according to needs. The internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
上述实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请实施例的保护范围。The functional units and modules in the above-mentioned embodiments can be integrated into one processing unit, or each unit can exist separately physically, or two or more units can be integrated into one unit, and the above-mentioned integrated units can use hardware It can also be implemented in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present application.
上述实施例提供的协同通话装置与协同通话方法实施例属于同一构思,上述实施例中单元、模块的具体工作过程及带来的技术效果,可参见方法实施例部分,此处不再赘述。The coordinated calling device provided by the above embodiments and the coordinated calling method embodiments belong to the same concept. The specific working process and technical effects of the units and modules in the above embodiments can be found in the method embodiments, and will not be repeated here.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意结合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产 品包括一个或多个计算机指令。在计算机上加载和执行所述计算机指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络或其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,比如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(比如:同轴电缆、光纤、数据用户线(Digital Subscriber Line,DSL))或无线(比如:红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质,或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(比如:软盘、硬盘、磁带)、光介质(比如:数字通用光盘(Digital Versatile Disc,DVD))或半导体介质(比如:固态硬盘(Solid State Disk,SSD))等。In the above embodiments, all or part may be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part. The computer can be a general purpose computer, a special purpose computer, a computer network or other programmable devices. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be accessed from a website, computer, server, or data center Transmission to another website site, computer, server or data center by wired (such as: coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or wireless (such as: infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer, or may be a data storage device such as a server or a data center integrated with one or more available media. The available medium may be a magnetic medium (such as a floppy disk, a hard disk, a magnetic tape), an optical medium (such as a digital versatile disc (Digital Versatile Disc, DVD)) or a semiconductor medium (such as a solid state disk (Solid State Disk, SSD)) wait.
以上所述为本申请提供的可选实施例,并不用以限制本申请,凡在本申请的揭露的技术范围之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above-mentioned optional embodiments provided by the application are not intended to limit the application. Any modifications, equivalent replacements, improvements, etc. made within the technical scope of the disclosure of the application shall be included in the scope of the application. within the scope of protection.

Claims (20)

  1. 一种协同通话方法,其特征在于,所述方法包括:A method for coordinated conversation, characterized in that the method comprises:
    第一设备接收通话操作,其中,所述第一设备与第二设备处于多屏协同状态;The first device receives a call operation, wherein the first device and the second device are in a multi-screen coordinated state;
    响应于所述通话操作,所述第一设备建立通话音频链路,且将所述通话音频链路的输入设备设置为所述第一设备的音频采集硬件设备,将所述通话音频链路的输出设备设置为所述第一设备的音频播放硬件设备;In response to the call operation, the first device establishes a call audio link, and sets the input device of the call audio link as an audio collection hardware device of the first device, and sets the call audio link The output device is set as the audio playback hardware device of the first device;
    若所述第一设备检测到协同通话功能处于开启状态,则将所述通话音频链路的输入设备由所述音频采集硬件设备切换为虚拟输入模块,将所述通话音频链路的输出设备由所述音频播放硬件设备切换为虚拟输出模块,所述协同通话功能用于指示由所述第二设备进行通话语音的采集和播放,所述虚拟输入模块不进行音频采集,所述虚拟输出模块不进行音频播放。If the first device detects that the coordinated call function is in an open state, the input device of the call audio link is switched from the audio collection hardware device to a virtual input module, and the output device of the call audio link is switched from The audio playback hardware device is switched to a virtual output module, and the coordinated call function is used to instruct the second device to collect and play call voice, the virtual input module does not perform audio collection, and the virtual output module does not Play audio.
  2. 如权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1, further comprising:
    所述第一设备在建立所述通话音频链路后,若检测到所述协同通话功能由开启状态切换为关闭状态,则将所述通话音频链路的输入设备由所述虚拟输入模块切换为所述音频采集硬件设备,将所述通话音频链路的输出设备由所述虚拟输出模块切换为所述音频播放硬件设备。After the first device establishes the call audio link, if it detects that the coordinated call function is switched from the on state to the off state, then the input device of the call audio link is switched from the virtual input module to The audio collection hardware device switches the output device of the call audio link from the virtual output module to the audio playback hardware device.
  3. 如权利要求1或2所述的方法,其特征在于,所述方法还包括:The method according to claim 1 or 2, further comprising:
    所述第一设备在建立所述通话音频链路后,若检测到所述协同通话功能由关闭状态切换为开启状态,则将所述通话音频链路的输入设备由所述音频采集硬件设备切换为所述虚拟输入模块,将所述通话音频链路的输出设备由所述音频播放硬件设备切换为所述虚拟输出模块。After the first device establishes the call audio link, if it detects that the coordinated call function is switched from the off state to the on state, then the input device of the call audio link is switched by the audio collection hardware device For the virtual input module, switch the output device of the call audio link from the audio playback hardware device to the virtual output module.
  4. 如权利要求1至3任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 3, wherein the method further comprises:
    所述第一设备在建立所述通话音频链路后,在所述协同通话功能处于开启状态的情况下,接收所述第二设备发送的由所述第二设备采集的通话上行语音数据,将所述通话上行语音数据发送至远端通话设备,以及接收所述远端通话设备发送的通话下行语音数据,将所述通话下行语音数据发送至所述第二设备进行播放。After the call audio link is established, the first device receives the call uplink voice data sent by the second device and collected by the second device when the cooperative call function is turned on, and sends The call uplink voice data is sent to the remote call device, and the call downlink voice data sent by the remote call device is received, and the call downlink voice data is sent to the second device for playing.
  5. 如权利要求1至4任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 4, wherein the method further comprises:
    所述第一设备在建立所述通话音频链路后,在所述协同通话功能处于关闭状态的情况下,通过所述音频采集硬件设备采集通话上行语音数据,将所述通话上行语音数据发送至远端通话设备,以及接收所述远端通话设备发送的通话下行语音数据,将所述通话下行语音数据通过所述音频播放硬件设备进行播放。After the call audio link is established, the first device collects call uplink voice data through the audio collection hardware device and sends the call uplink voice data to The remote communication device receives the communication downlink voice data sent by the remote communication device, and plays the communication downlink voice data through the audio playback hardware device.
  6. 如权利要求1至5任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 5, wherein the method further comprises:
    若所述通话操作是用户通过所述第二设备所显示的所述第一设备的屏幕画面触发的,则响应于所述通话操作,所述第一设备开启所述协同通话功能;If the call operation is triggered by the user through the screen of the first device displayed by the second device, in response to the call operation, the first device enables the coordinated call function;
    若所述通话操作是用户在所述第一设备触发的,则响应于所述通话操作,所述第一设备关闭所述协同通话功能。If the call operation is triggered by the user on the first device, in response to the call operation, the first device disables the coordinated call function.
  7. 如权利要求1至6任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 6, further comprising:
    所述第一设备在建立所述通话音频链路后,若检测到用户关闭所述第一设备或所述第 二设备显示的协同通话开关,则将所述协同通话功能由开启状态切换为关闭状态;After the first device establishes the call audio link, if it detects that the user has turned off the coordinated call switch displayed by the first device or the second device, the coordinated call function is switched from on to off state;
    所述第一设备在建立所述通话音频链路后,若检测到用户打开所述第一设备或所述第二设备显示的所述协同通话开关,则将所述协同通话功能由关闭状态切换为开启状态。After the first device establishes the call audio link, if it detects that the user turns on the coordinated call switch displayed by the first device or the second device, the coordinated call function is switched from an off state is on.
  8. 如权利要求1至7任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 7, wherein the method further comprises:
    所述第一设备接收通话结束操作;The first device receives a call end operation;
    响应于所述通话结束操作,所述第一设备关闭所述协同通话功能,且将所述通话音频链路的输入设备设置为所述音频采集硬件设备,将所述通话音频链路的输出设备设置为所述音频播放硬件设备。In response to the call end operation, the first device closes the coordinated call function, and sets the input device of the call audio link as the audio collection hardware device, and sets the output device of the call audio link to Set as the audio playback hardware device.
  9. 如权利要求1至8任一所述的方法,其特征在于,所述音频采集硬件设备为麦克风,所述音频播放硬件设备为扬声器或听筒。The method according to any one of claims 1 to 8, wherein the audio collection hardware device is a microphone, and the audio playback hardware device is a speaker or an earpiece.
  10. 一种协同通话装置,其特征在于,所述装置包括:A cooperative communication device, characterized in that the device comprises:
    接收模块,用于接收通话操作,其中,所述装置与第二设备处于多屏协同状态;a receiving module, configured to receive a call operation, wherein the device and the second device are in a multi-screen coordinated state;
    建立模块,用于响应于所述通话操作,建立通话音频链路,且将所述通话音频链路的输入设备设置为所述装置的音频采集硬件设备,将所述通话音频链路的输出设备设置为所述装置的音频播放硬件设备;The establishment module is used to establish a call audio link in response to the call operation, and set the input device of the call audio link as the audio collection hardware device of the device, and set the output device of the call audio link set as the audio playback hardware device of the device;
    切换模块,用于若检测到协同通话功能处于开启状态,则将所述通话音频链路的输入设备由所述音频采集硬件设备切换为虚拟输入模块,将所述通话音频链路的输出设备由所述音频播放硬件设备切换为虚拟输出模块,所述协同通话功能用于指示由所述第二设备进行通话语音的采集和播放,所述虚拟输入模块不进行音频采集,所述虚拟输出模块不进行音频播放。The switching module is used to switch the input device of the call audio link from the audio collection hardware device to a virtual input module if it is detected that the coordinated call function is on, and switch the output device of the call audio link from The audio playback hardware device is switched to a virtual output module, and the coordinated call function is used to instruct the second device to collect and play call voice, the virtual input module does not perform audio collection, and the virtual output module does not Play audio.
  11. 一种计算机设备,其特征在于,所述计算机设备包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至9任意一项所述的方法。A computer device, characterized in that the computer device includes a memory, a processor, and a computer program stored in the memory and operable on the processor, and the computer program is implemented when executed by the processor. The method according to any one of claims 1 to 9.
  12. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行如权利要求1至9任意一项所述的方法。A computer-readable storage medium, characterized in that instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is run on a computer, the computer is made to execute the method according to any one of claims 1 to 9.
  13. 一种包含指令的计算机程序产品,其特征在于,当其在计算机上运行时,使得计算机执行如权利要求1至9任意一项所述的方法。A computer program product comprising instructions, characterized in that, when it is run on a computer, it causes the computer to execute the method according to any one of claims 1 to 9.
  14. 一种协同通话方法,其特征在于,所述方法包括:A method for coordinated conversation, characterized in that the method comprises:
    第一设备接收通话操作,其中,所述第一设备与第二设备处于多屏协同状态;The first device receives a call operation, wherein the first device and the second device are in a multi-screen coordinated state;
    响应于所述通话操作,所述第一设备建立通话音频链路,且将所述通话音频链路的输入设备设置为所述第一设备的音频采集硬件设备,将所述通话音频链路的输出设备设置为所述第一设备的音频播放硬件设备;In response to the call operation, the first device establishes a call audio link, and sets the input device of the call audio link as an audio collection hardware device of the first device, and sets the call audio link The output device is set as the audio playback hardware device of the first device;
    若所述第一设备检测到协同通话功能处于开启状态,则将所述通话音频链路的输入设备由所述音频采集硬件设备切换为虚拟输入模块,将所述通话音频链路的输出设备由所述音频播放硬件设备切换为虚拟输出模块,以在协同通话过程中关闭所述音频采集硬件设备和所述音频播放硬件设备,所述协同通话功能用于指示由所述第二设备进行通话语音的采集和播放,所述虚拟输入模块和所述虚拟输出模块为虚拟的软件模块,所述虚拟输入模块不进行音频采集,所述虚拟输出模块不进行音频播放;If the first device detects that the coordinated call function is in an open state, the input device of the call audio link is switched from the audio collection hardware device to a virtual input module, and the output device of the call audio link is switched from The audio playback hardware device is switched to a virtual output module to close the audio collection hardware device and the audio playback hardware device during the coordinated call, and the coordinated call function is used to instruct the second device to perform a call voice collection and playback, the virtual input module and the virtual output module are virtual software modules, the virtual input module does not perform audio collection, and the virtual output module does not perform audio playback;
    所述第一设备在建立所述通话音频链路后,若检测到所述协同通话功能由开启状 态切换为关闭状态,则将所述通话音频链路的输入设备由所述虚拟输入模块切换为所述音频采集硬件设备,将所述通话音频链路的输出设备由所述虚拟输出模块切换为所述音频播放硬件设备,以打开所述音频采集硬件设备进行音频采集且打开所述音频播放硬件设备进行音频播放;After the first device establishes the call audio link, if it detects that the coordinated call function is switched from the on state to the off state, then the input device of the call audio link is switched from the virtual input module to The audio collection hardware device switches the output device of the call audio link from the virtual output module to the audio playback hardware device, so as to open the audio collection hardware device for audio collection and open the audio playback hardware The device performs audio playback;
    所述第一设备在建立所述通话音频链路后,若检测到所述协同通话功能由关闭状态切换为开启状态,则将所述通话音频链路的输入设备由所述音频采集硬件设备切换为所述虚拟输入模块,将所述通话音频链路的输出设备由所述音频播放硬件设备切换为所述虚拟输出模块,以在协同通话过程中关闭所述音频采集硬件设备和所述音频播放硬件设备。After the first device establishes the call audio link, if it detects that the coordinated call function is switched from the off state to the on state, then the input device of the call audio link is switched by the audio collection hardware device For the virtual input module, switch the output device of the call audio link from the audio playback hardware device to the virtual output module, so as to close the audio collection hardware device and the audio playback during the coordinated call hardware equipment.
  15. 如权利要求14所述的方法,其特征在于,所述方法还包括:The method of claim 14, further comprising:
    所述第一设备在建立所述通话音频链路后,在所述协同通话功能处于开启状态的情况下,接收所述第二设备发送的由所述第二设备采集的通话上行语音数据,将所述通话上行语音数据发送至远端通话设备,以及接收所述远端通话设备发送的通话下行语音数据,将所述通话下行语音数据发送至所述第二设备进行播放。After the call audio link is established, the first device receives the call uplink voice data sent by the second device and collected by the second device when the cooperative call function is turned on, and sends The call uplink voice data is sent to the remote call device, and the call downlink voice data sent by the remote call device is received, and the call downlink voice data is sent to the second device for playing.
  16. 如权利要求14或15所述的方法,其特征在于,所述方法还包括:The method according to claim 14 or 15, further comprising:
    所述第一设备在建立所述通话音频链路后,在所述协同通话功能处于关闭状态的情况下,通过所述音频采集硬件设备采集通话上行语音数据,将所述通话上行语音数据发送至远端通话设备,以及接收所述远端通话设备发送的通话下行语音数据,将所述通话下行语音数据通过所述音频播放硬件设备进行播放。After the call audio link is established, the first device collects call uplink voice data through the audio collection hardware device and sends the call uplink voice data to The remote communication device receives the communication downlink voice data sent by the remote communication device, and plays the communication downlink voice data through the audio playback hardware device.
  17. 如权利要求14至16任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 14 to 16, further comprising:
    若所述通话操作是用户通过所述第二设备所显示的所述第一设备的屏幕画面触发的,则响应于所述通话操作,所述第一设备开启所述协同通话功能;If the call operation is triggered by the user through the screen of the first device displayed by the second device, in response to the call operation, the first device enables the coordinated call function;
    若所述通话操作是用户在所述第一设备触发的,则响应于所述通话操作,所述第一设备关闭所述协同通话功能。If the call operation is triggered by the user on the first device, in response to the call operation, the first device disables the coordinated call function.
  18. 如权利要求14至17任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 14 to 17, further comprising:
    所述第一设备在建立所述通话音频链路后,若检测到用户关闭所述第一设备或所述第二设备显示的协同通话开关,则将所述协同通话功能由开启状态切换为关闭状态;After the first device establishes the call audio link, if it detects that the user has turned off the coordinated call switch displayed by the first device or the second device, the coordinated call function is switched from on to off state;
    所述第一设备在建立所述通话音频链路后,若检测到用户打开所述第一设备或所述第二设备显示的所述协同通话开关,则将所述协同通话功能由关闭状态切换为开启状态。After the first device establishes the call audio link, if it detects that the user turns on the coordinated call switch displayed by the first device or the second device, the coordinated call function is switched from an off state is on.
  19. 如权利要求14至18任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 14 to 18, further comprising:
    所述第一设备接收通话结束操作;The first device receives a call end operation;
    响应于所述通话结束操作,所述第一设备关闭所述协同通话功能,且将所述通话音频链路的输入设备设置为所述音频采集硬件设备,将所述通话音频链路的输出设备设置为所述音频播放硬件设备。In response to the call end operation, the first device closes the coordinated call function, and sets the input device of the call audio link as the audio collection hardware device, and sets the output device of the call audio link to Set as the audio playback hardware device.
  20. 如权利要求14至19任一所述的方法,其特征在于,所述音频采集硬件设备为麦克风,所述音频播放硬件设备为扬声器或听筒。The method according to any one of claims 14 to 19, wherein the audio collection hardware device is a microphone, and the audio playback hardware device is a loudspeaker or an earpiece.
PCT/CN2022/141752 2022-01-10 2022-12-26 Collaborative calling method and apparatus, device, storage medium, and program product WO2023130991A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210023658.9 2022-01-10
CN202210023658.9A CN114500716A (en) 2022-01-10 2022-01-10 Cooperative call method, apparatus, device, storage medium and program product

Publications (1)

Publication Number Publication Date
WO2023130991A1 true WO2023130991A1 (en) 2023-07-13

Family

ID=81509309

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/141752 WO2023130991A1 (en) 2022-01-10 2022-12-26 Collaborative calling method and apparatus, device, storage medium, and program product

Country Status (2)

Country Link
CN (1) CN114500716A (en)
WO (1) WO2023130991A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114500716A (en) * 2022-01-10 2022-05-13 荣耀终端有限公司 Cooperative call method, apparatus, device, storage medium and program product
CN115134657A (en) * 2022-05-27 2022-09-30 北京达佳互联信息技术有限公司 Multimedia data live broadcast method and device, electronic equipment and storage medium
CN116743904A (en) * 2022-09-30 2023-09-12 荣耀终端有限公司 Call volume control method and electronic equipment
CN116743924B (en) * 2022-09-30 2024-04-12 荣耀终端有限公司 Color ringing sound processing method and electronic equipment
CN116743905B (en) * 2022-09-30 2024-04-26 荣耀终端有限公司 Call volume control method and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109862544A (en) * 2018-12-30 2019-06-07 薛晓东 Voice interactive method, equipment and storage device
CN109995945A (en) * 2019-03-29 2019-07-09 联想(北京)有限公司 Processing method and electronic equipment
WO2020077512A1 (en) * 2018-10-15 2020-04-23 华为技术有限公司 Voice communication method, electronic device, and system
CN113572731A (en) * 2021-06-18 2021-10-29 荣耀终端有限公司 Voice communication method, personal computer and terminal
CN113890932A (en) * 2020-07-02 2022-01-04 华为技术有限公司 Audio control method and system and electronic equipment
CN114500716A (en) * 2022-01-10 2022-05-13 荣耀终端有限公司 Cooperative call method, apparatus, device, storage medium and program product

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7440556B2 (en) * 2003-09-30 2008-10-21 Microsoft Corporation System and method for using telephony controls on a personal computer
CN114071423A (en) * 2019-09-18 2022-02-18 华为技术有限公司 Video call method and electronic equipment
CN115835409A (en) * 2021-09-17 2023-03-21 荣耀终端有限公司 Collaborative window processing method and system and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020077512A1 (en) * 2018-10-15 2020-04-23 华为技术有限公司 Voice communication method, electronic device, and system
CN109862544A (en) * 2018-12-30 2019-06-07 薛晓东 Voice interactive method, equipment and storage device
CN109995945A (en) * 2019-03-29 2019-07-09 联想(北京)有限公司 Processing method and electronic equipment
CN113890932A (en) * 2020-07-02 2022-01-04 华为技术有限公司 Audio control method and system and electronic equipment
CN113572731A (en) * 2021-06-18 2021-10-29 荣耀终端有限公司 Voice communication method, personal computer and terminal
CN114500716A (en) * 2022-01-10 2022-05-13 荣耀终端有限公司 Cooperative call method, apparatus, device, storage medium and program product

Also Published As

Publication number Publication date
CN114500716A (en) 2022-05-13

Similar Documents

Publication Publication Date Title
WO2023130991A1 (en) Collaborative calling method and apparatus, device, storage medium, and program product
JP7268275B2 (en) Method and electronic device for presenting video on electronic device when there is an incoming call
WO2021135734A1 (en) Method for transmitting file in application, and electronic device and system
WO2023184825A1 (en) Video recording control method of electronic device, electronic device, and readable medium
EP4290346A1 (en) File management method, electronic device, and computer-readable storage medium
WO2023088209A1 (en) Cross-device audio data transmission method and electronic devices
CN114327175B (en) Information sharing method and device
CN115643339B (en) Method for adjusting volume, electronic device and computer readable storage medium
CN115242994B (en) Video call system, method and device
WO2023020012A1 (en) Data communication method between devices, device, storage medium, and program product
WO2022188683A1 (en) Flexibly authorized access control method, and related apparatus and system
CN114245060B (en) Path processing method, device, equipment and storage medium
CN115002821B (en) Call state monitoring method, device, equipment and storage medium
CN115002820B (en) Call state monitoring method, device, equipment and storage medium
WO2023036001A1 (en) Call method and electronic device
WO2023024973A1 (en) Audio control method and electronic device
WO2023174322A1 (en) Layer processing method and electronic device
CN115942253B (en) Prompting method and related device
WO2024067170A1 (en) Device management method and electronic device
KR102668913B1 (en) Call methods and devices
CN114173315B (en) Bluetooth reconnection method and terminal equipment
CN115016871B (en) Multimedia editing method, electronic device and storage medium
WO2023273460A1 (en) Screen projection display method and electronic device
US20240184749A1 (en) File management method, electronic device, and computer-readable storage medium
WO2023236646A1 (en) Incoming call display method and electronic devices

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: 22918434

Country of ref document: EP

Kind code of ref document: A1