Detailed Description
The technical solutions in the embodiments of the present application will be described clearly 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 that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
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.
The following describes in detail the audio playing method provided by the embodiment of the present application through specific embodiments and application scenarios thereof with reference to the accompanying drawings.
Referring to fig. 1, an embodiment of the present application provides an audio playing method, including:
step 101, playing a first audio corresponding to a first application through a first target playing device, where the first target playing device includes at least one first playing device in communication connection with an electronic device.
In this embodiment of the application, the electronic device is installed with a first application having an audio playing function, and the first application may be associated with at least one first playing device, where when the first application is associated with a plurality of first playing devices, the plurality of first playing devices may include at least one of a playing device integrated with the electronic device itself and a playing device externally connected to the electronic device. The playing device integrated with the electronic device can comprise a loudspeaker and an earphone, and the playing device external to the electronic device can comprise a wired earphone, a Bluetooth earphone, vehicle-mounted Bluetooth, a Bluetooth sound box and the like.
The first application may be a video playing application, a music playing application, a social contact application, an e-commerce application, and the like, and when a first audio corresponding to the first application is played, at least one first playing device may be selected from first playing devices associated with the first application, a communication connection between the electronic device and the at least one first playing device is established, and the selected at least one first playing device is determined as a first target playing device, so that the first audio corresponding to the first application is played through the first target playing device. The establishing of the communication connection between the electronic device and the at least one first playing device may be understood as establishing the communication connection between the first application installed on the electronic device and the at least one first playing device. Aiming at the condition that the first playing device is an electronic device integrated playing device, a communication connection between a first application and the electronic device integrated playing device is formed, so that the first audio is transmitted to the playing device and then played through the electronic device integrated playing device; the method comprises the steps that communication connection between a first application and the playing equipment externally connected with the electronic equipment is formed aiming at the condition that the first playing equipment is the playing equipment externally connected with the electronic equipment, so that the first audio is transmitted to the externally connected playing equipment and then played through the externally connected playing equipment.
In case that the first target playing device includes one first playing device, the first audio can be played through the one first playing device. For the case that the first target playing device includes at least two first playing devices, the playing of the first audio through the at least two first playing devices can be realized, and at this time, the at least two first playing devices simultaneously play the first audio. For example, the first application is a music playing application, the first application is in communication connection with a wired headset and a bluetooth headset, the user a can listen to music through the wired headset, the user B can listen to music through the bluetooth headset, and the user a and the user B can share the same audio through different playing devices.
The first audio is played by adopting one first playing device, one-to-one playing can be realized, the same audio content can be played by adopting at least two first playing devices at the same time through a plurality of playing devices, the same audio content can be synchronously played by adopting different playing devices, and a plurality of users can know the same audio content through different playing devices.
102, under the condition that a first playing instruction for playing a second audio corresponding to a second application is received, responding to the first playing instruction, playing the second audio through a second target playing device, where the second target playing device includes at least one second playing device in communication connection with the electronic device, and the first audio and the second audio are played through different playing devices.
The electronic device is further provided with a second application with an audio playing function, the second application can be associated with at least one second playing device, and when the second application is associated with the plurality of second playing devices, the plurality of second playing devices can comprise at least one of playing devices integrated with the electronic device and playing devices externally connected with the electronic device. The second application may be a video playing application, a music playing application, a social contact application, an e-commerce application, and the like, the second application is a different application from the first application, and the application types corresponding to the first application and the second application may be the same or different.
In the process of playing the first audio through the first target playing device, if the electronic device receives a first playing instruction for playing a second audio corresponding to the second application, in response to the first playing instruction, at least one second playing device is selected from the second playing devices associated with the second application, a communication connection between the electronic device and the at least one second playing device is established, and the selected at least one second playing device is determined as the second target playing device, so that the second audio corresponding to the second application is played through the second target playing device. The establishing of the communication connection between the electronic device and the at least one second playback device may be understood as establishing a communication connection between a second application installed in the electronic device and the at least one second playback device.
The first target playing device and the second target playing device are different playing devices, namely the first audio and the second audio are played through different playing devices, and in the process that the first audio is played through the first target playing device, the second audio is played through the second target playing device, so that different audio contents can be played through the corresponding playing devices, and the playing of the first audio and the playing of the second audio are not interfered with each other.
In the implementation process of the application, when the first audio corresponding to the first application is played, one-to-one playing can be realized by using one first playing device for playing, and the same audio content can be played through different playing devices at the same time by using at least two first playing devices for playing, so that a plurality of users can know the same audio content through different playing devices; through the in-process at the broadcast first audio frequency, adopt second target playback device to broadcast the second audio frequency, can realize that different audio frequency content plays through corresponding playback device, guarantee the broadcast of first audio frequency and second audio frequency mutual noninterference, promote user's audio frequency and acquire experience.
Optionally, the step 101 of playing, by a first target playing device, a first audio corresponding to the first application includes:
under the condition that a second playing instruction for playing the first audio is received, responding to the second playing instruction, and determining the at least one first playing device;
playing the first audio through the at least one first playing device;
the at least one first playing device is determined based on a first input to a first list, where the first list includes device identifications corresponding to N first playing devices associated with the first application, and N is an integer greater than or equal to 1.
When the electronic device plays the first audio through the first target playing device, the specific process may be as follows: and receiving a second playing instruction for playing the first audio, such as determining to receive the second playing instruction when receiving the input of the user to the music playing button. After the second playing instruction is received, in response to the second playing instruction, at least one first playing device is selected from the first playing devices associated with the first application, and communication connection between the electronic device and the at least one first playing device is established, so that the first audio is played through the selected at least one first playing device.
When determining at least one first playing device, the method may include the following steps:
responding to a second playing instruction, displaying a first list comprising device identifications corresponding to N first playing devices associated with the first application, wherein N is an integer greater than or equal to 1;
at least one first playback device is determined in response to a first input to the first list.
When at least one first playing device is determined in the N first playing devices in response to the second playing instruction, a first list may be displayed on a graphical user interface of the electronic device in response to the second playing instruction, where the first list may include device identifications respectively corresponding to the N first playing devices associated with the first application. When the value of N is 1, the first application is associated with one first playback device, and when the value of N is greater than 1, the first application may be associated with a plurality of first playback devices.
After the first list is displayed, first input performed by a user on the first list is received, at least one first playing device is selected from the N first playing devices in response to the first input performed by the user, a communication connection between the electronic device and the at least one first playing device is established, and the selected at least one first playing device is determined as a first target playing device.
The first input performed by the user on the first list may be understood as a selection input in the device identifiers corresponding to the N first playing devices, and the first playing device corresponding to the selected device identifier is determined as the first target playing device, so that the first target playing device may be determined in the N first playing devices according to the selection of the user.
The following describes a process of determining a first target playback device and playing back a first audio through the first target playback device by using a specific example. The current scene is a scene in which the music playing application is simultaneously connected with a plurality of earphone devices for playing songs.
The first application of the electronic device is associated with four playing devices, namely a loudspeaker, a receiver, a wired earphone and a Bluetooth earphone. A user opens a first application (e.g., music application a), and clicks a play button, at this time, a first list is displayed on a graphical user interface of the electronic device through a prompt box, as shown in fig. 2, where the first list includes device identifiers respectively corresponding to a plurality of first playing devices associated with the first application (music application a). And the device identification corresponding to the first playing device connected with the first application last time in the first list in the prompt box is in a selected state. And if the user plays music through the Bluetooth headset last time, the equipment identifier corresponding to the Bluetooth headset is in the selected state by default. The user can manually modify the first playing device which needs to be connected with the first application, and the specific first playing device is appointed through selection or cancellation operation. After the user clicks and determines, establishing communication connection between first playing devices (such as a wired headset and a bluetooth headset) corresponding to all selected device identifiers and an electronic device (a first application of the electronic device) to determine a first target playing device, and implementing output of audio content of the first application through the wired headset and the bluetooth headset at the same time.
In the implementation process of the application, the first list is displayed under the condition that a second playing instruction for playing the first audio is received, at least one first playing device is determined to play the first audio according to the first input of the user to the first list, and the playing device for playing the first audio can be determined according to the selection of the user in the first list; when at least two first playing devices are selected, the same audio content can be played through different playing devices at the same time, so that a plurality of users can know the same audio content through different playing devices.
Optionally, the playing, in response to the first playing instruction, the second audio through a second target playing device includes:
responding to the first playing instruction, displaying a second list comprising device identifications corresponding to M second playing devices associated with the second application, wherein M is an integer greater than or equal to 1;
determining the at least one second playback device in response to a second input to the second list;
and playing the second audio through the at least one second playing device.
When the electronic device plays the second audio through the second target playing device, the specific process may be as follows: receiving a first playing instruction for playing second audio, and after receiving the first playing instruction, responding to the first playing instruction, and selecting at least one second playing device from M second playing devices associated with a second application to perform communication connection with an electronic device (a second application of the electronic device) so as to play the second audio through the selected at least one second playing device. When the value of M is greater than 1, the second application may be associated with a plurality of second playback devices.
When at least one second playing device is determined in the M second playing devices in response to the first playing instruction, a second list may be displayed on the graphical user interface of the electronic device in response to the first playing instruction, where the second list may include device identifications respectively corresponding to the M second playing devices associated with the second application. After the second list is displayed, receiving a second input performed by the user on the second list, selecting at least one second playing device in the M second playing devices in response to the second input performed by the user, establishing a communication connection between the electronic device (a second application of the electronic device) and the at least one second playing device, and determining the selected at least one second playing device as a second target playing device.
The second input performed by the user on the second list may be understood as a selection input in the device identifiers corresponding to the M second playback devices, respectively. Aiming at the condition that the value of M is 1, the second target playing device can be directly selected; and aiming at the condition that the value of M is greater than 1, selecting from the multiple device identifications, and determining the second playing device corresponding to the selected device identification as a second target playing device.
The following explains a process of determining a first target playing device and a second target playing device, playing a first audio through the first target playing device, and playing a second audio through the second target playing device, where a current scene is to answer an incoming call while playing music.
The user opens the music application a, clicks the play button, and displays a first list on a graphical user interface of the electronic device through the prompt box, where the device identifier corresponding to the playing device to which the music application a is connected last time in the first list is in a selected state, the user can modify the device identifier in the selected state in the first list, and play music based on the first playing device corresponding to the modified device identifier, as shown in fig. 3a, the user selects the vehicle-mounted bluetooth to play the audio content corresponding to the music application a. When the user receives the incoming call, the second list is displayed, the user selects the receiver in the second list, as shown in fig. 3b, so as to answer the incoming call through the receiver, and at this time, the audio content of the music application a can be played through the vehicle-mounted bluetooth, and the call can be answered through the receiver and the microphone. That is, when the user is using vehicle-mounted bluetooth broadcast music, if the user receives the phone, can neither influence normal music broadcast through earphone broadcast, through the microphone radio reception, can not expose the phone privacy again, two functions can be realized simultaneously and can not disturbed.
According to the implementation process, in the process of playing the first audio corresponding to the first application through the first target playing device, if the first playing instruction is received, the second list is displayed, at least one second playing device is determined based on the second input of the user to the second list, the second audio is played through the at least one second playing device, different audio contents can be played through the corresponding playing devices, the playing of the first audio and the playing of the second audio are guaranteed not to interfere with each other, and the audio obtaining experience of the user is improved.
In an optional embodiment of the present application, the method further comprises: the association relationship between the application supporting the audio playing function and the playing device is established, and when the association relationship is established, one of the following two schemes may be included.
Introducing a first scheme, and displaying a playing device page under the condition that a first preset trigger condition is monitored, wherein the playing device page comprises a plurality of device identifications corresponding to a plurality of playing devices associated with the electronic device; establishing an association relationship between at least part of the plurality of playing devices and each of at least part of applications installed on the electronic device in response to a third input on the playing device page, wherein the plurality of applications are at least part of all applications installed on the electronic device; wherein at least one first playing device in communication connection with the electronic device and at least one second playing device in communication connection with the electronic device are determined based on the association relationship.
The method includes the steps that when the electronic device monitors a first preset trigger condition, a playing device page is displayed on a graphical user interface, and the playing device page can include a plurality of device identifications corresponding to a plurality of playing devices associated with the electronic device. When a third input of a certain device identifier in the playing device page is received, displaying an application selection page, where the application selection page includes a preset number of application identifiers (such as application icons), the preset number of application identifiers are identifiers corresponding to at least some of the multiple applications, and the multiple applications are at least some of all applications installed in the electronic device. And determining the application identifier in the selected state according to the selection input executed by the user on the application selection page, and associating the application corresponding to the application identifier in the selected state with the playing device corresponding to the device identifier for receiving the third input.
For at least part of the plurality of playing devices, the playing devices may be associated with each of at least part of applications installed in the electronic device, the number of playing devices associated with different applications may be the same or different, and correspondingly, the playing devices associated with different applications may be the same or different.
For at least part of the device identifications in the playing device page, each device identification can be associated with at least one application to form an association relationship between the playing device and the application. At least one first playing device in communication connection with the electronic device (first application of the electronic device), and at least one second playing device in communication connection with the electronic device (second application of the electronic device) are determined based on the association relationship.
The above process is described below by a specific example, and a playback device page is displayed when a first preset trigger condition is monitored. For example, when a specific input satisfying a first preset input characteristic is monitored, which is executed for a target setting control (used for setting an association relationship between an application and a playing device) in a setting page, it is determined that a first preset trigger condition is monitored, and display of a playing device page is triggered, where, for example, as shown in fig. 4a, the playing device page includes a handset identifier corresponding to a handset, a bluetooth headset identifier corresponding to a bluetooth headset, and a headset identifier corresponding to a wired headset device. And displaying an application selection page according to a third input of the user to the earphone identifier, where the application selection page includes 3 application icons as shown in fig. 4b, and if all the 3 application icons are selected, forming an association relationship between the applications corresponding to the 3 application icons and the earphones. For the playing devices corresponding to at least part of the device identifiers in the playing device page, an association with the corresponding applications can be formed, so as to establish an association relationship between at least part of the playing devices and the applications in the plurality of playing devices.
In the above implementation process, based on the playback device, the association between the playback device and the application is established to form an association relationship between at least part of the playback devices and the application, so as to search the playback device matched with the application based on the association relationship, and play the audio content corresponding to the application.
Introducing a second scheme, and displaying an application page under the condition that a second preset trigger condition is monitored, wherein the application page comprises application identifiers corresponding to a plurality of applications installed on the electronic device, and the plurality of applications are at least part of all applications installed on the electronic device; establishing an association relationship between each of at least part of the plurality of applications and at least one playing device in response to a fourth input on the application page; wherein at least one first playing device in communication connection with the electronic device and at least one second playing device in communication connection with the electronic device are determined based on the association relationship.
The electronic device displays an application page on the graphical user interface when the second preset trigger condition is monitored, for example, the application page may be displayed when specific input satisfying the second preset input characteristic is monitored, which is executed for a target setting control (used for setting an association relationship between the application and the playback device) in the setting page. The application page comprises application identifications corresponding to at least part of applications installed by the electronic equipment respectively, and the plurality of applications are at least part of all applications installed by the electronic equipment.
After the application page is displayed, when a fourth input corresponding to a certain application identifier in the application page is received, displaying a playing device selection page according to the fourth input, wherein the playing device selection page comprises a device identifier, and the device identifier displayed by the playing device selection page is a device identifier corresponding to at least part of all playing devices associated with the electronic device. And determining the equipment identifier in the selected state according to the selection input executed by the user on the playing equipment selection page, and associating the playing equipment corresponding to the equipment identifier in the selected state with the application corresponding to the application identifier for receiving the fourth input. And for at least part of the application identifications in the application page, associating the application corresponding to each application identification with the determined playing device to form an association relation between each of the at least part of the applications in the plurality of applications and the determined playing device. At least one first playing device in communication connection with the electronic device (first application of the electronic device), and at least one second playing device in communication connection with the electronic device (second application of the electronic device) are determined based on the association relationship.
In the implementation process, based on the application installed in the electronic device, the association between the application and the playing device is established to form an association relationship between each of at least some applications in the plurality of applications and the determined playing device, so that the playing device matched with the application is searched based on the association relationship, and the audio content corresponding to the application is played.
In an optional embodiment of the present application, in the process of playing the first audio corresponding to the first application through the first target playing device, the method further includes:
receiving a fifth input of the user under the condition that the electronic equipment is associated with the new playing equipment;
and responding to the fifth input, and establishing a communication connection between the electronic equipment and the new playing equipment.
In the process of playing the first audio through the first target playing device, if the electronic device is associated with the new playing device, under the condition that fifth input of a device identifier corresponding to the new playing device and an application identifier corresponding to a first application currently playing the first audio is received by a user, a communication connection between the electronic device (the first application of the electronic device) and the new playing device can be established, after the communication connection is established, the first audio corresponding to the first application can be played through the new playing device, and the purpose that the new playing device is added to play the first audio together in the process of playing the first audio is achieved.
It should be noted that, a multimedia control module may be integrated in the electronic device, and the multimedia control module may be connected to a radio equipment set associated with the electronic device and a playing equipment set of the electronic device, so as to implement different applications to connect corresponding playing equipment and radio equipment for audio acquisition and playing. As shown in fig. 5, the electronic device is installed with an application a, an application B, an application C, and an application D, the multimedia control module is connected to the application a, the application B, the application C, and the application D, and the multimedia control module is associated with a radio device in the radio device set (including an electronic device radio device such as a microphone, and also includes a radio device corresponding to an external play device such as a wired earphone microphone, a bluetooth headset microphone, a vehicle-mounted bluetooth microphone, a bluetooth speaker microphone, and a screen projection device radio), and the multimedia control module is associated with a play device in the play device set (including an electronic device play device such as a speaker and an earphone, and also includes a play device corresponding to an external play device such as a wired earphone, a bluetooth earphone, a vehicle-mounted bluetooth earphone, a bluetooth speaker, and a screen projection device player). Through unified management and control regulation of input and output of the application, the radio equipment and the playing equipment, one-to-many or many-to-many associated control of the application and the playing equipment can be realized through the multimedia control module, mutual interference or conflict between connection between the application and the playing equipment can be avoided, and independent control and use can be realized.
In the above overall implementation process of the audio playing method provided in this embodiment of the present application, when playing the first audio corresponding to the first application, one-to-one playing can be implemented by using one first playing device for playing, and by using at least two first playing devices for playing, the same audio content can be played through different playing devices at the same time, so that multiple users can know the same audio content through different playing devices; through the in-process at the broadcast first audio frequency, adopt second target playback device to broadcast the second audio frequency, can realize that different audio frequency content plays through corresponding playback device, guarantee the broadcast of first audio frequency and second audio frequency mutual noninterference, promote user's audio frequency and acquire experience.
Further, when a second playing instruction for playing the first audio is received, at least one first playing device is determined to play the first audio, and the playing device for playing the first audio can be determined according to the selection of the user in the first list, so that one-to-one playing is realized or the same audio content is played through different playing devices; in the process of playing the first audio, if the first playing instruction is received, at least one second playing device is determined to play the second audio, so that the playing of the first audio and the playing of the second audio are not interfered with each other, and the audio acquisition experience of a user is improved.
The association between the application and the playing device is established to form the association relationship between at least part of the applications in the plurality of applications and the playing device, so that the playing device matched with the application is found based on the association relationship to play the audio content.
Fig. 6 is a schematic block diagram of an audio playing apparatus according to an embodiment of the present application. Referring to fig. 6, the apparatus includes:
the first playing module 601 is configured to play a first audio corresponding to a first application through a first target playing device, where the first target playing device includes at least one first playing device in communication connection with an electronic device;
a second playing module 602, configured to, in a case that a first playing instruction for playing a second audio corresponding to a second application is received, respond to the first playing instruction, and play the second audio through a second target playing device, where the second target playing device includes at least one second playing device in communication connection with the electronic device;
wherein the first audio and the second audio are played through different playing devices.
Optionally, the first playing module includes:
the first determining submodule is used for responding to a second playing instruction to determine the at least one first playing device under the condition that the second playing instruction for playing the first audio is received;
the first playing submodule is used for playing the first audio through the at least one first playing device;
the at least one first playing device is determined based on a first input to a first list, where the first list includes device identifications corresponding to N first playing devices associated with the first application, and N is an integer greater than or equal to 1.
Optionally, the second playing module includes:
a display sub-module, configured to display, in response to the first play instruction, a second list including device identifiers corresponding to M second play devices associated with the second application, where M is an integer greater than or equal to 1;
a second determining sub-module for determining the at least one second playback device in response to a second input to the second list;
and the second playing sub-module is used for playing the second audio through the at least one second playing device.
Optionally, the apparatus further comprises:
the electronic device comprises a first display module, a second display module and a display module, wherein the first display module is used for displaying a playing device page under the condition that a first preset trigger condition is monitored, and the playing device page comprises a plurality of device identifications corresponding to a plurality of playing devices related to the electronic device;
a first establishing module, configured to establish, in response to a third input on the playback device page, an association relationship between at least a part of the playback devices in the plurality of playback devices and each of at least a part of applications installed on the electronic device, where the plurality of applications are at least a part of all applications installed on the electronic device;
wherein at least one first playing device in communication connection with the electronic device and at least one second playing device in communication connection with the electronic device are determined based on the association relationship.
Optionally, the apparatus further comprises:
the second display module is used for displaying an application page under the condition that a second preset trigger condition is monitored, wherein the application page comprises application identifications corresponding to a plurality of applications installed on the electronic equipment respectively, and the plurality of applications are at least part of all applications installed on the electronic equipment;
a second establishing module, configured to establish an association relationship between each of at least some applications in the multiple applications and the at least one playback device in response to a fourth input at the application page;
wherein at least one first playing device in communication connection with the electronic device and at least one second playing device in communication connection with the electronic device are determined based on the association relationship.
In the above embodiments of the audio playing apparatus provided in this embodiment of the present application, when playing the first audio corresponding to the first application, one-to-one playing can be implemented by using one first playing device for playing, and by using at least two first playing devices for playing, the same audio content can be played through different playing devices at the same time, so that multiple users can know the same audio content through different playing devices; through the in-process at the broadcast first audio frequency, adopt second target playback device to broadcast the second audio frequency, can realize that different audio frequency content plays through corresponding playback device, guarantee the broadcast of first audio frequency and second audio frequency mutual noninterference, promote user's audio frequency and acquire experience.
Further, when a second playing instruction for playing the first audio is received, at least one first playing device is determined to play the first audio, and the playing device for playing the first audio can be determined according to the selection of the user in the first list, so that one-to-one playing is realized or the same audio content is played through different playing devices; in the process of playing the first audio, if the first playing instruction is received, at least one second playing device is determined to play the second audio, so that the playing of the first audio and the playing of the second audio are not interfered with each other, and the audio acquisition experience of a user is improved.
The association between the application and the playing device is established to form the association relationship between at least part of the applications in the plurality of applications and the playing device, so that the playing device matched with the application is found based on the association relationship to play the audio content.
The audio playing device in the embodiment of the present application may be a device, and may also be a component, an integrated circuit, or a chip in a terminal. 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 playing device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system (Android), an iOS operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.
The audio playing device provided in the embodiment of the present application can implement each process implemented by the audio playing method embodiment shown in fig. 1, and is not described herein again to avoid repetition.
Optionally, as shown in fig. 7, an electronic device 700 is further provided in this embodiment of the present application, and includes a processor 701, a memory 702, and a program or an instruction stored in the memory 702 and executable on the processor 701, where the program or the instruction is executed by the processor 701 to implement each process of the foregoing audio playing method embodiment, and can achieve the same technical effect, and no further description is provided here to avoid repetition.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 8 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 800 includes, but is not limited to: the electronic device comprises a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, a processor 810 and the like, and further comprises a plurality of cameras.
Those skilled in the art will appreciate that the electronic device 800 may further comprise a power source (e.g., a battery) for supplying power to the various components, and the power source may be logically connected to the processor 810 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. 8 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.
Among them, the audio output unit 803: playing a first audio corresponding to a first application through a first target playing device, wherein the first target playing device comprises at least one first playing device in communication connection with an electronic device; the processor 810 is configured to: under the condition of receiving a first playing instruction for playing a second audio corresponding to a second application, in response to the first playing instruction, controlling an audio output unit 803 to play the second audio through a second target playing device, where the second target playing device includes at least one second playing device in communication connection with the electronic device; wherein the first audio and the second audio are played through different playing devices.
Optionally, when playing the first audio corresponding to the first application through the first target playing device, the processor 810 is further configured to: under the condition that a second playing instruction for playing the first audio is received, responding to the second playing instruction, and determining the at least one first playing device; control the audio output unit 803 to play the first audio through the at least one first playing device; the at least one first playing device is determined based on a first input to a first list, where the first list includes device identifications corresponding to N first playing devices associated with the first application, and N is an integer greater than or equal to 1.
Optionally, when the second audio is played by a second target playback device in response to the first playback instruction, the processor 810 is further configured to: responding to the first playing instruction, displaying a second list comprising device identifications corresponding to M second playing devices associated with the second application, wherein M is an integer greater than or equal to 1; determining the at least one second playback device in response to a second input to the second list; the audio output unit 803 is controlled to play the second audio through the at least one second playing device.
Optionally, the processor 810 is further configured to: controlling a display unit 806 to display a playing device page under the condition that a first preset trigger condition is monitored, wherein the playing device page comprises a plurality of device identifications corresponding to a plurality of playing devices associated with the electronic device; establishing an association relationship between at least part of the plurality of playing devices and each of at least part of applications installed on the electronic device in response to a third input on the playing device page, wherein the plurality of applications are at least part of all applications installed on the electronic device; wherein at least one first playing device in communication connection with the electronic device and at least one second playing device in communication connection with the electronic device are determined based on the association relationship.
Optionally, the processor 810 is further configured to: controlling a display unit 806 to display an application page under the condition that a second preset trigger condition is monitored, wherein the application page includes application identifiers corresponding to a plurality of applications installed on the electronic device, and the plurality of applications are at least part of all applications installed on the electronic device; processor 810 is further configured to: establishing an association relationship between each of at least part of the plurality of applications and at least one playing device in response to a fourth input on the application page; wherein at least one first playing device in communication connection with the electronic device and at least one second playing device in communication connection with the electronic device are determined based on the association relationship.
In this way, when the first audio corresponding to the first application is played, one-to-one playing can be realized by using one first playing device, and the same audio content can be played through different playing devices at the same time by using at least two first playing devices, so that a plurality of users can know the same audio content through different playing devices; through the in-process at the broadcast first audio frequency, adopt second target playback device to broadcast the second audio frequency, can realize that different audio frequency content plays through corresponding playback device, guarantee the broadcast of first audio frequency and second audio frequency mutual noninterference, promote user's audio frequency and acquire experience.
Further, when a second playing instruction for playing the first audio is received, at least one first playing device is determined to play the first audio, and the playing device for playing the first audio can be determined according to the selection of the user in the first list, so that one-to-one playing is realized or the same audio content is played through different playing devices; in the process of playing the first audio, if the first playing instruction is received, at least one second playing device is determined to play the second audio, so that the playing of the first audio and the playing of the second audio are not interfered with each other, and the audio acquisition experience of a user is improved.
The association between the application and the playing device is established to form the association relationship between at least part of the applications in the plurality of applications and the playing device, so that the playing device matched with the application is found based on the association relationship to play the audio content.
It should be understood that in the embodiment of the present application, the input Unit 804 may include a Graphics Processing Unit (GPU) 8041 and a microphone 8042, and the Graphics processor 8041 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 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 807 includes a touch panel 8071 and other input devices 8072. A touch panel 8071, also referred to as a touch screen. The touch panel 8071 may include two portions of a touch detection device and a touch controller. Other input devices 8072 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 809 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems. The processor 810 may integrate an application processor, which primarily handles operating systems, user pages, 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 processor 810.
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 playing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an 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 run a program or an instruction to implement each process of the above-mentioned audio playing method embodiment, and can achieve the same technical effect, and is not described here again to avoid repetition.
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 computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, 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.