CN113784001B - Audio data playing method and device, electronic equipment and storage medium - Google Patents

Audio data playing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113784001B
CN113784001B CN202111088906.XA CN202111088906A CN113784001B CN 113784001 B CN113784001 B CN 113784001B CN 202111088906 A CN202111088906 A CN 202111088906A CN 113784001 B CN113784001 B CN 113784001B
Authority
CN
China
Prior art keywords
audio
data
target
event
audio device
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
CN202111088906.XA
Other languages
Chinese (zh)
Other versions
CN113784001A (en
Inventor
王泽卫
李宗源
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202111088906.XA priority Critical patent/CN113784001B/en
Publication of CN113784001A publication Critical patent/CN113784001A/en
Priority to PCT/CN2022/111173 priority patent/WO2023040517A1/en
Application granted granted Critical
Publication of CN113784001B publication Critical patent/CN113784001B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72484User interfaces specially adapted for cordless or mobile telephones wherein functions are triggered by incoming communication events
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72412User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces

Abstract

The embodiment of the application provides an audio data playing method, an audio data playing device, electronic equipment and a storage medium. The method is applied to a mobile terminal, and the mobile terminal establishes communication connection with at least one wireless audio device, and comprises the following steps: when a target event is monitored, determining target audio equipment corresponding to the target event according to a preset rule, wherein the target event comprises a communication incoming call event and/or a playing event, and the target audio equipment is used for representing equipment for playing audio data of the target event; acquiring audio data of a target event; and sending the audio data of the target event to the target audio device, wherein the target audio device is used for playing the audio data of the target event. In the embodiment of the application, after the communication incoming call event or the playing event is monitored, the equipment for playing the audio data of the event is automatically determined according to the preset rule so as to meet the playing requirements of the audio data in different scenes.

Description

Audio data playing method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of mobile terminals, and in particular, to a method and apparatus for playing audio data, an electronic device, and a storage medium.
Background
At present, the Bluetooth technology is widely applied, and Bluetooth equipment such as wireless headphones, vehicle-mounted Bluetooth equipment, intelligent wearable equipment and the like is emerging in the market.
After the bluetooth device establishes a connection with the mobile terminal, audio data (such as call data, multimedia data, etc.) played by the mobile terminal is transmitted to the bluetooth device, and played by the bluetooth device. For example, when the mobile terminal establishes a bluetooth connection with the vehicle-mounted bluetooth device and a communication incoming call event is monitored, after the user selects to answer, the vehicle-mounted bluetooth device plays call data.
Disclosure of Invention
The embodiment of the application provides an audio data playing method, an audio data playing device, electronic equipment and a storage medium.
In a first aspect, some embodiments of the present application provide an audio data playing method, where the method is applied to a mobile terminal, and the mobile terminal establishes a communication connection with at least one wireless audio device, and the method includes: under the condition that a target event is monitored, determining target audio equipment corresponding to the target event, wherein the target event comprises a communication incoming call event and/or a playing event, and the target audio equipment is used for representing equipment for playing audio data of the target event; the target audio device is determined in at least one wireless audio device and the mobile terminal; acquiring audio data of a target event; transmitting audio data of a target event to target audio equipment, wherein the target audio equipment is used for playing the audio data of the target event; wherein, the preset rule comprises: presetting a corresponding relation and/or requesting to play an event; the preset corresponding relation comprises corresponding relations between different data types and different audio devices, and the event of requesting to play refers to an event of monitoring a playing request sent by the target audio device.
In a second aspect, some embodiments of the present application provide an audio data playing method, which is applied to a wireless audio device that establishes a communication connection with a mobile terminal, the method including: acquiring a preset corresponding relation between the data type and the audio equipment; the method comprises the steps that a preset corresponding relation is sent to a mobile terminal through a control information link between the mobile terminal and the mobile terminal, the mobile terminal is used for determining target audio equipment corresponding to a target event based on the preset corresponding relation after the target event is monitored, and the target event comprises a communication incoming event and/or a playing event; receiving audio data of a target event sent by a mobile terminal after the wireless audio device is determined to be the target audio device; audio data of the target event is played.
In a third aspect, some embodiments of the present application provide an audio data playing method, which is applied to a wireless audio device that establishes a communication connection with a mobile terminal, the method including: receiving notification information sent by a mobile terminal through a control information link between the mobile terminal and the notification information, wherein the notification information is used for notifying that a target event is monitored, and the target event comprises a communication incoming call event and/or a playing event; sending a play request to the mobile terminal through the control information link, wherein the play request is used for requesting to play the audio data of the target event, and the mobile terminal is used for determining the wireless audio device as the target audio device based on the play request; receiving audio data of a target event sent by a mobile terminal after the wireless audio device is determined to be the target audio device; audio data of the target event is played.
In a fourth aspect, some embodiments of the present application provide an audio data playback apparatus, the apparatus comprising: the device determining module is used for determining target audio devices corresponding to the target events under the condition that the target events are monitored, the target events comprise communication incoming events and/or playing events, and the target audio devices are used for representing devices for playing audio data of the target events; the target audio device is determined in at least one wireless audio device and the mobile terminal; the data acquisition module is used for acquiring the audio data of the target event; the data transmitting module is used for transmitting the audio data of the target event to the target audio equipment, and the target audio equipment is used for playing the audio data of the target event; wherein, the preset rule comprises: presetting a corresponding relation and/or requesting to play an event; the preset corresponding relation comprises corresponding relations between different data types and different audio devices, and the event of requesting to play refers to an event of monitoring a playing request sent by the target audio device.
In a fifth aspect, some embodiments of the present application provide an audio data playback apparatus, the apparatus comprising: the relation acquisition module is used for acquiring a preset corresponding relation between the data type and the audio equipment; the relation transmitting module is used for transmitting a preset corresponding relation to the mobile terminal through a control information link between the relation transmitting module and the mobile terminal, and the mobile terminal is used for determining target audio equipment corresponding to a target event based on the preset corresponding relation after monitoring the target event, wherein the target event comprises a communication incoming event and/or a playing event; the first receiving module is used for receiving the audio data of the target event sent by the mobile terminal after the wireless audio device is determined to be the target audio device; and the first playing module is used for playing the audio data of the target event.
In a sixth aspect, some embodiments of the present application provide an audio data playing device, the device including: the information receiving module is used for receiving notification information sent by the mobile terminal through a control information link between the information receiving module and the mobile terminal, wherein the notification information is used for notifying the monitoring of a target event, and the target event comprises a communication incoming call event and/or a playing event; the mobile terminal is used for determining the wireless audio equipment as target audio equipment based on the playing request; the second receiving module is used for receiving the audio data of the target event sent by the mobile terminal after the wireless audio device is determined to be the target audio device; and the second playing module is used for playing the audio data of the target event.
In a seventh aspect, some embodiments of the application provide an electronic device comprising a processor and a memory storing computer program instructions that are invoked by the processor to perform a method as in any of the first, second, and third aspects above.
In some embodiments, when the electronic device is a mobile terminal, it is configured to perform the method of the first aspect as described above. In other embodiments, when the electronic device is a wireless audio device, it is configured to perform the method according to the first or second aspect described above.
In an eighth aspect, some embodiments of the present application provide a computer readable storage medium having program code stored therein, the program code being invoked by a processor to perform the method of any one of the first, second and third aspects described above.
In a ninth aspect, some embodiments of the application provide a computer program product for implementing the method of any one of the first, second and third aspects as described above when executed.
The embodiment of the application provides an audio data playing method, an apparatus, an electronic device and a storage medium, which automatically determine equipment for playing audio data of an event according to preset rules after a communication incoming call event or a playing event is monitored so as to meet audio data playing requirements under different scenes, wherein the preset rules are set by a user according to the requirements, for example, the user selects equipment (such as a wireless earphone, a mobile phone receiver and the like) except vehicle-mounted wireless audio equipment to play call data under the condition that the user wants to protect privacy, so that the call data is prevented from being heard by other people, the privacy of the user is effectively protected, and the preset rules refer to the wireless audio equipment acted by a playing instruction actively triggered by the user to play the audio data, at the moment, the user can select the wireless audio equipment closest to the user to play the audio equipment, and the convenience is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is an interface schematic diagram related to an audio data playing method provided in the related art.
FIG. 2 is a schematic diagram of an implementation environment provided by one embodiment of the present application.
FIG. 3 is a schematic diagram of an implementation environment provided by another embodiment of the present application.
Fig. 4 is a flowchart of an audio data playing method according to an embodiment of the present application.
Fig. 5 is a schematic diagram of a targeted audio device according to an embodiment of the present application.
Fig. 6 is an interface schematic diagram related to acquiring a preset correspondence according to an embodiment of the present application.
Fig. 7 is an interface schematic diagram related to acquiring a preset correspondence according to another embodiment of the present application.
Fig. 8 is a flowchart of an audio data playing method according to an embodiment of the present application.
Fig. 9 is a flowchart of an audio data playing method according to another embodiment of the present application.
Fig. 10 is a flowchart of an audio data playing method according to another embodiment of the present application.
Fig. 11 is a block diagram of an audio data playback apparatus according to an embodiment of the present application.
Fig. 12 is a block diagram of an audio data playback apparatus according to another embodiment of the present application.
Fig. 13 is a block diagram of an audio data playback apparatus according to another embodiment of the present application.
Fig. 14 is a block diagram of an electronic device provided in one embodiment of the application.
FIG. 15 is a block diagram of a computer readable storage medium provided by one embodiment of the application.
Detailed Description
Embodiments of the present application are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are exemplary only for explaining the present application and are not to be construed as limiting the present application.
In order to enable those skilled in the art to better understand the solution of the present application, the following description will make clear and complete descriptions of the technical solution of the present application in the embodiments of the present application with reference to the accompanying drawings. It will be apparent that the described embodiments are only some, but not all, embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
As shown in fig. 1, the related art further provides an audio data playing method, which specifically includes the following steps: after the mobile phone monitors an incoming call event, the user selects to answer the incoming call, at this time, the mobile phone displays a selection window 11, where the selection window 11 includes a device with a function of playing call data, and a function module with a function of playing call data in the mobile phone, including a vehicle bluetooth device 111, a bluetooth headset 112, a mobile phone receiver 113, a speaker 114, and the like, and the user can select a device or a function module for answering the call in the selection window 11.
In the first related art, after the vehicle-mounted bluetooth device is connected, call data is played by the vehicle-mounted bluetooth device by default, so that a user cannot select the vehicle-mounted bluetooth device by himself or herself, and the call requirement in a call scene with high privacy requirements cannot be met.
In the second related art, a user needs to select a function module or a device for playing call data after answering, and there is a time delay between selecting to answer and playing call data.
Based on the defects of the related art, the embodiment of the application provides an audio data playing method, after a communication incoming call event or a playing event is monitored, equipment for playing the audio data of the event is automatically determined according to preset rules, so as to meet the audio data playing requirements under different scenes, for example, the preset rules are set by a user according to the requirements, the user selects equipment (such as a wireless earphone, a mobile phone receiver and the like) except for vehicle-mounted wireless audio equipment to play call data under the condition that the user wants to protect privacy, the call data is prevented from being heard by other people, the privacy of the user is effectively protected, and then, for example, the preset rules refer to the wireless audio equipment acted by a playing instruction actively triggered by the user to play the audio data, and at the moment, the user can select the wireless audio equipment closest to the user to play the audio equipment, so that the convenience is improved.
As shown in fig. 2, which illustrates an implementation environment provided by an exemplary embodiment of the present application. The implementation environment comprises: a mobile terminal 21 and at least one wireless audio device.
The mobile terminal 21 has a call function such as making a call with other mobile terminals through a subscriber identity module (Subscriber Identification Module, SIM) or making a call with other mobile terminals through an application having a voice call function. The application program with the voice call function may be a social application program, a shopping application program, or the like. In some embodiments, the mobile terminal 21 also has an audio playing function, and the mobile terminal 21 implements the audio playing function through an earpiece assembly, a speaker assembly, and the like.
In an embodiment of the present application, a communication connection is established between the mobile terminal 21 and at least one wireless audio device. In some embodiments, the mobile terminal 21 has a communication module, and a communication connection is established between the communication module and the wireless audio device, and then audio data, such as call data, multimedia audio data, etc., is sent to the wireless audio device, so that the wireless audio device plays the call data received by the mobile terminal 21 or plays the multimedia file in the mobile terminal 21. The communication module includes, but is not limited to: in the embodiment of the present application, only the communication module is illustrated as a bluetooth module, and a bluetooth connection is established between the mobile terminal 21 and at least one wireless audio device. The mobile terminal 21 may be a smart phone, a personal computer, a tablet computer, or the like. In other embodiments, the mobile terminal 21 is connected to the same local area network as the wireless audio device, and the communication connection is performed based on the local area network. Such local area networks include, but are not limited to: wireless local area networks (Wireless Local Area Network, WLAN), local area networks established based on the airlay transmission protocol, local area networks established based on the digital living network alliance (Digital Living Network Alliance, DLNA) transmission protocol, and the like.
The wireless audio device also has a communication module, and the communication module of the wireless audio device can realize data interaction with the mobile terminal 21. In addition, the wireless audio device also has an audio playing function. Wireless audio devices include, but are not limited to: wireless headphones, smart wearable devices, car wireless audio devices, tablet computers, smart speakers, and the like. As shown in fig. 2, the mobile terminal 21 establishes communication connection with two wireless headphones 22, a smart speaker 23 and a smart wearable device 24, respectively.
In some embodiments, the communication connection between the mobile terminal 21 and the wireless audio device includes a control information link and a data link.
The control information link is used for transmitting control information between the mobile terminal 21 and the wireless audio device, and the control information includes, but is not limited to: information (e.g., name, MAC address, signal strength, etc.), correspondence between different data types and different audio devices, notification information, request information, etc. of wireless audio devices that establish a communication connection with the mobile terminal 21. In some embodiments, the control information link is a communication link established based on an object push specification (Object Push Profile, OPP) protocol.
The data link is used for transmitting audio data between the mobile terminal 21 and the wireless audio device, including call data and multimedia data. In some embodiments, the data link includes a call data link for transmitting call data between the mobile terminal 21 and the wireless audio device and a multimedia data link for transmitting multimedia data between the mobile terminal 21 and the wireless audio device.
In some embodiments, the call data link is a communication link established based on a hands-free function configuration (Hand Free Profile, HFP) protocol. In some embodiments, the multimedia data link is a communication link established based on an advanced audio transmission specification (Advanced Audio Distribution Profile, A2 DP) protocol. The A2DP protocol defines the transmission of high quality audio information over an asynchronous connectionless (Asynchronous Connectionless Link, ACL) channel, and two logical Link control and adaptation protocol channels (Logical Link Control and Adaptation Protocol channel, L2CAP channel) are established over the same ACL Link, one for taking care of instruction interaction and the other for transmitting audio streams (i.e. multimedia data links).
It should be noted that, the control information link may be established after a communication connection is established between the mobile terminal and the wireless audio device, or may be established after a communication connection is established and there is a control information transmission requirement; the data link can be established after the communication connection is established between the mobile terminal and the wireless audio device, or can be established after the communication connection is established and the data transmission requirement exists. The establishment timing of the control information link and the data link may be the same or different.
Referring to fig. 2, the communication connection established between the mobile terminal 21 and the two wireless headphones 22, the smart speaker 23, and the smart wearable device 24 includes a control information link established based on the OPP protocol, a multimedia data link established based on the A2DP protocol, and a call data link based on the HFP protocol.
As shown in fig. 3, which illustrates an implementation environment provided by an exemplary embodiment of the present application. The implementation environment comprises: a mobile terminal 31, a wireless headset 32, and a car wireless audio device 33.
The communication connection between the mobile terminal 31 and the in-vehicle wireless audio device 33 includes a control information link established based on the OPP protocol, a multimedia data link established based on the A2DP protocol, and a call data link based on the HFP protocol. The communication connection between the mobile terminal 31 and the wireless headset 32 includes a multimedia data link established based on the A2DP protocol and a telephony data link based on the HFP protocol.
In this implementation environment, the mobile terminal 31 receives a preset correspondence between different data types and different audio devices through a control information link with the in-vehicle wireless audio device 33. Specifically, after the mobile terminal 31 establishes a communication connection with the vehicle-mounted wireless audio device 33, the connected device information is sent to the vehicle-mounted wireless audio device 33 through the control information link, the vehicle-mounted wireless audio device 33 displays an audio device list corresponding to at least one data type based on the connected device information, the user selects audio devices corresponding to the data types respectively, at this time, the vehicle-mounted wireless audio device 33 acquires the preset corresponding relationship, and then the preset corresponding relationship is sent to the mobile terminal 31 through the control information link.
In some embodiments, if it is determined that the audio device corresponding to the call data is the wireless headset 32, the mobile terminal 31 sends the call data to the wireless headset 32 through the call data link with the wireless headset 32. In some embodiments, if it is determined that the audio device corresponding to the multimedia data is the wireless headset 32, the mobile terminal 31 transmits the multimedia data to the wireless headset 32 through the multimedia data link with the wireless headset 32.
In some embodiments, if it is determined that the audio device corresponding to the call data is the in-vehicle wireless audio device 33, the mobile terminal 31 transmits the call data to the in-vehicle wireless audio device 33 through the call data link with the in-vehicle wireless audio device 33. In some embodiments, if it is determined that the audio device corresponding to the multimedia data is the in-vehicle wireless audio device 33, the mobile terminal 31 transmits the multimedia data to the in-vehicle wireless audio device 33 through a multimedia data link with the in-vehicle wireless audio device 33.
As shown in fig. 4, which illustrates an audio data playing method according to an exemplary embodiment of the present application, the method is applied to the mobile terminal in fig. 2 or fig. 3, and the mobile terminal establishes a communication connection with at least one wireless audio device, and the method includes the steps of:
and step 401, when the target event is monitored, determining target audio equipment corresponding to the target event according to a preset rule.
The target event includes a communication incoming event. The communication incoming call event refers to an event that the opposite mobile terminal requests to establish a call with the home mobile terminal. In some embodiments, after receiving a call instruction for a number of a SIM card built in the home terminal, the peer mobile terminal sends a call request to the home terminal, where the home terminal monitors a communication incoming call event. In other embodiments, after receiving a voice call instruction or a video call instruction for a specified account in a specified application, the opposite mobile terminal sends a call request to the home mobile terminal, where the home mobile terminal monitors a communication incoming call event, and the specified account is a user account in the home mobile terminal to which the specified application is logged, and the specified application is an application having a voice call function or a video call function, for example, a social application.
The target event further includes a play event, which refers to an event of playing audio data in the mobile terminal, where the audio data may be audio data in a multimedia file, and the multimedia file includes, but is not limited to: music files, video files, audio book files, etc., and may also be audio data obtained in real time from a live terminal in a live scene. In some embodiments, the play event is monitored when the mobile terminal receives a play instruction for the multimedia file. In other embodiments, the play event is monitored when the mobile terminal receives an open indication for a live channel.
The target audio device is used to characterize the device playing the audio data of the target event. When the target event is a communication incoming call event, the audio data of the target event is call data; when the target event is a play event, the audio data of the target event is multimedia data. In the embodiment of the application, the target audio device can be a device in at least one wireless audio device or a mobile terminal.
The preset rules comprise: presetting a corresponding relation and/or requesting to play the event. The preset corresponding relation comprises corresponding relations between different data types and different audio devices. The play request event refers to an event in which a play request sent by the target audio device is monitored. In the embodiment of the application, after the communication incoming call event or the playing event is monitored, the mobile terminal automatically determines the equipment for playing the audio data of the event according to the preset rule so as to meet the audio data playing requirements under different scenes. The preset rule can be set by a user according to the requirement of the user, or can be set by the wireless audio device acted by the playing instruction actively triggered by the user to play the audio data. These two cases are described below, respectively.
In some embodiments, the mobile terminal searches for a target audio device corresponding to the target data type in the preset correspondence. The preset corresponding relation comprises corresponding relations between different data types and different audio devices. The target data type is used to characterize the data type to which the audio data of the target event belongs. The target data type includes call data and multimedia data.
The preset correspondence is set by user definition, and a specific setting process will be explained in the following embodiments. In addition, the preset correspondence may be set by the user in the mobile terminal, or may be set by the user in the wireless audio device that establishes a communication connection with the mobile terminal. If the user sets in the wireless audio device which establishes communication connection with the mobile terminal, the mobile terminal acquires a preset corresponding relation through a control information link between the mobile terminal and the target device in at least one wireless audio device before determining the target audio device. Optionally, after the mobile terminal establishes a communication connection with a target device in the at least one wireless audio device, the mobile terminal obtains the preset corresponding relationship through a control information link between the mobile terminal and the target device. In some embodiments, the control information link is a data link established based on the OPP protocol. The following table-1 exemplarily shows a preset correspondence relationship.
Data type Audio apparatus
Call data Wireless earphone
Multimedia data Vehicle-mounted wireless audio equipment
TABLE-1
The mobile terminal monitors a communication incoming call event, wherein the data type of the communication incoming call event is call data, and the mobile terminal can determine that the target audio device corresponding to the communication incoming call event is a wireless earphone by looking up the table-1.
In this embodiment, after the mobile terminal monitors the target event, the target audio device is determined according to a preset corresponding relationship preset by the user, and the user selects to play the call data through devices (such as a wireless earphone, a mobile phone receiver and the like) other than the vehicle-mounted wireless audio device under the condition that the user wants to protect privacy, so that the call data is prevented from being heard by other people, and the privacy of the user is effectively protected.
In other embodiments, the mobile terminal determines the target audio device corresponding to the target event by: transmitting notification information to the at least one wireless audio device over a control information link with the at least one wireless audio device; receiving a playing request sent by the third wireless audio equipment through a control information link between the third wireless audio equipment and the third wireless audio equipment, wherein the playing request is used for requesting to play audio data of a target event; based on the play request, the third wireless audio device is determined to be the target audio device.
At least one wireless audio device refers to a wireless audio device that establishes a communication connection with a mobile terminal. The control information link is used for transmitting control information between the mobile terminal and the wireless audio device. In some embodiments, the control information link is a data link established based on the OPP protocol.
In this embodiment, the mobile terminal transmits notification information to the wireless audio device through the control information link, the notification information being used to notify that the target event is monitored. When the target event is a communication incoming call event, the notification information further includes an identity of a call initiator, such as a SIM card number of the call initiator, a contact account number, and the like. When the target event is a play event, the notification information further includes a unique identification of audio data, such as a file identification of a multimedia file, a channel identification of a live channel, and the like.
The wireless audio device sends out prompt information after receiving the notification message, wherein the prompt information is used for prompting the mobile terminal to monitor the target event. When the wireless audio device has a display screen, the wireless audio device displays a prompt message on the display screen, and when the wireless audio device is an intelligent wearable device with a display screen, the intelligent wearable device displays a communication incoming interface of a communication incoming event to prompt a user. When the wireless audio device does not have a display screen, the wireless audio device sends out prompt information in a voice manner, and when the wireless audio device is an intelligent sound box without a display screen, the intelligent sound box sends out prompt information of 'you receive an incoming call from the number 135xxxx 2101'.
The user may select the target audio device based on the prompt sent by the wireless audio device. In some embodiments, the user sends a play confirmation instruction to the wireless audio device, and the wireless audio device that receives the play confirmation instruction is the third wireless audio device, and then the third wireless audio device sends a play request to the mobile terminal through a control information link between the third wireless audio device and the mobile terminal, and then the mobile terminal determines the third wireless audio device as the target audio device. The play request is used for requesting to play the audio data of the target event. Optionally, the play request carries a unique identification of the third wireless audio device, such as a device name, MAC address, etc. In addition, the confirm play instruction includes, but is not limited to: a trigger signal corresponding to a confirmation button in a display screen of the wireless audio device, a specified operation signal corresponding to a physical key of the wireless audio device, such as a long press signal lamp, a voice confirmation signal. It should be noted that, the confirmation playing instructions corresponding to different wireless audio devices are set by user definition, or set by negotiation between the mobile terminal and the wireless audio device.
In this embodiment, after the mobile terminal monitors the target event, the mobile terminal sends notification information to each wireless audio device that establishes communication connection, and the user can select the wireless audio device closest to the user to play the audio data of the target event, so that the convenience of operation is improved.
As shown in fig. 5, an embodiment of the present application provides a way to determine a target audio device. The mobile terminal 51 monitors a communication incoming call event, sends notification information to the intelligent wearable device 52, the Bluetooth sound box 53 and the vehicle-mounted Bluetooth terminal 54 through a control information link, the intelligent wearable device 52 and the vehicle-mounted Bluetooth terminal 54 display a communication incoming call interface 55 of the communication incoming call event, the Bluetooth sound box 53 sends prompt information of 'you receive an incoming call from the number 134xxxx 2523', a user sends a confirmation playing instruction to the intelligent wearable device 52, the intelligent wearable device 52 sends a playing request to the mobile terminal, and the mobile terminal 51 determines the intelligent wearable device 52 as a target audio device. Step 402, obtain audio data of a target event.
When the target event is a communication incoming call event, the mobile terminal continuously receives call data sent by the opposite terminal mobile terminal after receiving the connection instruction.
When the target event is a play event, if the mobile terminal monitors the play event through a play instruction aiming at the multimedia file, the mobile terminal reads the audio data of the multimedia file from the local or downloads the audio data of the multimedia file from the cloud. When the target event is a playing event, if the mobile terminal monitors the playing event through the opening indication of the live channel, the mobile terminal receives live stream audio data sent by the push stream server, and the live stream audio data is uploaded by the live terminal.
Step 403, audio data of the target event is sent to the target audio device.
Accordingly, the target audio device receives the audio device for the target event. The target audio device is for playing audio data of the target event. If the target event is a communication incoming call event, audio data of the communication incoming call event is sent to target audio equipment through a communication data link; and if the target event is a play event, sending the audio data of the play event to the target audio equipment through the multimedia data link.
In other possible implementation manners, the mobile terminal establishes communication connection with the wireless earphone and the vehicle-mounted bluetooth device respectively, and if the mobile terminal does not acquire the preset rule and the target event is a communication incoming call event, the mobile terminal determines the target audio device as the wireless earphone, acquires call data and sends the call data to the wireless earphone, and the wireless earphone plays the call data. If the mobile terminal does not acquire the preset rule and the target event is a play event, the mobile terminal determines the target audio device as the vehicle-mounted Bluetooth device, acquires call data and sends the call data to the vehicle-mounted Bluetooth device, and the vehicle-mounted Bluetooth device plays the call data. If the mobile terminal does not acquire the preset rule and does not detect the target event, the mobile terminal determines the communication incoming event and the target audio equipment corresponding to the playing event as vehicle-mounted Bluetooth equipment, and when the two events are detected subsequently, the corresponding audio data are sent to the vehicle-mounted Bluetooth equipment and played by the vehicle-mounted Bluetooth equipment.
According to the audio data playing method provided by the embodiment of the application, after the communication incoming call event or the playing event is monitored, the equipment for playing the audio data of the event is automatically determined according to the preset rule, so that the audio data playing requirements under different scenes are met, for example, the preset rule is set by a user according to the requirements, the user selects equipment except the vehicle-mounted wireless audio equipment to play call data under the condition that the user wants to protect privacy, the call data is prevented from being heard by other people, the privacy of the user is effectively protected, and for example, the preset rule refers to the playing of the audio data through the wireless audio equipment acted by the playing instruction actively triggered by the user, at the moment, the user can select the wireless audio equipment closest to the user to play the audio equipment, and the convenience is improved.
In the above embodiment, it is mentioned that the preset correspondence is set by user definition, and the setting process of the preset correspondence is described below.
In some embodiments, the user sets the preset correspondence in a wireless audio device having a communication connection established with the mobile terminal. In this embodiment, when the target device is a first wireless audio device having a display screen, the mobile terminal acquires a preset correspondence by the following steps.
In step 601, the mobile terminal transmits connected device information to the first wireless audio device through the control information link.
The connected device information includes information of a wireless audio device that establishes a communication connection with the mobile terminal. In some embodiments, the connected device information includes a name, MAC address, signal strength, etc. of the wireless audio device that establishes a communication connection with the mobile terminal. The first wireless audio device includes, but is not limited to: smart wearable devices, car wireless audio devices, tablet computers, etc.
In some embodiments, the mobile terminal sends the connected device information to the first wireless audio device after establishing a communication connection with the first wireless audio device.
In step 602, the first wireless audio device is configured to display a list of audio devices corresponding to at least one data type based on the connected device information.
The list of audio devices corresponding to the data type includes a device identification, such as a device name, that allows audio data of the data type to be played. It should be noted that the audio device list corresponding to the data type includes wireless audio devices that establish a communication connection with the mobile terminal. In some embodiments, the audio device list corresponding to the data type includes components in the mobile terminal having an audio playing function, such as a speaker, a receiver, and the like.
Referring to fig. 6, an interface schematic diagram of an audio device list corresponding to at least one data type according to an embodiment of the present application is shown. In this embodiment, the first wireless audio device is a car audio device 60 having a display screen, the car audio device 60 displays an audio device list 61 corresponding to multimedia data and an audio device list 62 corresponding to call data, the audio device list 61 corresponding to multimedia data includes a wireless earphone, a car audio device, a handset and a speaker, and the audio device list 62 corresponding to call data includes a wireless earphone, a car audio device, a handset and a speaker.
In step 603, the first wireless audio device determines an audio device corresponding to at least one data type based on the first selection signal, so as to obtain a preset corresponding relationship.
The first selection signal is triggered by a user, the first selection signal comprising a combination of at least one or more of: a first touch signal corresponding to the display screen, a first operation signal corresponding to a physical key of the first wireless audio device, and a first voice signal.
In some embodiments, the display screen is a touch display screen, each device identifier in the audio device list displayed by the first wireless audio device is an operable control, and if a trigger signal corresponding to a certain device identifier is received, the audio device identified by the selected device identifier is determined to be the audio device corresponding to the data type.
In other embodiments, the display screen is not a touch display screen, each device identifier in the audio device list displayed by the first wireless audio device corresponds to an entity key, and if a pressing signal corresponding to a certain entity key is received, the audio device identified by the device identifier corresponding to the entity key is determined to be the audio device corresponding to the data type. In other embodiments, the first wireless audio device displays a selection box in the list of audio devices, the device identified by the device identification identified by the selection box, and determines the audio device to be the audio device corresponding to the data type. The first wireless audio device further comprises a forward entity key and a backward entity key, and the first wireless audio device changes the frame selection position of the selection frame, namely changes the selected device identifier by aiming at the forward entity key and/or the backward entity key.
In other embodiments, the first wireless audio device plays query information for querying the audio device corresponding to each data type, the user speaking the selected audio device name, at which point the first wireless audio device determines the audio device identified by the user-spoken audio device name as the audio device corresponding to the data type.
In step 604, the first wireless audio device sends a preset correspondence to the mobile terminal through the control information link.
Correspondingly, the mobile terminal receives a preset corresponding relation sent by the first wireless audio equipment.
It should be noted that, if the first wireless audio device does not receive the first selection signal within the first preset duration, the display of the audio device list corresponding to at least one data type is canceled, and at this time, the mobile terminal determines the audio devices corresponding to different data types according to the default setting. The first preset duration is set according to actual requirements, and is illustratively 10 seconds.
When the target device is a second wireless audio device without a display screen, the mobile terminal acquires a preset corresponding relation through the following steps.
Step 605, the connected device information is sent to the second wireless audio device over the control information link.
The connected device information includes information of a wireless audio device that establishes a communication connection with the mobile terminal. The second wireless audio device includes, but is not limited to: smart speakers, wireless headphones, etc. In some embodiments, the mobile terminal sends the connected device information to the second wireless audio device after establishing a communication connection with the second wireless audio device.
The second wireless audio device is configured to play a list of audio devices corresponding to the at least one data type based on the connected device information, step 606.
In the embodiment of the application, since the second wireless audio device does not have a display screen, the second wireless audio device plays the audio device list corresponding to at least one data type in a voice broadcasting mode.
In step 607, the second wireless audio device determines an audio device corresponding to at least one data type based on the second selection signal, so as to obtain a preset corresponding relationship.
The second selection signal is triggered by the user, the second selection signal comprising a combination of at least one or more of: a second operation signal corresponding to the physical key of the second wireless audio device, a second voice signal.
In some embodiments, each device identifier in the audio device list corresponding to the data type corresponds to an operation signal of the target entity key, and if the target operation signal corresponding to the target entity key is received, the audio device identified by the device identifier corresponding to the target operation signal is determined to be the audio device corresponding to the data type. Table-2 below illustrates different audio devices identified by different operation signals for a pause key.
Type of operating signal Audio apparatus
Single press operation signal Bluetooth sound box
Double press operation signal Wireless earphone
Long press operation signal Intelligent wearable equipment
TABLE-2
Taking table-2 as an example, the second wireless audio device plays the audio device list corresponding to the call data in a voice broadcasting manner. And if the long-press operation signal corresponding to the pause key is received, determining the intelligent wearable device as an audio device for playing the call data.
In some embodiments, each device identifier in the audio device list corresponding to the data type corresponds to an entity key, and if a pressing signal corresponding to a certain entity key is received, the audio device identified by the device identifier corresponding to the entity key is determined to be the audio device corresponding to the data type.
In other embodiments, the second wireless audio device plays the audio device list corresponding to the call data in a voice broadcast manner, the user speaks the name of the audio device selected by the user, and at this time, the second wireless audio device determines the audio device identified by the name of the audio device spoken by the user as the audio device corresponding to the data type.
In step 608, the second wireless audio device sends the preset correspondence to the mobile terminal through the control information link.
Correspondingly, the mobile terminal receives a preset corresponding relation sent by the first wireless audio equipment.
It should be noted that, if the second wireless audio device does not receive the second selection signal within the second preset duration, the mobile terminal determines the audio devices corresponding to the different data types according to the default setting. The second preset time period is set according to actual requirements, and is illustratively 10 seconds.
According to the audio data playing method provided by the embodiment of the application, the user sets the preset corresponding relation between different data types and different audio devices on one side of the wireless audio device, after the follow-up mobile terminal monitors the communication incoming call event or plays the event, the equipment for playing the audio data of the event is automatically determined according to the preset corresponding relation, so that the audio data playing requirements under different scenes are met, the user selects to play the call data through equipment (such as a wireless earphone, a mobile phone receiver and the like) outside the vehicle-mounted wireless audio device under the condition of protecting privacy, the call data is prevented from being heard by other people, and the privacy of the user is effectively protected. In addition, under the condition, after the mobile terminal monitors the communication incoming call event or the playing event, the user does not need to select, and the convenience of playing the audio data is improved.
In other embodiments, the user sets the preset corresponding relationship in the mobile terminal, and the mobile terminal obtains the preset corresponding relationship through the following steps.
In step 609, the mobile terminal displays a list of audio devices corresponding to at least one data type based on the connected device information.
The connected device information includes information of a wireless audio device that establishes a communication connection with the mobile terminal. The list of audio devices corresponding to the data type includes device identifications allowing audio data of the data type to be played. It should be noted that the audio device list corresponding to the data type includes wireless audio devices that establish a communication connection with the mobile terminal.
Referring to fig. 7, an interface diagram of an audio device list corresponding to at least one data type according to an embodiment of the present application is shown. In this embodiment, the mobile terminal displays an audio device list 71 corresponding to multimedia data and an audio device list 72 corresponding to call data, the audio device list 71 corresponding to multimedia data including a wireless earphone, a car wireless audio device, a handset and a speaker, and the audio device list 72 corresponding to call data including a wireless earphone, a car wireless audio device, a handset and a speaker.
In step 610, the mobile terminal determines an audio device corresponding to at least one data type based on the third selection signal, so as to obtain a preset corresponding relationship.
The third selection signal is triggered by the user, the third selection signal comprising a combination of one or more of: and a third touch signal and a third voice signal corresponding to the mobile terminal.
In some embodiments, each device identifier in the audio device list displayed by the mobile terminal is an operable control, and if a touch signal corresponding to a certain device identifier is received, the audio device identified by the selected device identifier is determined to be the audio device corresponding to the data type.
In other embodiments, the mobile terminal plays an inquiry message for inquiring the audio device corresponding to each data type, the user speaks the selected audio device name, and the mobile terminal determines the audio device identified by the audio device name spoken by the user as the audio device corresponding to the data type.
It should be noted that, if the mobile terminal does not receive the third selection signal within the third preset duration, the mobile terminal determines the audio devices corresponding to the different data types according to the default setting. The third preset time period is set according to actual requirements, and is illustratively 10 seconds. The first preset duration, the second preset duration and the third preset duration may be the same or different.
According to the audio data playing method provided by the embodiment of the application, the user sets the preset corresponding relation between different data types and different audio devices at one side of the mobile terminal, after the follow-up mobile terminal monitors the communication incoming call event or plays the event, the device for playing the audio data of the event is automatically determined according to the preset corresponding relation, so that the audio data playing requirements under different scenes are met, the user selects to play the call data through devices (such as a wireless earphone, a mobile phone receiver and the like) except the vehicle-mounted wireless audio device under the condition of protecting privacy, the call data is prevented from being heard by other people, and the privacy of the user is effectively protected. In addition, under the condition, after the mobile terminal monitors the communication incoming call event or the playing event, the user does not need to select, and the convenience of playing the audio data is improved.
After determining the playback device to play back the audio data of the target event, the user may also choose to switch the playback device. In some embodiments, the wireless audio device having a communication connection with the mobile terminal includes a wireless headset, and after step 403, the audio data playing method further includes the steps of:
in step 701, in the case that the target audio device is not a wireless headset, a switching request sent by the wireless headset after the wearing event is monitored is received through a control information link between the target audio device and the wireless headset.
The wearing event refers to an event in which the user wears the wireless headset. In some embodiments, the wireless earphone includes a wearing sensor, sensor data acquired by the wearing sensor is used as a judging basis of a wearing event, and if the sensor data acquired by the wearing sensor accords with a preset data characteristic, the wearing event is determined to occur; if the sensor data acquired by wearing the sensor do not accord with the preset data characteristics, determining that no wearing event occurs.
The switch request is for requesting switching of the audio device playing the target event to the wireless headset. The handoff request includes a device identification of the wireless headset, such as a wireless headset name, MAC address, etc.
Step 702, audio data of a target event is sent to a wireless headset based on a handoff request.
After receiving the switching request, the mobile terminal determines the wireless earphone as a target audio device corresponding to the target event, and then sends audio data of the target event to the wireless earphone. If the target event is a communication incoming call event, audio data of the communication incoming call event is sent to the wireless earphone through a communication data link; if the target event is a play event, audio data of the play event is sent to the wireless earphone through the multimedia data link.
After receiving the audio data of the target event, the wireless earphone plays the audio data of the target event.
According to the audio data playing method provided by the embodiment of the application, after the user wears the Bluetooth headset, the target audio device is automatically changed into the wireless headset, and the wireless headset plays the audio data of the target event, so that the rapid switching of the audio device is realized, and the operation convenience is improved.
As shown in fig. 8, there is shown an audio data playing method according to an exemplary embodiment of the present application, which is applied to the wireless audio device of fig. 2 or 3, and includes the following steps.
In step 801, the wireless audio device obtains a preset correspondence between the data type and the audio device.
When the wireless audio device is a first wireless audio device having a display screen, step 801 is implemented as: receiving connected equipment information sent by a mobile terminal through a control information link, wherein the connected equipment information comprises information of wireless audio equipment which establishes communication connection with the mobile terminal; displaying an audio device list corresponding to at least one data type based on the connected device information; determining an audio device corresponding to at least one data type based on a first selection signal to obtain a preset corresponding relation, wherein the first selection signal comprises at least one or a combination of more of the following: a first touch signal corresponding to the display screen, a first operation signal corresponding to a physical key of the first wireless audio device, and a first voice signal.
When the wireless audio device is a second wireless audio device without a display screen, step 801 is implemented as: receiving connected equipment information sent by a mobile terminal through a control information link, wherein the connected equipment information comprises information of wireless audio equipment which establishes communication connection with the mobile terminal; displaying an audio device list corresponding to at least one data type based on the connected device information; determining an audio device corresponding to at least one data type based on a second selection signal to obtain a preset corresponding relation, wherein the second selection signal comprises at least one or a combination of more of the following: a second operation signal corresponding to the physical key of the second wireless audio device, a second voice signal.
Step 802, a preset corresponding relation is sent to the mobile terminal through a control information link between the mobile terminal and the mobile terminal.
The mobile terminal is used for determining target audio equipment corresponding to a target event based on a preset corresponding relation after the target event is monitored, wherein the target event comprises a communication incoming event and/or a playing event;
in step 803, audio data of a target event transmitted by the mobile terminal after determining the wireless audio device as the target audio device is received.
In step 804, audio data of the target event is played.
According to the audio data playing method provided by the embodiment of the application, after the communication incoming call event or the playing event is monitored, the equipment for playing the audio data of the event is automatically determined according to the preset corresponding relation of the user, so that the audio data playing requirements under different scenes are met, the user selects to play the call data through equipment (such as a wireless earphone, a mobile phone receiver and the like) except the vehicle-mounted wireless audio equipment under the condition that the user wants to protect privacy, the call data is prevented from being heard by other people, and the privacy of the user is effectively protected. In addition, under the condition, after the mobile terminal monitors the communication incoming call event or the playing event, the user does not need to select, and the convenience of playing the audio data is improved.
As shown in fig. 9, there is shown an audio data playing method according to an exemplary embodiment of the present application, which is applied to the wireless audio device of fig. 2 or 3, and includes the following steps.
Step 901, receiving, through a control information link with the mobile terminal, notification information sent by the mobile terminal, where the notification information is used to notify that a target event is monitored, and the target event includes a communication incoming call event and/or a play event.
Step 902, a play request is sent to the mobile terminal through the control information link.
The play request is used for requesting to play the audio data of the target event, and the mobile terminal is used for determining the wireless audio device as the target audio device based on the play request.
In step 903, audio data of a target event transmitted by the mobile terminal after determining the wireless audio device as the target audio device is received.
Step 904, playing the audio data of the target event.
According to the audio data playing method provided by the embodiment of the application, after the communication incoming call event or the playing event is monitored, the wireless audio device acted by the playing instruction actively triggered by the user is determined to be the audio device for playing the audio data, and at the moment, the user can select the wireless audio device closest to the user to play the audio device, so that convenience is improved.
As shown in fig. 10, the embodiment of the present application further provides an audio data playing method, which is applied to the implementation environment shown in fig. 3. The method comprises the following steps:
in step 1001, the mobile terminal searches for a car wireless audio device.
Step 1002, the mobile terminal establishes a communication connection with the vehicle-mounted wireless audio device.
In step 1003, the mobile terminal transmits the connected device information to the in-vehicle wireless audio device.
In step 1004, the vehicle-mounted wireless audio device displays a list of audio devices corresponding to different data types.
In step 1005, the in-vehicle wireless audio device detects whether a selection signal is received.
If the selection signal is received, step 1006 is performed; if the selection signal is not received, step 1007 is performed.
In step 1006, the vehicle bluetooth terminal transmits the preset correspondence between the different data types and the different audio devices determined based on the selection signal to the mobile terminal.
In step 1007, the in-vehicle wireless audio device detects whether the user is using talk audio or media audio.
If the user does not use the call audio and the media audio, then step 1008 is performed; if the user uses the call audio, go to step 1009; if the user is using media audio, step 1010 is performed.
Step 1008, determining that the audio devices corresponding to the call audio and the media audio are vehicle-mounted bluetooth terminals.
Step 1009, determining that the audio device corresponding to the call audio is not a vehicle bluetooth terminal, and determining that the audio device corresponding to the media audio is a vehicle bluetooth terminal when the user selects or after the call is ended.
Step 1010, determining that the audio devices corresponding to the call audio and the media audio are vehicle-mounted bluetooth terminals.
According to the audio data playing method provided by the embodiment of the application, the user sets the preset corresponding relation between different data types and different audio devices in the vehicle-mounted Bluetooth device, after the follow-up mobile terminal monitors the communication incoming call event or plays the event, the device for playing the audio data of the event is automatically determined according to the preset corresponding relation, so that the audio data playing requirements under different scenes are met, the user selects to play the call data through devices (such as a wireless earphone, a mobile phone receiver and the like) outside the vehicle-mounted wireless audio device under the condition of protecting privacy, the call data is prevented from being heard by other people, and the privacy of the user is effectively protected. In addition, under the condition, after the mobile terminal monitors the communication incoming call event or the playing event, the user does not need to select, and the convenience of playing the audio data is improved.
As shown in fig. 11, an embodiment of the present application further provides an audio data playing device, where the device includes: a device determination module 1101, a data acquisition module 1102, and a data transmission module 1103.
A device determining module 1101, configured to determine, when a target event is detected, a target audio device corresponding to the target event, where the target event includes a communication incoming event and/or a play event, and the target audio device is used to characterize a device that plays audio data of the target event; the target audio device is determined in at least one of the wireless audio devices and the mobile terminal.
A data acquisition module 1102, configured to acquire audio data of the target event.
The data sending module 1103 is configured to send the audio data of the target event to the target audio device, where the target audio device is configured to play the audio data of the target event.
Wherein, the preset rule comprises: presetting a corresponding relation and/or requesting to play an event; the preset corresponding relation comprises corresponding relations between different data types and different audio devices, and the event of requesting to play refers to an event of monitoring a playing request sent by the target audio device.
The embodiment of the application provides an audio data playing device, which automatically determines equipment for playing audio data of an event according to preset rules after a communication incoming call event or a playing event is monitored, so as to meet audio data playing requirements under different scenes, wherein the preset rules are set by a user according to the requirements, and the user selects equipment (such as a wireless earphone, a mobile phone receiver and the like) except for vehicle-mounted wireless audio equipment to play call data under the condition that the user wants to protect privacy, so that the call data is prevented from being heard by other people, the privacy of the user is effectively protected, and then, for example, the preset rules refer to the playing of the audio data through the wireless audio equipment acted by a playing instruction actively triggered by the user, at the moment, the user can select the wireless audio equipment closest to the user to play the audio equipment, and the convenience is improved.
In some embodiments, when the preset rule includes the preset correspondence, the device determining module 1101 is configured to search the preset correspondence for the target audio device corresponding to a target data type, where the preset correspondence includes a correspondence between different data types and different audio devices, and the target data type is used to characterize a data type to which the audio data of the target event belongs.
In some embodiments, the apparatus further comprises: a relationship acquisition module (not shown in fig. 11).
And the relation acquisition module is used for acquiring the preset corresponding relation through a control information link between the relation acquisition module and the target equipment in at least one wireless audio equipment.
In some embodiments, the target device is a first wireless audio device with a display screen, and the relationship acquisition module is configured to: transmitting connected equipment information to the first wireless audio equipment through the control information link, wherein the first wireless audio equipment is used for displaying an audio equipment list corresponding to at least one data type based on the connected equipment information, and determining at least one audio equipment corresponding to the data type based on a first selection signal to obtain the preset corresponding relation; receiving the preset corresponding relation sent by the first wireless audio equipment through the control information link; wherein the connected device information comprises information of the wireless audio device establishing a communication connection with the mobile terminal, the first selection signal comprising a combination of at least one or more of: a first touch signal corresponding to the display screen, a first operation signal corresponding to a physical key of the first wireless audio device, and a first voice signal.
In some embodiments, the target device is a second wireless audio device without a display screen, and the relationship acquisition module is configured to: transmitting connected equipment information to the second wireless audio equipment through the control information link, wherein the second wireless audio equipment is used for playing an audio equipment list corresponding to at least one data type based on the connected equipment information, and determining at least one audio equipment corresponding to the data type based on a second selection signal to obtain the preset corresponding relation; receiving the preset corresponding relation sent by the second wireless audio equipment through the control information link; the second selection signal comprises a combination of at least one or more of: and a second operation signal and a second voice signal corresponding to the physical key of the second wireless audio device.
In some embodiments, the control information link is a data link established based on an object push specification, OPP, protocol.
In some embodiments, the relationship acquisition module is configured to: displaying an audio device list corresponding to at least one data type based on the connected device information; and determining at least one audio device corresponding to the data type based on a third selection signal to obtain the preset corresponding relation.
In some embodiments, in a case where the preset rule includes the request play event, the device determining module 1101 is configured to: transmitting notification information to at least one wireless audio device through a control information link with the at least one wireless audio device, wherein the notification information is used for notifying that the target event is monitored; receiving a playing request sent by third wireless audio equipment through a control information link between the third wireless audio equipment and the third wireless audio equipment, wherein the playing request is used for requesting to play the audio data of the target event; and determining the third wireless audio device as the target audio device based on the play request.
In some embodiments, the apparatus further comprises: and a switching module. A switching module, configured to: receiving a switching request sent by the wireless earphone after a wearing event is monitored through a control information link between the wireless earphone and the target audio equipment under the condition that the target audio equipment is not the wireless earphone; and sending the audio data of the target event to the wireless earphone based on the switching request, wherein the wireless earphone is used for playing the audio data of the target event.
As shown in fig. 12, an embodiment of the present application further provides an audio data playing device, where the device includes: a relationship acquisition module 1201, a relationship transmission module 1202, a first receiving module 1203, and a first playing module 1204.
The relationship obtaining module 1201 is configured to obtain a preset correspondence between the data type and the audio device.
The relationship sending module 1202 is configured to send the preset corresponding relationship to the mobile terminal through a control information link between the mobile terminal and the mobile terminal, where the mobile terminal is configured to determine, after detecting a target event, a target audio device corresponding to the target event based on the preset corresponding relationship, where the target event includes a communication incoming call event and/or a play event.
A first receiving module 1203 is configured to receive audio data of the target event sent by the mobile terminal after determining the wireless audio device as the target audio device.
The first playing module 1204 is configured to play audio data of the target event.
According to the audio data playing device provided by the embodiment of the application, after the communication incoming call event or the playing event is monitored, the equipment for playing the audio data of the event is automatically determined according to the preset corresponding relation of the user, so that the audio data playing requirements under different scenes are met, the user selects to play the call data through equipment (such as a wireless earphone, a mobile phone receiver and the like) except the vehicle-mounted wireless audio equipment under the condition that the user wants to protect privacy, the call data is prevented from being heard by other people, and the privacy of the user is effectively protected. In addition, under the condition, after the mobile terminal monitors the communication incoming call event or the playing event, the user does not need to select, and the convenience of playing the audio data is improved.
In some embodiments, the wireless audio device is a first wireless audio device with a display screen, and the relationship obtaining module 1201 is configured to: receiving connected equipment information sent by the mobile terminal through the control information link, wherein the connected equipment information comprises information of the wireless audio equipment which establishes communication connection with the mobile terminal; displaying at least one audio device list corresponding to the data type based on the connected device information; determining at least one audio device corresponding to the data type based on a first selection signal to obtain the preset corresponding relation, wherein the first selection signal comprises at least one or a combination of more of the following: a first touch signal corresponding to the display screen, a first operation signal corresponding to a physical key of the first wireless audio device, and a first voice signal.
In some embodiments, the wireless audio device is a second wireless audio device without a display screen, and the relationship acquisition module 1201 is configured to: receiving connected equipment information sent by the mobile terminal through the control information link, wherein the connected equipment information comprises information of the wireless audio equipment which establishes communication connection with the mobile terminal;
Displaying at least one audio device list corresponding to the data type based on the connected device information; determining at least one audio device corresponding to the data type based on a second selection signal to obtain the preset corresponding relation, wherein the second selection signal comprises at least one or a combination of more of the following: and a second operation signal and a second voice signal corresponding to the physical key of the second wireless audio device.
As shown in fig. 13, an embodiment of the present application further provides an audio data playing device, where the device includes: an information receiving module 1301, a request sending module 1302, a second receiving module 1303, and a second playing module 1304.
The information receiving module 1301 is configured to receive, through a control information link with a mobile terminal, notification information sent by the mobile terminal, where the notification information is used to notify that a target event is monitored, and the target event includes a communication incoming call event and/or a play event.
A request sending module 1302, configured to send a play request to the mobile terminal through the control information link, where the play request is used to request to play the audio data of the target event, and the mobile terminal is configured to determine, based on the play request, the wireless audio device as the target audio device.
And the second receiving module 1303 is configured to receive audio data of the target event sent by the mobile terminal after determining the wireless audio device as the target audio device.
A second playing module 1304, configured to play audio data of the target event.
According to the audio data playing method provided by the embodiment of the application, after the communication incoming call event or the playing event is monitored, the wireless audio device acted by the playing instruction actively triggered by the user is determined to be the audio device for playing the audio data, and at the moment, the user can select the wireless audio device closest to the user to play the audio device, so that convenience is improved.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the apparatus and modules described above may refer to the corresponding process in the foregoing method embodiment, which is not repeated herein.
In several embodiments provided by the present application, the coupling of the modules to each other may be electrical, mechanical, or other.
In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module. The integrated modules may be implemented in hardware or in software functional modules.
As shown in fig. 14, an embodiment of the present application further provides an electronic device 1400, where the electronic device 1400 includes a processor 1410, a memory 1420, and the memory 1420 stores computer program instructions.
Processor 1410 may include one or more processing cores. The processor 1410 utilizes various interfaces and lines to connect various portions of the overall battery management system, perform various functions of the battery management system, and process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 1420, and invoking data stored in the memory 1420. Alternatively, the processor 1410 may be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 1410 may integrate one or a combination of several of a central processor 1410 (Central Processing Unit, CPU), an image processor 1410 (Graphics Processing Unit, GPU), and a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for being responsible for rendering and drawing of display content; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 1410, but may be implemented solely by a single communication chip.
The Memory 1420 may include a random access Memory 1420 (Random Access Memory, RAM), or may include a Read-Only Memory 1420. Memory 1420 may be used to store instructions, programs, code, sets of codes, or instruction sets. The memory 1420 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The storage data area may also store data created by the electronic device map in use (e.g., phonebook, audiovisual data, chat log data), and the like.
As shown in fig. 15, an embodiment of the present application further provides a computer-readable storage medium 1500, in which computer-program instructions 1510 are stored, the computer-program instructions 1510 being callable by a processor to perform the method described in the above embodiment.
The computer readable storage medium may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium comprises a non-volatile computer readable storage medium (non-transitory computer-readable storage medium). The computer readable storage medium 1500 has storage space for program code to perform any of the method steps described above. The program code can be read from or written to one or more computer program products. The program code may be compressed, for example, in a suitable form.
Although the present application has been described in terms of the preferred embodiments, it should be understood that the present application is not limited to the specific embodiments, but is capable of numerous modifications and equivalents, and alternative embodiments and modifications of the embodiments described above, without departing from the spirit and scope of the present application.

Claims (11)

1. An audio data playing method, wherein the method is applied to a mobile terminal, the mobile terminal establishes a communication connection with at least one wireless audio device, at least one wireless audio device comprises a vehicle-mounted wireless audio device, and the method comprises:
after communication connection is established with the vehicle-mounted wireless audio equipment, a preset corresponding relation is obtained through a control information link between the vehicle-mounted wireless audio equipment and the vehicle-mounted wireless audio equipment; the control information link is a data link established based on an object push specification (OPP) protocol; the preset corresponding relation comprises corresponding relations between different data types and different audio devices, and the preset corresponding relation is determined by the vehicle-mounted wireless audio device based on a selection signal after an audio device list corresponding to the different data types displayed based on the connected device information is displayed;
Under the condition that a target event is monitored, searching the target audio equipment corresponding to a target data type in the preset corresponding relation, wherein the target data type is used for representing the data type of the audio data of the target event, and the target event comprises a communication incoming call event and/or a playing event; the target audio device is used for representing the device for playing the audio data of the target event; the target audio device is determined in at least one of the wireless audio devices and the mobile terminal;
acquiring audio data of the target event;
and sending the audio data of the target event to the target audio equipment through a data link, wherein the target audio equipment is used for playing the audio data of the target event.
2. The method according to claim 1, wherein the in-vehicle wireless audio device is an in-vehicle wireless audio device having a display screen, and the acquiring the preset correspondence through a control information link with the in-vehicle wireless audio device includes:
transmitting connected equipment information to the vehicle-mounted wireless audio equipment with the display screen through the control information link, wherein the vehicle-mounted wireless audio equipment with the display screen is used for displaying an audio equipment list corresponding to at least one data type based on the connected equipment information, and determining at least one audio equipment corresponding to the data type based on a first selection signal to obtain the preset corresponding relation;
Receiving the preset corresponding relation sent by the vehicle-mounted wireless audio equipment with the display screen through the control information link;
wherein the connected device information comprises information of the wireless audio device establishing a communication connection with the mobile terminal, the first selection signal comprising a combination of at least one or more of: the display device comprises a first touch signal corresponding to the display screen, a first operation signal corresponding to an entity key of the vehicle-mounted wireless audio device with the display screen and a first voice signal.
3. The method according to claim 1, wherein the in-vehicle wireless audio device is an in-vehicle wireless audio device without a display screen, and the acquiring the preset correspondence through a control information link with the in-vehicle wireless audio device includes:
transmitting connected equipment information to the vehicle-mounted wireless audio equipment without a display screen through the control information link, wherein the vehicle-mounted wireless audio equipment without the display screen is used for playing an audio equipment list corresponding to at least one data type based on the connected equipment information, and determining at least one audio equipment corresponding to the data type based on a second selection signal to obtain the preset corresponding relation;
Receiving the preset corresponding relation sent by the vehicle-mounted wireless audio equipment without the display screen through the control information link;
the second selection signal comprises a combination of at least one or more of: and the second operation signal and the second voice signal correspond to the physical key of the vehicle-mounted wireless audio equipment without the display screen.
4. A method according to any one of claims 1 to 3, wherein at least one of the wireless audio devices comprises a wireless headset, the method further comprising, after transmitting the audio data of the target event to the target audio device:
receiving a switching request sent by the wireless earphone after a wearing event is monitored through a control information link between the wireless earphone and the target audio equipment under the condition that the target audio equipment is not the wireless earphone;
and sending the audio data of the target event to the wireless earphone based on the switching request, wherein the wireless earphone is used for playing the audio data of the target event.
5. An audio data playing method, wherein the method is applied to a vehicle-mounted wireless audio device which establishes a communication connection with a mobile terminal, and the method comprises the following steps:
Acquiring a preset corresponding relation between the data type and the audio equipment; the preset corresponding relation is determined by the vehicle-mounted wireless audio equipment based on a selection signal after an audio equipment list corresponding to different data types displayed based on the connected equipment information is displayed;
the mobile terminal is used for determining target audio equipment corresponding to a target event based on a preset corresponding relation after the target event is monitored through a control information link between the mobile terminal and the mobile terminal, wherein the target event comprises a communication incoming event and/or a playing event; the control information link is a data link established based on an object push specification (OPP) protocol;
receiving audio data of the target event sent by the mobile terminal after the vehicle-mounted wireless audio device is determined to be the target audio device;
and playing the audio data of the target event.
6. The method according to claim 5, wherein the in-vehicle wireless audio device is an in-vehicle wireless audio device having a display screen, and the acquiring the preset correspondence between the data type and the audio device includes:
Receiving connected equipment information sent by the mobile terminal through the control information link, wherein the connected equipment information comprises information of the wireless audio equipment which establishes communication connection with the mobile terminal;
displaying at least one audio device list corresponding to the data type based on the connected device information;
determining at least one audio device corresponding to the data type based on a first selection signal to obtain the preset corresponding relation, wherein the first selection signal comprises at least one or a combination of more of the following: the display device comprises a first touch signal corresponding to the display screen, a first operation signal corresponding to an entity key of the vehicle-mounted wireless audio device with the display screen and a first voice signal.
7. The method according to claim 5, wherein the in-vehicle wireless audio device is an in-vehicle wireless audio device without a display screen, and the acquiring the preset correspondence between the data type and the audio device includes:
receiving connected equipment information sent by the mobile terminal through the control information link, wherein the connected equipment information comprises information of the wireless audio equipment which establishes communication connection with the mobile terminal;
Displaying at least one audio device list corresponding to the data type based on the connected device information;
determining at least one audio device corresponding to the data type based on a second selection signal to obtain the preset corresponding relation, wherein the second selection signal comprises at least one or a combination of more of the following: and the second operation signal and the second voice signal correspond to the physical key of the vehicle-mounted wireless audio equipment without the display screen.
8. An audio data playback apparatus, the apparatus comprising:
the relation acquisition module is used for acquiring a preset corresponding relation through a control information link between the vehicle-mounted wireless audio equipment and the vehicle-mounted wireless audio equipment after communication connection is established between the vehicle-mounted wireless audio equipment and the at least one wireless audio equipment; the control information link is a data link established based on an object push specification (OPP) protocol; the preset corresponding relation comprises corresponding relations between different data types and different audio devices, and the preset corresponding relation is determined by the vehicle-mounted wireless audio device based on a selection signal after an audio device list corresponding to the different data types displayed based on the connected device information is displayed;
The device determining module is used for searching the target audio device corresponding to a target data type in the preset corresponding relation under the condition that a target event is monitored, wherein the target data type is used for representing the data type of the audio data of the target event, the target event comprises a communication incoming event and/or a playing event, and the target audio device is used for representing the device for playing the audio data of the target event; the target audio device is determined in at least one wireless audio device and a mobile terminal;
the data acquisition module is used for acquiring the audio data of the target event;
the data sending module is used for sending the audio data of the target event to the target audio equipment, and the target audio equipment is used for playing the audio data of the target event.
9. An audio data playback apparatus, the apparatus comprising:
the relation acquisition module is used for acquiring a preset corresponding relation between the data type and the audio equipment; the preset corresponding relation is determined by the vehicle-mounted wireless audio equipment based on the selection signal after the audio equipment list corresponding to different data types is displayed based on the connected equipment information;
The relation sending module is used for sending the preset corresponding relation to the mobile terminal through a control information link between the relation sending module and the mobile terminal, wherein the mobile terminal is used for determining target audio equipment corresponding to a target event based on the preset corresponding relation after the target event is monitored, and the target event comprises a communication incoming event and/or a playing event; the control information link is a data link established based on an object push specification (OPP) protocol;
the first receiving module is used for receiving the audio data of the target event sent by the mobile terminal after the vehicle-mounted wireless audio equipment is determined to be the target audio equipment;
and the first playing module is used for playing the audio data of the target event.
10. An electronic device comprising a processor and a memory storing computer program instructions that are invoked by the processor to perform the method of any one of claims 1-7.
11. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a program code, which is called by a processor to perform the method according to any of claims 1-7.
CN202111088906.XA 2021-09-16 2021-09-16 Audio data playing method and device, electronic equipment and storage medium Active CN113784001B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111088906.XA CN113784001B (en) 2021-09-16 2021-09-16 Audio data playing method and device, electronic equipment and storage medium
PCT/CN2022/111173 WO2023040517A1 (en) 2021-09-16 2022-08-09 Audio data playback method, device, electronic equipment, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111088906.XA CN113784001B (en) 2021-09-16 2021-09-16 Audio data playing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113784001A CN113784001A (en) 2021-12-10
CN113784001B true CN113784001B (en) 2023-11-24

Family

ID=78851503

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111088906.XA Active CN113784001B (en) 2021-09-16 2021-09-16 Audio data playing method and device, electronic equipment and storage medium

Country Status (2)

Country Link
CN (1) CN113784001B (en)
WO (1) WO2023040517A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113784001B (en) * 2021-09-16 2023-11-24 Oppo广东移动通信有限公司 Audio data playing method and device, electronic equipment and storage medium
CN114513571A (en) * 2022-02-17 2022-05-17 北京小米移动软件有限公司 Device connection method and device, electronic device and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107656719A (en) * 2017-09-05 2018-02-02 百度在线网络技术(北京)有限公司 The method to set up and electronic equipment of device for prompt tone of electronic
CN108769431A (en) * 2018-07-03 2018-11-06 Oppo(重庆)智能科技有限公司 Audio play control method, device, storage medium and mobile terminal
CN108781236A (en) * 2017-06-16 2018-11-09 华为技术有限公司 Audio frequency playing method and electronic equipment
CN110764730A (en) * 2018-07-25 2020-02-07 杭州海康威视数字技术股份有限公司 Method and device for playing audio data
CN111638779A (en) * 2020-04-27 2020-09-08 维沃移动通信有限公司 Audio playing control method and device, electronic equipment and readable storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104092658B (en) * 2014-04-30 2016-03-30 腾讯科技(深圳)有限公司 Audio data play method and device
US10908873B2 (en) * 2018-05-07 2021-02-02 Spotify Ab Command confirmation for a media playback device
CN113296728A (en) * 2021-05-24 2021-08-24 Oppo广东移动通信有限公司 Audio playing method and device, electronic equipment and storage medium
CN113784001B (en) * 2021-09-16 2023-11-24 Oppo广东移动通信有限公司 Audio data playing method and device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108781236A (en) * 2017-06-16 2018-11-09 华为技术有限公司 Audio frequency playing method and electronic equipment
CN107656719A (en) * 2017-09-05 2018-02-02 百度在线网络技术(北京)有限公司 The method to set up and electronic equipment of device for prompt tone of electronic
CN108769431A (en) * 2018-07-03 2018-11-06 Oppo(重庆)智能科技有限公司 Audio play control method, device, storage medium and mobile terminal
CN110764730A (en) * 2018-07-25 2020-02-07 杭州海康威视数字技术股份有限公司 Method and device for playing audio data
CN111638779A (en) * 2020-04-27 2020-09-08 维沃移动通信有限公司 Audio playing control method and device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN113784001A (en) 2021-12-10
WO2023040517A1 (en) 2023-03-23

Similar Documents

Publication Publication Date Title
US11805350B2 (en) Point-to-multipoint data transmission method and device
CN109445740B (en) Audio playing method and device, electronic equipment and storage medium
US20190020752A1 (en) Apparatus and method for controlling built-in microphone of portable terminal
WO2023040517A1 (en) Audio data playback method, device, electronic equipment, and storage medium
US9917943B2 (en) Automatic prompt at call-end
CN109151212B (en) Equipment control method and device and electronic equipment
EP3606015B1 (en) Method for call processing and electronic device
CN113411793A (en) Bluetooth communication method and terminal
CN113794797B (en) Terminal equipment and method for picking up sound through Bluetooth peripheral
CN111432386B (en) Connection switching method, device, equipment and storage medium of Bluetooth headset
CN111629366B (en) Interaction method and device between Bluetooth devices, storage medium and electronic device
WO2023284454A1 (en) Bluetooth connection prompting method and apparatus, device, storage medium, and program product
CN109379490B (en) Audio playing method and device, electronic equipment and computer readable medium
CN104980884A (en) Information transmission method and information transmission device
CN108600887B (en) Touch control method based on wireless earphone and related product
CN114786139A (en) Connection establishing method, device, equipment, storage medium and program product
CN113329389A (en) Service providing method, device, equipment and storage medium based on Bluetooth connection
CN110248347B (en) Call abnormity detection method, device, equipment and storage medium
CN108566221B (en) Call control method and related equipment
US20040233901A1 (en) Method and apparatus for establishing a wireless voice-over-IP telecommunication
CN113286281B (en) Emergency call method and related device
CN111800836B (en) Communication method, device, electronic equipment and storage medium
CN113407147A (en) Audio playing method, device, equipment and storage medium
CN112822591A (en) Call data transmission method and device, electronic equipment and storage medium
CN112866855A (en) Hearing aid method and system, earphone charging box and storage medium

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