CN111641753B - Audio output control method and device, electronic equipment and readable storage medium - Google Patents

Audio output control method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN111641753B
CN111641753B CN202010463554.0A CN202010463554A CN111641753B CN 111641753 B CN111641753 B CN 111641753B CN 202010463554 A CN202010463554 A CN 202010463554A CN 111641753 B CN111641753 B CN 111641753B
Authority
CN
China
Prior art keywords
electronic
audio
output
audio output
indication information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010463554.0A
Other languages
Chinese (zh)
Other versions
CN111641753A (en
Inventor
浠gゥ
代祥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202010463554.0A priority Critical patent/CN111641753B/en
Publication of CN111641753A publication Critical patent/CN111641753A/en
Application granted granted Critical
Publication of CN111641753B publication Critical patent/CN111641753B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the application provides an audio output control method, an audio output control device and electronic equipment, relates to the technical field of communication, and can solve the problems of complex operation and time consumption of a user in the process of temporarily switching a mobile phone using a wireless Bluetooth headset. The method applied to the first electronic equipment comprises the following steps: under the condition that the first electronic equipment establishes communication connection with the audio output equipment, sending first indication information to the second electronic equipment, wherein the first indication information is used for indicating the second electronic equipment to display a target control; under the condition of receiving second indication information sent by the second electronic equipment, controlling the audio output equipment to output first audio; the first indication information comprises information that the first electronic equipment establishes communication connection with the audio output equipment, and the second indication information comprises information of the first audio. The method is applied to a scene that a plurality of electronic devices share one audio output device.

Description

Audio output control method and device, electronic equipment and readable storage medium
Technical Field
The embodiment of the application relates to the technical field of communication, in particular to an audio output control method and device and electronic equipment.
Background
A Wireless bluetooth headset (TWS) is paired with an electronic device such as a mobile phone using bluetooth technology and establishes Wireless connection to output audio. For example, for a mobile phone that has recently established a wireless connection with a wireless bluetooth headset, a user may trigger the wireless bluetooth headset to automatically pair with the mobile phone and establish a wireless connection by opening a headset box of the wireless bluetooth headset. Namely, the wireless bluetooth headset has the functions of automatic pairing and instant connection after opening the box. However, current wireless bluetooth headsets are not able to automatically pair and re-establish wireless connections directly between multiple electronic devices.
When a user needs to temporarily switch a mobile phone using a wireless Bluetooth headset, the mobile phone and the wireless Bluetooth headset which are currently in wireless connection are required to be manually disconnected, and then another mobile phone is manually triggered to start a Bluetooth function and is matched with the wireless Bluetooth headset to establish wireless connection. Thus, the operation of the user is cumbersome and time-consuming during the temporary switching of the mobile phone using the wireless bluetooth headset.
Disclosure of Invention
The embodiment of the application provides an audio output control method, an audio output control device and electronic equipment, and can solve the problems of complex operation and time consumption of a user in the process of temporarily switching a mobile phone using a wireless Bluetooth headset.
In order to solve the above technical problem, the embodiment of the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides an audio output control method, which is applied to a first electronic device, and includes: under the condition that the first electronic equipment establishes communication connection with the audio output equipment, sending first indication information to the second electronic equipment, wherein the first indication information is used for indicating the second electronic equipment to display a target control; under the condition of receiving second indication information sent by the second electronic equipment, controlling the audio output equipment to output first audio; the first indication information comprises information that the first electronic equipment establishes communication connection with the audio output equipment, and the second indication information comprises information of the first audio.
In a second aspect, an embodiment of the present application provides an audio output control method, applied to a second electronic device, including: under the condition that first indication information sent by first electronic equipment is received, displaying a target control; receiving a first input of a target control by a user; and responding to the first input, and sending second indication information to the first electronic equipment, wherein the second indication information comprises information of the first audio, and the second indication information is used for indicating the first equipment to control the audio output equipment to output the first audio.
In a third aspect, an embodiment of the present application provides an audio output control apparatus, applied to a first electronic device, including: the sending module is used for sending first indication information to the second electronic equipment under the condition that the first electronic equipment is in communication connection with the audio output equipment, wherein the first indication information is used for indicating the second electronic equipment to display the target control; the output control module is used for controlling the audio output equipment to output the first audio under the condition of receiving second indication information sent by the second electronic equipment; the first indication information comprises information that the first electronic equipment establishes communication connection with the audio output equipment, and the second indication information comprises information of the first audio.
In a fourth aspect, an embodiment of the present application provides an audio output control apparatus, applied to a second electronic device, including: the display control module is used for displaying the target control under the condition of receiving first indication information sent by the first electronic equipment; the receiving module is used for receiving first input of a user to the target control displayed by the display control module; and the sending module is used for responding to the first input received by the receiving module and sending second indication information to the first electronic equipment, wherein the second indication information comprises information of the first audio, and the second indication information is used for indicating the first equipment to control the audio output equipment to output the first audio.
In a fifth aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program stored on the memory and executable on the processor, and when the program is executed by the processor, the steps of the audio output control method in the first aspect or the second aspect are implemented.
In a sixth aspect, the present application provides a readable storage medium, on which a program is stored, where the program, when executed by a processor, implements the steps of the audio output control method as in the first aspect or the second aspect.
In a seventh aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the audio output control method in the first aspect or the second aspect.
In the embodiment of the application, when the audio output device establishes communication connection with the first electronic device but does not establish communication connection with the second electronic device, the first electronic device can indicate the second electronic device to display the target control and know that the first electronic device has established communication connection with the audio output device through the first indication information. Furthermore, if the user needs to output the first audio of the second electronic device temporarily through the audio output device, the information of the first audio can be transmitted from the second electronic device to the first electronic device through the second indication information, so that the audio output device can output the first audio by using the audio channel of the first electronic device, that is, the first electronic device can control the audio output device to output the first audio of the second electronic device. Obviously, in the above process, the user does not need to manually trigger the first electronic device to disconnect the communication connection with the audio output device first, and then trigger the second electronic device to establish the communication connection with the audio output device. Therefore, user operation in the process that different electronic equipment temporarily uses the same audio equipment is simplified, and the fact that different electronic equipment quickly and conveniently uses the same audio output equipment to output audio is achieved.
Drawings
Fig. 1 is a schematic structural diagram of a communication system to which the audio output control method according to the embodiment of the present application is applied;
fig. 2 is a schematic flowchart of an audio output control method according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram of display content of an electronic device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an audio output control apparatus according to an embodiment of the present disclosure;
fig. 5 is a second schematic structural diagram of an audio output control apparatus according to an embodiment of the present disclosure;
fig. 6 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present disclosure;
fig. 7 is a second schematic diagram of a hardware structure of an electronic device according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
In the embodiments of the present application, words such as "exemplary" or "for example" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the description of the embodiments of the present application, unless otherwise specified, "a plurality" means two or more, for example, a plurality of electronic devices means two or more electronic devices, or the like.
It should be noted that the audio output control method provided in the embodiment of the present application may be applied to a scene in which a plurality of electronic devices output audio using the same audio output device. The method is particularly applied to a scene that the audio output device outputs the audio of the electronic devices except one electronic device in the plurality of electronic devices through (or controlling) the audio output device under the condition that the one electronic device in the plurality of electronic devices is wirelessly connected with the audio output device.
In the following embodiments, an example of controlling an audio output device to output an audio of a second electronic device when a first electronic device and the audio output device establish a wireless connection is taken as an example, and an audio output control method provided in the embodiments of the present application is described.
Optionally, the audio output device provided in the embodiment of the present application is: and a device that performs wireless communication connection with an electronic device (such as a first electronic device or a second electronic device described below) using Bluetooth (Bluetooth) technology, and outputs audio.
Optionally, the audio output device may be a wireless bluetooth headset, a wireless bluetooth speaker, or the like. For example, the wireless bluetooth headset may include a bluetooth headset and an infrared headset. In the following embodiments, an audio output device is exemplified as a wireless bluetooth headset.
Illustratively, as shown in fig. 1, the communication system is an application of an audio output control method provided in an embodiment of the present application. Fig. 1 shows a communication system including an audio output device 11, an electronic device 12 establishing a communication connection with the audio output device 11, and at least one electronic device 13 establishing a communication connection with the electronic device 12 (one electronic device 13 is illustrated in fig. 1 as an example). Specifically, fig. 1 illustrates the audio output device 11 as a wireless bluetooth headset, and the electronic devices 12 and 13 as mobile phones.
It should be noted that, between the audio output device 11 and the electronic device 12, the audio output device 11 may control (i.e., play) the audio according to the interactive requirement. The connection condition of the audio output device 11 can be interacted between the electronic device 12 and at least one electronic device 13, and the audio output by the audio output device 11 is required to be controlled.
It is understood that the electronic device 12 and the at least one electronic device 13 are a plurality of electronic devices capable of sharing the audio output device 11 according to the audio output control method provided by the embodiment of the present application.
Optionally, at least one electronic device 13 is an electronic device pre-associated with electronic device 12, or an electronic device to which electronic device 12 has established a connection once, or an electronic device within a broadcast range in which electronic device 12 transmits information in a broadcast form.
Optionally, an audio channel sharing mode may be set in each electronic device (such as the first electronic device 12 or one second electronic device 13) in the communication system provided in the embodiment of the present application, so as to execute the audio output control method provided in the embodiment of the present application in the communication system.
Specifically, if the first electronic device and the second electronic device both start the audio channel sharing mode, the first electronic device and the second electronic device may interact to execute the audio output control method in the present application. On the contrary, if any electronic device of the first electronic device and the second electronic device does not start the audio channel sharing mode, the first electronic device and the second electronic device will not execute the audio output control method of the present application.
Alternatively, the electronic device (such as the first electronic device or the second electronic device) that starts the audio channel sharing mode may have functions of determining a bluetooth connection status, sending broadcast information, connecting to another electronic device, transmitting audio, and receiving audio. The Bluetooth connection condition judging function is used for judging whether the current electronic equipment and the audio output equipment establish wireless communication connection by adopting a Bluetooth technology. And the broadcast information sending function is used for sending the Bluetooth connection condition in the current electronic equipment to other electronic equipment in a broadcast mode. The function of connecting other electronic devices is to: the current electronic device establishes a communication connection with another electronic device through a network (e.g., a data network or a wireless network). The delivery audio function is used to: and transmitting the information of the audio to be output by the current electronic equipment to other electronic equipment. The audio receiving function is to: and receiving information of audio to be output by other electronic equipment.
With reference to fig. 1, in the following embodiments, an audio output device is taken as an audio output device 11, a first electronic device is taken as an electronic device 12, and a second electronic device is taken as an electronic device 13, which illustrate an audio output control method provided in the embodiments of the present application.
The embodiment of the application provides an audio output control method, which is used for realizing that a first electronic device indicates a second electronic device to display a target control and knows that the first electronic device has established communication connection with an audio output device through first indication information under the condition that the audio output device establishes communication connection with the first electronic device but does not establish communication connection with the second electronic device. Furthermore, if the user needs to output the first audio of the second electronic device temporarily through the audio output device, the information of the first audio can be transmitted from the second electronic device to the first electronic device through the second indication information, so that the audio output device can output the first audio by using the audio channel of the first electronic device, that is, the first electronic device can control the audio output device to output the first audio of the second electronic device. Obviously, in the above process, the user does not need to manually trigger the first electronic device to disconnect the communication connection with the audio output device first, and then trigger the second electronic device to establish the communication connection with the audio output device. Therefore, user operation in the process that different electronic equipment temporarily uses the same audio equipment is simplified, and the fact that different electronic equipment quickly and conveniently uses the same audio output equipment to output audio is achieved.
It should be noted that, in the audio output control method provided in the embodiment of the present application, the execution main body may be an audio output control device, or a control module in the audio output control device for executing the audio output control method. In the embodiment of the present application, an audio output control device is taken as an example to execute an audio output control method, and the audio output control device provided in the embodiment of the present application is described.
In the embodiment of the present application, an audio output control device applied to a first electronic device is referred to as a first audio output control device, and an audio output control device applied to a second electronic device is referred to as a second audio output control device.
It is understood that, in the case where the audio output control method is applied to the first electronic device, the execution subject of the audio output control method is the first audio output control means. In the case where the audio output control method is applied to the second electronic device, the execution subject of the audio output control method is the second audio output control apparatus.
In the following embodiments, the audio output control method provided in the embodiments of the present application is described by taking an example of interaction among the audio output device, the first electronic device, and the second electronic device.
Fig. 2 is a schematic flow chart of an audio output control method according to an embodiment of the present disclosure. Fig. 2 shows an audio output control method in possible implementation manner 1 of the embodiment of the present application, where the audio output control method includes steps 201 to 205:
step 201, under the condition that the first electronic device establishes communication connection with the audio output device, the first electronic device sends first indication information to the second electronic device.
Accordingly, the second electronic device may receive the first indication information transmitted by the second electronic device. If the second electronic device successfully receives the first indication information, the following step 202 may be continuously performed. On the contrary, if the second electronic device fails to receive the first indication information, the audio output control process may be ended.
The first indication information is used for indicating the second electronic equipment to display the target control. Specifically, the first indication information includes information that the first electronic device establishes a communication connection with the audio output device. Illustratively, the first indication information is used for indicating that the first electronic device has established a wireless communication connection with the audio output device by adopting the Bluetooth technology.
Optionally, the audio output control method provided in this embodiment of the present application may determine a bluetooth connection condition in the first electronic device, that is, determine a communication connection condition between the first electronic device and the audio output device. Accordingly, it can be determined that the first electronic device and the audio output device have established a communication connection, and the first indication information can be generated.
Optionally, in this embodiment of the application, the first electronic device may send the first indication information to the plurality of electronic devices in a broadcast manner. The plurality of electronic devices are all electronic devices capable of sharing the audio output device with the first electronic device, and the plurality of electronic devices comprise a second electronic device. I.e. the first indication information is broadcast information.
It is understood that step 201 may be specifically implemented by the first audio output control device controlling the first electronic device to send the first indication information to the second electronic device, that is, the execution subject of step 201 may be the first audio output control device. In addition, in the following embodiments, the description of the main execution body of other method steps may refer to the description of step 201, and will not be described again below.
Step 202, the second electronic device displays the target control under the condition that the first indication information sent by the first electronic device is received.
The second electronic device can display the target control according to the received first indication information. For example, the second electronic device may receive the first indication information in a broadcast form.
It can be understood that the second electronic device displays the target control, and can intuitively prompt the user to know that the first electronic device has established communication connection with the audio output device on the side of the second electronic device. At this time, if the user needs to temporarily control the audio output device to output the audio of the second electronic device (such as the first audio described below), the second electronic device may trigger the information of the first audio to be transmitted to the first electronic device.
Optionally, the second electronic device may display the target control according to the first indication information when the first indication information is received and the communication connection with the first electronic device is not established.
Optionally, in this embodiment of the application, the first indication information is further used to indicate that the second electronic device establishes a communication connection with the first electronic device. Specifically, after receiving the first indication information (broadcast reception of the first indication information), the second electronic device may establish a communication connection with the first electronic device, and then display the target control according to the first indication information.
For example, when the second electronic device receives the first indication information, the second electronic device may update and display the target control on a currently displayed interface (e.g., a chat interface).
Step 203, the second electronic device receives a first input of the target control from the user.
For example, the first input is a click input or a long press input to a target control, or any other implemented input.
Step 204, the second electronic device sends second indication information to the first electronic device in response to the first input, wherein the second indication information includes information of the first audio.
The second indication information is used for indicating the first equipment to control the audio output equipment to output the first audio.
For example, in a case where the second electronic device is to output the first audio, a data network may be used to establish a communication connection with the first electronic device based on the above function of delivering the information of the audio, and the information of the first audio, that is, the second indication information including the information of the first audio, may be sent to the first electronic device through the data network.
Optionally, the first audio may be audio in an audio file/video file selected by the user in the second electronic device, or may be audio that is being played when the second electronic device establishes a communication connection with the first electronic device.
For example, the first audio may be audio in a voice message in a currently running chat application when the second electronic device establishes a communication connection with the first electronic device.
Accordingly, in this embodiment of the application, after step 204, the first electronic device may receive the second indication information sent by the second electronic device.
It is understood that the first electronic device may receive information of the first audio over a data network establishing a communication connection with the second electronic device based on a function of receiving information of the audio.
Step 205, the first electronic device controls the audio output device to output the first audio when receiving the second indication information sent by the second electronic device.
Specifically, the first electronic device may control the audio output device to output the first audio based on the audio path thereof. That is, the first electronic device sends the information of the first audio to the audio output device, so that the audio output device receives the information of the first audio and outputs the first audio.
In the audio output control method in implementation manner 1 provided by the present application, when the audio output device establishes a communication connection with the first electronic device but does not establish a communication connection with the second electronic device, the first electronic device can indicate the second electronic device to display the target control and know that the first electronic device has established a communication connection with the audio output device through the first indication information. Furthermore, if the user needs to output the first audio of the second electronic device temporarily through the audio output device, the information of the first audio can be transmitted from the second electronic device to the first electronic device through the second indication information, so that the audio output device can output the first audio by using the audio channel of the first electronic device, that is, the first electronic device can control the audio output device to output the first audio of the second electronic device. Obviously, in the above process, the user does not need to manually trigger the first electronic device to disconnect the communication connection with the audio output device first, and then trigger the second electronic device to establish the communication connection with the audio output device. Therefore, user operation in the process that different electronic equipment temporarily uses the same audio equipment is simplified, and the fact that different electronic equipment quickly and conveniently uses the same audio output equipment to output audio is achieved.
Optionally, the functionality of the target control comprises at least one of: and triggering the second electronic equipment to establish communication connection with the first electronic equipment, and triggering the second electronic equipment to send the information including the second indication information to the first electronic equipment.
Specifically, the function of the target control includes at least one of the following function 1 and function 2.
Function 1: and triggering the second electronic equipment to establish communication connection with the first electronic equipment.
Function 2: and triggering the second electronic equipment to send the information of the first audio to the first electronic equipment.
It is understood that, in the case that the target control is displayed on the second electronic device, the user may trigger the second electronic device to establish a communication connection with the first electronic device through an input (e.g., a click input) to the target control, and/or send the second indication information to the first electronic device.
Optionally, before and after the user performs output on the target control, if the second electronic device controls the target control to perform different functions, the second electronic device adjusts the target control to different display parameters. Therefore, the second electronic device can show different functions of the second electronic device executing the target control to the user by adjusting the target control bar to be different display parameters.
Optionally, in the embodiment of the present application, the function of the target control is described by the following examples 1 to 3.
Optionally, the function of the target control described above in example 1 includes function 1. At this time, the user's input to the target control (denoted as input 1) may trigger the second electronic device to execute the step of controlling the target control to be displayed with the first display parameter, and trigger the second electronic device to establish a communication connection with the first electronic device (denoted as step a 1).
Optionally, a communication connection may be established between the second electronic device and the first electronic device through a network (e.g., a data network) to support the subsequent second electronic device to transmit information of the first audio, such as second indication information including the information of the first audio, to the first electronic device.
Optionally, the function of the target control described above in example 2 includes function 2. At this time, the user's input to the target control (denoted as input 2) may trigger the second electronic device to execute the control of the target control to display with the second display parameter, and send the second indication information to the first electronic device (denoted as step a 2).
Optionally, the functionality of the target control in example 3 includes functionality 1 and functionality 2. At this time, the user's input (denoted as input 3) to the target control may trigger the second electronic device to perform step a1 and then perform step a 2. For example, input 3 includes input 1 and input 2 described above, that is input 3 may include two sub-inputs.
Optionally, in example 3, the input 3 is the first input, and the first input includes a first sub-input and a second sub-input. After the user performs the first sub-input on the target control, the second electronic device may perform step a1 described above. Subsequently, after the user performs the second sub-input on the target control, the second electronic device may perform step a2 described above.
For example, in the embodiment of the present application, the step 202 may be implemented by the step 202a or the step 202 b:
step 202a, the second electronic device responds to the first sub-input of the target control, controls the target control to be displayed according to the first display parameter, and triggers the second electronic device to establish communication connection with the first electronic device.
And step 202b, the second electronic device responds to the second sub-input, controls the target control to be displayed according to the second display parameter, and sends second indication information to the first electronic device.
The step 202a may be the step a1, and the step 202b may be the step a 2.
Illustratively, the first sub-input is input such as a click input or a long-press input of the target control by the user, and the second sub-input is input such as a click input or a long-press input of the target control by the user.
It should be noted that the display parameters of the target control are different before and after the user performs the first input on the target control.
After the second electronic device executes step a1, the second electronic device displays the target control with the first display parameter, which indicates that the second electronic device establishes a communication connection with the first electronic device. I.e., information indicating that the second electronic device can communicate the first audio to the first electronic device to output the first audio through the audio output device.
After the second electronic device executes step a2, the second electronic device displays a target control indicating that the second electronic device has sent the first audio to the first electronic device.
Optionally, before the second electronic device establishes a communication connection with the first electronic device, the second electronic device may display the target control according to the third display parameter. The third display parameter is different from both the first display parameter and the second display parameter.
For example, the third display parameter indicates that the target control is filled with a white pattern display by the second electronic device, the first display parameter is used to instruct the second electronic device to fill a black pattern display for the target control, and the second display parameter indicates that the target control is filled with a grid pattern display by the second electronic device. Of course, the display parameters may also be determined in any other realizable manner according to the actual requirements of the user, and are not described again.
Exemplarily, in combination with the above example 3, as shown in fig. 3, a content schematic diagram displayed for an electronic device provided in an embodiment of the present application is shown. The interface shown in fig. 3 (a) is a chat interface of the second electronic device, the chat interface includes a target control 31, and the filling white pattern of the target control 31 is displayed (i.e., displayed with the third display parameter). Subsequently, after the user performs a click input (i.e., a first sub-input) on the target control 31 shown in (a) of fig. 3, the second electronic device may establish a communication connection with the first electronic device. Meanwhile, as shown in (b) of fig. 3, the second electronic device may update the target control 31 to be displayed in a black-filled pattern (i.e., displayed with the first display parameter). Further, after the user makes a click input (e.g., the second sub-input described above) on the target control 31 shown in (b) of fig. 3, the second electronic device may update the target control 31 to be displayed in the filled grid pattern (i.e., to be displayed in the second display parameter), as shown in (c) of fig. 3.
It should be noted that, in this embodiment of the application, the target control may trigger the second electronic device to establish a communication connection with the first electronic device, and send second indication information including information of the first audio to the first electronic device. Therefore, the user can manually select whether to trigger the second electronic device to establish connection with the first electronic device or not and manually select whether to trigger the second electronic device to send the first audio information to the first electronic device or not through the target control. Therefore, when the user does not need to share the audio output device with the first electronic device and the second electronic device, the unnecessary step of establishing network connection between the first electronic device and the second electronic device can be avoided, and the user can conveniently select whether to trigger the second electronic device to send the first audio information to the first electronic device according to the self requirement. Therefore, the man-machine interaction performance of the first electronic device and the second electronic device in the process of sharing the audio output device can be improved.
In addition, the embodiment of the application indicates that the second electronic device has or is establishing communication connection with the first electronic device by displaying the target control with the first display parameter, and indicates that the second electronic device has or is sending the second indication information to the first electronic device by displaying the target control with the second display parameter. Therefore, in the process that the plurality of electronic devices share the same audio output device, a user can intuitively know the state of audio output control, for example, whether the two electronic devices are in communication connection or not, or whether the two electronic devices transmit the audio required to use the audio output device or not.
Optionally, in this embodiment of the application, the second sub-input to the target control by the user may be implemented by inputting, by the user, an audio identifier indicating the first audio, which is displayed on the second electronic device. At this time, the second electronic device has established a communication connection with the first electronic device, which is triggered, for example, by the first sub-input described above. At this time, the step 202b may be replaced by the step 202b 1:
step 202b1, in response to the user's second sub-input of the displayed first audio identification, the second electronic device sends second indication information to the first electronic device.
The first audio identification is used for indicating first audio, and the second sub-input is used for triggering the second electronic device to send second indication information to the first electronic device. At this time, the second sub-input may be a click input or a long press input to the first audio identifier, or the like.
Illustratively, as shown in fig. 3, the interfaces shown in (a) and (b) in fig. 3 include a first audio identifier 32, where the first audio identifier 32 is used to indicate a voice message that is received by the second electronic device most recently in the current day chat interface. At this time, the first audio is the audio in the voice message represented by the first audio marker 32. After the user makes a long press input (as the second sub-input in step 20b 1) to the first audio identifier 32 shown in fig. 3 (b), the second electronic device may send second indication information to the first electronic device.
Under the condition that the second electronic device displays the first audio identifier, the user is supported to trigger the second electronic device to send the information of the first audio to the first electronic device through the input of the first audio identifier, and then the first electronic device can be triggered to output the first audio through the audio output device. Therefore, the man-machine interaction performance of the electronic equipment in the process of sharing the audio output equipment is further improved.
Optionally, the audio output control method provided in the embodiment of the present application may be applied to a scene in which a user temporarily demands to output a first audio of a second electronic device through an audio output device when the first electronic device establishes a communication connection with the audio output device and plays the audio. The above step 205 may be implemented by step 205 a:
step 205a, the first electronic device stops controlling the audio output device to output the second audio and controls the audio output device to output the first audio when the audio output device is outputting the second audio.
That is, the first electronic device may stop controlling the audio output device to output the audio of the first electronic device to control the audio output device to output the audio of the second electronic device.
It is understood that the first electronic device may automatically stop playing the second audio without the user manually operating the first electronic device.
Optionally, the second audio may be audio of the first electronic device, or audio delivered to the first electronic device by other electronic devices. The other electronic device is an electronic device other than the first electronic device and the second electronic device in the communication system provided in the embodiment of the present application.
When the first electronic device is outputting the second audio through the audio output device, if the audio of the second electronic device output through the audio output device is temporarily required, the output of the audio of an electronic device (such as the first electronic device) different from the second electronic device may be stopped, so as to ensure the normal output of the audio of the second electronic device. The audio output equipment is used by the first electronic equipment and the second electronic equipment in a time sharing mode, and the first electronic equipment and the second electronic equipment share the audio output equipment.
Optionally, the audio output control method provided in the embodiment of the present application may be applied to a scene in which a user temporarily needs to output audio in first audio information through an audio output device when the first electronic device establishes a wireless communication connection with the audio output device and outputs audio in a currently played video. Illustratively, the step 205a may be implemented by the step 205 b:
step 205b, the first electronic device continuously updates the image of the displayed video on the screen under the condition that the video is played, stops controlling the audio output device to output the second audio in the video, and controls the audio output device to output the first audio.
Specifically, the second audio is an audio in a video played by the first electronic device.
That is, the first electronic device may stop outputting the audio of the first video being played through the audio output device to output the audio of the second electronic device through the audio output device.
It can be understood that the first electronic device can automatically stop playing the second audio, and simultaneously ensure that the image of the video played by the first electronic device is continuously updated, that is, the video is muted and the picture of the video is continuously played. In the process, the first electronic equipment does not need to be manually operated by a user.
Furthermore, the first electronic device can also ensure that the image of the video played by the first electronic device is continuously updated, and simultaneously, the audio of the first video is played through the loudspeaker, and the audio of the second electronic device is output through the audio output device.
When the first electronic device is playing a video through the audio output device, if the audio of the second electronic device output through the audio output device is temporarily required, the output of the audio of the first video can be stopped, so that the normal output of the audio of the second electronic device is ensured. Therefore, the first electronic device and the second electronic device can share the audio output device, normal display of the image of the first video can be guaranteed, and user experience in the process can be improved.
Optionally, in an embodiment of the present application, the audio output device includes a first output component and a second output component. Wherein, the step 205 can be implemented by the step 205 c:
step 205c, the first electronic device controls the first output component to output the first audio and controls the second output component to output the second audio when the audio output device includes the first output component and the second output component and the audio output device is outputting the second audio.
For example, in the case where the audio output device is a wireless bluetooth headset, the audio output device may include a left ear headset and a right ear headset. Wherein the first output component and the second output component are respectively one of a left ear earphone and a right ear earphone.
It is understood that, when the audio output device controls the first output section to output the first audio and controls the second output section to output the second audio, the output of the first audio and the output of the second audio do not interfere with each other.
In this manner, since the audio output apparatus includes the first output section and the second output section, it is possible to realize that the first output section is controlled to output the first audio and the second output section is controlled to output the second audio. Namely, the mode that the audio output device outputs the audio of different electronic devices at the same time can be controlled, and the different electronic devices can share the same audio output device at the same time.
Optionally, in a possible implementation manner 2, the audio output control method provided in this embodiment of the present application is applied to a first electronic device side, and may include steps 301 and 302:
step 301, the first electronic device sends first indication information to the second electronic device under the condition that the first electronic device establishes a communication connection with the audio output device, wherein the first indication information is used for indicating the second electronic device to display the target control.
The first indication information comprises information that the first electronic equipment establishes communication connection with the audio output equipment.
Step 302, the first electronic device controls the audio output device to output the first audio when receiving the second indication information sent by the second electronic device.
Wherein the second indication information includes information of the first audio.
Optionally, the functionality of the target control comprises at least one of: and triggering the second electronic equipment to establish communication connection with the first electronic equipment, and triggering the second electronic equipment to send second indication information to the first electronic equipment.
Alternatively, the step 302 of "controlling the audio output device to output the first audio" may be implemented by the step 302a or the step 302 b:
step 302a, the first electronic device stops controlling the audio output device to output the second audio and controls the audio output device to output the first audio under the condition that the audio output device is outputting the second audio.
And step 302b, the first electronic device controls the first output component to output the first audio and controls the second output component to output the second audio when the audio output device comprises the first output component and the second output component and the audio output device is outputting the second audio.
Similarly, for detailed descriptions of each step in implementation manner 2, reference may be made to the related descriptions of the corresponding step in implementation manner 1 in the foregoing embodiment, and details are not described here again.
In the audio output control method in implementation manner 2 provided by the present application, when the audio output device establishes a communication connection with the first electronic device but does not establish a communication connection with the second electronic device, the first electronic device can indicate the second electronic device to display the target control and know that the first electronic device has established a communication connection with the audio output device through the first indication information. Furthermore, if the user needs to output the first audio of the second electronic device temporarily through the audio output device, the information of the first audio can be transmitted from the second electronic device to the first electronic device through the second indication information, so that the audio output device can output the first audio by using the audio channel of the first electronic device, that is, the first electronic device can control the audio output device to output the first audio of the second electronic device. Obviously, in the above process, the user does not need to manually trigger the first electronic device to disconnect the communication connection with the audio output device first, and then trigger the second electronic device to establish the communication connection with the audio output device. Therefore, user operation in the process that different electronic equipment temporarily uses the same audio equipment is simplified, and the fact that different electronic equipment quickly and conveniently uses the same audio output equipment to output audio is achieved.
Optionally, in a possible implementation manner 3, the audio output control method provided in this embodiment of the present application is applied to a second electronic device side, and may include steps 401 to 403:
step 401, the second electronic device displays the target control when receiving the first indication information sent by the first electronic device.
Step 402, the second electronic device receives a first input of a target control from a user.
And step 403, the second electronic device sends second indication information to the first electronic device in response to the first input, wherein the second indication information includes information of the first audio, and the second indication information is used for indicating the first device to control the audio output device to output the first audio.
Optionally, the first input comprises a first sub-input and a second sub-input. The above step 403 can be realized by steps 403a and 403 b:
and step 403a, the second electronic device responds to the first sub-input of the target control, controls the target control to be displayed according to the first display parameter, and triggers the second electronic device to establish communication connection with the first electronic device.
And step 403b, the second electronic device responds to the second sub-input, controls the target control to be displayed with the second display parameter, and sends second indication information to the first electronic device.
Similarly, for detailed descriptions of each step in implementation 3, reference may be made to the related descriptions of the corresponding step in implementation 1 in the foregoing embodiment, and details are not described here again.
In the audio output control method in implementation manner 3 provided by the present application, when the audio output device establishes a communication connection with the first electronic device but does not establish a communication connection with the second electronic device, the first electronic device can indicate the second electronic device to display the target control and know that the first electronic device has established a communication connection with the audio output device through the first indication information. Furthermore, if the user needs to output the first audio of the second electronic device temporarily through the audio output device, the information of the first audio can be transmitted from the second electronic device to the first electronic device through the second indication information, so that the audio output device can output the first audio by using the audio channel of the first electronic device, that is, the first electronic device can control the audio output device to output the first audio of the second electronic device. Obviously, in the above process, the user does not need to manually trigger the first electronic device to disconnect the communication connection with the audio output device first, and then trigger the second electronic device to establish the communication connection with the audio output device. Therefore, user operation in the process that different electronic equipment temporarily uses the same audio equipment is simplified, and the fact that different electronic equipment quickly and conveniently uses the same audio output equipment to output audio is achieved.
Fig. 4 is a schematic structural diagram of an audio output control apparatus according to an embodiment of the present disclosure. The audio output control apparatus 40 shown in fig. 4 is applied to a first electronic device including: the sending module 41 is configured to send first indication information to the second electronic device when the first electronic device establishes a communication connection with the audio output device, where the first indication information is used to indicate the second electronic device to display the target control; the output control module 42, in the case of receiving the second indication information sent by the second electronic device, controls the audio output device to output the first audio; the first indication information comprises information that the first electronic equipment establishes communication connection with the audio output equipment, and the second indication information comprises information of the first audio.
The audio output control apparatus applied to the first electronic device, provided by the embodiment of the application, can realize that the first electronic device indicates the second electronic device to display the target control and knows that the first electronic device has established communication connection with the audio output device through the first indication information under the condition that the audio output device establishes communication connection with the first electronic device but does not establish communication connection with the second electronic device. Furthermore, if the user needs to output the first audio of the second electronic device temporarily through the audio output device, the information of the first audio can be transmitted from the second electronic device to the first electronic device through the second indication information, so that the audio output device can output the first audio by using the audio channel of the first electronic device, that is, the first electronic device can control the audio output device to output the first audio of the second electronic device. Obviously, in the above process, the user does not need to manually trigger the first electronic device to disconnect the communication connection with the audio output device first, and then trigger the second electronic device to establish the communication connection with the audio output device. Therefore, user operation in the process that different electronic equipment temporarily uses the same audio equipment is simplified, and the fact that different electronic equipment quickly and conveniently uses the same audio output equipment to output audio is achieved.
Optionally, the functionality of the target control comprises at least one of: and triggering the second electronic equipment to establish communication connection with the first electronic equipment, and triggering the second electronic equipment to send information including the first audio to the first electronic equipment.
In the embodiment of the application, the target control can trigger the second electronic device to establish a communication connection with the first electronic device, and send the second indication information including the information of the first audio to the first electronic device. Therefore, the user can manually select whether to trigger the second electronic device to establish connection with the first electronic device or not and manually select whether to trigger the second electronic device to send the first audio information to the first electronic device or not through the target control. Therefore, when the user does not need to share the audio output device with the first electronic device and the second electronic device, the unnecessary step of establishing network connection between the first electronic device and the second electronic device can be avoided, and the user can conveniently select whether to trigger the second electronic device to send the first audio information to the first electronic device according to the self requirement. Therefore, the man-machine interaction performance of the first electronic device and the second electronic device in the process of sharing the audio output device can be improved.
Optionally, the output control module 42 is specifically configured to, in a case that the audio output device is outputting the second audio, stop controlling the audio output device to output the second audio, and control the audio output device to output the first audio; alternatively, in a case where the audio output apparatus includes the first output section and the second output section, and the audio output apparatus is outputting the second audio, the first output section is controlled to output the first audio, and the second output section is controlled to output the second audio.
When the first electronic device is outputting the second audio through the audio output device, if the audio of the second electronic device output through the audio output device is temporarily required, the output of the audio of an electronic device (such as the first electronic device) different from the second electronic device may be stopped, so as to ensure the normal output of the audio of the second electronic device. The audio output equipment is used by the first electronic equipment and the second electronic equipment in a time sharing mode, and the first electronic equipment and the second electronic equipment share the audio output equipment. Alternatively, since the audio output apparatus includes the first output section and the second output section, it is possible to realize that the first output section is controlled to output the first audio and the second output section is controlled to output the second audio. Namely, the mode that the audio output device outputs the audio of different electronic devices at the same time can be controlled, and the different electronic devices can share the same audio output device at the same time.
The audio output control device 40 provided in this embodiment of the application can implement each process implemented by the audio output control device applied to the first electronic device in the foregoing method embodiments, and for avoiding repetition, details are not repeated here.
Fig. 5 is a schematic structural diagram of an audio output control apparatus according to an embodiment of the present disclosure. The audio output control apparatus 50 shown in fig. 5 is applied to a second electronic device including: the display control module 51 is configured to display a target control in a case of receiving first indication information sent by the first electronic device; a receiving module 52, configured to receive a first input of a target control displayed by the display control module 51 from a user; a sending module 53, configured to send, in response to the first input received by the receiving module 52, second indication information to the first electronic device, where the second indication information includes information of the first audio, and the second indication information is used to instruct the first device to control the audio output device to output the first audio.
According to the audio output control device applied to the second electronic device, when the audio output device is in communication connection with the first electronic device but not in communication connection with the second electronic device, the first electronic device can indicate the second electronic device to display the target control and know that the first electronic device is in communication connection with the audio output device through the first indication information. Furthermore, if the user needs to output the first audio of the second electronic device temporarily through the audio output device, the information of the first audio can be transmitted from the second electronic device to the first electronic device through the second indication information, so that the audio output device can output the first audio by using the audio channel of the first electronic device, that is, the first electronic device can control the audio output device to output the first audio of the second electronic device. Obviously, in the above process, the user does not need to manually trigger the first electronic device to disconnect the communication connection with the audio output device first, and then trigger the second electronic device to establish the communication connection with the audio output device. Therefore, user operation in the process that different electronic equipment temporarily uses the same audio equipment is simplified, and the fact that different electronic equipment quickly and conveniently uses the same audio output equipment to output audio is achieved.
Optionally, the display control module 51, in response to the first sub-input to the target control, controls the target control to be displayed with the first display parameter, and triggers the second electronic device to establish a communication connection with the first electronic device; and responding to the second sub-input, controlling the target control to be displayed with the second display parameter, and sending second indication information to the first electronic equipment.
In the embodiment of the application, the target control can trigger the second electronic device to establish a communication connection with the first electronic device, and send the second indication information including the information of the first audio to the first electronic device. Therefore, the user can manually select whether to trigger the second electronic device to establish connection with the first electronic device or not and manually select whether to trigger the second electronic device to send the first audio information to the first electronic device or not through the target control. Therefore, when the user does not need to share the audio output device with the first electronic device and the second electronic device, the unnecessary step of establishing network connection between the first electronic device and the second electronic device can be avoided, and the user can conveniently select whether to trigger the second electronic device to send the first audio information to the first electronic device according to the self requirement. Therefore, the man-machine interaction performance of the first electronic device and the second electronic device in the process of sharing the audio output device can be improved.
In addition, the embodiment of the application indicates that the second electronic device has or is establishing communication connection with the first electronic device by displaying the target control with the first display parameter, and indicates that the second electronic device has or is sending the second indication information to the first electronic device by displaying the target control with the second display parameter. Therefore, in the process that the plurality of electronic devices share the same audio output device, a user can intuitively know the state of audio output control, for example, whether the two electronic devices are in communication connection or not, or whether the two electronic devices transmit the audio required to use the audio output device or not.
The audio output control device 50 provided in this embodiment of the application can implement each process implemented by the audio output control device applied to the second electronic device in the above method embodiments, and for avoiding repetition, details are not described here again.
The audio output control device (e.g., the first audio output control device or the second audio output control device) in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in an electronic apparatus (e.g., the first electronic apparatus or the second electronic apparatus). The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The audio output control device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
Optionally, as shown in fig. 6, an electronic device 600 is further provided in this embodiment of the present application, and includes a processor 601, a memory 602, and a program or an instruction stored in the memory 602 and executable on the processor 601, where the program or the instruction is executed by the processor 601 to implement each process of the foregoing audio output control method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
Optionally, an electronic device is further provided in this embodiment of the present application, including a processor 1010, a memory 1009, and a program or an instruction stored in the memory 1009 and capable of running on the processor 1010, where the program or the instruction is executed by the processor 1010 to implement each process of the above-described embodiment of the audio output control method, and can achieve the same technical effect, and details are not described here to avoid repetition.
It should be noted that the electronic devices in the embodiments of the present application may include the mobile electronic device and the non-mobile electronic device described above.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application. As shown in fig. 7, the electronic device 1000 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010.
Those skilled in the art will appreciate that the electronic device 1000 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 1010 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 7 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
Optionally, the electronic device 1000 is a first electronic device.
The radio frequency unit 1001 is used for sending first indication information to the second electronic device under the condition that the first electronic device is in communication connection with the audio output device, wherein the first indication information is used for indicating the second electronic device to display a target control; the processor 1010 is used for controlling the audio output device to output the first audio under the condition of receiving the second indication information sent by the second electronic device; the first indication information comprises information that the first electronic equipment establishes communication connection with the audio output equipment, and the second indication information comprises information of the first audio.
The audio output control apparatus applied to the first electronic device, provided by the embodiment of the application, can realize that the first electronic device indicates the second electronic device to display the target control and knows that the first electronic device has established communication connection with the audio output device through the first indication information under the condition that the audio output device establishes communication connection with the first electronic device but does not establish communication connection with the second electronic device. Furthermore, if the user needs to output the first audio of the second electronic device temporarily through the audio output device, the information of the first audio can be transmitted from the second electronic device to the first electronic device through the second indication information, so that the audio output device can output the first audio by using the audio channel of the first electronic device, that is, the first electronic device can control the audio output device to output the first audio of the second electronic device. Obviously, in the above process, the user does not need to manually trigger the first electronic device to disconnect the communication connection with the audio output device first, and then trigger the second electronic device to establish the communication connection with the audio output device. Therefore, user operation in the process that different electronic equipment temporarily uses the same audio equipment is simplified, and the fact that different electronic equipment quickly and conveniently uses the same audio output equipment to output audio is achieved.
Optionally, the functionality of the target control comprises at least one of: and triggering the second electronic equipment to establish communication connection with the first electronic equipment, and triggering the second electronic equipment to send information including the first audio to the first electronic equipment.
In the embodiment of the application, the target control can trigger the second electronic device to establish a communication connection with the first electronic device, and send the second indication information including the information of the first audio to the first electronic device. Therefore, the user can manually select whether to trigger the second electronic device to establish connection with the first electronic device or not and manually select whether to trigger the second electronic device to send the first audio information to the first electronic device or not through the target control. Therefore, when the user does not need to share the audio output device with the first electronic device and the second electronic device, the unnecessary step of establishing network connection between the first electronic device and the second electronic device can be avoided, and the user can conveniently select whether to trigger the second electronic device to send the first audio information to the first electronic device according to the self requirement. Therefore, the man-machine interaction performance of the first electronic device and the second electronic device in the process of sharing the audio output device can be improved.
Optionally, the processor 1010 is specifically configured to, when the audio output device is outputting the second audio, stop controlling the audio output device to output the second audio, and control the audio output device to output the first audio; alternatively, in a case where the audio output apparatus includes the first output section and the second output section, and the audio output apparatus is outputting the second audio, the first output section is controlled to output the first audio, and the second output section is controlled to output the second audio.
When the first electronic device is outputting the second audio through the audio output device, if the audio of the second electronic device output through the audio output device is temporarily required, the output of the audio of an electronic device (such as the first electronic device) different from the second electronic device may be stopped, so as to ensure the normal output of the audio of the second electronic device. The audio output equipment is used by the first electronic equipment and the second electronic equipment in a time sharing mode, and the first electronic equipment and the second electronic equipment share the audio output equipment. Alternatively, since the audio output apparatus includes the first output section and the second output section, it is possible to realize that the first output section is controlled to output the first audio and the second output section is controlled to output the second audio. Namely, the mode that the audio output device outputs the audio of different electronic devices at the same time can be controlled, and the different electronic devices can share the same audio output device at the same time.
It can be understood that, in the embodiment of the present application, for the first electronic device, the radio frequency unit 1001 in the structural schematic diagram of the electronic device 1000 may be implemented by the sending module 41 in the audio output control apparatus 40; the processor 1010 in the structural schematic diagram of the electronic device 1000 can be implemented by the output control module 42 in the audio output control apparatus 40.
Optionally, the electronic device 1000 is a second electronic device.
The display unit 1006 is configured to display the target control in a case of receiving first indication information sent by the first electronic device; a user input unit 1007, configured to receive a first input of a target control displayed by the display unit 1006 from a user; the radio frequency unit 1001 is configured to send, to the first electronic device, second indication information in response to the first input received by the user input unit 1007, where the second indication information includes information of the first audio and is used to instruct the first device to control the audio output device to output the first audio.
According to the audio output control device applied to the second electronic device, when the audio output device is in communication connection with the first electronic device but not in communication connection with the second electronic device, the first electronic device can indicate the second electronic device to display the target control and know that the first electronic device is in communication connection with the audio output device through the first indication information. Furthermore, if the user needs to output the first audio of the second electronic device temporarily through the audio output device, the information of the first audio can be transmitted from the second electronic device to the first electronic device through the second indication information, so that the audio output device can output the first audio by using the audio channel of the first electronic device, that is, the first electronic device can control the audio output device to output the first audio of the second electronic device. Obviously, in the above process, the user does not need to manually trigger the first electronic device to disconnect the communication connection with the audio output device first, and then trigger the second electronic device to establish the communication connection with the audio output device. Therefore, user operation in the process that different electronic equipment temporarily uses the same audio equipment is simplified, and the fact that different electronic equipment quickly and conveniently uses the same audio output equipment to output audio is achieved.
Optionally, the processor 1010 is configured to control the display unit 1006 to respond to a first sub-input to the target control, control the target control to be displayed with a first display parameter, and trigger the second electronic device to establish a communication connection with the first electronic device; and responding to the second sub-input, controlling the target control to be displayed with the second display parameter, and sending second indication information to the first electronic equipment.
In the embodiment of the application, the target control can trigger the second electronic device to establish a communication connection with the first electronic device, and send the second indication information including the information of the first audio to the first electronic device. Therefore, the user can manually select whether to trigger the second electronic device to establish connection with the first electronic device or not and manually select whether to trigger the second electronic device to send the first audio information to the first electronic device or not through the target control. Therefore, when the user does not need to share the audio output device with the first electronic device and the second electronic device, the unnecessary step of establishing network connection between the first electronic device and the second electronic device can be avoided, and the user can conveniently select whether to trigger the second electronic device to send the first audio information to the first electronic device according to the self requirement. Therefore, the man-machine interaction performance of the first electronic device and the second electronic device in the process of sharing the audio output device can be improved.
In addition, the embodiment of the application indicates that the second electronic device has or is establishing communication connection with the first electronic device by displaying the target control with the first display parameter, and indicates that the second electronic device has or is sending the second indication information to the first electronic device by displaying the target control with the second display parameter. Therefore, in the process that the plurality of electronic devices share the same audio output device, a user can intuitively know the state of audio output control, for example, whether the two electronic devices are in communication connection or not, or whether the two electronic devices transmit the audio required to use the audio output device or not.
It can be understood that, in the embodiment of the present application, for the second electronic device, the radio frequency unit 1001 in the structural schematic diagram of the electronic device 1000 may be implemented by the sending module 53 in the audio output control device 50; the user input unit 1007 in the schematic structural diagram of the electronic device 1000 can be implemented by the receiving module 52 in the audio output control apparatus 50; the display unit 1006 and the processor 1010 in the structural schematic diagram of the electronic device 1000 can be implemented by the display control module 51 in the audio output control device 50.
It should be understood that, in the embodiment of the present application, the input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics Processing Unit 1041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071 is also referred to as a touch screen. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 109 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 110 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above-mentioned audio output control method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor may be a processor in the electronic device in the above embodiments. The readable storage medium may include a computer-readable storage medium, such as a read-only memory (ROM), a Random Access Memory (RAM), a magnetic or optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the foregoing method embodiment, and the same technical effect can be achieved.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling an electronic device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (12)

1. An audio output control method applied to a first electronic device, comprising:
under the condition that the first electronic device is in communication connection with an audio output device and the audio output device is not in communication connection with a second electronic device, sending first indication information to the second electronic device, wherein the first indication information is used for indicating the second electronic device to display a target control, and the function of the target control comprises: triggering the second electronic equipment to establish communication connection with the first electronic equipment;
under the condition of receiving second indication information sent by the second electronic equipment, controlling the audio output equipment to output first audio;
the first indication information comprises information that the first electronic equipment establishes communication connection with audio output equipment, and the second indication information comprises information of the first audio.
2. The method of claim 1, wherein the functionality of the target control further comprises: and triggering the second electronic equipment to send the second indication information to the first electronic equipment.
3. The method of claim 1, wherein the controlling the audio output device to output the first audio comprises:
in the case that the audio output device is outputting a second audio, stopping controlling the audio output device to output the second audio and controlling the audio output device to output the first audio;
or, in a case where the audio output apparatus includes a first output section and a second output section, and the audio output apparatus is outputting a second audio, the first output section is controlled to output the first audio, and the second output section is controlled to output the second audio.
4. An audio output control method applied to a second electronic device, comprising:
under the condition that the second electronic equipment is not in communication connection with the audio output equipment and first indication information sent by the first electronic equipment is received, displaying a target control;
receiving a first input of the target control by a user;
responding to the first input, triggering the second electronic device to establish communication connection with the first electronic device, and sending second indication information to the first electronic device, wherein the second indication information comprises information of first audio, and the second indication information is used for indicating the first electronic device to control the audio output device establishing communication connection with the first electronic device to output the first audio.
5. The method of claim 4, wherein the first input comprises a first sub-input and a second sub-input;
the triggering, in response to the first input, the second electronic device to establish a communication connection with the first electronic device and send second indication information to the first electronic device includes:
responding to the first sub-input of the target control, controlling the target control to be displayed with first display parameters, and triggering the second electronic equipment to establish communication connection with the first electronic equipment;
and responding to the second sub-input, controlling the target control to be displayed with a second display parameter, and sending the second indication information to the first electronic equipment.
6. An audio output control device applied to a first electronic device, comprising:
the sending module sends first indication information to a second electronic device when the first electronic device is in communication connection with an audio output device and the audio output device is not in communication connection with the second electronic device, wherein the first indication information is used for indicating the second electronic device to display a target control, and the function of the target control comprises: triggering the second electronic equipment to establish communication connection with the first electronic equipment;
the output control module is used for controlling the audio output equipment to output first audio under the condition of receiving second indication information sent by the second electronic equipment;
the first indication information comprises information that the first electronic equipment establishes communication connection with the audio output equipment, and the second indication information comprises information of the first audio.
7. The apparatus of claim 6, wherein the functions of the target control further comprise: triggering the second electronic device to send information including the first audio to the first electronic device.
8. The apparatus of claim 6,
the output control module is specifically configured to, when the audio output device is outputting a second audio, stop controlling the audio output device to output the second audio and control the audio output device to output the first audio;
or, in a case where the audio output apparatus includes a first output section and a second output section, and the audio output apparatus is outputting a second audio, the first output section is controlled to output the first audio, and the second output section is controlled to output the second audio.
9. An audio output control device applied to a second electronic device, comprising:
the display control module is used for displaying the target control under the condition that the second electronic equipment is not in communication connection with the audio output equipment and receives first indication information sent by the first electronic equipment;
the receiving module is used for receiving first input of the target control displayed by the display control module by a user;
the sending module is configured to trigger the second electronic device to establish a communication connection with the first electronic device in response to the first input received by the receiving module, and send second indication information to the first electronic device, where the second indication information includes information of a first audio, and the second indication information is used to indicate the first electronic device to control the audio output device that establishes a communication connection with the first electronic device to output the first audio.
10. The apparatus of claim 9, wherein the first input comprises a first sub-input and a second sub-input;
the display control module is specifically configured to control the target control to be displayed with a first display parameter in response to the first sub-input to the target control, and trigger the second electronic device to establish a communication connection with the first electronic device;
and responding to the second sub-input, controlling the target control to be displayed with a second display parameter, and sending the second indication information to the first electronic equipment.
11. An electronic device comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the audio output control method according to any one of claims 1-3 or the steps of the audio output control method according to claim 4 or 5.
12. A readable storage medium, characterized in that the readable storage medium stores thereon a program or instructions which, when executed by a processor, implement the steps of the audio output control method according to any one of claims 1-3, or the steps of the audio output control method according to claim 4 or 5.
CN202010463554.0A 2020-05-27 2020-05-27 Audio output control method and device, electronic equipment and readable storage medium Active CN111641753B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010463554.0A CN111641753B (en) 2020-05-27 2020-05-27 Audio output control method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010463554.0A CN111641753B (en) 2020-05-27 2020-05-27 Audio output control method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN111641753A CN111641753A (en) 2020-09-08
CN111641753B true CN111641753B (en) 2021-07-06

Family

ID=72332398

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010463554.0A Active CN111641753B (en) 2020-05-27 2020-05-27 Audio output control method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN111641753B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103220404A (en) * 2011-12-16 2013-07-24 宏达国际电子股份有限公司 Systems and methods for handling incoming calls on a media device
CN106416207A (en) * 2014-05-30 2017-02-15 苹果公司 Managing connections of a user device
CN111464689A (en) * 2020-01-22 2020-07-28 华为技术有限公司 Audio output method and terminal equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109788114B (en) * 2019-03-12 2021-04-02 维沃移动通信有限公司 Call processing method and terminal
CN110191442B (en) * 2019-04-18 2021-05-11 华为技术有限公司 Bluetooth connection method, equipment and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103220404A (en) * 2011-12-16 2013-07-24 宏达国际电子股份有限公司 Systems and methods for handling incoming calls on a media device
CN106416207A (en) * 2014-05-30 2017-02-15 苹果公司 Managing connections of a user device
CN111464689A (en) * 2020-01-22 2020-07-28 华为技术有限公司 Audio output method and terminal equipment

Also Published As

Publication number Publication date
CN111641753A (en) 2020-09-08

Similar Documents

Publication Publication Date Title
US10834237B2 (en) Method, apparatus, and storage medium for controlling cooperation of multiple intelligent devices with social application platform
JP6324495B2 (en) Method, apparatus and terminal device for realizing game in chat interface
US11025686B2 (en) Network call method and apparatus, terminal, and server
CN108446156B (en) Application program control method and terminal
CN111147661B (en) Interface display method and electronic equipment
WO2020024770A1 (en) Method for determining communication object, and mobile terminal
CN111031108B (en) Synchronization method and electronic equipment
CN110989950A (en) Sharing control method and electronic equipment
CN111124706A (en) Application program sharing method and electronic equipment
CN111078186A (en) Playing method and electronic equipment
CN110888707A (en) Message sending method and electronic equipment
CN110597478A (en) Audio output method and electronic equipment
WO2021104285A1 (en) Application control method and electronic device
CN108282759B (en) Service processing method and mobile communication terminal
WO2021057545A1 (en) Multi-network access method and terminal device
CN111526248B (en) Audio output mode switching method and electronic equipment
CN111641753B (en) Audio output control method and device, electronic equipment and readable storage medium
CN111124339B (en) Interface sharing method and electronic equipment
CN110196668B (en) Information processing method and terminal equipment
CN111083755A (en) Equipment switching method and related equipment
CN109165056B (en) Application program starting method and terminal equipment
CN110913066A (en) Display method and electronic equipment
CN109144703B (en) Multitask processing method and terminal equipment thereof
CN108811177B (en) Communication method and terminal
CN110944086B (en) Call holding method and electronic equipment

Legal Events

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