WO2023071502A1 - 音量控制方法、装置及电子设备 - Google Patents

音量控制方法、装置及电子设备 Download PDF

Info

Publication number
WO2023071502A1
WO2023071502A1 PCT/CN2022/115932 CN2022115932W WO2023071502A1 WO 2023071502 A1 WO2023071502 A1 WO 2023071502A1 CN 2022115932 W CN2022115932 W CN 2022115932W WO 2023071502 A1 WO2023071502 A1 WO 2023071502A1
Authority
WO
WIPO (PCT)
Prior art keywords
volume
electronic device
user
icon
audio data
Prior art date
Application number
PCT/CN2022/115932
Other languages
English (en)
French (fr)
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 WO2023071502A1 publication Critical patent/WO2023071502A1/zh

Links

Images

Classifications

    • 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
    • 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • 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
    • 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/167Audio in a user interface, e.g. using voice commands for navigating, audio feedback

Definitions

  • the embodiments of the present application relate to the technical field of computers, and in particular, to a volume control method, device, and electronic equipment.
  • users can connect two or more electronic devices to realize the interaction of multimedia data between multiple electronic devices. For example, music is being played on electronic device A (such as a mobile phone), and electronic device A is connected to electronic device B (such as a speaker) to transmit the currently played audio to electronic device B.
  • electronic device A such as a mobile phone
  • electronic device B such as a speaker
  • the audio played by the electronic device B may cause interference due to the excessive volume of the electronic device B, resulting in an unpleasant listening experience.
  • Embodiments of the present application provide a volume control method, device, and electronic equipment, which reduce harsh interference caused by audio streaming, and bring a new experience to audio sharing.
  • an embodiment of the present application provides a volume control method applied to a first electronic device.
  • the method includes: obtaining the first volume of the second electronic device and displaying the first volume, wherein the first electronic device is not currently transmitting audio data to the second electronic device; receiving the first operation input by the user, wherein the first operation is used to set the second volume of the second electronic device; receiving the second operation input by the user, and setting the second volume in response to the second operation
  • the volume and the audio data of the first electronic device are transmitted to the second electronic device, so that the second electronic device plays the audio data with the second volume.
  • the device can play audio data at an appropriate volume, avoiding harsh interference caused by sound flow, and bringing a new experience to audio sharing.
  • transmitting the second volume and the audio data of the first electronic device to the second electronic device further includes: establishing a communication with the second electronic device for transmitting the second volume and Connection of audio data.
  • the second volume of the second electronic device can be set on the first electronic device, and the set second volume can be transmitted to the second electronic device by establishing a connection.
  • the volume control method further includes: in response to the first operation, acquiring the volume record of the second electronic device, wherein the volume record is used to record the previously set volume; second volume; or, set the latest recorded volume in the volume log as the second volume. The frequently set volume or the latest set volume is set as the second volume, so that the set second volume is more in line with the usage habits of the user.
  • the first electronic device includes a sound collection device
  • the volume control method further includes: in response to the first operation, triggering the sound collection device to collect environmental sounds of the surrounding environment of the first electronic device; and setting a second volume according to the environmental sounds.
  • the second volume set according to the ambient sound can be more in line with the user's use environment and improve the user's use experience.
  • the volume control method when the first volumes of the multiple second electronic devices are received, the volume control method further includes: setting the same second volume for the multiple second electronic devices in response to the first operation. Provides global setting capabilities to reduce user setting operations.
  • the second volume and the audio data of the first electronic device are transmitted to the second electronic device, so that the second electronic device plays the audio data at the second volume.
  • the audio data includes: transmitting a third volume to the second electronic device, the third volume being smaller than the second volume; continuously increasing the third volume, and transmitting the adjusted third volume to the The second electronic device, until the adjusted third volume reaches the second volume or reaches a first preset condition, wherein the first preset condition is the The volume of the audio played by the second electronic device meets the actual volume determined by the first electronic device to reach the second volume.
  • the first electronic device continuously transmits the volume to the second electronic device, so that the second electronic device can continuously set its volume, and use the set volume to play audio.
  • the volume control method before establishing the connection with the second electronic device for transmitting the second volume and audio data, the volume control method further includes: detecting that the volume of the second electronic device is higher than the warning value, prompting the user to modify The volume of the second electronic device. It can effectively prevent users from playing audio at a higher volume and avoid interference caused by excessive volume.
  • acquiring the first volume of the second electronic device and displaying the first volume includes: receiving the first volume broadcast by the second electronic device and the device identification; and displaying the corresponding display identification according to the device identification, wherein the display identification and The device identification is related; the first volume is displayed according to the display mode corresponding to the first volume, wherein the display mode is related to the volume of the first volume.
  • the volume control method further includes: for each second electronic device, displaying the display identifier of the second electronic device in association with the first volume. Displaying the display identifier belonging to the same second electronic device adjacent to the first volume can facilitate the user to know the actual volume of the second electronic device corresponding to the display identifier.
  • the volume control method further includes: displaying the second volume and prompting the user that the second volume has not yet taken effect.
  • the first volume is displayed in a first display manner
  • the second volume is displayed in a second display manner different from the first display manner.
  • the first volume and the second volume are displayed differently, which is convenient for the user to judge.
  • the volume control method further includes: for each second electronic device, separately displaying the first volume and the second volume corresponding to the second electronic device. To prevent the second volume from covering the first volume, the user cannot know the actual volume of the second electronic device.
  • transmitting the second volume and the audio data of the first electronic device to the second electronic device comprises: Audio data is transmitted to the second electronic device. That is, the first electronic device can transmit the second volume and audio data to the second electronic device based on the same communication channel.
  • an embodiment of the present application provides a volume control device, which is applied to a first electronic device, and the device includes: a first acquiring unit, configured to acquire a first volume of a second electronic device and display the first volume, wherein, The first electronic device currently does not transmit audio data to the second electronic device; the first receiving unit is configured to receive a first operation input by the user, wherein the first operation is used to set the second volume of the second electronic device; the transmitting unit, A second operation for receiving user input, in response to the second operation, transmitting the second volume and the audio data of the first electronic device to the second electronic device, so that the second electronic device plays the audio data with the second volume.
  • transmitting the second volume and the audio data of the first electronic device to the second electronic device further includes: establishing a communication with the second electronic device for transmitting the second volume and Connection of audio data.
  • the first receiving unit further includes: in response to the first operation, acquiring the volume record of the second electronic device, wherein the volume record is used to record the volume previously set; to the second volume; or, set the latest recorded volume in the volume log as the second volume.
  • the first electronic device includes a sound collecting device
  • the first receiving unit further includes: in response to the first operation, triggering the sound collecting device to collect the environmental sound of the surrounding environment of the first electronic device; setting the second volume according to the environmental sound .
  • the first receiving unit when receiving the first volume of the multiple second electronic devices, further includes: setting the same second volume for the multiple second electronic devices in response to the first operation.
  • the volume control apparatus further includes: transmitting the second volume and the audio data of the first electronic device to the second electronic device, so that the second electronic device uses the Playing the audio data at a second volume includes: transmitting a third volume to the second electronic device, the third volume being smaller than the second volume; continuously increasing the third volume, and adjusting the adjusted first volume The third volume is transmitted to the second electronic device until the adjusted third volume reaches the second volume or reaches a first preset condition, wherein the first preset condition is that the first electronic device The volume of the audio played by the second electronic device collected by the device meets the actual volume determined by the first electronic device to reach the second volume.
  • the device before establishing the connection with the second electronic device for transmitting the second volume and audio data, the device further includes: a prompt unit, configured to detect that the volume of the second electronic device is higher than a warning value, The user is prompted to modify the volume of the second electronic device.
  • the first receiving unit includes: receiving the first volume broadcast by the second electronic device and the device ID; displaying the corresponding display ID according to the device ID, wherein the display ID is related to the device ID; displaying the corresponding display ID according to the first volume
  • the mode displays the first volume, wherein the display mode is related to the volume of the first volume.
  • the volume control apparatus further includes: for each second electronic device, displaying the display identifier of the second electronic device in association with the first volume.
  • the volume control device further includes: displaying the second volume and prompting the user that the second volume has not yet taken effect.
  • the first volume is displayed in a first display manner
  • the second volume is displayed in a second display manner different from the first display manner
  • the volume control apparatus further includes: for each second electronic device, separately displaying the first volume and the second volume corresponding to the second electronic device.
  • transmitting the second volume and the audio data of the first electronic device to the second electronic device comprises: Audio data is transmitted to the second electronic device. That is, the first electronic device can transmit the second volume and audio data to the second electronic device based on the same communication channel.
  • an embodiment of the present application provides an electronic device, including: a memory for storing a computer program; a processor for executing the computer program stored in the memory, and when the computer program is executed, the processor is used for executing any of the above One volume control method.
  • the embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium includes computer instructions, and when the computer instructions are run on the electronic device, the electronic device is made to perform any one of the above methods.
  • the embodiment of the present application provides a computer program product, the computer program product includes computer program code, when the computer program code is executed by a computer, the computer program code can cause the computer to execute any one of the above volume control methods.
  • FIG. 1 is a schematic diagram of an application scenario provided by an embodiment of the present application.
  • FIG. 2 is a schematic diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 3(a)-FIG. 3(o) are schematic diagrams of a hyper terminal scenario provided by an embodiment of the present application.
  • FIG. 4 is a schematic flowchart of a volume control method provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a hyper terminal interface provided by an embodiment of the present application.
  • FIG. 6( a )- FIG. 6( b ) are schematic diagrams of a first volume setting provided by an embodiment of the present application.
  • FIG. 7(a)-7(d) are schematic diagrams of another first volume setting provided by the embodiment of the present application.
  • FIG. 8( a )- FIG. 8( c ) are schematic diagrams of another first volume setting provided by the embodiment of the present application.
  • FIG. 9( a )- FIG. 9( c ) are schematic diagrams of another first volume setting provided by the embodiment of the present application.
  • Fig. 10(a) - Fig. 10(c) are schematic diagrams of another first volume setting provided by the embodiment of the present application.
  • Fig. 11(a) - Fig. 11(d) are schematic diagrams of another first volume setting provided by the embodiment of the present application.
  • Fig. 12(a) - Fig. 12(c) are schematic diagrams of another first volume setting provided by the embodiment of the present application.
  • FIG. 13 is a schematic diagram of a second volume interface provided by an embodiment of the present application.
  • FIG. 14(a)-FIG. 14(b) are schematic diagrams of connection establishment provided by the embodiment of the present application.
  • FIG. 15( a )- FIG. 15( d ) are schematic diagrams of another connection establishment provided by the embodiment of the present application.
  • FIG. 16(a)-FIG. 16(b) are schematic diagrams of the second volume setting scenario provided by the embodiment of the present application.
  • FIG. 17 is a schematic diagram of a second volume confirmation scenario provided by an embodiment of the present application.
  • FIG. 18 is a schematic diagram of an audio data transmission scenario provided by an embodiment of the present application.
  • Fig. 19(a) - Fig. 19(c) are schematic diagrams of another audio data transmission scenario provided by the embodiment of the present application.
  • FIG. 20 is a schematic structural diagram of a volume control device provided by an embodiment of the present application.
  • a plurality referred to in this application refers to two or more than two.
  • words such as “first” and “second” are only used for the purpose of distinguishing descriptions, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or imply order.
  • a volume control method provided by an embodiment of the present application may be applied to the device group 200 shown in FIG. 1 , where the device group 200 includes two or more electronic devices 100 .
  • Each electronic device 100 in the device group 200 can communicate with each other.
  • the electronic devices 100 in the device group 200 communicate with each other by accessing the same network 300, where the network 300 may include a wide area network, a metropolitan area network, or a local area network.
  • the user may input the same user account on multiple electronic devices 100, so that the multiple electronic devices 100 use the same user account to log in to the application server.
  • the plurality of electronic devices 100 form a device group 200, and each electronic device 100 in the device group 200 can communicate with each other through the application server.
  • the electronic devices 100 may also form the device group 200 through a short-distance communication connection such as a Wi-Fi connection or a Bluetooth connection.
  • a short-distance communication connection such as a Wi-Fi connection or a Bluetooth connection.
  • the user can join the multiple electronic devices into a Wi-Fi network named "HUAWEI".
  • Each electronic device 100 in the Wi-Fi network forms a local area network, and all electronic devices 100 in the local area network form a device group 200 .
  • each electronic device 100 in the device group 200 may also access the same Bluetooth beacon through the Bluetooth protocol.
  • all electronic devices 100 in the device group 200 are equipped with the Hongmeng operating system, are connected to the same local area network, and log in to the same user account.
  • the multiple electronic devices 100 can be connected through the distributed soft bus, and communicate with each other through the distributed soft bus, so as to form a hyperterminal scenario where the multiple electronic devices 100 cooperate with each other.
  • the electronic device 100 can switch one or more pieces of multimedia data to other electronic devices 100 in the device group 200 to play or display.
  • the multimedia data may include one or any combination of the following: text data, image data, animation data, audio data or video data.
  • the multimedia data may be data generated when the electronic device runs an application program, such as display data, audio data, and the like.
  • the electronic device 100 provided in the embodiment of the present application may also be called a user equipment (User Equipment, UE), a mobile station (Mobile Station, MS), a mobile terminal (Mobile Terminal), and the like.
  • the electronic device 100 may have a radio access network (Radio Access Nework, RAN) capability to communicate with one or more core networks, for example, the electronic device 100 may be a mobile phone, a tablet computer, a desktop computer, a laptop laptops, handheld computers, laptops, ultra-mobile personal computers (UMPCs), netbooks, and cellular phones, personal digital assistants (PDAs), augmented reality (augmented reality, AR) devices, Virtual reality (virtual reality, VR) equipment, artificial intelligence (artificial intelligence, AI) equipment, wearable equipment, vehicle-mounted equipment, smart home equipment and/or smart city equipment, the specific type of the electronic equipment 100 in the embodiment of the present application No special restrictions are made.
  • PDAs personal digital assistants
  • augmented reality augmented reality, AR
  • VR Virtual reality
  • AI artificial intelligence
  • FIG. 2 is a schematic diagram of an electronic device provided in an embodiment of the present application.
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, and an 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 identification module (subscriber identification module, SIM) card interface 195 and the like.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100 .
  • the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components.
  • the illustrated components can be realized in hardware, software or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processing unit
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller video codec
  • digital signal processor digital signal processor
  • baseband processor baseband processor
  • neural network processor neural-network processing unit
  • the 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 called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system.
  • processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transmitter (universal asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input and output (general-purpose input/output, GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and /or universal serial bus (universal serial bus, USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input and output
  • subscriber identity module subscriber identity module
  • SIM subscriber identity module
  • USB universal serial bus
  • the I2C interface is a bidirectional synchronous serial bus, including a serial data line (serial data line, SDA) and a serial clock line (derail clock line, SCL).
  • processor 110 may include multiple sets of I2C buses.
  • the processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flashlight, the camera 193 and the like through different I2C bus interfaces.
  • the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to realize the touch function of the electronic device 100 .
  • the I2S interface can be used for audio communication.
  • processor 110 may include multiple sets of I2S buses.
  • the processor 110 may be coupled to the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 .
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface, so as to realize the function of answering calls through the Bluetooth headset.
  • the PCM interface can also be used for audio communication, sampling, quantizing and encoding the analog signal.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • a UART interface is generally used to connect the processor 110 and the wireless communication module 160 .
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to realize the Bluetooth function.
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 .
  • MIPI interface includes camera serial interface (camera serial interface, CSI), display serial interface (display serial interface, DSI), etc.
  • the processor 110 communicates with the camera 193 through the CSI interface to realize the shooting function of the electronic device 100 .
  • the processor 110 communicates with the display screen 194 through the DSI interface to realize the display function of the electronic device 100 .
  • the GPIO interface can be configured by software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface can be used to connect the processor 110 with the camera 193 , the display screen 194 , the wireless communication module 160 , the audio module 170 , the sensor module 180 and so on.
  • the GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 is an interface conforming to the USB standard specification, specifically, it can be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100 , and can also be used to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect headphones and play audio through them. This interface can also be used to connect other electronic devices, such as AR devices.
  • the interface connection relationship between the modules shown in the embodiment of the present application is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 .
  • the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
  • the 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 a wireless charging input through a wireless charging coil of the electronic device 100 . While the charging management module 140 is charging the battery 142 , it can also provide power for electronic devices 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 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 electronic device 100 can be realized by the antenna 1 , the antenna 2 , the mobile communication module 150 , the wireless communication module 160 , a modem processor, a baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 may be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
  • Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on the electronic device 100 .
  • the mobile communication module 150 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 through the antenna 1 for radiation.
  • 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.
  • a modem processor may include a modulator and a demodulator.
  • the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor.
  • the application processor outputs sound signals through audio equipment (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194 .
  • the modem processor may be a stand-alone device. In some other embodiments, the modem processor may be independent from the processor 110, and be set in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wireless Fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite, etc. applied on the electronic device 100.
  • System global navigation satellite system, GNSS
  • frequency modulation frequency modulation, FM
  • near field communication technology near field communication, NFC
  • infrared technology infrared, IR
  • 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 transmits the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be transmitted from the processor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
  • the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC , FM, and/or IR techniques, etc.
  • GSM global system for mobile communications
  • GPRS general packet radio service
  • code division multiple access code division multiple access
  • CDMA broadband Code division multiple access
  • WCDMA wideband code division multiple access
  • time division code division multiple access time-division code division multiple access
  • TD-SCDMA time-division code division multiple access
  • the GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a Beidou navigation satellite system (beidou navigation satellite system, BDS), a quasi-zenith satellite system (quasi -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • Beidou navigation satellite system beidou navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • the electronic device 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 display screen 194 is used to display images, videos and the like.
  • the display screen 194 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc.
  • the electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.
  • the electronic device 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 ISP is used for processing the data fed back by the camera 193 .
  • the light is transmitted to the photosensitive element of the camera through the lens, and the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
  • ISP can also perform algorithm optimization on image noise, brightness, and skin color.
  • ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be located in the camera 193.
  • Camera 193 is used to capture still images or video.
  • the object generates an optical image through the lens and projects it to the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other image signals.
  • the electronic device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
  • Video codecs are used to compress or decompress digital video.
  • the electronic device 100 may support one or more video codecs.
  • the electronic device 100 can play or record videos in various encoding formats, for example: moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
  • MPEG moving picture experts group
  • the NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • Applications such as intelligent cognition of the electronic device 100 can be realized through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
  • the internal memory 121 may include one or more random access memories (random access memory, RAM) and one or more non-volatile memories (non-volatile memory, NVM).
  • RAM random access memory
  • NVM non-volatile memory
  • Random access memory can include static random-access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (synchronous dynamic random access memory, SDRAM), double data rate synchronous Dynamic random access memory (double data rate synchronous dynamic random access memory, DDR SDRAM, such as the fifth generation DDR SDRAM is generally called DDR5 SDRAM), etc.;
  • Non-volatile memory may include magnetic disk storage devices, flash memory (flash memory).
  • flash memory can include NOR FLASH, NAND FLASH, 3D NAND FLASH, etc.
  • it can include single-level storage cells (single-level cell, SLC), multi-level storage cells (multi-level cell, MLC), triple-level cell (TLC), quad-level cell (QLC), etc.
  • SLC single-level storage cells
  • MLC multi-level storage cells
  • TLC triple-level cell
  • QLC quad-level cell
  • UFS universal flash storage
  • embedded multimedia memory card embedded multi media Card
  • the random access memory can be directly read and written by the processor 110, and can be used to store executable programs (such as machine instructions) of an operating system or other running programs, and can also be used to store data of users and application programs.
  • the non-volatile memory can also store executable programs and data of users and application programs, etc., and can be loaded into the random access memory in advance for the processor 110 to directly read and write.
  • the external memory interface 120 can be used to connect an external non-volatile memory, so as to expand the storage capacity of the electronic device 100 .
  • the external non-volatile memory communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and video are stored in an external non-volatile memory.
  • the electronic device 100 can implement audio functions through the audio module 170 , the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal.
  • the audio module 170 may also be used to encode and decode audio signals.
  • the audio module 170 may be set in the processor 110 , or some functional modules of the audio module 170 may be set in the processor 110 .
  • Speaker 170A also referred to as a "horn" is used to convert audio electrical signals into sound signals.
  • Electronic device 100 can listen to music through speaker 170A, or listen to hands-free calls.
  • Receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
  • the receiver 170B can be placed close to the human ear to receive the voice.
  • the microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can put his mouth close to the microphone 170C to make a sound, and input the sound signal to the microphone 170C.
  • the electronic device 100 may be provided with at least one microphone 170C. In some other embodiments, the electronic device 100 may be provided with two microphones 170C, which may also implement a noise reduction function in addition to collecting sound signals. In some other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions, etc.
  • the earphone interface 170D is used for connecting wired earphones.
  • the earphone interface 170D can be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA
  • the pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal.
  • pressure sensor 180A may be disposed on display screen 194 .
  • pressure sensors 180A such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors.
  • a capacitive pressure sensor may be comprised of at least two parallel plates with conductive material.
  • the electronic device 100 determines the intensity of pressure according to the change in capacitance.
  • the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
  • touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view short messages is executed. When a touch operation whose intensity is greater than or equal to the first pressure threshold acts on the icon of the short message application, the instruction of creating a new short message is executed.
  • the gyro sensor 180B can be used to determine the motion posture of the electronic device 100 .
  • the angular velocity of the electronic device 100 around three axes may be determined by the gyro sensor 180B.
  • the gyro sensor 180B can be used for image stabilization. For example, when the shutter is pressed, the gyro sensor 180B detects the shake angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shake of the electronic device 100 through reverse movement to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
  • the air pressure sensor 180C is used to measure air pressure.
  • the electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the electronic device 100 may use the magnetic sensor 180D to detect the opening and closing of the flip leather case.
  • the electronic device 100 when the electronic device 100 is a clamshell machine, the electronic device 100 can detect opening and closing of the clamshell according to the magnetic sensor 180D.
  • features such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
  • the distance sensor 180F is used to measure the distance.
  • the electronic device 100 may measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may use the distance sensor 180F for distance measurement to achieve fast focusing.
  • Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes.
  • the light emitting diodes may be infrared light emitting diodes.
  • the electronic device 100 emits infrared light through the light emitting diode.
  • Electronic device 100 uses photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it may be determined that there is an object near the electronic device 100 . When insufficient reflected light is detected, the electronic device 100 may determine that there is no object near the electronic device 100 .
  • the electronic device 100 can use the proximity light sensor 180G to detect that the user is holding the electronic device 100 close to the ear to make a call, so as to automatically turn off the screen to save power.
  • the proximity light sensor 180G can also be used in leather case mode, automatic unlock and lock screen in pocket mode.
  • the ambient light sensor 180L is used for sensing ambient light brightness.
  • the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket, so as to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access to application locks, take pictures with fingerprints, answer incoming calls with fingerprints, and the like.
  • the temperature sensor 180J is used to detect temperature.
  • the electronic device 100 uses the temperature detected by the temperature sensor 180J to implement a temperature treatment strategy. For example, when the temperature reported by the temperature sensor 180J exceeds the threshold, the electronic device 100 may reduce the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection.
  • the electronic device 100 when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to prevent the electronic device 100 from being shut down abnormally due to the low temperature.
  • the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • the touch sensor 180K is also called “touch device”.
  • the touch sensor 180K can be disposed on the display screen 194 , and the touch screen includes the touch sensor 180K and the display screen 194 , also called “touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to the touch operation can be provided through the display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the position of the display screen 194 .
  • the bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice. The bone conduction sensor 180M can also contact the human pulse and receive the blood pressure beating signal. In some embodiments, the bone conduction sensor 180M can also be disposed in the earphone, combined into a bone conduction earphone.
  • the audio module 170 can analyze the voice signal based on the vibration signal of the vibrating bone mass of the vocal part acquired by the bone conduction sensor 180M, so as to realize the voice function.
  • the application processor can analyze the heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 180M, so as to realize the heart rate detection function.
  • the keys 190 include a power key, a volume key and the like.
  • the key 190 may be a mechanical key. It can also be a touch button.
  • the electronic device 100 can receive key input and generate key signal input related to user settings and function control of the electronic device 100 .
  • the motor 191 can generate a vibrating reminder.
  • the motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback.
  • touch operations applied to different applications may correspond to different vibration feedback effects.
  • the motor 191 may also correspond to different vibration feedback effects for touch operations acting on different areas of the display screen 194 .
  • Different application scenarios for example: time reminder, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
  • the SIM card interface 195 is used for connecting a SIM card.
  • the SIM card can be connected and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 .
  • the electronic device 100 may support 1 or N SIM card interfaces, where N is a positive 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 the 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 electronic device 100 interacts with the network through the SIM card to implement functions such as calling and data communication.
  • the electronic device 100 adopts an eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100 .
  • a control may be pre-set in the electronic device 100 , and the control may be used to switch one or more items of multimedia data in the electronic device 100 to be played on other electronic devices 100 in the device group 200 .
  • the functions of the above controls can be realized as the HyperTerminal function of the Hongmeng OS, and this control is the HyperTerminal control.
  • Discovery devices can automatically discover nearby discovered devices that log in to the same Huawei account, and form a super terminal to create a full-scenario collaborative experience. The following will introduce in detail.
  • volume control method provided by the embodiment of the present application is applied to a hyper terminal scenario.
  • the smart screen needs to be connected to the same local area network as the mobile phone, and log in with the same Huawei account as the mobile phone.
  • the speaker must meet the following requirements: access the same LAN as the mobile phone, and be bound to the same Huawei account as the mobile phone.
  • the user pulls down from the top of the display screen along the direction of the arrow, and the mobile phone detects the user's pull-down operation.
  • the mobile phone displays the control center interface 30 in response to the pull-down operation.
  • the mobile phone displays an edit box 302 , and an option 303 of "Show HyperTerminal" is displayed on the edit box 302 .
  • the mobile phone responds to the user clicking on the "Show HyperTerminal” option 303, and a HyperTerminal card 304 is presented on the mobile phone.
  • the hyperterminal card 304 is used to display electronic devices that can be found near the mobile phone.
  • a prompt may be displayed on the hyperterminal card 304 . If the mobile phone has not logged into the Huawei account, as shown in Figure 3(e), the hyperterminal card 304 prompts "Click to log in to the Huawei account, search for my nearby devices, and establish collaboration with it". If the mobile phone has not turned on the bluetooth, as shown in Figure 3 (f), the hyperterminal card 304 prompts "click to turn on the bluetooth, search for my nearby devices, and establish collaboration with it”.
  • the mobile phone satisfies the condition of being a discovery device, and the user clicks the search icon 305 on the hyperterminal card 304 .
  • the mobile phone responds to the user clicking the search icon 305, the mobile phone can search for nearby discovered devices (Huawei tablet, Huawei computer, smart screen, speaker and earphone, etc.), and display "Searching for nearby my devices" on the hyperterminal card 304.
  • the corresponding display logos of Huawei tablets, Huawei computers, smart screens, speakers, and earphones found nearby are displayed on the hyperterminal card 304, that is, Huawei tablets, Huawei computers, smart screens, speakers, and The device icons corresponding to the earphones (such as tablet icon 308, computer icon 309, smart screen icon 310, speaker icon 311, and earphone icon 312).
  • the display logos of electronic devices such as Huawei tablets, Huawei computers, smart screens, speakers, and headphones are different, that is, the device icons corresponding to electronic devices such as Huawei tablets, Huawei computers, smart screens, speakers, and headphones are all different.
  • the user wants to transmit the audio data on the mobile phone to the Huawei computer for playback, as shown in FIG.
  • the mobile phone establishes a connection with the Huawei computer in response to the user clicking the computer icon 309 .
  • the mobile phone shows that the mobile phone is connected to the Huawei computer and can work together.
  • the user can click the button 306 on the upper right corner of the hyperterminal card 304 .
  • the mobile phone displays a hyper terminal interface 307 on the mobile phone in response to the user clicking the button 306 .
  • the super terminal interface 307 displays the corresponding display logos of Huawei tablets, Huawei computers, smart screens, speakers and earphones found nearby, that is, presents the device icons corresponding to Huawei tablets, Huawei computers, smart screens, speakers and earphones (tablet icon 308, Computer icon 309, smart screen icon 310, speaker icon 311 and earphone icon 312), also display the device icon (mobile phone icon 313) corresponding to the mobile phone, and the mobile phone icon 313 is located at the center of the super terminal interface 307. As shown in Figure 3(m). The user pulls the device icon (computer icon 309 ) corresponding to the Huawei computer close to the mobile phone icon 313 .
  • the mobile phone responds to the user pulling the computer icon 309 close to the mobile phone icon 313, and the computer icon 309 and the mobile phone icon 313 displayed on the mobile phone are highlighted, indicating that the mobile phone has established a connection with the Huawei computer. Can work together.
  • the mobile phone transmits audio data (such as music being played) to the Huawei computer.
  • the Huawei computer plays the music and displays the interface of the music (that is, the interface of the mobile phone playing the music). That is to say, the mobile phone switches the music being played on it to the Huawei computer, and the Huawei computer plays the music.
  • the volume progress bar 314 on the Huawei computer shows that the current volume of the Huawei computer is 100%.
  • the current volume of the Huawei computer is 100%, and the user does not know that the current volume of the Huawei computer is 100%. If the user transmits the audio on the mobile phone to the Huawei computer, the Huawei computer will play the audio at 100% volume. If the user is currently in a relatively quiet environment, this will cause harsh interference and cause an unpleasant listening experience.
  • the embodiment of the present application provides a volume control method.
  • the electronic device A prompts the current volume of the electronic device B. , which is the first volume.
  • the user can set a second volume according to the prompt.
  • a connection is established between the electronic device A and the electronic device B, and the second volume is transmitted to the electronic device B, so that the electronic device B sets its volume to the second volume.
  • the electronic device A transmits the audio data to the electronic device B, and the electronic device B can play the audio data according to the second volume.
  • Electronic device A provides the ability to modify the volume of electronic device B, which is convenient for users to control the volume of audio played by electronic device B according to their own needs, so as to avoid problems caused by the excessive volume of electronic device B when audio data is transmitted to electronic device B for playback. Interference, bringing a new experience to audio sharing.
  • FIG. 4 is a volume control method provided by an embodiment of the present application.
  • Step S41 the second electronic device transmits the first volume to the first electronic device.
  • the second electronic device acquires its own volume, that is, the first volume. Before the first electronic device establishes a connection with the second electronic device, or before the first electronic device transmits audio data to the second electronic device, the second electronic device transmits the first volume to the first electronic device, such as the second electronic device transmits the first volume to the first electronic device. The first electronic device broadcasts its first volume.
  • the volume in this embodiment of the present application may be a system volume (master volume), and the system volume may be understood as the volume that affects all sounds of the electronic device.
  • the system volume can be written to the sound card, controlling the volume of all sounds of the electronic device. It is also possible not to write to the sound card, but as a multiplier factor to affect the volume of all sounds of electronic equipment.
  • setting the system volume means setting all the application volume (AudioTrack volume) and stream volume (stream volume). Among them, when an application sets the AudioTrack volume, it only affects the volume of the application.
  • the stream volume is the volume of an audio stream, that is, when a stream volume is set for an audio stream, it only affects the volume of the audio stream.
  • the volume may be a stream volume, where the audio stream volume includes but not limited to multimedia (media) volume, call (call) volume, notification (notification) volume and warning (alarm) volume.
  • the volume of the playing video may belong to the multimedia volume;
  • the volume of WeChat messages may belong to the notification volume;
  • the volume of the alarm ringing may belong to the warning volume.
  • the audio equipment corresponding to the volume includes but not limited to a sound card (Sound Card), a speaker (speaker), a headset (headset), a Bluetooth device, and the like.
  • the volume may be represented by volume ratio (percentage).
  • the percentage represents a proportional relationship between the playback volume corresponding to the volume and the maximum playback volume of the electronic device. Wherein, the larger the percentage corresponding to the volume, the larger the playback volume corresponding to the volume, and the smaller the percentage corresponding to the volume, the lower the playback volume corresponding to the volume. For example, a playback volume of 50% volume is half of the maximum playback volume of the electronic device.
  • the volume can be represented by a specific numerical value.
  • the specific numerical value represents the relative relationship between the playback volume corresponding to the volume and the maximum playback volume of the electronic device. Wherein, the larger the numerical value corresponding to the volume, the greater the playing volume corresponding to the volume, and the smaller the numerical value corresponding to the volume, the lower the playing volume corresponding to the volume.
  • the playback volume corresponding to the volume value of 200 is the maximum playback volume
  • the playback volume corresponding to the volume value of 50 is 25% of the maximum playback volume.
  • volume may be expressed in decibels (dB). For example, the volume is 30dB.
  • the volume is set to 0-N levels, and the volume can be represented by levels. Wherein, when the value of the volume is 0, it represents a mute state, and a higher volume level represents a higher volume. It should be noted that the value of N and the division of the volume can be set by the user according to the needs.
  • the volume is divided into six levels, which are 0-mute, 1 (mute - 20% of the maximum playback volume), level 2 (21% of the maximum playback volume - 40% of the maximum playback volume), level 3 (41% of the maximum playback volume - 60% of the maximum playback volume), Level 4 (61% of maximum playback volume - 80% of maximum playback volume), level 5 (81% of maximum playback volume - maximum playback volume).
  • levels which are 0-mute, 1 (mute - 20% of the maximum playback volume), level 2 (21% of the maximum playback volume - 40% of the maximum playback volume), level 3 (41% of the maximum playback volume - 60% of the maximum playback volume), Level 4 (61% of maximum playback volume - 80% of maximum playback volume), level 5 (81% of maximum playback volume - maximum playback volume).
  • the above-mentioned volume can be converted between various representations.
  • the conversion relationship between the volume percentage and decibels is as follows in Table 2:
  • the second electronic device can obtain its current volume, that is, the first volume, through the function getMasterVolume, and then add information about the first volume in the custom extension field of the communication protocol, and broadcast it to the outside.
  • the communication protocol includes but not limited to the Bluetooth Low Energy (Bluetooth Low Energy, BLE) protocol and the restricted application protocol (Constrained Application Protocol, CoAP).
  • the second electronic device while the second electronic device broadcasts its corresponding first volume to the outside, it may also broadcast its corresponding device identification to the outside.
  • the first electronic device can know the device identifier and the first volume corresponding to the second electronic device.
  • the device identifier is used to uniquely identify the second electronic device, that is, the device identifier of each second electronic device is unique, and the device identifiers of each second electronic device are different.
  • the device identifier may be an Internet Protocol Address (Internet Protocol Address, IP address) or a device number.
  • each second electronic device can obtain its corresponding first volume.
  • Any second electronic device may broadcast its corresponding first volume and device identification to the first electronic device in a broadcast manner.
  • its device identifier is associated with its first volume.
  • the first electronic device receives broadcasts from multiple second electronic devices, it may obtain the device identification of each second electronic device and the first volume associated with the device identification.
  • volume is the system volume, and the volume is expressed as a percentage for illustration.
  • Step S42 the first electronic device obtains the first volume of the second electronic device, and displays the first volume.
  • the first electronic device receives the first volume broadcast by the second electronic device, and displays the first volume.
  • the first electronic device has a display function, for example, the first electronic device has a display screen, and the first electronic device displays received broadcast information (such as first volume, device identification) through the display screen. Or, the first electronic device transmits the received broadcast information (such as the first volume, device identification) to other peripheral devices with display screens, and displays the information through the display screens of the peripheral devices.
  • the first electronic device notifies the user that the currently displayed first volume is the current volume of the second electronic device by displaying the first volume.
  • the first electronic device notifies the user of the current volume of each second electronic device by displaying the first volumes of the multiple second electronic devices.
  • the acquisition of the first volume of the second electronic device by the first electronic device may mean that the first electronic device may actively request the first volume of the second electronic device from the second electronic device, and the second electronic device responds to the request Sending the first volume of the second electronic device to the first electronic device may also be that the first electronic device receives the first volume broadcast by the second electronic device, which is not specifically limited in this application.
  • the first electronic device when the first electronic device acquires the first volume of the second electronic device, it has not yet transmitted audio data to the second electronic device. In other words, before the first electronic device transmits audio data, the first electronic device acquires the first volume of the second electronic device. In other words, the first electronic device has transmitted audio data to the second electronic device before, but now the first electronic device does not transmit audio data to the second electronic device, and the first electronic device obtains the first volume of the second electronic device.
  • the first electronic device when the first electronic device displays the first volume of the second electronic device, it may also display the display identifier of the second electronic device at the same time.
  • the displayed identification is used to distinguish each second electronic device, so that the user can determine the second electronic device corresponding to the displayed identification through the displayed identification.
  • the display identifier is related to the device identifier. Different second electronic devices have different corresponding device identifiers. Correspondingly, the corresponding display identifiers may also be different. By displaying the logo, the user can know which electronic device the second electronic device is currently, or know the electronic device corresponding to the first volume.
  • the first electronic device may determine the device type of the second electronic device according to the device identifier of the second electronic device, and then display a corresponding display identifier according to the corresponding device type. For example, if the device type of the electronic device is a mobile phone, its corresponding display identifier is a mobile phone identifier. If the device type of the electronic device is a computer, its corresponding display identifier is a computer identifier. If the device type of the electronic device is an earphone, its corresponding display identifier is an earphone identifier. If the device type of the electronic device is a smart screen, its corresponding display identifier is a smart screen identifier. If the device type of the electronic device is a speaker, its corresponding display identifier is a speaker identifier. If the device type of the electronic device is a tablet, its corresponding display identifier is a tablet identifier.
  • the display identification can be implemented as a device icon.
  • the mobile phone logo is realized as a mobile phone icon
  • the computer logo is realized as a computer icon
  • the smart screen logo is realized as a smart screen icon
  • the earphone logo is realized as a headset icon
  • the speaker logo is realized as a speaker icon
  • the tablet logo is realized as a tablet icon.
  • the display logo can also be realized as a text logo, such as: notebook (MateBook), speaker (Sound X), earphone (HUAWEI FreeBuds), Huawei tablet (MatePad Pro) and smart screen, etc.
  • the display mark can be implemented as a text mark and a corresponding device icon.
  • the electronic device is a notebook
  • its corresponding display mark can include a notebook icon and a corresponding word mark "MateBook”.
  • the display logo can also be implemented as one or more of symbols, characters, and controls, and the present application does not specifically limit the specific form of the display logo.
  • corresponding display modes may be pre-set for volumes of different volume levels.
  • the first electronic device may respectively display multiple volumes with different volumes in different display manners. When the first electronic device displays the first volume, it may determine a display manner corresponding to the first volume according to the first volume, and then display the first volume according to the corresponding display manner.
  • the first electronic device displays a plurality of first volumes with different volumes in different display modes, and distinguishes the volumes of the first volumes through different display modes, so as to inform the user that the displayed first volumes have different volumes.
  • the display mode can inform the user whether the current first volume of the second electronic device is suitable for playing audio. If the first volume of the second electronic device is too loud, the first electronic device can also prompt the user to modify the volume of the second electronic device.
  • the volume of the first volume may be divided into different ranges according to actual conditions, and corresponding display modes may be set for different ranges.
  • the volume level is represented by a percentage, and the volume level is divided into four ranges.
  • the first range is: greater than or equal to 0 and less than 25%, corresponding to the first display mode.
  • the second range is: greater than or equal to 25% and less than 50%, corresponding to the second display mode.
  • the third range greater than or equal to 50% and less than 75%, corresponding to the third display mode.
  • the fourth range greater than or equal to 75%, and less than or equal to 100%, corresponding to the fourth display mode.
  • the first display mode to the fourth display mode are all different.
  • the display manner may include display color, display style, display value, and the like.
  • the displayed color may include: hue, color saturation, brightness and so on.
  • hue can show the difference between red, orange, yellow, green, blue, blue and purple.
  • Display styles can include display patterns, display shapes, fill types, fill areas, and more.
  • Displayed values may include specific values, such as percent difference or decibels, and the like.
  • the display manner may be implemented as a volume icon, and the different display manners of the first volume may represent differences in the volume icons.
  • the volume icons are displayed as lines on the HyperTerminal interface, and lines of different lengths represent different volume icons, and lines of different lengths represent different display modes, that is, different volume ranges (or volume levels). Or lines of different colors represent different volume icons, and lines of different colors represent different display modes, that is, different volume ranges (or volume levels). Or different numbers of lines represent different volume icons, and different numbers of lines represent different display modes, that is, different volume ranges (or volume levels).
  • a numerical value (such as percentage or decibel) corresponding to the first volume can also be displayed, and the volume of the first volume can be known according to the numerical value. It can be understood that the expression form of the volume icon and the differentiated display of the volume icon are not limited to the above description, and are not specifically limited in this embodiment of the present application.
  • the first electronic device may display the display identifier belonging to the same second electronic device in association with the first volume. Through the associated display, the user can know the first volume of the second electronic device corresponding to the display identifier. For example, the display identifier of the second electronic device is A, and the corresponding first volume is B. If the first electronic device displays A and B in association, the user may know that the first volume of the second electronic device corresponding to the display identifier A is B.
  • the display identifiers of the multiple second electronic devices may be displayed in different display areas.
  • the display of the association between the display identifier and the first volume can be achieved by dividing the display interface of the first electronic device, such as the HyperTerminal interface, into multiple display areas, each second electronic device uniquely corresponds to a display area, and will belong to the same second electronic device.
  • the device icon and volume icon of the second electronic device are displayed in the display area corresponding to the second electronic device, that is, the device icon and volume icon belonging to the same second electronic device are closely displayed in the display area corresponding to the second electronic device.
  • All the second electronic devices capable of broadcasting near the first electronic device can broadcast their device identifiers and the first volume.
  • the first electronic device receives the broadcast information of the second electronic device meeting the condition of the discovered device, which displays the device identification and the first volume of the second electronic device. It can be understood that in other scenarios, after the first electronic device receives the broadcast information of the second electronic device, it can display the device identification and the first volume of the second electronic device, and the second electronic device is not specifically limited.
  • the first electronic device is a mobile phone
  • the volume icon is a line surrounding the periphery of the device icon
  • different line lengths represent different volume levels.
  • the user can refer to the operation in FIG. 3(g) above to search for a second electronic device near the mobile phone, and receive broadcast information broadcast by the nearby second electronic device.
  • the mobile phone receives the broadcast information of the nearby second electronic device (tablet, Huawei computer, earphone, speaker and smart screen), and displays the display logo and the first volume corresponding to the tablet on the super terminal interface 500, that is, displays the tablet icon 501 and the first volume icon 502 surrounding the tablet icon 501 .
  • the display logo corresponding to the Huawei computer and the first volume are displayed on the hyperterminal interface 500 , that is, the computer icon 503 and the first volume icon 504 surrounding the computer icon 503 are displayed.
  • the display logo corresponding to the earphone and the first volume are displayed, that is, the earphone icon 505 and the first volume icon 506 surrounding the earphone icon 505 are displayed.
  • the display logo corresponding to the speaker and the first volume are displayed, that is, the speaker icon 507 and the first volume icon 508 surrounding the speaker icon 507 are displayed.
  • the display logo corresponding to the smart screen and the first volume are displayed on the super terminal interface 500 , that is, the smart screen icon 509 and the first volume icon 510 surrounding the smart screen icon 509 are displayed.
  • the mobile phone icon 511 is also displayed on the super terminal interface 500 , and the mobile phone icon 511 is located at the center of the super terminal interface 500 .
  • the device icon and the volume icon corresponding to each second electronic device are respectively displayed in different display areas on the hyperterminal interface 500 . For each second electronic device, its device icon is displayed adjacent to the volume icon.
  • the difference between FIG. 5 and FIG. 3(l) is that the first volume broadcast by each second electronic device is also displayed, that is, the first volume icon surrounding each device icon is displayed. Surrounding the device icon with the length of the first volume icon represents a volume level of 100%.
  • the length of the first volume icon 502 is exactly half of the periphery of the tablet icon 502 , and the first volume icon 502 represents that the first volume of the tablet is 50%.
  • the length of the first volume icon 504 is just three-quarters of the periphery of the computer icon 503, and the first volume icon 504 represents that the first volume of the computer is 75%.
  • the length of the first volume icon 506 is exactly half of the circumference around the earphone icon 505, and the first volume icon 506 represents that the first volume of the earphone is 50%.
  • the length of the first volume icon 508 is just around the periphery of the speaker icon 507, and the first volume icon 508 represents that the first volume of the speaker is 100%.
  • the length of the first volume icon 510 is just around the outer circumference of the smart screen icon 509, and the first volume icon 510 represents that the first volume of the smart screen is 100%.
  • both the first volume icon 508 and the first volume icon 510 represent that the volume is 100%, so the line fills of the first volume icon 508 and the first volume icon 510 are the same.
  • Both the first volume icon 502 and the first volume icon 506 represent that the volume is 50%, so the line fills of the first volume icon 502 and the first volume icon 506 are the same.
  • the line filling of the first volume icon 504 is different from that of the first volume icon 508
  • the line filling of the first volume icon 504 is different from that of the first volume icon 502 .
  • the volume icons may also be represented by different colors.
  • the line colors of the first volume icon 508 and the first volume icon 510 are both red.
  • Line colors of the first volume icon 502 and the first volume icon 506 are both green.
  • the line color of the first volume icon 5041 is yellow.
  • the color line of the volume icon is green, indicating that the volume is appropriate.
  • the color line of the volume icon is yellow, which means that the volume is slightly louder and may interfere with the environment.
  • the color line of the volume icon is red, which means that the volume is too loud and will interfere with the environment.
  • the mobile phone receives the broadcast information of the nearby second electronic device, and may also display the received display logo and first volume broadcast by the second electronic device on the hyperterminal card. Display the corresponding display logo and first volume of the second electronic device (or each second electronic device) on the hyperterminal card. For details, refer to the above-mentioned FIG. One volume, no more details here.
  • Step S43 the first electronic device receives a first operation input by the user, wherein the first operation is used to set a second volume of the second electronic device.
  • step S42 after the first electronic device displays the received first volume broadcast by each second electronic device, the user can see the first volume corresponding to each second electronic device.
  • the first electronic device also provides a volume control capability, which can provide the user with the function of controlling the volume of the second electronic device.
  • volume control capability users can set or adjust the volume of the second electronic device according to their own needs, that is, the user can use the volume control capability provided by the first electronic device to control the second electronic device to play audio at the volume desired by the user.
  • the first electronic device obtains a second volume in response to the first operation, and the second volume is the volume used when the user wants the second electronic device to play audio, or the user wants
  • the second electronic device sets the volume used when playing audio according to the second volume, and sets the volume used when playing audio as the second volume.
  • the user wants to reset the volume of the second electronic device, and the user inputs a first operation, which is used to set the volume of the second electronic device to the volume level corresponding to the first volume.
  • the volume of the electronic device is set from the volume corresponding to the first volume to the volume corresponding to the second volume.
  • the second volume is also the system volume. If the first volume is the volume of a certain audio stream, the second volume is also the volume of the audio stream.
  • the second volume can be understood as a temporarily modified volume stored on the first electronic device.
  • the user can input the first operation on the mobile phone, set the first volume H corresponding to the tablet to the second volume A, then change the second volume A to the second volume B, and finally set the second volume B
  • the first electronic device may store the second volume A, the second volume B, and the second volume C locally, or only store the second volume C that is currently set most recently.
  • the volume of the audio played by the tablet is still the first volume H.
  • the second volume being valid may be understood as the second electronic device can play audio according to the second volume.
  • the time for the second volume to take effect may be when the first electronic device establishes a connection with the second electronic device, when the first electronic device transmits the second volume to the second electronic device, and when the first electronic device transmits the second volume to the second electronic device. After the first electronic device transmits the second volume and audio data to the second electronic device, after the first electronic device transmits the second volume and audio data to the second electronic device, or the first electronic device transmits the second volume After sending to the second electronic device, the first electronic device transmits the audio data to the second electronic device.
  • the first electronic device may obtain the second volume in real time in response to the first operation of the user, and display the latest second volume currently set by the user in real time.
  • the latest second volume set by the user By displaying the latest second volume set by the user in real time, it is convenient for the user to know the second volume currently set for the second electronic device.
  • the first electronic device may inform the user that the second volume is temporary and ineffective, and may also inform the user that after setting the second volume of the second electronic device, if the second volume is set within a preset time If the set second volume is not effective, the second volume will not be displayed, and the actual volume corresponding to the second electronic device, that is, the first volume will be displayed again.
  • the first electronic device may inform the user that the second volume is temporary and ineffective through a prompt, and may also inform the user that the second volume set within a preset time has not taken effect, then The second volume will not be displayed, and the actual volume corresponding to the second electronic device, that is, the first volume will be displayed again.
  • the first electronic device displays the second volume, it presents the above prompt on the interface, and the prompt may be displayed on the interface as displaying a prompt box, a volume distinguishing mark, and a display manner in which the first volume is different from the second volume one or more of.
  • corresponding text is displayed in the prompt box to serve as a reminder to the user.
  • the volume distinguishing mark is used to distinguish between the first volume and the second volume.
  • the user can distinguish the first volume and the second volume, and then understand that the first volume is the actual volume, and the second volume is not in effect.
  • the display mode in which the first volume is different from the second volume, that is, the second volume is displayed differently from the first volume display mode.
  • the first volume is displayed in the first display mode
  • the second volume is displayed in a second display mode different from the first display mode.
  • the first display mode and the second display mode it is convenient for the user to distinguish the first volume.
  • the volume and the second volume and then know that the first volume is the actual volume, and the second volume is the temporarily modified volume that has not taken effect.
  • the embodiment of the present application does not specifically limit the expression form of the prompt.
  • a prompt box may be presented to inform the user of the volume distinguishing logo or the prompt of the different display mode meaning, so that the user can see the volume distinguishing logo or different display methods next time, and understand that the first volume is the actual volume, and the second volume is the temporarily modified volume that has not taken effect.
  • the volume setting mode in the volume control capability provided by the first electronic device to the user includes a manual setting mode.
  • the first operation is used to directly set the value of the second volume of the second electronic device according to the user's wishes, and the first electronic device receives the first operation input by the user, and according to the volume indicated by the first operation Setting the second volume of the second electronic device, that is, the specific value of the second volume is input by the user.
  • the first operation in the manual setting mode may include sliding, clicking, long pressing, keyboard input, or pressing a volume key of the first electronic device, etc., and the present application does not specifically limit the specific expression form of the first operation.
  • the user inputs the first operation on the hyper terminal interface 500 in FIG. 5
  • the above prompt is displayed as a prompt box, and the user slides on the display screen of the mobile phone to set the second volume as an example.
  • Both volume icons can be edited. If the user wants to set the second volume of the Huawei computer, the user can input the first operation, such as the user slides the first volume icon 504, and slides the length of the first volume icon 504 to half of the periphery of the computer icon 503, as shown in Figure 6 ( a) The second volume icon 601 shown.
  • the difference between the second volume icon 601 in FIG. 6(a) and the first volume icon 504 in FIG. 5 is that the length of the second volume icon 601 becomes shorter relative to the length of the first volume icon 504, and the second volume icon 601 also includes arrow 602 .
  • the arrow 602 represents that the second volume icon 601 is currently in the volume setting state, that is, the second volume represented by the second volume icon 601 has not yet taken effect, and is still in the editing state.
  • the second volume icon 601 can change its length according to the user's sliding . As shown in Figure 6(b), the user releases the touch on the display screen of the mobile phone, the mobile phone detects that the user releases the sliding operation, and the second volume icon 603 is displayed on the mobile phone, and the second volume icon 603 represents that the second volume of the Huawei computer is 50%. The difference between the second volume icon 603 in FIG. 6(b) and the second volume icon 601 in FIG.
  • a prompt box 604 may also be displayed on the hyperterminal interface 500 , and the prompt box 604 may be displayed near the second volume icon 603 . Displayed on the prompt box 604 are "50% of the second volume has not yet taken effect", "50% of the second volume is temporarily modified volume” or "if the 50% of the second volume does not take effect within ten seconds, then the first volume of 75% will be resumed.” %".
  • the user inputs a first operation on the hyperterminal interface 500 in FIG. 5 , the above-mentioned prompt is displayed as a volume distinguishing sign, and the user inputs a second volume through a keyboard as an example.
  • the first electronic device may provide a volume setting window, and the first operation input by the user may include multiple sub-operations.
  • a computer icon 503 and a first volume icon 504 surrounding the computer icon 503 are displayed on the mobile phone.
  • the user wants to set the second volume of the Huawei computer.
  • the first operation input by the user includes the user clicking the computer icon 503 , and the mobile phone responds to the user clicking the computer icon 503 and displays the volume setting window 701 on the super terminal interface 500 .
  • the current volume of the Huawei computer is displayed on the volume setting window 701, and the volume percentage % displayed on the volume setting window 701 is 75, that is, the first volume of the current Huawei computer is 75%.
  • FIG. 7( a ) a computer icon 503 and a first volume icon 504 surrounding the computer icon 503 are displayed on the mobile phone.
  • the user wants to set the second volume of the Huawei computer.
  • the first operation input by the user includes the user clicking the computer icon 503 , and the mobile phone responds to the user
  • the user inputting the first operation also includes selecting “75” in the volume setting window 701 by the user. After “75” in the volume setting window 701 is selected, an input keyboard 702 is displayed on the hyperterminal interface 500 . As shown in Figure 7 (c), the user inputting the first operation also includes the user inputting the numbers "5" and "0" through the input keyboard 702, setting the second volume to 50%, and then the volume percentage % displayed on the volume setting window 701 is 50. If the user wants to modify the second volume, he can select "50" in the volume setting window 701, and continue to input numbers through the input keyboard 702 to modify. If the user exits the keyboard 702, the mobile phone determines that the second volume is 50%. As shown in FIG.
  • a volume icon 703 is displayed on the mobile phone.
  • the difference between the volume icon 703 and the first volume icon 504 in FIG. 5 is that: the volume icon 703 adds a start mark 704 , a first volume end mark 705 and a second volume end mark 706 .
  • the start indicator 704 and the first volume end indicator 705 are respectively used to indicate the start and end of the first volume.
  • the length of the line between the start mark 704 and the first volume end mark 705 represents that the first volume is 75%.
  • the start indicator 704 and the second volume end indicator 706 are respectively used to indicate the start and end of the second volume.
  • the length of the line between the start mark 704 and the second volume end mark 706 represents that the second volume is 50%.
  • the start mark 704 , the first volume end mark 705 and the second volume end mark 706 are all different, and may appear as different arrows, which are not specifically limited in this application.
  • the above-mentioned prompt is presented as a display mode in which the first volume is different from the second volume, and the user sets the second volume by pressing the volume key of the first electronic device. as an example.
  • the mobile phone displays a computer icon 503 and a first volume icon 504 surrounding the computer icon 503 .
  • the user wants to set the second volume of the Huawei computer, and the first operation input by the user includes long pressing the computer icon 503 by the user.
  • the mobile phone responds to the user's long press on the computer icon 503 , and displays a volume progress bar 801 on the super terminal interface 500 of the mobile phone.
  • the filled area on the volume progress bar 801 accounts for three quarters of the entire area of the volume progress bar 801, which means that the current volume of the Huawei computer, that is, the first volume is 75%.
  • the user can press the volume "+” key and the volume "-" key of the volume key 802 of the mobile phone to set the second volume.
  • the user inputting the first operation also includes the user pressing the volume "-" key, adjusting the filled area on the volume progress bar 801 to account for half of the entire area of the volume progress bar 801, that is, adjusting the volume to 50%, representing The second volume is currently set to 50%.
  • the user releases the press on the volume key 802, and the mobile phone detects that the user releases the press on the volume key 802, obtains the final set volume "50%", and uses the volume "50%” as the second volume.
  • the second volume icon 803 is displayed according to the set second volume "50%”, and the first volume icon 504 and the second volume icon 803 are simultaneously displayed near the computer icon 503 .
  • the first electronic device distinguishes and displays the first volume and the second volume, displays the first volume in the first display mode (the first volume icon 504), displays the second volume in the second display mode (the second volume icon 803), and displays the first volume in the first display mode (the second volume icon 803).
  • the volume icon 504 is different from the respective lines.
  • the first volume icon 504 is displayed separately from the second volume icon 803, that is, the display of the second volume icon 803 does not cover the display of the first volume icon 504, which means that temporarily modifying the volume will not cover the real volume of the second electronic device.
  • the line length of the second volume icon 803 is just half of the circumference around the computer icon 503, which means that the second volume is 50%.
  • the volume setting mode in the volume control capability provided by the first electronic device to the user includes an automatic setting mode.
  • the first electronic device receives a first operation input by the user, and sets the second volume according to a preset rule in response to the first operation. That is, the specific numerical value of the second volume is not directly input by the user at the moment.
  • the first operation in the automatic setting mode may include sliding, clicking, double-clicking, long pressing, or a gesture (such as a gesture of drawing a circle) and the like.
  • the setting of the second volume by the first electronic device according to a preset rule in response to the first operation includes: the first electronic device responds to the first operation, triggering the sound collection device of the first electronic device to collect the sound around the first electronic device The environmental sound of the environment, and the second volume is set according to the environmental sound.
  • the user wants to transmit the audio data on the first electronic device to the second electronic device, and the second electronic device plays the audio data, and it can be obtained that the first electronic device and the second electronic device are in the same environment .
  • the first electronic device actively collects the ambient sound of the surrounding environment, and the collected environmental sound is also the ambient sound of the surrounding environment of the second electronic device.
  • the ambient sound may be expressed in decibels (dB).
  • the first electronic device sets the second volume according to the ambient sound collected by its sound collecting device. For example, the ambient sound is very loud, and the decibel of the collected ambient sound is 85dB.
  • the first electronic device can set a larger second volume, and the second electronic device uses a larger second volume to play audio to ensure that the user can hear audio. If the ambient sound is very small, and the decibel of the collected ambient sound is 15dB, the first electronic device can be set to a smaller second volume, so as to ensure that the second volume used by the second electronic device can be maintained between the ambient sound and the ambient sound.
  • Comfortable volume improve user's listening experience. For example, the first electronic device detects that the ambient sound of the current environment is 85dB.
  • the second volume can be set to be higher than the volume of the ambient sound, such as 90dB. It can also be set according to the volume percentage and decibel Conversion between, convert 90dB to volume percentage 85%, set the second volume to 85%.
  • the above-mentioned prompt is displayed in a different display manner between the first volume and the second volume, and the user presses and holds the icon to set the second volume as an example.
  • a computer icon 503 and a first volume icon 504 surrounding the computer icon 503 are displayed on the mobile phone.
  • the user may input the first operation, for example, the user double-clicks the computer icon 503 .
  • the mobile phone in response to the user double-clicking the computer icon 503 , the mobile phone triggers a sound collection device (such as a microphone) to collect ambient sound from the surrounding environment.
  • the sound collecting status mark 901 is displayed on the mobile phone, and the sound collecting state mark 901 indicates that the mobile phone is currently in the sound collecting state.
  • a sound collection device such as a microphone
  • the volume of the ambient sound obtained by the mobile phone is 60 dB, and the mobile phone sets the second volume to 50% according to the above Table 3.
  • the volume progress bar 902 is displayed on the mobile phone, and the filled area on the volume progress bar 902 accounts for half of the entire area of the volume progress bar 902, which means that the current second volume is 50%.
  • the first volume is represented by the first volume graph 504
  • the second volume is represented by the volume progress bar 902 .
  • the first volume graph 504 is different from the volume progress bar 902.
  • the first volume graph 504 expresses the first volume by the length of the line around the computer icon 503, and the volume progress bar 902 expresses the first volume by the percentage of the filled area in the entire progress bar area. Two volume size.
  • the first electronic device setting the second volume according to the preset rule in response to the first operation includes: the first electronic device determines the second electronic device indicated by the first operation in response to the first operation, and obtains the second volume.
  • the volume record of the electronic device is used to set the second volume according to the volume record, wherein the volume record is used to record the effective second volume previously set by the second electronic device.
  • the first electronic device may acquire the volume recorded the most times (for example, 10%) in the volume records, and set the volume recorded the most times as the current second volume.
  • the first electronic device may also set the latest recorded volume (such as 10%) in the volume record as the current second volume.
  • the first electronic device may acquire the device identification of each second electronic device and its valid second volume, and store the device identification of the second electronic device in association with its valid second volume. For example, for a second electronic device whose device ID is A, the user first sets the second volume to a for the second electronic device, and then sets the second volume to b, and the second volume b takes effect. Next time, the user sets the second volume to c for the second electronic device, and the second volume c takes effect.
  • the first electronic device may record the volume record of the second electronic device as: the device identifier A and its previously set effective second volume include the second volume b and the second volume c.
  • the first electronic device can also record the effective time of each second volume. For example, the second volume b becomes effective at time T0, and the second volume c becomes effective at time T1.
  • the mobile phone can determine the latest recorded volume according to the effective time.
  • the user inputs a first operation on the hyperterminal interface 500 in FIG. 5 , the above-mentioned prompt appears as a prompt box, and the user inputs a circle gesture to set the second volume as an example.
  • the mobile phone displays a computer icon 503 and a first volume icon 504 surrounding the computer icon 503 .
  • the user wants to set the second volume of the Huawei computer, the user can input the first operation, for example, the user slides a circle around the computer icon 503 .
  • the mobile phone responds to the user's operation of sliding around the computer icon 503, and the mobile phone obtains the volume record of the Huawei computer corresponding to the computer icon 503, and the latest effective second volume recorded in the volume record is 50%.
  • the mobile phone sets 50% of the latest recorded second volume as the second volume.
  • the mobile phone can also display a prompt window 102, and the prompt window 102 displays "whether it is set to 50% of the volume set last time" and "yes" option and "no” option. If the user clicks the "No” option, the user can choose to manually set, or the mobile phone sets the second volume according to other rules, such as the mobile phone sets the volume recorded the most times in the volume record as the second volume. If the user clicks the "Yes” option, the mobile phone responds to the user clicking the "Yes” option to set the second volume of the Huawei computer to 50%. As shown in FIG. 10( c ), a prompt box 103 "second volume 50%" is displayed on the mobile phone, and the prompt box 103 may also display "not yet effective”.
  • the volume setting mode in the volume control capability provided by the first electronic device to the user includes a global setting mode.
  • the first electronic device can automatically set the same second volume for all the second electronic devices.
  • the first operation in the global setting mode may include triggering the global setting control, inputting a specific gesture, etc., and the present application does not specifically limit the specific expression form of the first operation.
  • the user triggers the global setting control
  • the first electronic device sets the second volume for all the second electronic devices corresponding to the broadcast information it receives in response to the user triggering the global setting control.
  • All the second electronic devices displayed on the interface 500 (such as tablets, Huawei computers, earphones, speakers and smart screens) set the second volume.
  • the first electronic device receives the first volume and the device identification broadcasted by the device A and the device B
  • all the second electronic devices corresponding to the received broadcast information refer to the device A and the device B.
  • the second volume can be set and obtained by adopting the above-mentioned manual setting mode or automatic setting mode.
  • the first operation input by the user is not to set the second volume for a certain second electronic device, but for all the second electronic devices corresponding to the broadcast information received by the first electronic device Set the second volume.
  • the first electronic device in the global setting mode, automatically sets the same second volume A for all the second electronic devices corresponding to the broadcast information it receives. After multiple second electronic devices have set the second volume A, for a certain second electronic device, the time when the second volume takes effect can refer to the above-mentioned time when the second volume takes effect, and will not be repeated here.
  • the hyperterminal interface 500 also includes a global setting control 111 , and this application does not specifically limit the presentation form of the global setting control 111 on the interface.
  • the user may input the first operation.
  • the first operation input by the user may include clicking the global setting control 111 by the user. After the user clicks the global setting control 111, the user can set the second volume in the manner shown in FIG. 6(a).
  • the first operation input by the user may also include the user adjusting the volume icon of any second electronic device, the first operation input by the user may also include the user sliding the first volume icon 504, and sliding the length of the first volume icon 504 to Surrounding half of the periphery of the computer icon 503, a second volume icon 110 as shown in FIG.
  • the mobile phone may display a window 112 "whether to set the second volume to 50%" and options of "yes" and "no".
  • the display window 112 can also display "whether the second volume is set globally to be 50%", and the content displayed in the display window 112 is used to prompt the user that the second volume currently set can also prompt the user that the second volume currently set is a global setting, This application does not specifically limit the specific displayed content. If the user clicks the "No” option, the second volume of 50% is not set for all second electronic devices (such as tablets, Huawei computers, earphones, speakers and smart screens). If the user clicks the "Yes” option, it is confirmed that the second volume of all second electronic devices (tablet, Huawei computer, earphone, speaker and smart screen) is set to 50%.
  • the mobile phone displays a volume progress bar 113, and the volume progress bar 113 identifies that the second volume is 50%, that is, the second volume of all the second electronic devices displayed on the current super terminal interface 500 is 50%. %. If the second volume of all the second electronic devices is in effect, all the second electronic devices use 50% of the second volume to play audio.
  • the user can set the second volume in the manner shown in FIGS. A device icon for any second electronic device.
  • the user clicks the computer icon 503, and the first operation input by the user may also include selecting "75" in the volume setting window by the user, and then inputting "50" through the input method keyboard to set the second volume as 50%.
  • the mobile phone obtains 50% of the second volume set by the user, and sets the second volumes of all second electronic devices to 50%.
  • the user can set the second volume in the manner shown in FIGS. Press the device icon of any second electronic device.
  • the user can set the second volume through any of the above manual setting modes, which is not specifically limited in this application.
  • the global setting control can integrate the functions provided by the automatic setting mode, that is, after the user clicks the global setting control, the first electronic device can use the above-mentioned automatic setting mode to set the second volume.
  • the user inputting the first operation may include the user clicking the global setting control 111, and after the user clicks the global setting control 111, the user may use the method shown in Figure 9(a) to Figure 9(b) Set the second volume.
  • the user inputting the first operation may also include the user double-clicking the device icon of any second electronic device, and the mobile phone may display a sound collection status indicator 901 .
  • the mobile phone obtains the ambient sound of the current surrounding environment, and the mobile phone automatically sets the second volume to 50% according to the volume of the obtained environmental sound according to the above Table 3.
  • the mobile phone displays a prompt box 114 "Globally set the second volume to 50%", informing the user that the current second volume of all second electronic devices is set to 50%.
  • the mobile phone sets the second volume according to volume records of all second electronic devices as an example.
  • the mobile phone obtains the volume records of all the second electronic devices, obtains the volume with the largest number of records or the volume of the latest current record from these volume records, and sets the volume with the largest number of records or the volume of the latest current record as the second volume.
  • all second electronic devices include device A and device B.
  • the number of volume a recorded in the volume record of device A is 5 times
  • the number of volume b recorded in the volume record of device B is 4 times
  • the number of volume a recorded in the volume record of device B is 2 times
  • the number of times of volume b is 4 times
  • the volume with the most recorded times can be obtained as b.
  • the user slides a circle clockwise along the device icons (tablet icon 501, computer icon 503, earphone icon 505, speaker icon 507 and smart screen icon 509) of all second electronic devices, and the mobile phone detects to the circle gesture input by the user.
  • the mobile phone responds to the user's gesture of drawing a circle, and the mobile phone obtains the volume records of all the second electronic devices, and from these volume records, it can be obtained that the volume with the most occurrences is 50%, then the 50% of the volume with the most records can be determined as the first Second volume.
  • the mobile phone displays a prompt box 121 "whether to globally set the second volume to 50%" and an option of "Yes" and "No".
  • the mobile phone can provide the user with a manual setting mode or an automatic device mode for the user to continue setting the second volume.
  • the user clicks the "Yes” option and the second volume of the second electronic device is set globally to 50%.
  • each second electronic device displays a corresponding second volume icon 121 , and the second volume icon 121 indicates that the second volume is 50%.
  • the mobile phone also displays a prompt box 122 "the second volume has not yet taken effect, please establish a connection" to guide the user to establish a connection. It can be understood that if the above-mentioned second volume does not take effect within the preset time, the interface shown in FIG. 12( a ) will be resumed.
  • the second volume may be displayed separately from the first volume of each first electronic device.
  • a tablet icon 501 a first volume icon 502 surrounding the tablet icon 501 , and a second volume icon 131 are displayed on the mobile phone.
  • the second volume icon 131 indicates that the second volume of the current tablet is 50%.
  • the mobile phone displays a computer icon 503 , a first volume icon 504 surrounding the computer icon 503 , and a second volume icon 132 , and the second volume icon 132 indicates that the current second volume of the computer is 50%.
  • the mobile phone displays an earphone icon 505, a first volume icon 506 surrounding the earphone icon 505, and a second volume icon 133, and the second volume icon 133 indicates that the current second volume of the earphone is 50%.
  • the mobile phone displays a speaker icon 507, a first volume icon 508 surrounding the speaker icon 507, and a second volume icon 134.
  • the second volume icon 134 indicates that the second volume of the current speaker is 50%.
  • the smart screen icon 509, the first volume icon 510 surrounding the smart screen icon 509, and the second volume icon 135 are displayed on the mobile phone.
  • the second volume icon 135 indicates that the current second volume of the smart screen is 50%.
  • the mobile phone also displays a prompt box 136, and the prompt box 136 displays "the second volume has not yet taken effect, drag it to this machine to establish a connection or initiate a task connection", instructing the user to drag the second electronic device icon to the mobile phone icon 511, to establish a connection.
  • Step S44 the first electronic device receives a second operation input by the user.
  • the user after the user sets the second volume in step S43, the user then inputs a second operation on the first electronic device, and the second operation is used to trigger the establishment of a communication between the first electronic device and the second electronic device.
  • the user wants to transmit the second volume and audio data to the second electronic device
  • the user A second operation may be input, and the second operation may include the user performing a sliding operation on the hyperterminal interface 500 , for example, the user drags the computer icon 503 to the position where the mobile phone icon 511 is located.
  • the computer icon 503 contacts the mobile phone icon 511
  • the computer icon 503 and the mobile phone icon 511 are highlighted, showing that the Huawei computer is connected to the mobile phone.
  • the first volume icon 504 surrounding the computer icon 503 disappears, and only the volume icon 141 surrounding the computer icon 503 is displayed.
  • the difference between Fig. 14(b) and Fig. 8(c) is that the computer icon 503 is close to the mobile phone icon 511, the first volume icon 504 surrounding the computer icon 503 disappears, and only the volume icon 141 surrounding the computer icon 503 is displayed .
  • the display mode of the volume icon 141 and the display mode of the first volume icon 504 can be similar, for example, the line shape or filling of the volume icon 141 and the first volume icon 504 in FIG. The lengths of the lines of the first volume icon 504 are different.
  • the volume icon 141 indicates that the volume of the second electronic device, that is, the computer, is 50% at this time, that is, the actual volume of the second electronic device is 50%.
  • the control center interface 30 is displayed on the mobile phone, and the tablet icon 501 and the second volume icon 131 are displayed on the hyperterminal card 304.
  • the second volume icon 131 indicates that the second volume of the current tablet is 50%.
  • the computer icon 503 and the second volume icon 132 are also displayed, and the second volume icon 132 indicates that the second volume of the current tablet is 50%.
  • the headphone icon 505 and the second volume icon 133 are also displayed, and the second volume icon 133 indicates that the second volume of the current tablet is 50%.
  • the speaker icon 507 and the second volume icon 154 are also displayed, and the second volume icon 134 indicates that the second volume of the current tablet is 50%.
  • the smart screen icon 509 and the second volume icon 155 are also displayed, and the second volume icon 135 indicates that the second volume of the current tablet is 50%.
  • the user can input the second operation on the hyperterminal card 304.
  • the user inputs the second operation such as clicking the computer icon 503, and the mobile phone
  • the computer's second volume of 50% is about to take effect.
  • FIG 15(d) it shows that the connection between the mobile phone and the computer is being established, and the 50% second volume set by the Huawei computer takes effect.
  • a volume icon 151 is displayed under the computer icon 503, and the volume icon 151 indicates that the volume of the Huawei computer is set to 50%, that is, the actual volume of the current Huawei computer is 50%.
  • the first electronic device before the first electronic device establishes a connection with the second electronic device for transmitting the second volume and audio data, if the volume of the second electronic device is higher, for example, higher than a certain percentage, A warning value, a threshold, or a volume percentage higher than the current volume of the first electronic device may prompt the user to set the volume.
  • the user does not set the second volume of the second electronic device, and before the first electronic device establishes a connection with the second electronic device for transmitting the second volume and audio data, the first electronic device detects that If the volume of the second electronic device (that is, the first volume) is higher than a certain percentage, warning value, threshold, or higher than the current volume percentage of the first electronic device, the user may be prompted to set the volume. As shown in Figure 16(a), the user has not set the second volume on the Huawei computer.
  • a prompt box 161 is displayed on the mobile phone, "Do you need to set the second volume?", " Yes" option and "No” option, the user clicks the "No” option, then the user can continue to drag the computer icon 503 close to the mobile phone icon 511 . If the user clicks the "Yes” option, the user can refer to the above-mentioned automatic setting mode or manual setting mode to set the second volume.
  • the user sets the second volume of the second electronic device, and before the first electronic device establishes a connection with the second electronic device for transmitting the second volume and audio data, the first electronic device detects If the volume to the second electronic device (that is, the second volume) is higher than a certain percentage, warning value, threshold, or higher than the current volume percentage of the first electronic device, the user may be prompted to set the volume. As shown in Figure 16(b), the user has set the second volume on the Huawei computer.
  • the user can drag the computer icon 503 to the mobile phone icon 511, and the mobile phone will return the computer icon 503 to the original position, and display the prompt box 162, the prompt box 162 It displays "the current volume is too loud, do you need to set it", "yes” option and "no” option, if the user clicks the "no” option, the mobile phone will drag the computer icon 503 to the mobile phone icon 511. If the user clicks the "Yes” option, the user can refer to the above-mentioned automatic setting mode or manual setting mode to set the second volume.
  • a prompt may be displayed, whether to confirm the currently set second volume. If the user confirms, the first electronic device transmits the second volume, the audio data, or the second volume and audio data to the second electronic device.
  • the user has set the second volume, and drags the computer icon 503 behind the mobile phone icon 511 .
  • a prompt box 171 can also be displayed on the mobile phone, and the prompt box 171 displays "whether you confirm to set the second volume to 50%", "yes" option and "no" option.
  • the steps can be continued, such as the first electronic device continues to establish its connection with the second electronic device, and the first electronic device continues to transmit the second volume to the second electronic device. If the user clicks the "No” option, the user can refer to the above-mentioned automatic setting mode or manual setting mode to set the volume.
  • the prompt box 171 may be displayed on the hyperterminal card 304 .
  • the user is not limited to inputting the first operation and the second operation on the hyperterminal interface 500, and the user can also input the first operation and the second operation on the hyperterminal card 304, as shown in FIG. 15( b ).
  • the hyperterminal card 304 shown can refer to the above hyperterminal interface 500 to display various elements or controls, such as including the display logo of the second electronic device, the first volume icon, the second volume icon, global setting controls, and the above prompts, etc. This is not specifically limited.
  • the first electronic device can also provide a volume setting interface
  • the volume setting interface can be displayed with reference to the above-mentioned hyperterminal interface 500, and can refer to the hyperterminal interface 500 or the hyperterminal card 304 to display various elements or
  • the controls include, for example, the display logo of the second electronic device, the first volume icon, the second volume icon, global setting controls, and the above prompts. This application does not specifically limit it. For example, the user clicks the setting option on the mobile phone to enter the volume setting interface.
  • Step S45 the first electronic device establishes a connection with the second electronic device for transmitting the second volume and audio data.
  • the first electronic device detects the user's second operation, and in response to the second operation, the first electronic device establishes a communication with the second electronic device for transmitting the second volume and Connection of audio data.
  • the above-mentioned connection can be a wireless communication connection, for example, a Wi-Fi connection, a Bluetooth connection, a P2P connection, an NFC connection or a communication connection based on a cellular network, etc., or the above-mentioned connection can also be a wired connection, for example, a data line or a dock can be used
  • the device is connected to the mobile phone and the laptop, which is not limited in this embodiment of the present application.
  • an NFC chip or an electronic tag can be set on a laptop computer, and device information of the laptop computer, such as a MAC address of the laptop computer, can be stored in the NFC chip or the electronic tag. Furthermore, after the mobile phone turns on the NFC function, the device information of the notebook computer can be obtained by approaching or touching the NFC chip or electronic tag on the notebook computer. In this way, the mobile phone can establish a connection such as a Bluetooth connection, a Wi-Fi connection, or a P2P connection with the notebook computer according to the device information.
  • a preset two-dimensional code may be displayed on the notebook computer, and the two-dimensional code includes device information of the notebook computer. Then, the mobile phone can also obtain the device information of the laptop by scanning the QR code on the laptop. In this way, the mobile phone can establish a connection such as a Bluetooth connection, a Wi-Fi connection, or a P2P connection with the notebook computer according to the device information.
  • the user can also use the mobile phone to create a Wi-Fi hotspot, and connect the notebook computer to the Wi-Fi hotspot created by the mobile phone, thereby establishing a connection between the mobile phone and the notebook computer.
  • the embodiment of the present application establishes a connection between the mobile phone and the notebook computer
  • the specific method is not limited in any way.
  • Step S46 the first electronic device transmits the second volume to the second electronic device.
  • the first electronic device transmits the second volume to the second electronic device based on the connection between the first electronic device and the second electronic device for transmitting the second volume.
  • the first electronic device may send a volume setting request to the second electronic device, and send the second volume.
  • the second volume of 50% takes effect.
  • the first electronic device establishes a connection with the second electronic device, as shown in Figure 14 (b)
  • drag the computer icon 503 with the second volume set to the mobile phone icon 511 then the second volume is 50%. take effect.
  • Step S47 the second electronic device sets its volume to the second volume.
  • the second electronic device may call the function setVolume(AudioVolumeType volumeType, int volume) to set the second volume. After the second volume setting is completed, the second electronic device may reply that the volume setting is completed in response to the volume setting request sent by the first electronic device.
  • Step S48 The first electronic device transmits the audio data to the second electronic device.
  • the first electronic device transmits the audio data to the second electronic device based on the connection between the first electronic device and the second electronic device for transmitting audio data.
  • the second electronic device needs to wait for the second volume to be set before playing the audio data.
  • the first electronic device may also display confirmation information, such as the first electronic device displaying "Are you sure to set the second volume to 50% ” or display “Are you sure to play the audio at 50% volume”, if the user chooses to confirm, the first electronic device will then transmit the audio data to the second electronic device.
  • confirmation information such as the first electronic device displaying "Are you sure to set the second volume to 50% ” or display “Are you sure to play the audio at 50% volume”, if the user chooses to confirm, the first electronic device will then transmit the audio data to the second electronic device.
  • step 46 and step S48 can be performed at the same time, or step 46 is performed first and then step S48 is performed, or step 48 is performed first and then step S46 is performed, which is not specifically limited in this embodiment of the present application.
  • the first electronic device transmits the second volume along with the audio data of the first electronic device to the second electronic device. That is, the first electronic device can transmit the second volume and the audio data of the first electronic device based on the same communication channel established in step S45.
  • Step S49 the second electronic device receives the audio data, and plays the audio data with a second volume.
  • step S47 the second electronic device has set its current volume to the second volume, and the second electronic device will use the second volume to play the audio data.
  • the user sets the volume of the computer to 50%, and a volume progress bar 181 is displayed on the computer, and the current volume is displayed on the volume progress bar 181 as 50%.
  • the computer plays the audio data with a volume of 50%.
  • the volume control capability provided by the first electronic device to the user includes a "safe mode".
  • the operation input by the user may cause the first electronic device to continuously set the second volume and continuously transmit the second volume to the second electronic device until the transmitted second volume satisfies the first preset condition.
  • the first electronic device may transmit a third volume to the second electronic device in response to an operation input by the user, the third volume is smaller than the second volume; continuously increase the third volume, and transmit the adjusted third volume to the second electronic device , until the adjusted third volume reaches the second volume or reaches the first preset condition, wherein the first preset condition is that the volume of the audio played by the second electronic device collected by the first electronic device satisfies the value determined by the first electronic device The actual volume to reach the second volume. For example, the first preset condition is reached until the first electronic device detects that the volume (such as decibel) of the audio played by the second electronic device is appropriate, or until the volume obtained after the second electronic device adjusts its volume reaches the second volume ( as a percentage).
  • one step can be used to set the second volume and trigger the first electronic device to transmit the second volume and audio data to the second electronic device.
  • the first operation and the second operation can be combined into one operation, or the first operation has the function of the second operation, and the second operation is an optional operation.
  • the operation input by the user may include the user pressing the switch key 191 and the computer icon 503 to trigger the security mode.
  • the mobile phone detects that the user triggers the security mode, as shown in Figure 19(b), the mobile phone establishes a connection with the second electronic device, and transmits the third volume 10% and audio data to the computer.
  • Huawei computer receives the third volume is 10%, set its volume to 10%.
  • the Huawei computer plays audio data at 10% volume.
  • the mobile phone detects that the decibel level of the audio played by the Huawei computer is 5dB, which does not reach the preset decibel level of 10dB.
  • the mobile phone adjusts the third volume according to the step value of 10%, and the mobile phone increases the third volume by 10% to obtain a 20% volume, and the mobile phone continues to transmit the second volume of 20% and audio to the computer data.
  • Huawei computer receives the second volume is 20%, set its volume to 20%.
  • the Huawei computer plays audio data at a volume of 20%.
  • the mobile phone detects that the decibel of the audio data played by the Huawei computer is 10dB. If the preset decibel is 10dB, the mobile phone stops transmitting the second volume to the computer.
  • the first electronic device transmits the safe mode command and the third volume to the second electronic device.
  • the second electronic device receives the safety mode instruction, and continuously adjusts the third volume in response to the safety mode instruction until the first electronic device detects that the volume of the audio currently played by the second electronic device is appropriate, or until the second electronic device adjusts After the third volume reaches the second volume.
  • the first electronic device detects that the volume set by the second electronic device reaches the first preset condition
  • the first electronic device sends a stop instruction to the second electronic device, and the second electronic device stops setting its volume, and uses the preset Play audio at a conditional volume.
  • the electronic device to receive the audio data can play the audio data at an appropriate volume, avoiding harsh interference caused by sound transfer, and bringing a new experience to audio sharing.
  • FIG. 20 is a schematic structural diagram of a volume control device provided by an embodiment of the present application.
  • the volume control device 400 can be used to execute some or all steps of the method described in FIG. 4 to FIG. 19(c), please refer to the relevant description in FIG. 4 to FIG. 19(c) for details, and details will not be repeated here.
  • the volume control device 400 may include:
  • the first receiving unit 401 is configured to acquire a first volume of a second electronic device and display the first volume, wherein the first electronic device currently does not transmit audio data to the second electronic device.
  • the first receiving unit 402 is configured to receive a first operation input by a user, wherein the first operation is used to set a second volume of the second electronic device.
  • the transmission unit 403 is configured to receive a second operation input by the user, and transmit the second volume and the audio data of the first electronic device to the second electronic device in response to the second operation, so as to enabling the second electronic device to play the audio data with the second volume.
  • transmitting the second volume and the audio data of the first electronic device to the second electronic device further includes: establishing a connection with the second electronic device for transmitting the A second volume is connected to the audio data.
  • the first receiving unit further includes: in response to the first operation, acquiring the volume record of the second electronic device, wherein the volume record is used to record the previously set volume; The volume with the most recorded times in the records is set as the second volume; or, the volume recorded most recently in the volume records is set as the second volume.
  • the first electronic device includes a sound-collecting device
  • the first receiving unit further includes: in response to the first operation, triggering the sound-collecting device to collect the ambient sound of the surrounding environment of the first electronic device ; Set the second volume according to the ambient sound.
  • the first receiving unit when receiving the first volume of multiple second electronic devices, further includes: setting the same volume for the multiple second electronic devices in response to the first operation. Describe the second volume.
  • the apparatus further includes: transmitting the second volume and the audio data of the first electronic device to the second electronic device, so that the second electronic device uses the Playing the audio data at a second volume includes: transmitting a third volume to the second electronic device, the third volume being smaller than the second volume; continuously increasing the third volume, and adjusting the adjusted first volume The third volume is transmitted to the second electronic device until the adjusted third volume reaches the second volume or reaches a first preset condition, wherein the first preset condition is that the first electronic device The volume of the audio played by the second electronic device collected by the device meets the actual volume determined by the first electronic device to reach the second volume.
  • the device before the establishment of the connection with the second electronic device for transmitting the second volume and the audio data, the device further includes: a prompt unit, configured to detect that the If the volume of the second electronic device is higher than the warning value, the user is prompted to modify the volume of the second electronic device.
  • a prompt unit configured to detect that the If the volume of the second electronic device is higher than the warning value, the user is prompted to modify the volume of the second electronic device.
  • the first receiving unit includes: receiving the first volume broadcast by the second electronic device and the device identifier; displaying a corresponding display identifier according to the device identifier, wherein the display identifier is related to the device identifier ; Displaying the first volume according to a display mode corresponding to the first volume, wherein the display mode is related to the volume of the first volume.
  • the apparatus further includes: for each of the second electronic devices, displaying the display identifier of the second electronic device in association with the first volume.
  • the device further includes: displaying the second volume and prompting the user that the second volume has not yet taken effect.
  • the first volume is displayed in a first display manner
  • the second volume is displayed in a second display manner different from the first display manner
  • transmitting the second volume and the audio data of the first electronic device to the second electronic device comprises: Audio data is transmitted to the second electronic device.
  • the apparatus further includes: for each second electronic device, separately displaying the first volume and the second volume corresponding to the second electronic device.
  • An embodiment of the present application provides a computer-readable storage medium, and the computer-readable storage medium contains computer-executable instructions for performing any one of the above methods.
  • An embodiment of the present application provides a system, and the system includes: the computer-readable storage medium provided by the second aspect; and a processor capable of executing computer-executable instructions.
  • An embodiment of the present application provides an electronic device, including: at least one memory for storing a program; and at least one processor for executing the program stored in the memory, when the program is executed by the processor, the electronic device performs the above One way.
  • all or part of them 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 for realizing license plate number recognition includes one or more computer instructions for license plate number recognition. When these computer program instructions are loaded and executed on a computer, the process or function according to Figure 4 of the embodiment 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 transmitted from a website, computer, server or data center Transmission to another website site, computer, server or data center by wired (eg coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (eg infrared, wireless, microwave, etc.).
  • the computer-readable storage medium may be any available medium that can be accessed by a computer, or 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 (for example: floppy disk, hard disk, magnetic tape), an optical medium (for example: digital versatile disc (digital versatile disc, DVD)), or a semiconductor medium (for example: solid state disk (solid state disk, SSD) )wait.
  • a magnetic medium for example: floppy disk, hard disk, magnetic tape
  • an optical medium for example: digital versatile disc (digital versatile disc, DVD)
  • a semiconductor medium for example: solid state disk (solid state disk, SSD) )wait.
  • the program can be stored in a computer-readable storage medium.
  • the above-mentioned The storage medium mentioned may be a read-only memory, a magnetic disk or an optical disk, and the like.

Landscapes

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

Abstract

本申请实施例公开一种音量控制方法、装置及电子设备,该音量控制方法应用于第一电子设备,该方法包括获取第二电子设备的第一音量,并显示第一音量,其中,第一电子设备当前未传输音频数据至第二电子设备,接收用户输入的第一操作,其中,第一操作用于设置所述第二电子设备的第二音量,接收用户输入的第二操作,响应于第二操作,将第二音量和第一电子设备的音频数据传输至第二电子设备,以使得第二电子设备使用第二音量播放所述音频数据,以此实现在音频数据流转之前,修改待接收音频数据的第二电子设备的音量,减少音频流转带来的刺耳干扰的情况,给音频分享带来全新体验。

Description

音量控制方法、装置及电子设备
本申请要求于2021年10月31日提交中国专利局、申请号为202111279188.4,发明名称为“音量控制方法、装置及电子设备”的中国专利的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及计算机技术领域,尤其涉及一种音量控制方法、装置及电子设备。
背景技术
随着通信技术的快速发展,用户可以将两个或者两个以上电子设备连接起来,从而实现多媒体数据在多个电子设备之间的交互。例如,电子设备A(如手机)上正在播放音乐,电子设备A与电子设备B(如音箱)连接,将当前播放的音频传输至电子设备B。电子设备B播放该音频,有可能因为电子设备B音量过大产生干扰,造成不愉快的听觉体验。
发明内容
本申请实施例提供一种音量控制方法、装置及电子设备,减少音频流转带来的刺耳干扰的情况,给音频分享带来全新体验。
第一方面,本申请实施例提供一种音量控制方法,应用于第一电子设备,方法包括:获取第二电子设备的第一音量,并显示第一音量,其中,第一电子设备当前未传输音频数据至第二电子设备;接收用户输入的第一操作,其中,第一操作用于设置第二电子设备的第二音量;接收用户输入的第二操作,响应于第二操作,将第二音量和第一电子设备的音频数据传输至第二电子设备,以使得第二电子设备使用第二音量播放音频数据。通过显示待接收音频数据的电子设备当前音量,并对待接收音频数据的电子设备的音量进行设置,便于用户在将音频数据传输至该待接收音频数据的电子设备后,该待接收音频数据的电子设备可以以合适的音量播放音频数据,避免声音流转带来的刺耳干扰的情况,给音频分享带来全新体验。
在一些实施例中,将所述第二音量和所述第一电子设备的所述音频数据传输至所述第二电子设备还包括:建立与第二电子设备之间用于传输第二音量和音频数据的连接。可以在第一电子设备上设置第二电子设备的第二音量,并且可以通过建立连接将设置的第二音量传输给第二电子设备。
在一些实施例中,音量控制方法还包括:响应于第一操作,获取第二电子设备的音量记录,其中音量记录用于记录以往所设置的音量;将音量记录中记录次数最多的音量设置为第二音量;或,将音量记录中最新记录的音量设置为第二音量。将经常设置的音量或最新设置的音量设置为第二音量,使得所设置的第二音量更符合用户的使用习惯。
在一些实施例中,第一电子设备包括采音设备,音量控制方法还包括:响应于第一操作,触发采音设备采集第一电子设备周围环境的环境音;根据环境音设置第二音量。根据环境音所设置的第二音量可以更符合用户的使用环境,提高用户使用体验。
在一些实施例中,在接收到多个第二电子设备的第一音量时,音量控制方法还包括:响应于第一操作,为多个第二电子设备设置同一第二音量。提供全局设置能力,减少用户设置的操作。
在一些实施例中,将所述第二音量和所述第一电子设备的所述音频数据传输至所述第二电子设备,以使得所述第二电子设备使用所述第二音量播放所述音频数据包括:向所述第二电子设备传输第三音量,所述第三音量小于所述第二音量;持续增加所述第三音量,并将调整后的所述第三音量传输给所述第二电子设备,直至所述调整后的所述第三音量达到所述第二音量或达到第一预设条件,其中所述第一预设条件为所述第一电子设备采集到的所述第二电子设备播放音频的音量满足所述第一电子设备所认定的达到所述第二音量的实际音量。通过第一电子设备不断传输音量给第二电子设备,可以使得第二电子设备不断去设置其音量,并使用设置后的音量播放音频。
在一些实施例中,在建立与第二电子设备之间用于传输第二音量和音频数据的连接之前,音量控制方法还包括:检测到第二电子设备的音量高于警戒值,提示用户修改第二电子设备的音量。可以有效避免用户使用一个较高的音量播放音频,避免音量过大产生干扰。
在一些实施例中,获取第二电子设备的第一音量,并显示第一音量包括:接收第二电子设备广播的第一音量与设备标识;根据设备标识显示对应的显示标识,其中显示标识与设备标识相关;根据第一音量对应的显示方式显示第一音量,其中显示方式与第一音量的音量大小相关。通过显示第一音量可以便于用户了解当前第二电子设备的实际音量。
在一些实施例中,音量控制方法还包括:针对每一第二电子设备,将第二电子设备的显示标识与第一音量关联显示。将属于同一第二电子设备的显示标识与第一音量临近显示,可以便于用户了解该显示标识对应的第二电子设备的实际音量。
在一些实施例中,音量控制方法还包括:显示第二音量并提示用户第二音量尚未生效。
在一些实施例中,以第一显示方式显示第一音量,以不同于第一显示方式的第二显示方式显示第二音量。区分显示第一音量和第二音量,便于用户判断。
在一些实施例中,音量控制方法还包括:针对每一第二电子设备,分开显示第二电子设备对应的第一音量与第二音量。避免第二音量覆盖第一音量,用户无法了解该第二电子设备的实际音量。
在一些实施例中,将所述第二音量和所述第一电子设备的所述音频数据传输至所述第二电子设备包括:将所述第二音量随所述第一电子设备的所述音频数据传输至所述第二电子设备。即第一电子设备可以基于同一通信通道传输第二音量与音频数据至第二电子设备。
第一方面,本申请实施例提供一种音量控制装置,应用于第一电子设备,装置包括:第一获取单元,用于获取第二电子设备的第一音量,并显示第一音量,其中,第一电子设备当前未传输音频数据至第二电子设备;第一接收单元,用于接收用户输入的第一操作,其中,第一操作用于设置第二电子设备的第二音量;传输单元,用于接收用户输入的第二操作,响应于第二操作,将第二音量和第一电子设备的音频数据传输至第二电子设备,以使得第二电子设备使用第二音量播放音频数据。
在一些实施例中,将所述第二音量和所述第一电子设备的所述音频数据传输至所述第二电子设备还包括:建立与第二电子设备之间用于传输第二音量和音频数据的连接。
在一些实施例中,第一接收单元还包括:响应于第一操作,获取第二电子设备的音量记 录,其中音量记录用于记录以往所设置的音量;将音量记录中记录次数最多的音量设置为第二音量;或,将音量记录中最新记录的音量设置为第二音量。
在一些实施例中,第一电子设备包括采音设备,第一接收单元还包括:响应于第一操作,触发采音设备采集第一电子设备周围环境的环境音;根据环境音设置第二音量。
在一些实施例中,在接收到多个第二电子设备的第一音量时,第一接收单元还包括:响应于第一操作,为多个第二电子设备设置同一第二音量。
在一些实施例中,音量控制装置还包括:将所述第二音量和所述第一电子设备的所述音频数据传输至所述第二电子设备,以使得所述第二电子设备使用所述第二音量播放所述音频数据包括:向所述第二电子设备传输第三音量,所述第三音量小于所述第二音量;持续增加所述第三音量,并将调整后的所述第三音量传输给所述第二电子设备,直至所述调整后的所述第三音量达到所述第二音量或达到第一预设条件,其中所述第一预设条件为所述第一电子设备采集到的所述第二电子设备播放音频的音量满足所述第一电子设备所认定的达到所述第二音量的实际音量。在一些实施例中,在建立与第二电子设备之间用于传输第二音量和音频数据的连接之前,装置还包括:提示单元,用于检测到第二电子设备的音量高于警戒值,提示用户修改第二电子设备的音量。
在一些实施例中,第一接收单元包括:接收第二电子设备广播的第一音量与设备标识;根据设备标识显示对应的显示标识,其中显示标识与设备标识相关;根据第一音量对应的显示方式显示第一音量,其中显示方式与第一音量的音量大小相关。
在一些实施例中,音量控制装置还包括:针对每一第二电子设备,将第二电子设备的显示标识与第一音量关联显示。
在一些实施例中,音量控制装置还包括:显示第二音量并提示用户第二音量尚未生效。
在一些实施例中,以第一显示方式显示第一音量,以不同于第一显示方式的第二显示方式显示第二音量。
在一些实施例中,音量控制装置还包括:针对每一第二电子设备,分开显示第二电子设备对应的第一音量与第二音量。
在一些实施例中,将所述第二音量和所述第一电子设备的所述音频数据传输至所述第二电子设备包括:将所述第二音量随所述第一电子设备的所述音频数据传输至所述第二电子设备。即第一电子设备可以基于同一通信通道传输第二音量与音频数据至第二电子设备。
第三方面,本申请实施例提供一种电子设备,包括:存储器,用于存储有计算机程序;处理器,用于执行存储器存储的计算机程序,当计算机程序被执行时,处理器用于执行如上任意一项的音量控制方法。
第四方面,本申请实施例提供一种计算机可读存储介质,计算机可读存储介质包括计算机指令,当计算机指令在电子设备上运行时,使得电子设备执行如上任意一项的方法。
第五方面,本申请实施例提供一种计算机程序产品,计算机程序产品包括计算机程序代码,当计算机程序代码被一个计算机执行的时候,计算机程序代码可以使得计算机执行如上任意一项的音量控制方法。
上述其他方面对应的有益效果,可以参见关于方法方面的有益效果的描述,此处不予赘述。
附图说明
图1为本申请实施例提供的一种应用场景示意图。
图2为本申请实施例提供的一种电子设备示意图。
图3(a)-图3(o)为本申请实施例提供的一种超级终端场景示意图。
图4为本申请实施例提供的一种音量控制方法流程示意图。
图5为本申请实施例提供的超级终端界面示意图。
图6(a)-图6(b)为本申请实施例提供的一种第一音量设置示意图。
图7(a)-图7(d)为本申请实施例提供的另一种第一音量设置示意图。
图8(a)-图8(c)为本申请实施例提供的另一种第一音量设置示意图。
图9(a)-图9(c)为本申请实施例提供的另一种第一音量设置示意图。
图10(a)-图10(c)为本申请实施例提供的另一种第一音量设置示意图。
图11(a)-图11(d)为本申请实施例提供的另一种第一音量设置示意图。
图12(a)-图12(c)为本申请实施例提供的另一种第一音量设置示意图。
图13为本申请实施例提供的一种第二音量界面示意图。
图14(a)-图14(b)为本申请实施例提供的一种建立连接的示意图。
图15(a)-图15(d)为本申请实施例提供的另一种建立连接的示意图。
图16(a)-图16(b)为本申请实施例提供的关于第二音量设置场景示意图。
图17为本申请实施例提供的第二音量确认场景示意图。
图18为本申请实施例提供的一种音频数据传输场景示意图。
图19(a)-图19(c)为本申请实施例提供的另一种音频数据传输场景示意图。
图20为本申请实施例提供的一种音量控制装置结构示意图。
具体实施方式
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请中所涉及的多个,是指两个或两个以上。另外,需要理解的是,在本申请的描述中,“第一”、“第二”等词汇,仅用于区分描述的目的,而不能理解为指示或暗示相对重要性,也不能理解为指示或暗示顺序。
下面将结合附图对本实施例的实施方式进行详细描述。
本申请实施例提供的一种音量控制方法可以应用于图1所示的设备组200中,该设备组200包括两个或两个以上的电子设备100。设备组200内的各个电子设备100之间均可以互相通信。例如,设备组200中各个电子设备100通过接入同一个网络300互相通信,其中该网络300可以包括广域网、城域网或局域网等。
示例性地,用户可在多个电子设备100上输入同一用户账户,以使得该多个电子设备100使用同一用户账号登录应用服务器。此时,该多个电子设备100组成了设备组200,设备组200内的各个电子设备100之间均可以通过应用服务器互相通信。
又例如,电子设备100之间也可以通过Wi-Fi连接或蓝牙连接等短距离通信连接组成设备组200。例如,用户可将该多个电子设备均加入名称为“HUAWEI”的Wi-Fi网络。该Wi-Fi网络内的各个电子设备100形成一个局域网,该局域网内的所有电子设备100组成了设备组200。
再例如,设备组200内的各个电子设备100也可以通过蓝牙协议接入同一个蓝牙信标下。
具体地,设备组200内的所有电子设备100均搭载鸿蒙操作***,均接入同一局域网,且均登录同一用户账户。该多个电子设备100可以通过分布式软总线连接起来,并通过分布式软总线互相通信,从而在该多个电子设备100中形成相互协同工作的超级终端场景。在超级终端场景下,电子设备100可以将一项或多项多媒体数据切换至设备组200中的其他电子设备100上播放或显示。其中,该多媒体数据可以包含以下一种或任意组合:文本数据、图像数据、动画数据、音频数据或视频数据。该多媒体数据可以是电子设备在运行应用程序时产生的数据,例如显示数据、音频数据等。
本申请实施例提供的电子设备100也可称之为用户设备(User Equipment,UE)、移动台(Mobile Station,MS)、移动终端(Mobile Terminal)等。可选地,电子设备100可以具备无线接入网(Radio Access Nework,RAN)与一个或多个核心网进行通信的能力,例如,电子设备100可以是手机、平板电脑、桌面型计算机、膝上型计算机、手持计算机、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本,以及蜂窝电话、个人数字助理(personal digital assistant,PDA)、增强现实(augmented reality,AR)设备、虚拟现实(virtual reality,VR)设备、人工智能(artificial intelligence,AI)设备、可穿戴式设备、车载设备、智能家居设备和/或智慧城市设备,本申请实施例对该电子设备100的具体类型不作特殊限制。
请参阅图2,图2为本申请实施例提供的一种电子设备示意图。
电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器 (application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了***的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等***器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与***设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括+至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待传输的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处 理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块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转为电磁波辐射出去。
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯***(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位***(global positioning system,GPS),全球导航卫星***(global navigation satellite system,GLONASS),北斗卫星导航***(beidou navigation satellite system,BDS),准天顶卫星***(quasi-zenith satellite system,QZSS)和/或星基增强***(satellite based augmentation systems,SBAS)。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像 头193中。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
内部存储器121可以包括一个或多个随机存取存储器(random access memory,RAM)和一个或多个非易失性存储器(non-volatile memory,NVM)。
随机存取存储器可以包括静态随机存储器(static random-access memory,SRAM)、动态随机存储器(dynamic random access memory,DRAM)、同步动态随机存储器(synchronous dynamic random access memory,SDRAM)、双倍资料率同步动态随机存取存储器(double data rate synchronous dynamic random access memory,DDR SDRAM,例如第五代DDR SDRAM一般称为DDR5 SDRAM)等;
非易失性存储器可以包括磁盘存储器件、快闪存储器(flash memory)。
快闪存储器按照运作原理划分可以包括NOR FLASH、NAND FLASH、3D NAND FLASH等,按照存储单元电位阶数划分可以包括单阶存储单元(single-level cell,SLC)、多阶存储单元(multi-level cell,MLC)、三阶储存单元(triple-level cell,TLC)、四阶储存单元(quad-level cell,QLC)等,按照存储规范划分可以包括通用闪存存储(英文:universal flash storage,UFS)、嵌入式多媒体存储卡(embedded multi media Card,eMMC)等。
随机存取存储器可以由处理器110直接进行读写,可以用于存储操作***或其他正在运行中的程序的可执行程序(例如机器指令),还可以用于存储用户及应用程序的数据等。
非易失性存储器也可以存储可执行程序和存储用户及应用程序的数据等,可以提前加载到随机存取存储器中,用于处理器110直接进行读写。
外部存储器接口120可以用于连接外部的非易失性存储器,实现扩展电子设备100的存储能力。外部的非易失性存储器通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部的非易失性存储器中。
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性地,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。
触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,触摸屏包括触摸传感器180K与显示屏194,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获 取的血压跳动信号解析心率信息,实现心率检测功能。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
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分离。
在一些实施例中,可预先在电子设备100中设置一个控件,该控件可用于将电子设备100中的一项或多项多媒体数据切换至设备组200中的其他电子设备100上播放。例如,上述控件的功能可以实现为鸿蒙操作***的超级终端功能,该控件即为超级终端控件。发现设备能够自动发现附近登录相同华为账号的被发现设备,组成超级终端,打造全场景协同体验。下述将详细介绍。
以上述电子设备100实现为手机为例,介绍本申请实施例提供的音量控制方法应用于超级终端场景。
用户附近有华为平板、华为电脑、智慧屏、音箱和耳机等搭载鸿蒙操作***的电子设备,用户可以通过超级终端“一拉即合”的连接方式,将手机当前任务(如畅连、视频或音乐)一键流转至智慧屏、音箱等电子设备,让用户看视频或听音乐更畅快。手机作为发现设备,需满足:手机上开启蓝牙、WLAN并登录华为账号。平板和电脑作为被发现设备,需满足:开启蓝牙、WLAN并登录与手机相同的华为账号。智慧屏作为被发现设备,需满足:与手机接入同一局域网,并登录与手机相同的华为账号。音箱作为被发现设备,需满足:与手机进入同一局域网,并绑定与手机相同的华为账号。
如图3(a)所示,用户从显示屏的顶部沿着箭头方向向下拉,手机检测到用户的下拉操作。如图3(b)所示,手机响应于该下拉操作,显示控制中心界面30。用户点击控制中心界面30右上角的编辑按钮301。如图3(c)所示,手机响应于用户点击编辑按钮301,手机上显示编辑框302,编辑框302上显示“显示超级终端”选项303。用户点击显示“显示超级终端”选项303。如图3(d)所示,手机响应于用户点击“显示超级终 端”选项303,手机上呈现超级终端卡片304。超级终端卡片304用于显示手机附近可被发现的电子设备。
在一些实施例中,若检测到当前的手机未满足作为发现设备条件时,可以在超级终端卡片304上进行提示。如手机尚未登录华为账号,如图3(e)所示,在超级终端卡片304上提示“点击登录华为账号,搜索附近我的设备,可与其建立协同”。若手机尚未开启蓝牙,如图3(f)所示,在超级终端卡片304上提示“点击开启蓝牙,搜索附近我的设备,可与其建立协同”。
如图3(g)所示,手机满足作为发现设备的条件,用户点击超级终端卡片304上的搜索图标305。手机响应于用户点击搜索图标305,手机可搜索附近的被发现设备(华为平板、华为电脑、智慧屏、音箱和耳机等),并在超级终端卡片304上显示“正在搜索附近我的设备”。如图3(h)所示,在超级终端卡片304上呈现附近搜索到的华为平板、华为电脑、智慧屏、音箱和耳机对应的显示标识,即呈现华为平板、华为电脑、智慧屏、音箱和耳机对应的设备图标(如平板图标308、电脑图标309、智慧屏图标310、音箱图标311和耳机图标312)。其中,华为平板、华为电脑、智慧屏、音箱和耳机等电子设备的显示标识均不一样,即华为平板、华为电脑、智慧屏、音箱和耳机等电子设备对应的设备图标均不一样。用户想要将手机上的音频数据传输至华为电脑上播放,如图3(i)所示,用户点击电脑图标309。手机响应于用户点击电脑图标309,建立与华为电脑的连接。如图3(j)所示,手机上显示手机与华为电脑接续中,可以协同工作。
在一些实施例中,在手机上呈现如图3(d)所示的超级终端卡片304后,如图3(k)所示,用户可以点击超级终端卡片304上右上角的按钮306。如图3(l)所示,手机响应于用户点击按钮306,在手机上显示超级终端界面307。超级终端界面307上显示附近搜索到的华为平板、华为电脑、智慧屏、音箱和耳机对应的显示标识,即呈现华为平板、华为电脑、智慧屏、音箱和耳机对应的设备图标(平板图标308、电脑图标309、智慧屏图标310、音箱图标311和耳机图标312),还显示该手机对应的设备图标(手机图标313),手机图标313位于超级终端界面307上中心。如图3(m)所示。用户将华为电脑对应的设备图标(电脑图标309)拉至靠近手机图标313。如图3(n)所示,手机响应于用户将电脑图标309拉至与手机图标313靠近,手机上显示的电脑图标309与手机图标313图标高亮,表示该手机与华为电脑已建立连接,可以协同工作。在建立与华为电脑的连接后,手机将音频数据(如正在播放的音乐)传输至华为电脑。如图3(o)所示,华为电脑播放该音乐并显示该音乐的界面(即手机播放该音乐的界面)。也即手机将其上正在播放的音乐切换至华为电脑,由华为电脑播放该音乐。华为电脑上的音量进度条314上显示华为电脑当前的音量为100%。
在上述实施例中,华为电脑当前的音量为100%,用户并不知道华为电脑当前的音量为100%。用户将手机上的音频传输至华为电脑,则华为电脑会以其100%大小的音量播放音频,若用户当前处于一个较为安静的环境,这将产生刺耳的干扰,造成不愉快的听觉体验。
鉴于此,本申请实施例提供了一种音量控制方法,音频数据在电子设备间流转前,即电子设备A将音频数据传输至电子设备B前,在电子设备A上提示电子设备B当前的音量,即第一音量。用户根据提示可以设置一个第二音量。电子设备A与电子设备B之 间建立连接,将第二音量传输给电子设备B,以使得电子设备B将其音量设置为第二音量。电子设备A传输音频数据给电子设备B,电子设备B可以根据第二音量播放音频数据。由此,电子设备A通过提示电子设备B的音量,可以方便用户了解待播放音频数据的电子设备B的音量。电子设备A还提供修改电子设备B音量的能力,方便用户可以根据自身需要控制电子设备B播放音频的音量,避免将音频数据传输至电子设备B上播放时,因电子设备B的音量过大造成干扰,给音频分享带来全新体验。
请参阅图4,图4为本申请实施例提供的一种音量控制方法。
步骤S41:第二电子设备向第一电子设备传输第一音量。
在本申请实施例中,第二电子设备获取其自身的音量大小,即第一音量。在第一电子设备与第二电子设备建立连接之前,或者说第一电子设备传输音频数据至第二电子设备之前,第二电子设备向第一电子设备传输第一音量,如第二电子设备向第一电子设备广播其第一音量。
本申请实施例中的音量可以是***音量(master volume),***音量可以理解为影响着电子设备所有声音的音量。***音量可以写到声卡,控制电子设备所有声音的音量。也可以不写到声卡,而是作为一个乘数因子来影响电子设备所有声音的音量。换句话说,设置***音量即设置所有的应用音量(AudioTrack volume)和流音量(stream volume)。其中,某一应用设置AudioTrack volume时,则仅影响该应用的音量。流音量即某一音频流的音量,即某一音频流设置stream volume时,则仅影响该音频流的音量。
在一些实施例中,音量可以是流音量,其中,音频流(stream)的音量包括但不限于多媒体(media)音量、通话(call)音量、通知(notification)音量和警告(alarm)音量。其中,播放视频的音量可以属于多媒体音量;微信消息的音量可以属于通知音量;闹铃响铃的音量可以属于警告音量。
需要说明的是,本申请实施例中音量对应的音频设备包括但不限于声卡(Sound Card)、扬声器(speaker)、耳机(headset)和蓝牙设备等等。
在本申请实施例中,音量可以用音量比值表示(百分比)表示。该百分比表示该音量对应的播放音量与电子设备的最大播放音量的比例关系。其中,音量对应的百分比越大,该音量对应的播放音量越大,音量对应的百分比越小,该音量对应的播放音量越小。例如,音量50%的播放音量为电子设备的最大播放音量的一半。
在一些实施例中,音量可以用具体数值表示。该具体数值表示该音量对应的播放音量与电子设备的最大播放音量的相对关系。其中,音量对应的数值越大,该音量对应的播放音量越大,音量对应的数值越小,该音量值对应的播放音量越小。例如,音量的数值为200对应的播放音量为最大播放音量,音量的数值为50对应的播放音量为最大播放音量的25%。
在一些实施例中,音量可以用分贝(dB)表示。例如,音量为30dB。
在一些实施例中,将音量大小设置为0-N个等级,音量可以用等级表示。其中,音量的取值为0时表征静音状态,音量的等级越大表征音量越大。需要说明的是,将N的取值大小以及音量大小的划分可由用户根据需要自行设置,比如将N设置为5,则音量一共分为六个等级,分别为0级-静音、1级(静音-最大播放音量的20%大小)、2级(最大播放音量的21%大小-最大播放音量的40%大小)、3级(最大播放音量的41%大小-最大播放音量的60%大小)、4级(最大播放音量的61%大小-最大播放音量的80%大小)、5级(最大播放音量的81%大小- 最大播放音量)。其中,音量大小除了以百分比的形式进行表示外,还可以通过分贝的形式进行表示,本申请实施例对此不进行具体限定。以N=5为例,在存储等级与音量大小之间的对应关系时,可采取下述表1所示的格式:
表1
音量大小 等级
静音 0
静音-最大播放音量的20%大小 1
最大播放音量的21%大小-最大播放音量的40%大小 2
最大播放音量的41%大小-最大播放音量的60%大小 3
最大播放音量的61%大小-最大播放音量的80%大小 4
最大播放音量的81%大小-最大播放音量 5
在本申请实施例中,上述音量的各种表示方式之间可以进行转换,示例性地,音量百分比与分贝之间的转换关系如下表2:
表2
百分比(%) 分贝(dB)
10 20
20 30
30 40
40 50
示例性地,第二电子设备可以通过函数getMasterVolume获取当前其自身的音量,即第一音量,然后在通信协议的自定义拓展字段中添加关于第一音量的信息,并对外广播。其中,通信协议包括但不限于蓝牙低功耗(Bluetooth Low Energy,BLE)协议、受限制的应用协议(Constrained Application Protocol,CoAP)。
在本申请实施例中,第二电子设备对外广播其对应的第一音量的同时还可以对外广播其对应的设备标识。第一电子设备接收到广播,可以知道该第二电子设备对应的设备标识以及第一音量。其中设备标识用于唯一标识第二电子设备,即每一第二电子设备的设备标识均是唯一的,各个第二电子设备的设备标识不同。其中,设备标识可以为互联网协议地址(Internet Protocol Address,IP地址)或设备号等。
可以理解,第二电子设备的数量包括多个时,各个第二电子设备均可以获取其对应的第一音量。任一第二电子设备均可以通过广播方式向第一电子设备广播其对应的第一音量以及设备标识。任一第二电子设备,其设备标识与其第一音量关联。第一电子设备接收到多个第二电子设备的广播时,其可以获得各个第二电子设备的设备标识以及与该设备标识关联的第一音量。
下述以音量为***音量,并以百分比形式表示音量进行说明。
步骤S42:第一电子设备获取第二电子设备的第一音量,并显示该第一音量。
在本申请实施例中,第一电子设备接收第二电子设备广播的第一音量,并显示该第一音量。第一电子设备具有显示功能,如第一电子设备具有显示屏,第一电子设备通过其显示屏显示接收到的广播信息(如第一音量、设备标识)。或,第一电子设备将接收到的广播信息(如第一音量、设备标识)传输至其他具有显示屏的外设设备,通过外设设备的显示屏显示信息。 第一电子设备通过显示第一音量告知用户到当前显示的第一音量为第二电子设备当前的音量。第一电子设备通过显示多个第二电子设备的第一音量告知用户各个第二电子设备当前的音量。
在本申请实施例中,第一电子设备获取第二电子设备的第一音量可以为第一电子设备可以主动向第二电子设备请求第二电子设备的第一音量,第二电子设备响应该请求向第一电子设备发送第二电子设备的第一音量,也可以为,第一电子设备接收第二电子设备广播的第一音量,本申请对此不作具体限定。
在本申请实施例中,第一电子设备获取第二电子设备的第一音量时,其尚未传输音频数据至第二电子设备。或者说,在第一电子设未传输音频数据之前,第一电子设备获取第二电子设备的第一音量。或者说,第一电子设备之前曾传输过音频数据给第二电子设备,现在第一电子设备未传输音频数据至第二电子设备,第一电子设备获取第二电子设备的第一音量。
在本申请实施例中,第一电子设备显示第二电子设备的第一音量时,还可以同时显示该第二电子设备的显示标识。该显示标识用于区分各个第二电子设备,便于用户通过显示标识可以确定该显示标识对应的第二电子设备。显示标识与设备标识有关,不同的第二电子设备,其对应的设备标识不同,相应地,对应的显示标识也可以不同。用户通过显示标识可以了解到当前该第二电子设备具体为哪个电子设备,或知道该第一音量对应的电子设备。
在本申请实施例中,可以预先为不同的设备类型设置不同的显示标识。第一电子设备可以根据第二电子设备的设备标识确定该第二电子设备的设备类型,进而根据对应的设备类型显示对应的显示标识。例如,若电子设备的设备类型为手机,则其对应的显示标识为手机标识。若电子设备的设备类型为电脑,则其对应的显示标识为电脑标识。若电子设备的设备类型为耳机,则其对应的显示标识为耳机标识。若电子设备的设备类型为智慧屏,则其对应的显示标识为智慧屏标识。若电子设备的设备类型为音箱,则其对应的显示标识为音箱标识。若电子设备的设备类型为平板,则其对应的显示标识为平板标识。
在一些实施例中,显示标识可以实现为设备图标。如手机标识实现为手机图标,电脑标识实现为电脑图标,智慧屏标识实现为智慧屏图标,耳机标识实现为耳机图标,音箱标识实现为音箱图标,平板标识实现为平板图标。
在一些实施例中,该显示标识还可以实现为文字标识,如文字标识可以为:笔记本(MateBook)、音箱(Sound X)、耳机(HUAWEI FreeBuds)、华为平板(MatePad Pro)和智慧屏等。
在一些实施例中,该显示标识可以实现为文字标识以及对应设备图标,如电子设备为笔记本,其对应的显示标识可以包括笔记本图标以及对应的文字标识“MateBook”。
可以理解,显示标识还可以实现为符号、文字和控件等中的一种或多种,本申请对显示标识的具体形式不作具体限定。
在一些实施例中,可以预先为不同音量大小的音量设置对应的显示方式。第一电子设备可以以不同的显示方式分别显示多个音量大小不同的音量。第一电子设备显示第一音量时,可以根据第一音量确定该第一音量对应的显示方式,然后根据对应的显示方式显示该第一音量。第一电子设备以不同的显示方式分别显示多个音量大小不同的第一音量,通过不同的显示方式区分第一音量的音量大小,可以告知用户所显示的各个第一音量的音量大小不同。通过显示方式可以告知用户第二电子设备当前的第一音量是否适合播放音频。若第二电子设备 的第一音量过大,第一电子设备还可以提示用户修改第二电子设备的音量。
在本申请实施例中,可以根据实际情况将第一音量的音量大小划分出不同范围,并对不同范围设置对应的显示方式。示例性地,音量大小以百分比表示,将音量大小划分为四个范围,第一范围为:大于或等于0,且小于25%,对应第一种显示方式。第二范围为:大于或等于25%,且小于50%,对应第二种显示方式。第三范围:大于或等于50%,且小于75%,对应第三种显示方式。第四范围:大于或等于75%,且小于或等于100%,对应第四种显示方式。第一种显示方式至第四种显示方式均不同。
在本申请实施例中,显示方式可以包括显示颜色、显示样式和显示数值等。其中,显示颜色可以包括:色相、颜色饱和度和亮度等。例如,色相可以呈现红橙黄绿青蓝紫的区别。显示样式可以包括显示图案、显示形状、填充类型、填充区域等。显示数值可以包括具体数值,例如百分比不同或分贝等。
在一些实施例中,显示方式可以实现为音量图标,第一音量的不同显示方式可以表现为音量图标的区别。以音量图标在超级终端界面上显示为线条形式,则不同长度的线条代表不同音量图标,不同长度的线条代表不同显示方式也即代表不同音量范围(或音量大小)。或不同颜色的线条代表不同音量图标,不同颜色的线条代表不同显示方式也即代表不同的音量范围(或音量大小)。或不同数量的线条代表不同音量图标,不同数量的线条代表不同显示方式也即代表不同的音量范围(或音量大小)。还可以显示该第一音量对应的数值(如百分比或分贝),根据数值了解到该第一音量的音量大小。可以理解,音量图标的表现形式,以及音量图标的区分显示不限于上述描述,本申请实施例对此不作具体限定。
在一些实施例中,第一电子设备可以将属于同一第二电子设备的显示标识与第一音量关联显示。通过关联显示,用户可以知道该显示标识所对应的第二电子设备的第一音量。如第二电子设备的显示标识为A,对应的第一音量为B。第一电子设备将A与B关联显示,则用户可以知道显示标识A对应的第二电子设备的第一音量为B。
在本申请实施例中,在第一电子设备接收到多个第二电子设备的广播时,可以将该多个第二电子设备的显示标识显示在不同的显示区域。显示标识与第一音量关联显示可以实现为,将第一电子设备的显示界面如超级终端界面划分成多个显示区域,每一第二电子设备唯一对应一显示区域,将属于同一第二电子设备的设备图标与音量图标显示在该第二电子设备所对应的显示区域内,即将属于同一第二电子设备的设备图标与音量图标靠近显示在该第二电子设备所对应的显示区域内。
第一电子设备附近具备广播能力的第二电子设备均可以广播其设备标识与第一音量。在超级终端场景中,第一电子设备接收到符合被发现设备条件的第二电子设备的广播信息,其显示该第二电子设备的设备标识与第一音量。可以理解,在其他场景中,第一电子设备接收到第二电子设备的广播信息后,即可以显示该第二电子设备的设备标识与第一音量,对第二电子设备不作具体限定。
示例性地,以第一电子设备为手机,音量图标为围绕在设备图标外周的线条,不同线条长度代表不同音量大小为例。用户可以参照上述图3(g)操作,搜索手机附近的第二电子设备,接收附近第二电子设备广播的广播信息。请参阅图5,手机接收得到附近第二电子设备(平板、华为电脑、耳机、音箱和智慧屏)的广播信息,在超级终端界面500上显示平板对应的显示标识和第一音量,即显示平板图标501以及围在平板图标501周围的第一音量图标 502。在超级终端界面500上显示华为电脑对应的显示标识和第一音量,即显示电脑图标503以及围在电脑图标503周围的第一音量图标504。在超级终端界面500上显示耳机对应的显示标识和第一音量,即显示耳机图标505以及围在耳机图标505周围的第一音量图标506。在超级终端界面500上显示音箱对应的显示标识和第一音量,即显示音箱图标507以及围在音箱图标507周围的第一音量图标508。在超级终端界面500上显示智慧屏对应的显示标识和第一音量,即显示智慧屏图标509以及围在智慧屏图标509周围的第一音量图标510。在超级终端界面500上还显示手机图标511,手机图标511位于超级终端界面500的中心。如图5所示,各个第二电子设备对应的设备图标与音量图标分别显示在超级终端界面500上的不同显示区域。针对每一第二电子设备,其设备图标与音量图标靠近显示。
图5与图3(l)的区别在于还显示各个第二电子设备所广播的第一音量,即显示围绕各个设备图标的周围的第一音量图标。以第一音量图标的长度围绕设备图标一周代表音量大小100%。第一音量图标502的长度为刚好围绕平板图标502外周的一半,则第一音量图标502代表平板的第一音量为50%。第一音量图标504的长度为刚好围绕电脑图标503外周的四分之三,则第一音量图标504代表电脑的第一音量为75%。第一音量图标506的长度为刚好围绕耳机图标505外周的一半,则第一音量图标506代表耳机的第一音量为50%。第一音量图标508的长度为刚好围绕音箱图标507外周一圈,则第一音量图标508代表音箱的第一音量为100%。第一音量图标510的长度为刚好围绕智慧屏图标509外周一圈,则第一音量图标510代表智慧屏的第一音量为100%。
其中,如图5所示,第一音量图标508和第一音量图标510均代表音量为100%,则第一音量图标508和第一音量图标510的线条填充是一样。第一音量图标502和第一音量图标506均代表音量为50%,则第一音量图标502和第一音量图标506的线条填充是一样。第一音量图标504与第一音量图标508的线条填充不同,第一音量图标504与第一音量图标502的线条填充不同。
在一些实施例中,音量图标除了表现线条的填充样式不同如图5所示,音量图标还可以表现为颜色不同。如第一音量图标508和第一音量图标510的线条颜色均为红色。第一音量图标502和第一音量图标506的线条颜色均为绿色。第一音量图标5041线条颜色为黄色。
在一些实施例中,对于音量百分比小于50%的第一音量,音量图标的颜色线条为绿色,代表音量大小合适。对于音量百分比为50%至80%的第一音量,音量图标的颜色线条为黄色,代表音量略大,可能会对环境产生干扰。对于音量百分比为大于80%的第一音量,音量图标的颜色线条为红色,代表音量过大,会对环境产生干扰。
可以理解,手机接收得到附近第二电子设备的广播信息,也可以在超级终端卡片上显示接收到的第二电子设备所广播的显示标识和第一音量。在超级终端卡片上显示第二电子设备(或各个第二电子设备)对应的显示标识和第一音量,具体可以参考上述图5在超级终端界面500上显示第二电子设备对应的显示标识和第一音量,在此不再赘述。
步骤S43:第一电子设备接收用户输入的第一操作,其中,第一操作用于设置第二电子设备的第二音量。
在本申请实施例中,在步骤S42中,第一电子设备将接收到的各个第二电子设备所广播的第一音量显示出来后,用户可以看到各个第二电子设备对应的第一音量。第一电子设备还提供音量控制能力,该音量控制能力可以为用户提供控制第二电子设备音量的功能。用户使 用该音量控制能力,可以根据自身需求去设置或调节第二电子设备的音量,即用户可以通过第一电子设备提供的音量控制能力,控制第二电子设备以用户期望的音量播放音频。如用户在第一电子设备上输入第一操作,第一电子设备响应于该第一操作得到第二音量,该第二音量为用户希望第二电子设备播放音频时所使用的音量,或用户希望第二电子设备依据该第二音量去设置播放音频时所使用的音量,将播放音频时所使用的音量设置为第二音量。
可以理解为,用户看到第二电子设备的音量为第一音量对应的音量大小后,用户想要重新设置第二电子设备的音量,用户输入第一操作,该第一操作用于将第二电子设备的音量由第一音量对应的音量大小设置为第二音量对应的音量大小。
需要说明的是,若第一音量为***音量,则第二音量也为***音量。若第一音量为某一音频流音量,则第二音量也为该音频流音量。
需要说明的是,在第二音量生效前,第二电子设备的实际音量仍为第一音量,该第二音量可以理解为存储至第一电子设备上的临时修改音量。示例性地,用户可以在手机上输入第一操作,将平板对应的第一音量H设置为第二音量A,然后又将第二音量A修改为第二音量B,最后又将第二音量B修改为第二音量C,第一电子设备可以将第二音量A、第二音量B和第二音量C均存储至本地,或,仅存储当前最新设置的第二音量C。在第二音量C未生效前(如未将第二音量C传输给平板前),平板播放音频的音量仍为第一音量H。
在本申请实施例中,第二音量生效可以理解为第二电子设备可以依据该第二音量播放音频。第二音量生效的时间可以在第一电子设备与第二电子设备建立连接时、第一电子设备将第二音量传输给第二电子设备时、第一电子设备将第二音量传输给第二电子设备后、第一电子设备将第二音量和音频数据传输给第二电子设备时、第一电子设备将第二音量和音频数据传输给第二电子设备后或第一电子设备将第二音量传输给第二电子设备后,第一电子设备将音频数据传输给第二电子设备前。
在本申请实施例中,第一电子设备可以实时响应于用户的第一操作得到第二音量,并实时显示用户当前设置的最新的第二音量。通过实时显示用户设置的最新的第二音量,便于用户了解当前为第二电子设备所设置的第二音量。
在本申请实施例中,第一电子设备可以告知用户该第二音量是临时的、未生效的,还可以告知用户在设置好第二电子设备的第二音量后,若在预设时间内所设置的第二音量未生效,则该第二音量将不显示,恢复显示第二电子设备对应的实际音量即第一音量。
在一种可能实现方式中,第一电子设备可以通过提示告知用户该第二音量是临时的、未生效的,还可以通过提示告知用户在预设时间内所设置的第二音量未生效,则该第二音量将不显示,恢复显示第二电子设备对应的实际音量即第一音量。示例性地,第一电子设备在显示第二音量时,将上述提示呈现在界面上,该提示在界面上可以表现为显示提示框、音量区分标识和第一音量与第二音量不同的显示方式中的一种或多种。其中,提示框内显示相应的文字以起到提示用户的作用。音量区分标识为用于区分第一音量与第二音量的标识,通过音量区分标识便于用户可以区分出第一音量与第二音量,进而了解到第一音量为实际音量,第二音量为未生效的临时修改音量。第一音量与第二音量不同的显示方式即第二音量以区别于第一音量显示方式进行显示的显示方式。如以第一显示方式显示第一音量,以不同于第一显示方式的第二显示方式显示第二音量,通过不同显示方式(第一显示方式和第二显示方式)可以便于用户区分出第一音量与第二音量,进而了解到第一音量为实际音量,第二音量为未 生效的临时修改音量。本申请实施例对提示的表现形式不作具体限定。
在一些实施例中,可以在电子设备初次使用音量区分标识或使用第一音量与第二音量不同的显示方式作为提示时,一并呈现提示框告知用户音量区分标识或该不同的显示方式的提示意义,以便用户可以在下回看到用音量区分标识或不同的显示方式,了解到第一音量是实际音量,第二音量为未生效的临时修改音量。
在本申请实施例中,第一电子设备提供给用户的音量控制能力中进行音量设置的模式包括手动设置模式。在手动设置模式下,该第一操作用于根据用户的意愿直接设置第二电子设备的第二音量的数值,第一电子设备接收用户输入的第一操作,根据第一操作所指示的音量大小设置第二电子设备的第二音量,即第二音量的具体数值是由用户输入的。手动设置模式下的第一操作可以包括滑动、点击、长按、键盘输入或按压第一电子设备的音量键等,本申请对第一操作的具体表现形式不作具体限定。
示例性地,以用户在图5的超级终端界面500上输入第一操作,上述提示表现为显示提示框,用户在手机的显示屏上滑动来设置第二音量为例。
音量图标均可以编辑。用户想要设置华为电脑的第二音量,用户可以输入第一操作,如用户滑动第一音量图标504,将第一音量图标504的长度滑动至围绕电脑图标503外周的一半,得到如图6(a)所示的第二音量图标601。图6(a)中的第二音量图标601与图5中的第一音量图标504的区别在于,第二音量图标601的长度相对于第一音量图标504的长度变短,且第二音量图标601还包括箭头602。该箭头602代表当前第二音量图标601处于音量设置状态,也即该第二音量图标601所代表的第二音量尚未生效,仍处于编辑状态,第二音量图标601可以根据用户的滑动改变其长度。如图6(b)所示,用户松开对手机显示屏的触控,手机检测到用户释放滑动操作,手机上显示第二音量图标603,第二音量图标603代表华为电脑的第二音量为50%。图6(b)中的第二音量图标603与图6(a)中的第二音量图标601区别在于:第二音量图标603没有箭头602,即代表当前华为电脑的第二音量设置完毕。如图6(b)所示,在超级终端界面500上还可以显示提示框604,提示框604可以显示在第二音量图标603附近。该提示框604上显示“第二音量50%尚未生效”、“第二音量50%为临时修改音量”或“若在十秒内第二音量50%未生效,则将恢复显示第一音量75%”。其中提示“若在十秒内第二音量50%未生效,则将恢复显示第一音量75%”,即代表在预设时间10秒内,设置的第二音量50%未生效,则该第二音量图标603将消失,将在电脑图标503外周显示第一音量图标504。也即如图6(b)所示设置好的第二音量后,经过十秒该第二音量未生效,则刷新超级终端界面500如图5所示。
示例性地,以用户在图5的超级终端界面500上输入第一操作,上述提示表现为音量区分标识,用户通过键盘输入第二音量为例。
第一电子设备可以提供音量设置窗口,用户输入的第一操作可以包括多个子操作。如图7(a)所示,手机上显示电脑图标503以及围绕在电脑图标503外周的第一音量图标504。用户想要设置华为电脑的第二音量,用户输入第一操作包括用户点击电脑图标503,手机响应用户点击电脑图标503,在超级终端界面500上显示音量设置窗口701。音量设置窗口701上显示华为电脑当前的音量,音量设置窗口701上显示音量百分比%为75,即当前华为电脑的第一音量为75%。如图7(b)所示,用户输入第一操作还包括用户选中音量设置窗口701内“75”,音量设置窗口701内“75”被选中后,在超级终端界面500上显示输入键盘702。 如图7(c)所示,用户输入第一操作还包括用户通过输入键盘702输入数字“5”和“0”,设置第二音量为50%,则音量设置窗口701上显示音量百分比%为50。用户若想修改第二音量,可以选中音量设置窗口701内“50”,继续通过输入键盘702输入数字进行修改。若用户退出键盘702,则手机确定第二音量为50%。如图7(d)所示,手机上显示音量图标703。音量图标703与图5第一音量图标504的区别在于:音量图标703增加了起始标识704、第一音量终止标识705和第二音量终止标识706。起始标识704与第一音量终止标识705分别用于指示第一音量的起始与终止。起始标识704与第一音量终止标识705之间线条长度代表第一音量为75%。起始标识704与第二音量终止标识706分别用于指示第二音量的起始与终止。起始标识704与第二音量终止标识706之间线条长度代表第二音量为50%。
上述起始标识704、第一音量终止标识705和第二音量终止标识706均不同,可以表现为不同的箭头,本申请对此不作具体限定。
示例性地,以用户在图5的超级终端界面500上输入第一操作,上述提示表现为第一音量与第二音量不同的显示方式,用户通过按压第一电子设备的音量键设置第二音量为例。
如图8(a)所示,手机上显示电脑图标503以及围绕在电脑图标503外周的第一音量图标504。用户想要设置华为电脑的第二音量,用户输入第一操作包括用户长按电脑图标503。手机响应用户长按电脑图标503,在手机超级终端界面500上显示音量进度条801。音量进度条801上填充区域占音量进度条801整个区域的四分之三,代表华为电脑当前的音量即第一音量为75%。用户可以按压手机的音量键802的音量“+”键和音量“-”键来设置第二音量。如图8(b)所示,用户输入第一操作还包括用户按压音量“-”键,调整音量进度条801上填充区域占音量进度条801整个区域的一半,即将音量调整为50%,代表当前设置的第二音量为50%。用户松开对音量键802的按压,手机检测到用户对音量键802按压的释放,获取最终设置的音量“50%”,将该音量“50%”作为第二音量。如图8(c)所示,根据设置的第二音量“50%”显示第二音量图标803,第一音量图标504与第二音量图标803同时显示在电脑图标503附近。第一电子设备区分显示第一音量与第二音量,以第一显示方式(第一音量图标504)显示第一音量,以第二显示方式(第二音量图标803)显示第二音量,第一音量图标504和各自的线条不同。第一音量图标504与第二音量图标803分开显示,即第二音量图标803的显示并不会覆盖第一音量图标504的显示,代表临时修改音量并不会覆盖第二电子设备的真实音量。第二音量图标803线条长度为刚好围绕电脑图标503外周的一半,即代表第二音量为50%。
需要说明的是,本申请对此第一操作的具体形式、第一音量图标、第二音量图标以及上述提示的显示形式不作具体限定。
在一种可能实现方式中,第一电子设备提供给用户的音量控制能力中进行音量设置的模式包括自动设置模式。在自动设置模式下,第一电子设备接收用户输入的第一操作,响应于第一操作根据预设规则设置第二音量。即第二音量的具体数值并非是由用户当下直接输入的。自动设置模式下的第一操作可以包括滑动、点击、双击、长按或手势(如画圈手势)等。
在一些实施例中,第一电子设备响应于第一操作根据预设规则设置第二音量包括:第一电子设备响应于第一操作,触发第一电子设备的采音设备采集第一电子设备周围环境的环境音,根据该环境音设置第二音量。
在本申请实施例中,用户要将第一电子设备上的音频数据传输至第二电子设备,由第二 电子设备播放该音频数据,可以得到第一电子设备与第二电子设备处于同一环境下。第一电子设备主动去采集周围环境的环境音,采集到的环境音也即第二电子设备周围环境的环境音。其中,环境音可以使用分贝(dB)表示。
在本申请实施例中,第一电子设备根据其采音设备所采集到的环境音设置第二音量。如,周围环境声音很大,采集到的环境音的分贝为85dB,第一电子设备可以设置较大的第二音量,第二电子设备使用较大的第二音量播放音频,以保证用户听到音频。若周围环境声音很小,采集到的环境音的分贝为15dB,第一电子设备可以设置较小的第二音量,以此保证第二电子设备所使用的第二音量能与环境音之间保持舒适的音量,提高用户的听觉体验。示例性地,第一电子设备检测到当前环境的环境音为85dB,为了保证用户能听到音频,可以设置第二音量为比环境音的音量更大,如90dB,也可以根据音量百分比与分贝之间的换算,将90dB换算成音量百分比85%,设置第二音量为85%。
在一些实施例中,也可以预先将不同环境音的音量大小设置不同的等级,并对不同等级设置对应的第二音量。如下表3所示:
表3
环境音的音量大小 等级 第二音量
0dB 0 15dB以下或10%
15dB以下 1 30dB或20%
30dB 2 40dB或30%
40dB 3 60dB或40%
60dB 4 70dB或50%
70dB 5 85dB或60%
85dB 6 95dB或70%
95dB 7 100dB或80%
100dB 8 110dB或90%
110dB 9 120dB或100%
示例性地,以用户在图5的超级终端界面500上输入第一操作,上述提示表现为第一音量与第二音量不同的显示方式,用户长按图标设置第二音量为例。
如图9(a)所示,手机上显示电脑图标503以及围绕在电脑图标503外周的第一音量图标504。用户想要设置华为电脑的第二音量,用户可以输入第一操作,如用户双击电脑图标503。如图9(b)所示,手机响应于用户双击电脑图标503,触发采音设备(如麦克风)采集周围环境的环境音。手机上显示采音状态标识901,该采音状态标识901指示当前手机处于采音状态中。如图9(c)所示,手机获得当前周围环境的环境音的音量大小为60dB,手机依照上述表3设置第二音量为50%。手机上显示音量进度条902,音量进度条902上填充区域占音量进度条902整个区域的一半,代表当前第二音量为50%。第一音量以第一音量图表504表示,第二音量以音量进度条902表示。第一音量图表504和音量进度条902表现形式不同,第一音量图表504以围绕至电脑图标503外周线条长度表达第一音量大小,音量进度条902以填充区域占整个进度条区域的百分比表达第二音量大小。
在一些实施例中,第一电子设备响应于第一操作根据预设规则设置第二音量包括:第一电子设备响应于第一操作确定第一操作所指示的第二电子设备,获取该第二电子设备的音量 记录,根据该音量记录设置第二音量,其中音量记录用于记录该第二电子设备以往所设置过的生效的第二音量。如,第一电子设备可以获取该音量记录中记录次数最多的音量(如10%),将该记录次数最多的音量设置为当前的第二音量。第一电子设备还可以将音量记录中最新记录的音量(如10%)设置为当前的第二音量。
在本申请实施例中,第一电子设备可以获取每一第二电子设备的设备标识以及其生效的第二音量,将第二电子设备的设备标识与其生效的第二音量关联存储。例如,针对某一第二电子设备,该第二电子设备的设备标识为A,用户先为该第二电子设备设置第二音量为a,然后设置第二音量为b,第二音量b生效。在下一次,用户为该第二电子设备设置第二音量为c,第二音量c生效。第一电子设备可以记录该第二电子设备的音量记录为:设备标识A以及其以往所设置过的生效的第二音量包括第二音量b和第二音量c。第一电子设备还可以记录每一第二音量生效的时间,如第二音量b在时刻T0生效,第二音量c在T1时刻生效,手机可以根据生效时间可以确定最新记录的音量。
示例性地,以用户在图5的超级终端界面500上输入第一操作,上述提示表现为提示框,用户输入画圈手势设置第二音量为例。
如图10(a)所示,手机上显示电脑图标503以及围绕在电脑图标503外周的第一音量图标504。用户想要设置华为电脑的第二音量,用户可以输入第一操作,如用户围绕电脑图标503外周围滑动一圈。如图10(b)所示,手机响应于用户围绕电脑图标503滑动一圈的操作,手机获取该电脑图标503对应的华为电脑的音量记录,该音量记录中最新记录的生效的第二音量为50%。手机将最新记录的第二音量50%设置为第二音量。手机也可以显示提示窗口102,提示窗口102内显示“是否设置为上一次设置的音量50%”以及“是”选项和“否”选项。若用户点击“否”选项,则用户可以选择手动设置,或手机以其他规则设置第二音量,如手机将音量记录中记录次数最多的音量设置为第二音量。若用户点击“是”选项,手机响应用户点击“是”选项设置华为电脑的第二音量为50%。如图10(c)所示,手机上显示提示框103“第二音量50%”,该提示框103还可以显示“尚未生效”。
在一些实施例中,第一电子设备提供给用户的音量控制能力中进行音量设置的模式包括全局设置模式。在全局设置模式下,第一电子设备可以自动对所有的第二电子设备均设置同一第二音量。全局设置模式下的第一操作可以包括触发全局设置控件、输入特定手势等,本申请对第一操作的具体表现形式不作具体限定。
示例性地,用户触发全局设置控件,第一电子设备响应于用户触发全局设置控件,对其接收到的广播信息所对应的所有的第二电子设备设置第二音量,也可以理解为对超级终端界面500上的所显示的所有第二电子设备(如平板、华为电脑、耳机、音箱和智慧屏)设置第二音量。例如,第一电子设备接收到设备A和设备B广播的第一音量以及设备标识,则该接收到的广播信息所对应的所有的第二电子设备即指设备A和设备B。第二音量可以采用上述手动设置模式或自动设置模式进行设置获得。换句话说,在全局设置模式下,用户输入的第一操作不是针对某一第二电子设备设置第二音量,而是针对第一电子设备接收到的广播信息所对应的所有的第二电子设备设置第二音量。
在本申请实施例中,在全局设置模式中,第一电子设备自动为其接收到的广播信息所对应的所有第二电子设备均设置同一第二音量A。在多个第二电子设备均设置第二音量A后,则对于某一第二电子设备,其第二音量生效的时间可以参考上述第二音量生效的时间,在此 不再赘述。
示例性地,以用户在全局设置模式下手动设置第二音量为例。请参阅图11(a),超级终端界面500上还包括全局设置控件111,本申请对全局设置控件111在界面上呈现形式不作具体限定。用户想要设置第二电子设备的第二音量,用户可以输入第一操作。如图11(a),用户输入的第一操作可以包括用户点击全局设置控件111。用户点击全局设置控件111后,用户可以采用图6(a)所示的方式设置第二音量。用户输入的第一操作还可以包括用户对任一第二电子设备的音量图标进行调整,用户输入的第一操作还可以包括用户滑动第一音量图标504,将第一音量图标504的长度滑动至围绕电脑图标503外周的一半,则可以得到如图11(b)所示的第二音量图标110,第二音量图标110长度为围绕电脑图标503外周的一半,代表第二音量为50%。在用户设置完第二音量后,如图11(b)所示,手机上可以显示窗口112“是否设置第二音量为50%”以及“是”和“否”选项。其中显示窗口112内还可以显示“是否全局设置第二音量为50%”,显示窗口112显示的内容用于提示用户当前设置的第二音量还可以提示用户当前设置的第二音量为全局设置,本申请对具体显示内容不作具体限定。若用户点击“否”选项,则不对所有第二电子设备(如平板、华为电脑、耳机、音箱和智慧屏)设置第二音量50%。若用户点击“是”选项,确认将所有第二电子设备(平板、华为电脑、耳机、音箱和智慧屏)的第二音量设置为50%。如图11(c)所示,手机显示音量进度条113,音量进度条113标识第二音量为50%,即当前超级终端界面500上所显示的所有的第二电子设备的第二音量为50%。若所有第二电子设备的第二音量均生效,则所有第二电子设备均使用第二音量50%播放音频。
在一些实施例中,用户可以采用图7(a)至图7(c)所示的方式设置第二音量,在用户点击全局设置控件111后,用户输入的第一操作还可以包括用户可以点击任一第二电子设备的设备图标。如图7(a)所示,用户点击电脑图标503,用户输入的第一操作还可以包括用户选中音量设置窗口内“75”后,用户通过输入法键盘输入“50”,设置第二音量为50%。手机获得用户设置的第二音量50%,将所有第二电子设备的第二音量均设置为50%。在一些实施例中,用户可以采用图8(a)至图8(b)所示的方式设置第二音量,在用户点击全局设置控件111后,用户输入的第一操作还可以包括用户可以长按任一第二电子设备的设备图标。如图8(a)所示,用户长按电脑图标503,用户输入的第一操作还可以包括用户按压音量“-”,将音量调整为50%,手机获得用户设置的第二音量50%,将所有第二电子设备的第二音量均设置为50%。用户可以通过上述任一手动设置模式设置第二音量,本申请对此不作具体限定。
在一些实施例中,该全局设置控件可以集合自动设置模式所提供的功能,即用户点击全局设置控件后,第一电子设备可以采用上述自动设置模式设置第二音量。
示例性地,以手机根据环境音设置第二音量为例。如图11(a)所示,用户输入第一操作可以包括用户点击全局设置控件111,在用户点击全局设置控件111后,用户可以采用图9(a)至图9(b)所示的方式设置第二音量。用户输入第一操作还可以包括用户双击任一第二电子设备的设备图标,手机可以显示采音状态标识901。手机获得当前周围环境的环境音,手机依照上述表3根据所获得的环境音的音量大小自动设置第二音量为50%。如图11(d)所示,手机显示提示框114“全局设置第二音量为50%”,告知用户当前所有第二电子设备的第二音量均设置为50%。
在一些实施例中,以手机根据所有第二电子设备的音量记录设置第二音量为例。手机获得所有第二电子设备的音量记录,从这些音量记录中获得记录次数最多的音量或当前最新记录的音量,将记录次数最多的音量或当前最新记录的音量设置为第二音量。例如所有第二电子设备包括设备A和设备B,设备A的音量记录中记录音量a的次数为5次,音量b的次数为4次,设备B的音量记录中记录音量a的次数为2次,音量b的次数为4次,则可以得到记录次数最多的音量为b。
如图12(a)所示,用户顺时针沿着所有第二电子设备的设备图标(平板图标501、电脑图标503、耳机图标505、音箱图标507和智慧屏图标509)滑动一圈,手机检测到用户输入的画圈手势。手机响应于用户的画圈手势,手机获取所有第二电子设备的音量记录,从这些音量记录中可以获得出现次数最多的音量为50%,则可以将该记录次数最多的音量50%确定为第二音量。如图12(b)所示,手机显示提示框121“是否全局设置第二音量为50%”和“是”选项和“否”选项。若用户点击“否”选项,手机可以为用户提供手动设置模式或自动设备模式以供用户继续设置第二音量。用户点击“是”选项,则全局设置第二电子设备的第二音量为50%。用户确定设置所有第二电子设备第二音量为50%。如图12(c)所示,各个第二电子设备上均显示对应的第二音量图标121,该第二音量图标121标识该第二音量为50%。手机上还显示提示框122“第二音量尚未生效,请建立连接”,以引导用户建立连接。可以理解,上述第二音量若未在预设时间内生效,则恢复显示如图12(a)所示的界面。
在一些实施例中,全局设置所有第二电子设备的第二音量后,可以将第二音量与各个第一电子设备的第一音量区分显示。如图13所示,手机上显示平板图标501、围在所述平板图标501周围的第一音量图标502以及第二音量图标131,第二音量图标131指示当前平板的第二音量为50%。手机上显示电脑图标503、围在电脑图标503周围的第一音量图标504以及第二音量图标132,第二音量图标132指示当前电脑的第二音量为50%。手机上显示耳机图标505、围在耳机图标505周围的第一音量图标506以及第二音量图标133,第二音量图标133指示当前耳机的第二音量为50%。手机上显示音箱图标507、围在音箱图标507周围的第一音量图标508以及第二音量图标134,第二音量图标134指示当前音箱的第二音量为50%。手机上显示智慧屏图标509、围在智慧屏图标509周围的第一音量图标510以及第二音量图标135,第二音量图标135指示当前智慧屏的第二音量为50%。手机还显示提示框136,提示框136内显示“第二音量尚未生效,拖拽至本机以建立连接或发起任务接续”,以此指示用户将第二电子设备图标拖拽至手机图标511,以建立连接。步骤S44:第一电子设备接收用户输入的第二操作。
在本申请实施例中,在步骤S43中用户设置第二音量后,用户在第一电子设备上再输入第二操作,该第二操作用于触发第一电子设备建立与第二电子设备之间用于传输第二音量与音频数据的连接,触发第一电子设备将第二音量传输给第二电子设备,以及触发第一电子设备将音频数据传输给第二电子设备。
示例性地,如图8(c)所示,用户设置第二音量为50%后,如图14(a)所示,用户想要将第二音量和音频数据传输给第二电子设备,用户可以输入第二操作,第二操作可以包括用户在超级终端界面500上进行滑动操作,如用户将电脑图标503拖拽至手机图标511所处位置。如图14(b)所示,电脑图标503与手机图标511接触后,电脑图标503与手机图标511处于高亮,显示为华为电脑与手机处于连接状态。在一些实施例中,在手机与电脑建立 连接后,如图14(b)所示,围在电脑图标503周围的第一音量图标504消失,仅显示围在电脑图标503周围的音量图标141。图14(b)与图8(c)的区别在于:电脑图标503与手机图标511贴近,围在电脑图标503周围的第一音量图标504消失,仅显示围在电脑图标503周围的音量图标141。音量图标141的显示方式与第一音量图标504的显示方式可以相似,例如图14(b)中的音量图标141和第一音量图标504的线条形状或填充是相同,区别仅在于音量图标141和第一音量图标504线条的长度是不一样的。音量图标141表示此时第二电子设备即电脑的音量为50%,也即当前第二电子设备的实际音量为50%。
示例性地,如图13所示,用户设置完所有第二电子设备的第二音量50%后,如图15(a)所示,用户点击返回按键1501。如图15(b)所示,手机上显示控制中心界面30,在超级终端卡片304上显示平板图标501以及第二音量图标131,第二音量图标131指示当前平板的第二音量为50%。还显示电脑图标503以及第二音量图标132,第二音量图标132指示当前平板的第二音量为50%。还显示耳机图标505以及第二音量图标133,第二音量图标133指示当前平板的第二音量为50%。还显示音箱图标507以及第二音量图标154,第二音量图标134指示当前平板的第二音量为50%。还显示智慧屏图标509以及第二音量图标155,第二音量图标135指示当前平板的第二音量为50%。如图15(c)所示,用户想要将第二音量与音频数据发送给华为电脑,用户可以在超级终端卡片304上输入第二操作,用户输入第二操作如用户点击电脑图标503,手机响应用户点击电脑图标503建立电脑与手机的连接,则电脑的第二音量50%即将生效。如图15(d),显示手机与电脑正在建立连接,华为电脑所设置的第二音量50%生效。电脑图标503下显示音量图标151,音量图标151表示经过设置的华为电脑的音量为50%,即当前华为电脑的实际音量为50%。
在一些实施例中,在第一电子设备建立其与第二电子设备之间用于传输第二音量和音频数据的连接前,若该第二电子设备的音量较大,例如高于一定百分比、警戒值、阈值、或高于当前第一电子设备的音量百分比,可以提示用户进行音量设置。
示例性地,用户未设置第二电子设备的第二音量,在第一电子设备建立其与第二电子设备之间用于传输第二音量和音频数据的连接前,第一电子设备检测到该第二电子设备的音量(即第一音量)高于一定百分比、警戒值、阈值、或高于当前第一电子设备的音量百分比,则可以提示用户进行音量设置。如图16(a)所示,用户未对华为电脑设置第二音量,用户将电脑图标503拖拽至靠近手机图标511过程中,手机上显示提示框161“是否需要设置第二音量”、“是”选项和“否”选项,用户点击“否”选项,则用户可以继续将电脑图标503拖拽至靠近手机图标511。若用户点击“是”选项,则用户可以参考上述自动设置模式或手动设置模式设置第二音量。
在一些实施例中,用户设置了第二电子设备的第二音量,在第一电子设备建立其与第二电子设备之间用于传输第二音量和音频数据的连接前,第一电子设备检测到该第二电子设备的音量(即第二音量)高于一定百分比、警戒值、阈值、或高于当前第一电子设备的音量百分比,则可以提示用户进行音量设置。如图16(b),用户对华为电脑设置了第二音量,用户可以将电脑图标503拖拽至手机图标511处,手机将电脑图标503返回至原处,并显示提示框162,提示框162内显示“当前音量过大,是否需要设置”、“是”选项和“否”选项,若用户点击“否”选项,则手机将电脑图标503拖拽至手机图标511处。若用户点击“是”选项,则用户可以参考上述自动设置模式或手动设置模式设置第二音量。
在一些实施例中,在第二音量设置完成后、第二音量即将生效前、或第一电子设备即将要将第二音量传输给第二电子设备前、或第一电子设备即将与第二电子设备建立连接前,可以显示提示,是否确认当前所设置的第二音量。若用户确认,则第一电子设备将第二音量、音频数据或第二音量与音频数据传输给第二电子设备。
示例性地,如图12(c)所示用户设置好第二音量,并将电脑图标503拖拽至手机图标511后。如图17所示,手机上还可以显示提示框171,提示框171内显示“是否确认设置第二音量为50%”、“是”选项和“否”选项。用户点击“是”选项,则可以继续步骤,如第一电子设备继续建立其与第二电子设备连接、第一电子设备继续将第二音量传输给第二电子设备。若用户点击“否”选项,则用户可以参考上述自动设置模式或手动设置模式对音量设置。
在一些实施例中,如图15(c)用户设置好第二音量,并点击电脑图标503后,可以在超级终端卡片304上显示上述提示框171。
需要说明的是,不限于在用户在超级终端界面500上输入第一操作、第二操作,用户还可以在超级终端卡片304上输入第一操作、第二操作,即如图15(b)所示的超级终端卡片304可以参考上述超级终端界面500显示各个元素或控件,如包括第二电子设备的显示标识、第一音量图标、第二音量图标、全局设置控件以及上述提示等,本申请对此不作具体限定。
需要说明的是,第一电子设备还可以提供音量设置界面,音量设置界面可以参考上述超级终端界面500进行显示,在该音量设置界面上可以参考超级终端界面500或超级终端卡片304显示各个元素或控件,如包括第二电子设备的显示标识、第一音量图标、第二音量图标、全局设置控件以及上述提示等。本申请对此不作具体限定。例如,用户点击手机上的设置选项,进入音量设置界面。
步骤S45:第一电子设备建立与第二电子设备之间用于传输第二音量和音频数据的连接。
在本申请实施例中,在步骤S44中,第一电子设备检测到用户的第二操作,第一电子设备响应于该第二操作,建立与第二电子设备之间用于传输第二音量和音频数据的连接。上述连接可以为无线通信连接,例如,Wi-Fi连接、蓝牙连接、P2P连接、NFC连接或基于蜂窝网络的通信连接等,或者,上述连接也可以为有线连接,例如,可使用数据线或dock设备连接手机与笔记本电脑,本申请实施例对此不做任何限制。
示例性地,可在笔记本电脑上设置NFC芯片或电子标签,并在该NFC芯片或电子标签中存储笔记本电脑的设备信息,例如笔记本电脑的MAC地址等。进而,手机开启NFC功能后,通过接近或触碰笔记本电脑上的NFC芯片或电子标签,可获取到笔记本电脑的设备信息。这样,手机按照该设备信息可与笔记本电脑建立蓝牙连接、Wi-Fi连接或P2P连接等连接。
又例如,笔记本电脑上可显示预设的二维码,该二维码中包括笔记本电脑的设备信息。那么,手机通过扫描笔记本电脑上的二维码也可获取到笔记本电脑的设备信息。这样,手机按照该设备信息可与笔记本电脑建立蓝牙连接、Wi-Fi连接或P2P连接等连接。
当然,用户也可以使用手机创建Wi-Fi热点,并将笔记本电脑接入手机创建的Wi-Fi热点中,从而建立手机与笔记本电脑之间的连接,本申请实施例对手机与笔记本电脑建立连接的具体方式不做任何限制。
步骤S46:第一电子设备传输第二音量至第二电子设备。
在本申请实施例中,第一电子设备基于其与第二电子设备之间的用于传输第二音量的连接,向第二电子设备传输第二音量。示例性地,第一电子设备可以向第二电子设备发送音量 设置请求,并发送第二音量。
在本申请实施例中,如图17所示,用户确认设置第二音量为50%,则该第二音量50%生效。或在第一电子设备与第二电子设备建立连接时,如图14(b)所示,将该设置了第二音量的电脑图标503拖拽至手机图标511处,则该第二音量50%生效。或如图15(c)用户点击电脑图标503,则设置的第二音量生效。
步骤S47:第二电子设备将其音量设置为第二音量。
在本申请实施例中,第二电子设备可以调用函数setVolume(AudioVolumeType volumeType,int volume)设置第二音量。在第二音量设置完成后,第二电子设备可以响应于第一电子设备发送的音量设置请求,回复音量设置完毕。
步骤S48:第一电子设备传输音频数据至第二电子设备。
在本申请实施例中,第一电子设备基于其与第二电子设备之间的用于传输音频数据的连接,向第二电子设备传输音频数据。
在一些实施例中,若第一电子设备同时向第二电子设备传输第二音量与音频数据,则第二电子设备需等第二音量设置完毕之后再播放音频数据。
在一些实施例中,第一电子设备接收到第二电子设备返回的音量设置完毕的信息后,第一电子设备还可以显示确认信息,如第一电子设备显示“是否确认设置第二音量50%”或显示“是否确认以50%音量播放音频”,若用户选择确认,则第一电子设备再传输音频数据至第二电子设备。
在本申请实施例中,步骤46和步骤S48可以同时进行,或者先进行步骤46后进行步骤S48,或者,先进行步骤48后进行步骤S46,本申请实施例对此不作具体限定。
在一些实施例中,第一电子设备将第二音量随第一电子设备的音频数据传输至第二电子设备。即第一电子设备可以基于步骤S45建立的同一通信通道传输第二音量和第一电子设备的音频数据。
步骤S49:第二电子设备接收音频数据,并使用第二音量播放音频数据。
在本申请实施例中,在步骤S47中,第二电子设备已经设置其当前音量为第二音量,第二电子设备将使用第二音量播放该音频数据。如图18所示,用户设置电脑的音量为50%,电脑上显示音量进度条181,音量进度条181上显示当前音量为50%。在手机将音频数据传输至电脑上后,电脑以50%音量播放音频数据。
在一些实施例中,第一电子设备提供给用户的音量控制能力中包括“安全模式”。在“安全模式”下,用户输入的操作可以使得第一电子设备不断地设置第二音量并不断向第二电子设备传输该第二音量,直至传输的第二音量满足第一预设条件。第一电子设备可以响应于用户输入的操作,向第二电子设备传输第三音量,第三音量小于第二音量;持续增加第三音量,并将调整后的第三音量传输给第二电子设备,直至调整后的第三音量达到第二音量或达到第一预设条件,其中第一预设条件为第一电子设备采集到的第二电子设备播放音频的音量满足第一电子设备所认定的达到第二音量的实际音量。例如直至第一电子设备检测到第二电子设备所播放音频的音量(如分贝)合适即达到第一预设条件,或直至第二电子设备对其音量进行调整后得到的音量达到第二音量(如百分比)。
也即,在“安全模式”下,可以通过一个步骤来设置第二音量以及触发第一电子设备将第二音量和音频数据传输给第二电子设备。第一操作和第二操作可以合并为一个操作,或者 说第一操作具有第二操作的功能,第二操作为可选操作。
示例地,请参阅图19(a),用户输入的操作可以包括用户按压开关键191与电脑图标503,以此触发安全模式。手机检测到用户触发安全模式,如图19(b),手机建立与第二电子设备的连接,并向电脑传输第三音量10%和音频数据。华为电脑接收到第三音量为10%,将其音量设置为10%。华为电脑以10%音量播放音频数据。手机检测到华为电脑播放音频的分贝为5dB,未达到预设分贝10dB。如图19(c),手机根据步进值10%调整第三音量,手机将第三音量10%增加步进值10%,得到20%音量,手机继续向电脑传输第二音量20%和音频数据。华为电脑接收到第二音量为20%,将其音量设置为20%。华为电脑以20%音量播放音频数据,手机检测到华为电脑播放音频数据的分贝为10dB,达到预设分贝10dB,则手机停止继续向电脑传输第二音量。
在一些实施例中,在安全模式下,第一电子设备向第二电子设备传输安全模式指令与第三音量。第二电子设备接收到该安全模式指令,响应于该安全模式指令不断调整该第三音量,直至第一电子设备检测到当前第二电子设备所播放音频的音量合适,或直至第二电子设备调整后的第三音量达到第二音量。在第一电子设备检测到第二电子设备所设置的音量达到第一预设条件,则第一电子设备向第二电子设备发送停止指令,第二电子设备停止设置其音量,并以该达到预设条件的音量播放音频。
在本申请实施例中,通过显示待接收音频数据的电子设备当前音量,并提供对待接收音频数据的电子设备音量控制能力,便于用户在将音频数据传输至该待接收音频数据的电子设备后,该待接收音频数据的电子设备可以以合适的音量播放音频数据,避免声音流转带来的刺耳干扰的情况,给音频分享带来全新体验。
请参阅图20,图20为本申请实施例提供的一种音量控制装置结构示意图。其中,音量控制装置400可以用于执行图4至图19(c)中所描述的方法的部分或全部步骤,具体请参见图4至图19(c)中的相关描述,在此不再赘述。音量控制装置400可以包括:
第一接收单元401,用于获取第二电子设备的第一音量,并显示所述第一音量,其中,所述第一电子设备当前未传输音频数据至所述第二电子设备。
第一接收单元402,用于接收用户输入的第一操作,其中,所述第一操作用于设置所述第二电子设备的第二音量。
传输单元403,用于接收用户输入的第二操作,响应于所述第二操作,将所述第二音量和所述第一电子设备的所述音频数据传输至所述第二电子设备,以使得所述第二电子设备使用所述第二音量播放所述音频数据。
在一些实施例中,将所述第二音量和所述第一电子设备的所述音频数据传输至所述第二电子设备还包括:建立与所述第二电子设备之间用于传输所述第二音量和所述音频数据的连接。
在一些实施例中,第一接收单元还包括:响应于所述第一操作,获取所述第二电子设备的音量记录,其中所述音量记录用于记录以往所设置的音量;将所述音量记录中记录次数最多的音量设置为所述第二音量;或,将所述音量记录中最新记录的音量设置为所述第二音量。
在一些实施例中,第一电子设备包括采音设备,所述第一接收单元还包括:响应于所述第一操作,触发所述采音设备采集所述第一电子设备周围环境的环境音;根据所述环境音设置所述第二音量。
在一些实施例中,在接收到多个第二电子设备的第一音量时,所述第一接收单元还包括:响应于所述第一操作,为所述多个第二电子设备设置同一所述第二音量。
在一些实施例中,所述装置还包括:将所述第二音量和所述第一电子设备的所述音频数据传输至所述第二电子设备,以使得所述第二电子设备使用所述第二音量播放所述音频数据包括:向所述第二电子设备传输第三音量,所述第三音量小于所述第二音量;持续增加所述第三音量,并将调整后的所述第三音量传输给所述第二电子设备,直至所述调整后的所述第三音量达到所述第二音量或达到第一预设条件,其中所述第一预设条件为所述第一电子设备采集到的所述第二电子设备播放音频的音量满足所述第一电子设备所认定的达到所述第二音量的实际音量。
在一些实施例中,在所述建立与所述第二电子设备之间用于传输所述第二音量和所述音频数据的连接之前,所述装置还包括:提示单元,用于检测到所述第二电子设备的音量高于警戒值,提示用户修改所述第二电子设备的音量。
在一些实施例中,所述第一接收单元包括:接收第二电子设备广播的第一音量与设备标识;根据所述设备标识显示对应的显示标识,其中所述显示标识与所述设备标识相关;根据所述第一音量对应的显示方式显示所述第一音量,其中所述显示方式与所述第一音量的音量大小相关。
在一些实施例中,所述装置还包括:针对每一所述第二电子设备,将所述第二电子设备的显示标识与所述第一音量关联显示。
在一些实施例中,所述装置还包括:显示所述第二音量并提示用户所述第二音量尚未生效。
在一些实施例中,以第一显示方式显示所述第一音量,以不同于所述第一显示方式的第二显示方式显示所述第二音量。
在一些实施例中,将所述第二音量和所述第一电子设备的所述音频数据传输至所述第二电子设备包括:将所述第二音量随所述第一电子设备的所述音频数据传输至所述第二电子设备。
在一些实施例中,所述装置还包括:针对每一所述第二电子设备,分开显示所述第二电子设备对应的所述第一音量与所述第二音量。本申请实施例提供一种计算机可读存储介质,计算机可读存储介质包含用于执行上述任一项的方法的计算机可执行指令。
本申请实施例提供一种***,***包括:第二方面提供的计算机可读存储介质;和能够执行计算机可执行指令的处理器。
本申请实施例提供一种电子设备,包括:至少一个存储器,用于存储程序;和至少一个处理器,用于执行存储器存储的程序,当程序被处理器执行时,以使得电子设备执行如上任一的方法。
虽然已经示出并描述了本发明构思的一些示例实施例,但是本领域普通技术人员之一将理解,在不脱离由所附权利要求限定的精神和范围的情况下,可对其作出各种形式和细节上的修改。因此,以上公开的主题内容应该理解为示出性而非限制性的,并且所附权利要求旨在覆盖落入本发明构思的实质精神和范围内的所有这种修改、改进和其它实施例。因此,在法律允许的最大程度内,通过对所附权利要求及其等同物的允许的最宽解释确定本发明构思的范围,并且所述范围不应由以上具体实施方式限制或局限。
上述各个附图对应的流程的描述各有侧重,某个流程中没有详述的部分,可以参见其他流程的相关描述。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。实现车牌号码识别的计算机程序产品包括一个或多个进行车牌号码识别的计算机指令,在计算机上加载和执行这些计算机程序指令时,全部或部分地产生按照本申请实施例图4的流程或功能。
所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如:同轴电缆、光纤、数据用户线(digital subscriber line,DSL))或无线(例如:红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如:软盘、硬盘、磁带)、光介质(例如:数字通用光盘(digital versatile disc,DVD))、或者半导体介质(例如:固态硬盘(solid state disk,SSD))等。
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。
以上所述为本申请提供的实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。

Claims (29)

  1. 一种音量控制方法,其特征在于,应用于第一电子设备,所述方法包括:
    获取第二电子设备的第一音量,并显示所述第一音量,其中,所述第一电子设备当前未传输音频数据至所述第二电子设备;
    接收用户输入的第一操作,其中,所述第一操作用于设置所述第二电子设备的第二音量;
    接收用户输入的第二操作,响应于所述第二操作,将所述第二音量和所述第一电子设备的所述音频数据传输至所述第二电子设备,以使得所述第二电子设备使用所述第二音量播放所述音频数据。
  2. 如权利要求1所述的音量控制方法,其特征在于,所述将所述第二音量和所述第一电子设备的所述音频数据传输至所述第二电子设备还包括:
    建立与所述第二电子设备之间用于传输所述第二音量和所述音频数据的连接。
  3. 如权利要求1所述的音量控制方法,其特征在于,所述方法还包括:
    响应于所述第一操作,获取所述第二电子设备的音量记录,其中所述音量记录用于记录以往所设置的音量;
    将所述音量记录中记录次数最多的音量设置为所述第二音量;
    或,将所述音量记录中最新记录的音量设置为所述第二音量。
  4. 如权利要求1所述的音量控制方法,其特征在于,所述第一电子设备包括采音设备,所述方法还包括:
    响应于所述第一操作,触发所述采音设备采集所述第一电子设备周围环境的环境音;
    根据所述环境音设置所述第二音量。
  5. 如权利要求1所述的音量控制方法,其特征在于,在接收到多个第二电子设备的第一音量时,所述方法还包括:
    响应于所述第一操作,为所述多个第二电子设备设置同一所述第二音量。
  6. 如权利要求1所述的音量控制方法,其特征在于,所述将所述第二音量和所述第一电子设备的所述音频数据传输至所述第二电子设备,以使得所述第二电子设备使用所述第二音量播放所述音频数据包括:
    向所述第二电子设备传输第三音量,所述第三音量小于所述第二音量;
    持续增加所述第三音量,并将调整后的所述第三音量传输给所述第二电子设备,直至所述调整后的所述第三音量达到所述第二音量或达到第一预设条件,其中所述第一预设条件为所述第一电子设备采集到的所述第二电子设备播放音频的音量满足所述第一电子设备所认定的达到所述第二音量的实际音量。
  7. 如权利要求1至6任一项所述的音量控制方法,其特征在于,在所述建立与所述第二电子设备之间用于传输所述第二音量和所述音频数据的连接之前,所述方法还包括:
    检测到所述第二电子设备的音量高于警戒值,提示用户修改所述第二电子设备的音量。
  8. 如权利要求1至7任一项所述的音量控制方法,其特征在于,所述获取第二电子设备的第一音量,并显示所述第一音量包括:
    接收第二电子设备广播的第一音量与设备标识;
    根据所述设备标识显示对应的显示标识,其中所述显示标识与所述设备标识相关;
    根据所述第一音量对应的显示方式显示所述第一音量,其中所述显示方式与所述第一音量的音量大小相关。
  9. 如权利要求8所述的音量控制方法,其特征在于,所述方法还包括:
    针对每一所述第二电子设备,将所述第二电子设备的显示标识与所述第一音量关联显示。
  10. 如权利要求1至9任一项所述的音量控制方法,其特征在于,所述方法还包括:
    显示所述第二音量并提示用户所述第二音量尚未生效。
  11. 如权利要求1至10任一项所述的音量控制方法,其特征在于,以第一显示方式显示所述第一音量,以不同于所述第一显示方式的第二显示方式显示所述第二音量。
  12. 如权利要求1至11任一项所述的音量控制方法,其特征在于,所述方法还包括:
    针对每一所述第二电子设备,分开显示所述第二电子设备对应的所述第一音量与所述第二音量。
  13. 如权利要求1至12任一项所述的音量控制方法,其特征在于,所述将所述第二音量和所述第一电子设备的所述音频数据传输至所述第二电子设备包括:
    将所述第二音量随所述第一电子设备的所述音频数据传输至所述第二电子设备。
  14. 一种音量控制装置,其特征在于,应用于第一电子设备,所述装置包括:
    第一获取单元,用于获取第二电子设备的第一音量,并显示所述第一音量,其中,所述第一电子设备当前未传输音频数据至所述第二电子设备;
    第一接收单元,用于接收用户输入的第一操作,其中,所述第一操作用于设置所述第二电子设备的第二音量;
    传输单元,用于接收用户输入的第二操作,响应于所述第二操作,将所述第二音量和所述第一电子设备的所述音频数据传输至所述第二电子设备,以使得所述第二电子设备使用所述第二音量播放所述音频数据。
  15. 如权利要求14所述的音量控制装置,其特征在于,所述将所述第二音量和所述第一电子设备的所述音频数据传输至所述第二电子设备还包括:
    建立与所述第二电子设备之间用于传输所述第二音量和所述音频数据的连接。
  16. 如权利要求14所述的音量控制装置,其特征在于,所述第一接收单元还包括:
    响应于所述第一操作,获取所述第二电子设备的音量记录,其中所述音量记录用于记录以往所设置的音量;
    将所述音量记录中记录次数最多的音量设置为所述第二音量;
    或,将所述音量记录中最新记录的音量设置为所述第二音量。
  17. 如权利要求14所述的音量控制装置,其特征在于,第一电子设备包括采音设备,所述第一接收单元还包括:
    响应于所述第一操作,触发所述采音设备采集所述第一电子设备周围环境的环境音;
    根据所述环境音设置所述第二音量。
  18. 如权利要求14所述的音量控制装置,其特征在于,在接收到多个第二电子设备的第一音量时,所述第一接收单元还包括:
    响应于所述第一操作,为所述多个第二电子设备设置同一所述第二音量。
  19. 如权利要求14所述的音量控制装置,其特征在于,所述将所述第二音量和所述第一电子设备的所述音频数据传输至所述第二电子设备,以使得所述第二电子设备使用所述第二 音量播放所述音频数据包括:
    向所述第二电子设备传输第三音量,所述第三音量小于所述第二音量;
    持续增加所述第三音量,并将调整后的所述第三音量传输给所述第二电子设备,直至所述调整后的所述第三音量达到所述第二音量或达到第一预设条件,其中所述第一预设条件为所述第一电子设备采集到的所述第二电子设备播放音频的音量满足所述第一电子设备所认定的达到所述第二音量的实际音量。
  20. 如权利要求14至19任一项所述的音量控制装置,其特征在于,在所述建立与所述第二电子设备之间用于传输所述第二音量和所述音频数据的连接之前,所述装置还包括:
    提示单元,用于检测到所述第二电子设备的音量高于警戒值,提示用户修改所述第二电子设备的音量。
  21. 如权利要求14至20任一项所述的音量控制装置,其特征在于,所述第一接收单元包括:
    接收第二电子设备广播的第一音量与设备标识;
    根据所述设备标识显示对应的显示标识,其中所述显示标识与所述设备标识相关;
    根据所述第一音量对应的显示方式显示所述第一音量,其中所述显示方式与所述第一音量的音量大小相关。
  22. 如权利要求21所述的音量控制装置,其特征在于,所述装置还包括:
    针对每一所述第二电子设备,将所述第二电子设备的显示标识与所述第一音量关联显示。
  23. 如权利要求14至22任一项所述的音量控制装置,其特征在于,所述装置还包括:
    显示所述第二音量并提示用户所述第二音量尚未生效。
  24. 如权利要求14至23任一项所述的音量控制装置,其特征在于,以第一显示方式显示所述第一音量,以不同于所述第一显示方式的第二显示方式显示所述第二音量。
  25. 如权利要求14至24任一项所述的音量控制装置,其特征在于,所述装置还包括:
    针对每一所述第二电子设备,分开显示所述第二电子设备对应的所述第一音量与所述第二音量。
  26. 如权利要求14至25任一项所述的音量控制装置,其特征在于,所述装置还包括:
    将所述第二音量随所述第一电子设备的所述音频数据传输至所述第二电子设备。
  27. 一种电子设备,其特征在于,包括:
    存储器,用于存储有计算机程序;
    处理器,用于执行所述存储器存储的所述计算机程序,当所述计算机程序被执行时,所述处理器用于执行如权利要求1至13任意一项所述的音量控制方法。
  28. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求1至13任意一项所述的方法。
  29. 一种计算机程序产品,其特征在于,所述计算机程序产品包括计算机程序代码,当所述计算机程序代码被一个计算机执行的时候,所述计算机程序代码可以使得所述计算机执行权利要求1至13任意一项的音量控制方法。
PCT/CN2022/115932 2021-10-31 2022-08-30 音量控制方法、装置及电子设备 WO2023071502A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111279188.4 2021-10-31
CN202111279188.4A CN116069287A (zh) 2021-10-31 2021-10-31 音量控制方法、装置及电子设备

Publications (1)

Publication Number Publication Date
WO2023071502A1 true WO2023071502A1 (zh) 2023-05-04

Family

ID=86160161

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/115932 WO2023071502A1 (zh) 2021-10-31 2022-08-30 音量控制方法、装置及电子设备

Country Status (2)

Country Link
CN (1) CN116069287A (zh)
WO (1) WO2023071502A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117032437A (zh) * 2023-07-12 2023-11-10 荣耀终端有限公司 一种音频播放方法及电子设备

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101808271A (zh) * 2010-02-01 2010-08-18 中兴通讯股份有限公司 一种可调节对端终端麦克音量的方法
CN106792386A (zh) * 2016-12-05 2017-05-31 青岛海信电器股份有限公司 一种终端音量调节方法及装置
CN106970699A (zh) * 2016-01-14 2017-07-21 北京小米移动软件有限公司 音量控制方法、***、穿戴式设备及终端
US20190317722A1 (en) * 2018-04-11 2019-10-17 Matthew Cohn System and method for capturing and accessing real-time audio and associated metadata
CN113438356A (zh) * 2021-05-18 2021-09-24 荣耀终端有限公司 一种音量调节方法及终端设备
CN114007125A (zh) * 2021-10-15 2022-02-01 杭州逗酷软件科技有限公司 音量控制方法、移动终端、目标设备及存储介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101808271A (zh) * 2010-02-01 2010-08-18 中兴通讯股份有限公司 一种可调节对端终端麦克音量的方法
CN106970699A (zh) * 2016-01-14 2017-07-21 北京小米移动软件有限公司 音量控制方法、***、穿戴式设备及终端
CN106792386A (zh) * 2016-12-05 2017-05-31 青岛海信电器股份有限公司 一种终端音量调节方法及装置
US20190317722A1 (en) * 2018-04-11 2019-10-17 Matthew Cohn System and method for capturing and accessing real-time audio and associated metadata
CN113438356A (zh) * 2021-05-18 2021-09-24 荣耀终端有限公司 一种音量调节方法及终端设备
CN114007125A (zh) * 2021-10-15 2022-02-01 杭州逗酷软件科技有限公司 音量控制方法、移动终端、目标设备及存储介质

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117032437A (zh) * 2023-07-12 2023-11-10 荣耀终端有限公司 一种音频播放方法及电子设备

Also Published As

Publication number Publication date
CN116069287A (zh) 2023-05-05

Similar Documents

Publication Publication Date Title
CN110138937B (zh) 一种通话方法、设备及***
WO2021213120A1 (zh) 投屏方法、装置和电子设备
WO2020098437A1 (zh) 一种播放多媒体数据的方法及电子设备
US11703960B2 (en) Air mouse mode implementation method and related device
WO2021052214A1 (zh) 一种手势交互方法、装置及终端设备
WO2020062159A1 (zh) 无线充电方法及电子设备
WO2022100610A1 (zh) 投屏方法、装置、电子设备及计算机可读存储介质
WO2021083128A1 (zh) 一种声音处理方法及其装置
JP7468830B2 (ja) エネルギー効率の良い表示処理方法およびデバイス
CN113923230B (zh) 数据同步方法、电子设备和计算机可读存储介质
WO2021037146A1 (zh) 一种移动终端的文件共享方法及设备
US20230189366A1 (en) Bluetooth Communication Method, Terminal Device, and Computer-Readable Storage Medium
CN111132234A (zh) 一种数据传输方法及对应的终端
WO2021000817A1 (zh) 环境音处理方法及相关装置
WO2021017909A1 (zh) 一种通过nfc标签实现功能的方法、电子设备及***
WO2020078336A1 (zh) 翻译方法及终端
WO2020056684A1 (zh) 通过转发模式连接的多tws耳机实现自动翻译的方法及装置
WO2021031865A1 (zh) 通话方法及装置
US20230125956A1 (en) Wireless Communication System and Method
WO2022007944A1 (zh) 一种设备控制方法及相关装置
CN114115770A (zh) 显示控制的方法及相关装置
WO2023273543A1 (zh) 一种文件夹管理方法及装置
CN113986369B (zh) 物联网设备控制方法、***、电子设备及存储介质
WO2023071502A1 (zh) 音量控制方法、装置及电子设备
CN113593567B (zh) 视频声音转文本的方法及相关设备

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE