CN116743904A - Call volume control method and electronic equipment - Google Patents

Call volume control method and electronic equipment Download PDF

Info

Publication number
CN116743904A
CN116743904A CN202211207451.3A CN202211207451A CN116743904A CN 116743904 A CN116743904 A CN 116743904A CN 202211207451 A CN202211207451 A CN 202211207451A CN 116743904 A CN116743904 A CN 116743904A
Authority
CN
China
Prior art keywords
volume
electronic device
call
communication
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211207451.3A
Other languages
Chinese (zh)
Inventor
白金印
刘能宾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202211207451.3A priority Critical patent/CN116743904A/en
Publication of CN116743904A publication Critical patent/CN116743904A/en
Pending legal-status Critical Current

Links

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
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Theoretical Computer Science (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Signal Processing (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Telephone Function (AREA)

Abstract

The application provides a call volume control method and electronic equipment. The method comprises the following steps: the volume configuration module acquires a communication volume value and sends the communication volume value to the data processing module, wherein the communication volume value is a volume value corresponding to a communication volume adjustment operation executed by a user on the first electronic equipment; the data processing module acquires first audio data of a downlink channel in the cooperative communication; the data processing module processes the first audio data according to the communication voice value to obtain second audio data, and the audio volume corresponding to the second audio data is equal to the communication voice value; the data processing module sends the second audio data to the second electronic device. Therefore, a channel for adjusting the audio data of the downlink channel sent to the equipment side electronic equipment is created in the center side electronic equipment for collaborative communication, so that a user can execute the operation of adjusting the communication volume on the center side equipment, the effect of adjusting the collaborative communication volume on the equipment side equipment can be achieved, and the user experience is improved.

Description

Call volume control method and electronic equipment
Technical Field
The present application relates to the field of terminal devices, and in particular, to a call volume control method and an electronic device.
Background
Currently, services such as multi-screen collaboration and super call support collaborative call functions. The cooperative call means a call voice on one electronic device (center-side device) played through the other electronic device (device-side device). In the related art, a user adjusts the call volume on the center side device, and cannot change the collaborative call volume on the device side device in collaborative call, so that the user experience is poor.
Disclosure of Invention
In order to solve the technical problems, the application provides a call volume control method and electronic equipment, which enable a user to execute the operation of adjusting call volume on center side equipment, can adjust the collaborative call volume on equipment side equipment in collaborative call, and improve the user experience.
In a first aspect, the present application provides a call volume control method. The method is applied to first electronic equipment, the first electronic equipment and second electronic equipment are respectively center side equipment and equipment side equipment in collaborative communication, the first electronic equipment comprises a volume configuration module and a data processing module, and the method comprises the following steps: the volume configuration module acquires a communication volume value and sends the communication volume value to the data processing module, wherein the communication volume value is a communication volume value corresponding to a communication volume adjustment operation executed by a user on the first electronic equipment; the data processing module acquires first audio data of a downlink channel in the cooperative communication; the data processing module processes the first audio data according to the communication voice value to obtain second audio data, and the audio volume corresponding to the second audio data is equal to the communication voice value; the data processing module sends the second audio data to the second electronic device. In this way, a channel for adjusting downlink channel audio data sent to the equipment side electronic equipment is created in the center side electronic equipment for collaborative communication, the center side electronic equipment processes the downlink channel audio data according to the communication volume adjusting operation of a user on the center side electronic equipment before sending the downlink channel audio data to the equipment side electronic equipment, so that the volume of the processed downlink channel audio data is matched with the communication volume adjusting operation of the user, the effect that the user performs the operation of adjusting the communication volume on the center side equipment can adjust the collaborative communication volume on the equipment side equipment is achieved, and the user experience is improved.
According to a first aspect, a volume configuration module obtains a traffic volume value, comprising: and the volume configuration module receives a first communication voice value issued by the frame layer of the first electronic equipment in real time under the condition that the first electronic equipment is in a cooperative state.
According to a first aspect, a volume configuration module obtains a traffic volume value, comprising: the volume configuration module reads a stored second communication volume value from the local, wherein the second communication volume value is locally stored after receiving a communication volume value issued by a framework layer of the first electronic device under the condition that the first electronic device is in a non-cooperative state.
According to a first aspect, the volume configuration module and the data processing module are located at a hardware abstraction layer of the first electronic device.
According to a first aspect, the volume configuration module sends the call volume value to the data processing module, including: the volume configuration module judges whether the first electronic equipment is in a cooperative state currently; and if so, the volume configuration module sends the call volume value to the data processing module.
According to a first aspect, the volume configuration module determines whether the first electronic device is currently in a collaborative state, including: the volume configuration module inquires a cooperative state identifier in the first electronic device, and determines whether the first electronic device is in a cooperative state according to the cooperative state identifier.
According to a first aspect, a volume configuration module obtains a traffic volume value, comprising: an audio service module in a frame layer of the first electronic device responds to the operation of adjusting the call volume to generate a call volume value; the audio service module sends the call volume value to an original hardware abstraction layer module in a hardware abstraction layer; and the original hardware abstraction layer module sends the call volume value to the volume configuration module.
According to a first aspect, a data processing module obtains first audio data of a downlink path in a collaborative call, including: and the data processing module reads the first audio data of the downlink channel in the cooperative communication from the Pulse Code Modulation (PCM) interface of the communication record in the audio digital signal processor of the first electronic device.
According to a first aspect, a data processing module sends the second audio data to the second electronic device, comprising: the data processing module sends the second audio data to a data session module of a frame layer of the first electronic device, so that the data session module forwards the second audio data to the second electronic device.
According to a first aspect, the first electronic device is a mobile phone and the second electronic device is a tablet or a personal computer.
In a second aspect, the present application provides an electronic device comprising: a memory and a processor, the memory coupled to the processor; the memory stores program instructions that, when executed by the processor, cause the electronic device to perform the call volume control method of any one of the first aspects.
In a third aspect, the present application provides a computer-readable storage medium comprising a computer program which, when run on an electronic device, causes the electronic device to perform the call volume control method of any one of the first aspects.
Drawings
Fig. 1 is a schematic structural diagram of an exemplary electronic device 100;
fig. 2 is a software architecture block diagram of an electronic device 100 of an exemplary illustrated embodiment of the present application;
FIG. 3 is a schematic diagram of an exemplary multi-device collaboration scenario;
fig. 4 is a schematic diagram of a cooperative call downlink path in the present embodiment;
fig. 5 is a schematic diagram illustrating a call volume control process in the present embodiment.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The term "and/or" is herein merely an association relationship describing an associated object, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone.
The terms first and second and the like in the description and in the claims of embodiments of the application, are used for distinguishing between different objects and not necessarily for describing a particular sequential order of objects. For example, the first target object and the second target object, etc., are used to distinguish between different target objects, and are not used to describe a particular order of target objects.
In embodiments of the application, words such as "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g." in an embodiment should not be taken as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
In the description of the embodiments of the present application, unless otherwise indicated, the meaning of "a plurality" means two or more. For example, the plurality of processing units refers to two or more processing units; the plurality of systems means two or more systems.
Through applications such as multi-screen collaboration and super communication, electronic equipment such as mobile phones and the like can carry out collaborative communication with other electronic equipment such as Personal Computers (PCs), tablets and the like, and voice received by the mobile phones can be played on the other electronic equipment.
In the related art, in a collaborative call scenario, a user adjusts call volume on a center-side device (may also be referred to as a master device), and the call volume of a collaborative device-side device (may also be referred to as a slave device) cannot be changed accordingly.
For example, in a scenario where a mobile phone and a PC are cooperatively communicating, a user adjusts the communication volume on the mobile phone, but the communication volume of the PC remains unchanged. This brings inconvenience to the user in use, resulting in a poor user experience.
The embodiment of the application provides a call volume control method, which enables a user to execute the operation of adjusting call volume on a center side device, can adjust the collaborative call volume on a device side device in collaborative call, and improves the user experience.
The call volume control method in the embodiment of the application can be applied to electronic equipment, and the electronic equipment can be a mobile phone or other electronic equipment with a call function.
The structure of the electronic device in this embodiment may be as shown in fig. 1.
Fig. 1 is a schematic diagram of an exemplary illustrated electronic device 100. It should be understood that the electronic device 100 shown in fig. 1 is only one example of an electronic device, and that the electronic device 100 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. The various components shown in fig. 1 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
Referring to fig. 1, an electronic device 100 may include: processor 110, internal memory 121, universal serial bus (universal serial bus, USB) interface 130, charge management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headset interface 170D, sensor module 180, indicator 192, camera 193, etc.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller may be a neural hub and a command center of the electronic device 100, among others. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be provided in the same device as at least some of the modules of the processor 110.
The Modem processor may include one or more modems (modems), which may include modulators and demodulators. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional module, independent of the processor 110.
The electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a 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 disposed in the processor 110, or a portion of the functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also referred to as a "horn," is used to convert audio electrical signals into sound signals. The electronic device 100 may listen to music, or to hands-free conversations, through the speaker 170A.
A receiver 170B, also referred to as a "earpiece", is used to convert the audio electrical signal into a sound signal. When electronic device 100 is answering a telephone call or voice message, voice may be received by placing receiver 170B in close proximity to the human ear.
Microphone 170C, also referred to as a "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can sound near the microphone 170C through the mouth, inputting a sound signal to the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, and may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may also be provided with three, four, or more microphones 170C to enable collection of sound signals, noise reduction, identification of sound sources, directional recording functions, etc.
The earphone interface 170D is used to connect a wired earphone. The headset interface 170D may be a USB interface 130 or a 3.5mm open mobile electronic device platform (open mobile terminal platform, OMTP) standard interface, a american cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The software system of the electronic device 100 may employ a layered architecture, an event driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the application takes an Android (Android) system with a layered architecture as an example, and illustrates a software structure of the electronic device 100.
Fig. 2 is a software structural block diagram of the electronic device 100 of the exemplary embodiment of the present application.
The layered architecture of the electronic device 100 divides the software into several layers, each with a distinct role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system may include an application layer, an application framework layer, a hardware abstraction layer (i.e., hal layer), a kernel layer, and the like.
The application layer may include a series of application packages.
As shown in fig. 2, the application package may include applications such as cameras, gallery, phone calls, WLAN, music, video, audio recordings, multi-screen collaboration, super phone calls, etc.
The call application is used for realizing the voice call function.
The multi-screen cooperative application and the super call application can realize the cooperative call function. Through a multi-screen collaborative application or a super-talk application, talk voice on electronic device 100 may be played on another electronic device.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions.
As shown in fig. 2, the application framework layer may include a resource manager, a telephony manager, an audio service module (i.e., audioFlinger), a data session module, and the like.
The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like.
The telephony manager is used to provide the communication functions of the electronic device 100. Such as the management of call status (including on, hung-up, etc.).
Wherein the audio service is used to implement a series of functions related to audio. For example, incoming call data for the electronic device 100 is sent to a recording application of the application layer via an audio service.
The data session is used for sending the incoming call data of the electronic device 100 to the device side device of the collaborative call.
As shown in fig. 2, the hardware abstraction layer may include an original hal and a virtual hal. The virtual hal comprises a volume configuration module and a data processing module. The volume configuration module and the data processing module are used for realizing the call volume control method of the embodiment, and through the volume configuration module and the data processing module, call volume control can be carried out on equipment side equipment in a multi-equipment cooperative scene.
As shown in fig. 2, the kernel layer may include Audio Digital Signal Processor (ADSP) display driver, wi-Fi driver, bluetooth driver, audio driver, sensor driver, etc.
It will be appreciated that the layers and components contained in the layers in the software structure shown in fig. 2 do not constitute a specific limitation on the electronic device 100. In other embodiments of the application, electronic device 100 may include more or fewer layers than shown and may include more or fewer components per layer, as the application is not limited.
The present application will be described in detail with reference to examples.
Fig. 3 is a schematic diagram of an exemplary multi-device collaboration scenario. Referring to fig. 3, in this embodiment, a voice call is performed between a user a and a user B through a mobile phone a and a mobile phone B. The mobile phone A and the computer C start multi-screen cooperative application, the mobile phone A transmits call voice sent to the mobile phone A by the mobile phone B to the computer C, and the computer C plays the call voice. In the related art, the volume of the call voice is adjusted by the user a on the mobile phone a, and the volume of the call voice played by the computer C remains unchanged, i.e., the operation of adjusting the volume of the call voice by the user a on the mobile phone a does not work for the computer C.
The call volume control method of the present embodiment will be described by taking the multi-device collaboration scenario shown in fig. 3 as an example.
Fig. 4 is a schematic diagram of a cooperative call downlink path in the present embodiment as exemplarily shown. Referring to fig. 4, in this embodiment, the processing procedure of the mobile phone a for incoming call data (i.e. call data of the downlink of the collaboration call, abbreviated as downlink data) is as follows:
(1) Control flow path
An audio service module in an application program framework layer of the mobile phone A responds to the operation of regulating the call volume of the mobile phone A by a user A to generate a communication volume value;
then, the audio service module sends the generated call volume value to a volume module in the original hal in the hardware abstraction layer of the mobile phone A, and the volume module forwards the call volume value to a volume configuration module in the virtual hal;
the volume configuration module judges whether the current mobile phone A is in a cooperative state, if the current mobile phone A is in a cooperative state, the call volume value is sent to the data processing module in the virtual hal, if the current mobile phone A is in a non-cooperative state, the call volume value is stored in the local volume configuration module, and after the mobile phone A enters the cooperative state, the stored call volume value is sent to the data processing module in the virtual hal.
It should be noted that, the audio service module will send the volume values of various audio to the volume module in the original hal in the hardware abstraction layer, for example, the volume of the multimedia audio, the call volume, and so on. The volume module filters out volume values of other audio than the call volume. That is, the volume module sends a traffic volume value to the volume configuration module.
(2) Data flow path
In the case that the mobile phone a is in a cooperative state, the modem (i.e., modem) demodulates the incoming call electrical signal received by the mobile phone a from the mobile phone B to obtain a demodulated signal of the incoming call electrical signal, which is referred to herein as an incoming call demodulation signal;
the modem sends the demodulated signal of the incoming call signal to a sound receiving module in an Audio Digital Signal Processor (ADSP), and the sound receiving module processes the demodulated signal of the incoming call signal to obtain incoming call audio data, namely downlink path data;
then, the sound receiving module sends the incoming call audio data to a separation module in the audio digital signal processor, the separation module divides one incoming call audio data into two paths, one path of incoming call audio data is sent to a volume control module in the audio digital signal processor, and the other path of incoming call audio data is sent to a data processing module in a virtual hal of a hardware abstraction layer;
then, the data processing module processes the incoming call audio data according to the call volume value sent by the volume configuration module (the processing adjusts the volume of the incoming call audio data) to obtain the incoming call audio data with adjusted volume, and the call volume value of the adjusted incoming call audio data is equal to the call volume value sent by the volume configuration module;
and the data processing module sends the adjusted incoming call audio data to the data receiving module of the computer C, the computer C receives the adjusted incoming call audio data and then carries out a series of processing on the adjusted incoming call audio data to obtain an analog audio electric signal corresponding to the adjusted incoming call audio data, and then sends the analog audio electric signal to an audio player (such as a loudspeaker) of the computer C, and the audio player of the computer C plays sound corresponding to the analog audio electric signal.
It should be noted that, when the mobile phone a is in the cooperative state, the data flow path shown in fig. 4 is established in the mobile phone a, and when the mobile phone a is in the non-cooperative state, the data flow path shown in fig. 4 is not established in the mobile phone a. In the process of switching from the non-cooperative state to the cooperative state, the mobile phone a establishes the data flow path shown in fig. 4.
Referring to fig. 4, the audio digital signal processor of the mobile phone a further includes a volume control module and a speaker connected to the volume control module. When the user adjusts the call volume through the volume button of the mobile phone A or the call volume in the setting application of the mobile phone A, an application program layer of the mobile phone A sends a volume adjusting instruction to a volume control module in the audio digital signal processor. The volume control module can receive a volume adjustment instruction sent by the application program layer, and process the incoming call audio data according to the volume adjustment instruction, so that the volume of the processed incoming call audio data is consistent with the volume indicated by the volume adjustment instruction. And then, the volume control module sends the processed incoming call audio data to a loudspeaker connected with the volume control module, and the loudspeaker plays sounds corresponding to the processed incoming call audio data. Thus, the call volume of the mobile phone A is adjusted.
The volume configuration module may determine whether the current mobile phone a is in a collaborative state according to the following manner:
the volume configuration module inquires the cooperative state identification in the current mobile phone A and determines whether the mobile phone A is in a cooperative state according to the cooperative state identification.
Still taking the mobile phone a in fig. 3 as an example, the call volume control process is described. Fig. 5 is a schematic diagram illustrating a call volume control process in the present embodiment. Referring to fig. 5, in this embodiment, the process of the call volume control method may include the following steps:
s501, a volume button of the mobile phone A responds to the operation of pressing the volume button of the mobile phone A by a user A to generate a volume adjustment instruction.
In this embodiment, the volume adjustment command is a command for adjusting the volume of a call.
S502, the volume button sends a volume adjustment instruction to the audio service module.
The volume adjustment instruction may include volume adjustment amount information. For example, the user presses the "volume+" key three times, and the volume adjustment instruction may include the press number information and key information (i.e., which key, in this example, the "volume+" key).
It should be noted that, in other embodiments, the user may also adjust the call volume by adjusting the call volume of the "setting" application, in which case the "setting" application sends a volume adjustment instruction to the audio service module.
S503, the audio service module receives the volume adjustment instruction, and calculates the communication voice value according to the volume adjustment instruction.
For example, the audio service module may store the current call volume and the volume adjustment amount of one time of pressing in advance, and calculate the total volume adjustment amount of the current adjustment according to the volume adjustment amount of one time of pressing and the number of times of pressing, where the total volume adjustment amount is equal to the product of the volume adjustment amount of one time of pressing and the number of times of pressing. The audio service module then determines whether to increase or decrease the volume based on the key information, such as the "volume+" key in this example, and may determine the volume increase. In this way, the audio service module can calculate a traffic volume value based on the current traffic volume and the total volume adjustment. In this example, the call volume value is equal to the sum of the current call volume and the total volume adjustment.
S504, the audio service module sends the call volume value to the original hal.
Referring to fig. 4, the audio service module sends the call volume value to the volume module in the original hal.
S505, the original hal sends the call volume value to the virtual hal.
In the application, the volume module in the original hal can send the call volume value to the volume configuration module in the virtual hal, and the volume configuration module sends the call volume value to the data processing module in the virtual hal.
S506, the modem sends the electromodulation signal to the audio digital signal processor.
Referring to fig. 4, the modem transmits the electric modulation signal to the sound receiving module in the audio digital signal processor.
S507, the audio digital signal processor processes the incoming call demodulation signal to obtain incoming call audio data.
Referring to fig. 4, a sound receiving module in the audio digital signal processor processes an incoming call demodulation signal to obtain incoming call audio data.
S508, the virtual hal reads incoming audio data from the PCM (Pulse Code Modulation ) interface of the audio digital signal processor.
In an application, the operation of reading incoming audio data from the PCM interface may be performed by a data processing module in the virtual hal.
Referring to fig. 4, incoming call audio data output by the sound receiving module is transmitted to the data processing module in the virtual hal via the separating module.
S509, the virtual hal processes the incoming call audio data according to the communication volume value sent by the original hal to obtain new incoming call audio data, and the audio volume of the new incoming call audio data is equal to the communication volume value sent by the original hal.
In the application, the operation in step S509 may be performed by the data processing module in the virtual hal.
S510, the virtual hal sends the new incoming audio data to a data session module of the application program layer.
Referring to fig. 4, the data processing module in the virtual hal sends the new incoming audio data to the data session module of the application layer.
S511, the data session module sends the new incoming call audio data to the data receiving module of the device side device computer C for the collaborative call.
Thus, the effect that the user adjusts the call volume on the mobile phone A and the adjusting operation takes effect on the equipment side equipment computer C which is in cooperative call with the mobile phone A is realized.
It should be noted that, the flow shown in fig. 5 is a volume control process for the call audio data to be transmitted to the computer C when the mobile phone a is in the cooperative state. If the mobile phone a is in the non-cooperative state, after steps S501 to S504, the mobile phone a stores the call volume value in the volume configuration module of the virtual hal. And waiting until the volume configuration module detects that the mobile phone A enters the cooperative state, and executing step S505 and step S511.
The steps S501 to S511 are the paths between the mobile phone a and the computer C in the collaboration session. In the mobile phone a, the user presses the key to adjust the call volume of the mobile phone a, and the processing procedure of the path in the mobile phone a is shown in steps S501 to S504 and steps S512 to S513.
With continued reference to fig. 5, the processing procedure of the call path in the mobile phone a is as follows:
the foregoing steps S501 to S504 are performed, and then the following steps are performed:
s512, the original hal sends the call volume value to the audio digital signal processor.
In an application, the traffic volume value sent by the audio service module may be received by a volume control module in the audio digital signal processor.
S513, the audio digital signal processor processes the incoming call audio data according to the traffic volume value to obtain new incoming call audio data, and the audio volume of the new incoming call audio data is consistent with the traffic volume value sent by the audio service module.
According to the foregoing embodiment, in the call volume control method of the present embodiment, a path for adjusting the downlink path audio data sent to the device side electronic device is created inside the center side electronic device for collaborative call, and before the center side electronic device sends the downlink path audio data to the device side electronic device, the downlink path audio data is processed according to the call volume adjustment operation of the user on the center side electronic device, so that the volume of the processed downlink path audio data is matched with the call volume adjustment operation of the user, thereby achieving the effect that the user performs the operation of adjusting the call volume on the center side device, and the collaborative call volume on the device side device can be adjusted, and improving the user experience.
The embodiment of the application also provides electronic equipment, which comprises a memory and a processor, wherein the memory is coupled with the processor, the memory stores program instructions, and when the program instructions are executed by the processor, the electronic equipment can control the call volume executed by the electronic equipment.
It will be appreciated that the electronic device, in order to achieve the above-described functions, includes corresponding hardware and/or software modules that perform the respective functions. The present application can be implemented in hardware or a combination of hardware and computer software, in conjunction with the example algorithm steps described in connection with the embodiments disclosed herein. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Those skilled in the art may implement the described functionality using different approaches for each particular application in conjunction with the embodiments, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The present embodiment also provides a computer storage medium having stored therein computer instructions that, when executed on an electronic device, cause the electronic device to execute the above-described related method steps to implement the call volume control method in the above-described embodiments.
The present embodiment also provides a computer program product, which when run on a computer, causes the computer to perform the above-described related steps to implement the call volume control method in the above-described embodiments.
In addition, the embodiment of the application also provides a device, which can be a chip, a component or a module, and can comprise a processor and a memory which are connected; the memory is used for storing computer-executable instructions, and when the device is operated, the processor can execute the computer-executable instructions stored in the memory, so that the chip executes the call volume control method in the above method embodiments.
The electronic device, the computer storage medium, the computer program product, or the chip provided in this embodiment are used to execute the corresponding methods provided above, so that the beneficial effects thereof can be referred to the beneficial effects in the corresponding methods provided above, and will not be described herein.
It will be appreciated by those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional modules is illustrated, and in practical application, the above-described functional allocation may be performed by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to perform all or part of the functions described above.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of modules or units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another apparatus, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and the parts shown as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
Any of the various embodiments of the application, as well as any of the same embodiments, may be freely combined. Any combination of the above is within the scope of the application.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a readable storage medium. Based on such understanding, the technical solution of the embodiments of the present application may be essentially or a part contributing to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions for causing a device (may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.
The steps of a method or algorithm described in connection with the present disclosure may be embodied in hardware, or may be embodied in software instructions executed by a processor. The software instructions may be comprised of corresponding software modules that may be stored in random access Memory (Random Access Memory, RAM), flash Memory, read Only Memory (ROM), erasable programmable Read Only Memory (Erasable Programmable ROM), electrically Erasable Programmable Read Only Memory (EEPROM), registers, hard disk, a removable disk, a compact disc Read Only Memory (CD-ROM), or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC.
Those skilled in the art will appreciate that in one or more of the examples described above, the functions described in the embodiments of the present application may be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, these functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.

Claims (12)

1. The call volume control method is characterized by being applied to first electronic equipment, wherein the first electronic equipment and second electronic equipment are respectively center side equipment and equipment side equipment in cooperative call, the first electronic equipment comprises a volume configuration module and a data processing module, and the method comprises the following steps:
the volume configuration module acquires a communication volume value and sends the communication volume value to the data processing module, wherein the communication volume value is a volume value corresponding to a communication volume adjustment operation executed by a user on the first electronic equipment;
the data processing module acquires first audio data of a downlink channel in the cooperative communication;
the data processing module processes the first audio data according to the call volume value to obtain second audio data, and the audio volume corresponding to the second audio data is equal to the call volume value;
and the data processing module sends the second audio data to the second electronic equipment.
2. The method of claim 1, wherein the volume configuration module obtains a traffic volume value, comprising:
and the volume configuration module receives a first communication voice value issued by the frame layer of the first electronic equipment in real time under the condition that the first electronic equipment is in a cooperative state.
3. The method of claim 1, wherein the volume configuration module obtains a traffic volume value, comprising:
the volume configuration module reads a stored second communication volume value from the local, wherein the second communication volume value is locally stored after receiving a communication volume value issued by a framework layer of the first electronic device under the condition that the first electronic device is in a non-cooperative state.
4. The method of claim 1, wherein the volume configuration module and the data processing module are located at a hardware abstraction layer of the first electronic device.
5. The method of claim 1, wherein the volume configuration module sends the call volume value to a data processing module, comprising:
the volume configuration module judges whether the first electronic equipment is in a cooperative state currently;
and if so, the volume configuration module sends the call volume value to the data processing module.
6. The method of claim 5, wherein the volume configuration module determining whether the first electronic device is currently in a collaborative state comprises:
the volume configuration module inquires a cooperative state identifier in the first electronic device, and determines whether the first electronic device is in a cooperative state according to the cooperative state identifier.
7. The method of claim 1, wherein the volume configuration module obtains a traffic volume value, comprising:
an audio service module in a frame layer of the first electronic device responds to the operation of adjusting the call volume to generate a call volume value;
the audio service module sends the call volume value to an original hardware abstraction layer module in a hardware abstraction layer;
and the original hardware abstraction layer module sends the call volume value to the volume configuration module.
8. The method of claim 1, wherein the data processing module obtaining the first audio data of the downlink path in the collaborative call comprises:
and the data processing module reads the first audio data of the downlink channel in the cooperative communication from the Pulse Code Modulation (PCM) interface of the communication record in the audio digital signal processor of the first electronic device.
9. The method of claim 1, wherein a data processing module sends the second audio data to the second electronic device, comprising:
the data processing module sends the second audio data to a data session module of a frame layer of the first electronic device, so that the data session module forwards the second audio data to the second electronic device.
10. The method of claim 1, wherein the first electronic device is a cell phone and the second electronic device is a tablet or a personal computer.
11. An electronic device, comprising:
a memory and a processor, the memory coupled with the processor;
the memory stores program instructions that, when executed by the processor, cause the electronic device to perform the call volume control method of any one of claims 1-10.
12. A computer readable storage medium comprising a computer program, characterized in that the computer program, when run on an electronic device, causes the electronic device to perform the call volume control method according to any one of claims 1-10.
CN202211207451.3A 2022-09-30 2022-09-30 Call volume control method and electronic equipment Pending CN116743904A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211207451.3A CN116743904A (en) 2022-09-30 2022-09-30 Call volume control method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211207451.3A CN116743904A (en) 2022-09-30 2022-09-30 Call volume control method and electronic equipment

Publications (1)

Publication Number Publication Date
CN116743904A true CN116743904A (en) 2023-09-12

Family

ID=87903197

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211207451.3A Pending CN116743904A (en) 2022-09-30 2022-09-30 Call volume control method and electronic equipment

Country Status (1)

Country Link
CN (1) CN116743904A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101222702A (en) * 2007-01-12 2008-07-16 乐金电子(中国)研究开发中心有限公司 Mobile communication terminal and its sound volume regulating method
CN103841266A (en) * 2014-03-03 2014-06-04 宇龙计算机通信科技(深圳)有限公司 Terminal device, auxiliary device, cooperative communication method and volume adjusting system
CN104867296A (en) * 2014-02-24 2015-08-26 联想(北京)有限公司 Sound volume adjustment method and device
CN106970699A (en) * 2016-01-14 2017-07-21 北京小米移动软件有限公司 Method for controlling volume, system, Wearable and terminal
CN114007125A (en) * 2021-10-15 2022-02-01 杭州逗酷软件科技有限公司 Volume control method, mobile terminal, target device and storage medium
CN114500716A (en) * 2022-01-10 2022-05-13 荣耀终端有限公司 Cooperative call method, apparatus, device, storage medium and program product

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101222702A (en) * 2007-01-12 2008-07-16 乐金电子(中国)研究开发中心有限公司 Mobile communication terminal and its sound volume regulating method
CN104867296A (en) * 2014-02-24 2015-08-26 联想(北京)有限公司 Sound volume adjustment method and device
CN103841266A (en) * 2014-03-03 2014-06-04 宇龙计算机通信科技(深圳)有限公司 Terminal device, auxiliary device, cooperative communication method and volume adjusting system
CN106970699A (en) * 2016-01-14 2017-07-21 北京小米移动软件有限公司 Method for controlling volume, system, Wearable and terminal
CN114007125A (en) * 2021-10-15 2022-02-01 杭州逗酷软件科技有限公司 Volume control method, mobile terminal, target device and storage medium
CN114500716A (en) * 2022-01-10 2022-05-13 荣耀终端有限公司 Cooperative call method, apparatus, device, storage medium and program product

Similar Documents

Publication Publication Date Title
CN110381345B (en) Screen projection display method and electronic equipment
CN112313929B (en) Method for automatically switching Bluetooth audio coding modes and electronic equipment
US11778363B2 (en) Audio data transmission method applied to switching between single-earbud mode and double-earbud mode of TWS headset and device
US11805350B2 (en) Point-to-multipoint data transmission method and device
WO2020133183A1 (en) Audio data synchronization method and device
WO2023015940A1 (en) Mobile terminal that prevents sound leakage and sound output method for mobile terminal
CN114079892A (en) Bluetooth communication method, wearable device and system
WO2022135303A1 (en) Tws earphone connection method and device
CN113039822B (en) Method and equipment for establishing data channel
CN113301544B (en) Method and equipment for voice intercommunication between audio equipment
CN116743905B (en) Call volume control method and electronic equipment
CN115022766B (en) Audio data playing method and equipment
CN116743904A (en) Call volume control method and electronic equipment
CN114371823B (en) Multimedia playing method and device and electronic equipment
CN116743924B (en) Color ringing sound processing method and electronic equipment
CN114125352A (en) Screen sharing method, electronic equipment and system
CN114785886B (en) Communication method using multiple audio devices and electronic device
WO2024021712A9 (en) Audio playback method and electronic device
CN114885440B (en) Method for voice call among multiple audio devices, electronic device and storage medium
CN113453274B (en) Uplink data distribution method and terminal
WO2023160204A1 (en) Audio processing method, and electronic device
CN115086924A (en) Bluetooth communication method, system and electronic equipment
CN114449492A (en) Data transmission method and terminal equipment
CN117998006A (en) Audio and vibration cooperative control method and device
CN115407962A (en) Audio shunting method and electronic equipment

Legal Events

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