WO2023040517A1 - 音频数据播放方法、装置、电子设备及存储介质 - Google Patents

音频数据播放方法、装置、电子设备及存储介质 Download PDF

Info

Publication number
WO2023040517A1
WO2023040517A1 PCT/CN2022/111173 CN2022111173W WO2023040517A1 WO 2023040517 A1 WO2023040517 A1 WO 2023040517A1 CN 2022111173 W CN2022111173 W CN 2022111173W WO 2023040517 A1 WO2023040517 A1 WO 2023040517A1
Authority
WO
WIPO (PCT)
Prior art keywords
audio device
target
event
audio
data
Prior art date
Application number
PCT/CN2022/111173
Other languages
English (en)
French (fr)
Inventor
王泽卫
李宗源
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2023040517A1 publication Critical patent/WO2023040517A1/zh

Links

Images

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

Definitions

  • the present application relates to the technical field of mobile terminals, and more specifically, to an audio data playback method, device, electronic equipment, and storage medium.
  • Bluetooth technology has been widely used, and Bluetooth devices such as wireless headsets, car Bluetooth devices, and smart wearable devices have emerged on the market.
  • the audio data played by the mobile terminal (such as call data, multimedia data, etc.) is transmitted to the Bluetooth device and played by the Bluetooth device.
  • the mobile terminal establishes a Bluetooth connection with the vehicle-mounted Bluetooth device and detects an incoming communication event
  • the user chooses to answer the call
  • the vehicle-mounted Bluetooth device plays the call data.
  • Embodiments of the present application provide an audio data playback method, device, electronic equipment, and storage medium.
  • some embodiments of the present application provide a method for playing audio data, 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: when a target event is detected, Determine the target audio device corresponding to the target event, the target event includes a communication incoming event and/or a play event, the target audio device is used to characterize the device that plays the audio data of the target event; the target audio device is in at least one wireless audio device and a mobile terminal Determine; acquire the audio data of the target event; send the audio data of the target event to the target audio device, and the target audio device is used to play the audio data of the target event; wherein, the preset rules include: preset correspondence, and/or, A play request event; the preset correspondence includes correspondence between different data types and different audio devices, and the play request event refers to an event in which a play request sent by the target audio device is detected.
  • some embodiments of the present application provide a method for playing audio data, the method is applied to a wireless audio device establishing a communication connection with a mobile terminal, and the method includes: acquiring a preset correspondence between a data type and an audio device; Through the control information link with the mobile terminal, the preset corresponding relationship is sent to the mobile terminal.
  • the mobile terminal is used to determine the target audio device corresponding to the target event based on the preset corresponding relationship after monitoring the target event.
  • the target event includes communication Incoming call event and/or playing event; receiving the audio data of the target event sent by the mobile terminal after determining the wireless audio device as the target audio device; playing the audio data of the target event.
  • some embodiments of the present application provide a method for playing audio data, the method is applied to a wireless audio device establishing a communication connection with a mobile terminal, and the method includes: receiving a mobile The notification information sent by the terminal, the notification information is used to notify the monitoring of the target event, the target event includes a communication call event and/or a play event; after receiving the confirmation play instruction, send a play request to the mobile terminal through the control information link, The play request is used to request to play the audio data of the target event, and the mobile terminal is used to determine the wireless audio device as the target audio device based on the play request; receive the audio of the target event sent by the mobile terminal after determining the wireless audio device as the target audio device data; play the audio data of the target event.
  • an audio data playback device which includes: a device determination module, configured to determine a target audio device corresponding to a target event when a target event is detected, and the target event includes a communication call Entering an event and/or playing an event, the target audio device is used to characterize the device that plays 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 to obtain the audio data of the target event The data sending module is used to send the audio data of the target event to the target audio device, and the target audio device is used to play the audio data of the target event; wherein, the preset rules include: preset correspondence, and/or request playback Event: the preset correspondence includes the correspondence between different data types and different audio devices, and the request to play event refers to an event in which a play request sent by the target audio device is detected.
  • some embodiments of the present application provide an audio data playback device, the device includes: a relationship acquisition module, configured to acquire a preset corresponding relationship between a data type and an audio device; a relationship sending module, configured to pass and move The control information link between the terminals sends the preset corresponding relationship to the mobile terminal.
  • the mobile terminal is used to determine the target audio device corresponding to the target event based on the preset corresponding relationship after monitoring the target event.
  • the target event includes a communication call event And/or play the event; the first receiving module is used to receive the audio data of the target event sent by the mobile terminal after the wireless audio device is determined as the target audio device; the first play module is used to play the audio data of the target event.
  • some embodiments of the present application provide an audio data playback device, which includes: an information receiving module, configured to receive notification information sent by the mobile terminal through a control information link with the mobile terminal, and use the notification information to The target event is monitored by the notification, and the target event includes a communication call-in event and/or a play event; the request sending module is used to send a play request to the mobile terminal through a control information link after receiving a confirmed play instruction, and the play request is used In order to request to play the audio data of the target event, the mobile terminal is used to determine the wireless audio device as the target audio device based on the play request; the second receiving module is used to receive the mobile terminal after determining the wireless audio device as the target audio device. The audio data of the target event; the second playing module is used to play the audio data of the target event.
  • some embodiments of the present application provide an electronic device, the electronic device includes a processor and a memory, the memory stores computer program instructions, and the computer program instructions are invoked by the processor to execute the above-mentioned first aspect, the second aspect, and the first aspect. any one of the three methods.
  • the electronic device when the electronic device is a mobile terminal, it is used to execute the method in the first aspect above. In some other embodiments, when the electronic device is a wireless audio device, it is configured to execute the method described in the first aspect or the second aspect above.
  • some embodiments of the present application provide a computer-readable storage medium, where program code is stored in the computer-readable storage medium, and the program code is invoked by a processor to execute the above-mentioned first aspect, second aspect, and first aspect. any one of the three methods.
  • some embodiments of the present application provide a computer program product, which, when executed, is used to implement the method in any one of the above-mentioned first aspect, second aspect, and third aspect.
  • FIG. 1 is a schematic diagram of an interface involved in a method for playing audio data provided in the related art.
  • Fig. 2 is a schematic diagram of an implementation environment provided by an 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 a method for playing audio data provided by an embodiment of the present application.
  • Fig. 5 is a schematic diagram of determining a target audio device provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of an interface involved in obtaining a preset correspondence provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of an interface involved in obtaining a preset correspondence provided by another embodiment of the present application.
  • Fig. 8 is a flowchart of a method for playing audio data provided by an embodiment of the present application.
  • Fig. 9 is a flow chart of an audio data playback method provided by another embodiment of the present application.
  • Fig. 10 is a flowchart of a method for playing audio data provided by another embodiment of the present application.
  • Fig. 11 is a block diagram of an audio data playback device provided by an embodiment of the present application.
  • Fig. 12 is a block diagram of an audio data playback device provided by another embodiment of the present application.
  • Fig. 13 is a block diagram of an audio data playback device provided by another embodiment of the present application.
  • Fig. 14 is a block diagram of an electronic device provided by an embodiment of the present application.
  • Fig. 15 is a block diagram of a computer-readable storage medium provided by an embodiment of the present application.
  • the related art also provides a method for playing audio data, which is as follows: after the mobile phone detects an incoming call event, the user chooses to answer the incoming call, and the mobile phone displays a selection window 11 at this time, and the selection window 11 includes a function for playing the call.
  • Devices with data functions, and functional modules with the function of playing call data in mobile phones including vehicle-mounted Bluetooth devices 111, Bluetooth headsets 112, mobile phone receivers 113, speakers 114, etc., users can select in the above-mentioned selection window 11 The device that answers the call or Functional modules.
  • the vehicle-mounted Bluetooth device plays the call data by default, and the user cannot choose by himself, which cannot meet the call requirements in the call scene with high privacy requirements.
  • the user needs to select a functional module or device to play the call data after answering the call. There is a time delay between selecting the answer and playing the call data. making a selection, the process is dangerous and, finally, inconvenient to operate when the mobile phone is not near the user.
  • the embodiment of the present application provides a method for playing audio data.
  • the device that plays the audio data of the above-mentioned event is automatically determined according to the preset rules, so as to Meet the audio data playback requirements in different scenarios.
  • the above preset rules are set by users according to their own needs. If users want to protect privacy, they can choose to use devices other than vehicle wireless audio devices (such as wireless headsets, mobile phones, etc.) handset, etc.) to play the call data to prevent the call data from being heard by others, and effectively protect the privacy of the user.
  • the preset rule refers to playing the audio data through the wireless audio device activated by the play instruction triggered by the user. At this time Users can choose the wireless audio device closest to themselves to play the audio device, which improves convenience.
  • FIG. 2 it shows an implementation environment provided by an exemplary embodiment of the present application.
  • the implementation environment includes: a mobile terminal 21 and at least one wireless audio device.
  • the mobile terminal 21 has a call function, such as talking with other mobile terminals through a Subscriber Identification Module (SIM), or talking with other mobile terminals through an application program with a voice call function.
  • SIM Subscriber Identification Module
  • the above-mentioned application program with voice call function may be a social application program, a shopping application program, and the like.
  • the mobile terminal 21 also has an audio playback function, and the mobile terminal 21 implements the above audio playback function through an earpiece assembly, a speaker assembly, and the like.
  • a communication connection is established between the mobile terminal 21 and at least one wireless audio device.
  • the mobile terminal 21 has a communication module, establishes a communication connection with the wireless audio device through the communication module, and then sends audio data to the wireless audio device, such as call data, multimedia audio data, etc., so that the wireless audio
  • the device plays the call data received by the mobile terminal 21, or plays the multimedia files in the mobile terminal 21.
  • Communication modules include and are not limited to: Bluetooth modules, radio frequency modules, near field communication (Near Field Communication, NFC) modules, etc.
  • the communication module is a Bluetooth module as an example. It is illustrated that a Bluetooth connection is established between the mobile terminal 21 and at least one wireless audio device.
  • the mobile terminal 21 may be a smartphone, a personal computer, a tablet, and the like. In some other embodiments, the mobile terminal 21 and the wireless audio device are connected to the same local area network, and the communication connection is performed based on the above-mentioned local area network.
  • the above local area networks include but are not limited to: wireless local area network (Wireless Local Area Network, WLAN), local area network established based on Airplay transmission protocol, local area network established based on Digital Living Network Alliance (Digital Living Network Alliance, DLNA) transmission protocol, etc.
  • 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 .
  • wireless audio devices also have audio playback capabilities.
  • Wireless audio devices include but are not limited to: wireless earphones, smart wearable devices, car wireless audio devices, tablets, smart speakers, etc. As shown in FIG. 2 , the mobile terminal 21 establishes communication connections with two wireless earphones 22 , a smart speaker 23 and a smart wearable device 24 respectively.
  • the communication link 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.
  • the above-mentioned control information includes but is not limited to: information (such as name, MAC address, signal strength, etc.) of the wireless audio device that establishes a communication connection with the mobile terminal 21 etc.), correspondence between different data types and different audio devices, notification information, request information, etc.
  • the control information link is a communication link established based on the Object Push Profile (OPP) protocol.
  • OPP Object Push Profile
  • the data link is used for transmitting audio data between the mobile terminal 21 and the wireless audio device, and the audio data includes call data and multimedia data.
  • the data link includes a call data link and a multimedia data link
  • the call data link is used for transmitting call data between the mobile terminal 21 and the wireless audio device
  • the multimedia data link is used for the mobile terminal 21 Transfer multimedia data to and from wireless audio devices.
  • the call data link is a communication link established based on the Hand Free Profile (HFP) protocol.
  • the multimedia data link is a communication link established based on the Advanced Audio Distribution Profile (A2DP) protocol.
  • the A2DP protocol defines the transmission of high-quality audio information on an asynchronous connectionless (Asynchronous Connectionless Link, ACL) channel, and establishes two Logical Link Control and Adaptation Protocol channels (Logical Link Control and Adaptation Protocol) on the same ACL Link (connection).
  • Adaptation Protocol channel, L2CAP channel one is used for instruction interaction, and the other is used for transmitting audio stream (that is, multimedia data link).
  • control information link can be established after the communication connection between the mobile terminal and the wireless audio device is established, or after the communication connection is established and there is a need for control information transmission;
  • data link can be established between the mobile terminal and the wireless audio device.
  • the communication connection with the wireless audio device may be established after the communication connection is established, or the communication connection may be established after the data transmission requirement exists.
  • the establishment timing of the control information link and the data link may be the same or different.
  • the communication connection established between the mobile terminal 21 and two wireless earphones 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 Call data link based on HFP protocol.
  • FIG. 3 it shows an implementation environment provided by an exemplary embodiment of the present application.
  • the implementation environment includes: a mobile terminal 31 , a wireless headset 32 and a vehicle wireless audio device 33 .
  • the communication connection between the mobile terminal 31 and the 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 established based on the HFP protocol.
  • the communication connection between the mobile terminal 31 and the wireless headset 32 includes a multimedia data link based on the A2DP protocol and a call data link based on the HFP protocol.
  • the mobile terminal 31 receives preset correspondences between different data types and different audio devices through a control information link with the vehicle-mounted wireless audio device 33 .
  • the mobile terminal 31 establishes a communication connection with the vehicle-mounted wireless audio device 33, it sends the connected device information to the vehicle-mounted wireless audio device 33 through the control information link, and the vehicle-mounted wireless audio device 33 displays at least one data type based on the connected device information.
  • the vehicle-mounted wireless audio device 33 obtains the above-mentioned preset correspondence, and then sends the preset correspondence to the mobile terminal 31 through the control information link.
  • 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 earphone 32 , then the mobile terminal 31 sends the multimedia data to the wireless earphone 32 through the multimedia data link with the wireless earphone 32 .
  • the mobile terminal 31 sends the call data to the vehicle wireless audio device 33 through the call data link with the vehicle wireless audio device 33 . In some embodiments, if it is determined that the audio device corresponding to the multimedia data is the vehicle wireless audio device 33 , then the mobile terminal 31 sends the multimedia data to the vehicle wireless audio device 33 through the multimedia data link with the vehicle wireless audio device 33 .
  • FIG 4 it shows the audio data playback method provided by an exemplary embodiment of the present application, the method is applied to the mobile terminal in Figure 2 or Figure 3, and the mobile terminal establishes a communication connection with at least one wireless audio device , the method includes the following steps:
  • Step 401 when a target event is detected, determine a target audio device corresponding to the target event according to preset rules.
  • Target events include communication incoming events.
  • the incoming communication event refers to the event that the peer mobile terminal requests to establish a call with the local mobile terminal.
  • the opposite mobile terminal sends a call request to the local mobile terminal after receiving a call instruction for the number of the built-in SIM card of the local mobile terminal.
  • the local mobile terminal detects an incoming communication event.
  • the peer mobile terminal after receiving a voice call instruction or a video call instruction for a specified account in a specified application program, the peer mobile terminal sends a call request to the local mobile terminal.
  • the local mobile terminal detects an incoming communication event.
  • the designated account is a user account logged in by a designated application in the local mobile terminal, and the designated application refers to an application with a voice call function or a video call function, such as a social networking application.
  • the target event also includes a play event.
  • the play event refers to the event of playing audio data in the mobile terminal.
  • the above audio data can be audio data in multimedia files.
  • Multimedia files include but are not limited to: music files, video files, audiobook files, etc. etc., may also be audio data acquired in real time from a live terminal in a live broadcast scene.
  • the mobile terminal after the mobile terminal receives the playback instruction for the multimedia file, it monitors the playback event.
  • the mobile terminal receives the indication for opening the live channel, it monitors the broadcast event.
  • a target audio device is used to represent a device that plays the audio data of a target 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.
  • the target audio device may be a device in at least one wireless audio device, or may be a mobile terminal.
  • the preset rule includes: preset corresponding relationship, and/or, request to play an event.
  • the preset correspondences include correspondences between different data types and different audio devices.
  • the request to play event refers to an event in which a play request sent by a target audio device is detected.
  • the mobile terminal after monitoring an incoming communication event or a playback event, the mobile terminal automatically determines the device to play the audio data of the above event according to preset rules, so as to meet the audio data playback requirements in different scenarios.
  • the pre-set rules may be set by the user according to the user's own needs, or the audio data may be played by the wireless audio device activated by the play instruction triggered by the user. The two cases are described below.
  • the mobile terminal searches for the target audio device corresponding to the target data type in the preset correspondence.
  • the preset correspondences include correspondences between different data types and different audio devices.
  • the target data type is used to represent the data type to which the audio data of the target event belongs.
  • Target data types include call data and multimedia data.
  • the preset corresponding relationship is set by the user, and the specific setting process will be explained in the following embodiments.
  • the preset corresponding relationship may be set by the user in the mobile terminal, or may be set by the user in the wireless audio device establishing a communication connection with the mobile terminal. If the user sets in the wireless audio device that establishes a communication connection with the mobile terminal, before determining the target audio device, the mobile terminal obtains the preset corresponding relation.
  • the control information link is a data link established based on the OPP protocol. Table-1 below exemplarily shows a preset correspondence relationship.
  • the mobile terminal monitors an incoming communication event, and the data type of the incoming communication event is call data. It can be determined by looking up the above Table-1 that the target audio device corresponding to the incoming communication event is a wireless earphone.
  • the mobile terminal monitors the target event, it determines the target audio device according to the preset correspondence set by the user.
  • Wireless earphones, mobile phone receivers, etc. to play call data to prevent call data from being heard by others, effectively protecting user privacy.
  • the mobile terminal determines the target audio device corresponding to the target event through the following steps: sending notification information to at least one wireless audio device through a control information link with at least one wireless audio device;
  • the control information link between the wireless audio devices receives the play request sent by the third wireless audio device, and the play request is used to request to play the audio data of the target event; based on the play request, the third wireless audio device is determined as the target audio device.
  • the at least one wireless audio device refers to a wireless audio device that establishes a communication connection with the mobile terminal.
  • the control information link is used for transmitting control information between the mobile terminal and the wireless audio device.
  • the control information link is a data link established based on the OPP protocol.
  • the mobile terminal sends notification information to the wireless audio device through the control information link, and the notification information is used to notify the detected target event.
  • the notification information also includes the identity of the call originator, such as the call originator's SIM card number, contact account number, and so on.
  • the notification information also includes a unique identifier of the audio data, such as a file identifier of a multimedia file, a channel identifier of a live channel, and the like.
  • the wireless audio device sends prompt information after receiving the notification message, and the prompt information is used to prompt the mobile terminal to monitor the target event.
  • the wireless audio device displays prompt information on the display screen.
  • the wireless audio device is a smart wearable device with a display screen
  • the smart wearable device displays the communication of the incoming communication event Call-in interface to prompt the user.
  • the wireless audio device does not have a display screen
  • the wireless audio device sends out a prompt message by voice. For example, when the wireless audio device is a smart speaker without a display screen, the smart speaker sends out a prompt message "You have received a message from the number 135xxxx2101 Incoming call".
  • the user can select the target audio device according to the prompt information sent by the wireless audio device.
  • the user sends a confirmation play instruction to the wireless audio device, and the wireless audio device that receives the confirmation play instruction is also the third wireless audio device, and then the third wireless audio device passes through the control information link with the mobile terminal. way, send a play request to the mobile terminal, and then the mobile terminal determines the third wireless audio device as the target audio device.
  • the above play request is used to request to play the audio data of the target event.
  • the play request carries a unique identifier of the third wireless audio device, such as device name, MAC address and so on.
  • the confirmation play instruction includes and is not limited to: a trigger signal corresponding to a confirmation button on the display screen of the wireless audio device, a specified operation signal corresponding to a physical button of the wireless audio device, such as a long press on a signal light, and a voice confirmation signal.
  • a trigger signal corresponding to a confirmation button on the display screen of the wireless audio device a specified operation signal corresponding to a physical button of the wireless audio device, such as a long press on a signal light
  • a voice confirmation signal corresponding to different wireless audio devices are set by the user, or are set through negotiation between the mobile terminal and the wireless audio device.
  • the mobile terminal after the mobile terminal monitors the target event, it sends notification information to each wireless audio device that has established a communication connection, and the user can choose the wireless audio device closest to him to play the audio data of the target event, which improves the convenience of operation sex.
  • this embodiment of the present application provides a manner of determining a target audio device.
  • the mobile terminal 51 detects the incoming communication event, and sends notification information to the smart wearable device 52, the Bluetooth speaker 53, and the vehicle-mounted Bluetooth terminal 54 through the control information link, and the smart wearable device 52 and the vehicle-mounted Bluetooth terminal 54 display the information of the incoming communication event.
  • Communication call-in interface 55, bluetooth speaker 53 sends a prompt message "you have received an incoming call from number 134xxxx2523", the user sends a confirmation play instruction to the smart wearable device 52, and then the smart wearable device 52 sends a play request to the mobile terminal, and then moves
  • the terminal 51 determines the smart wearable device 52 as the target audio device. Step 402, acquiring audio data of the target event.
  • the mobile terminal When the target event is an incoming communication call event, the mobile terminal continues to receive call data sent by the peer mobile terminal after receiving the connection indication.
  • the mobile terminal When the target event is a play event, if the mobile terminal detects the play event through the play instruction for the multimedia file, the mobile terminal reads the audio data of the multimedia file locally, or downloads the audio data of the multimedia file from the cloud.
  • the target event is a play event
  • the mobile terminal if the mobile terminal detects the play event through the open instruction for the live channel, the mobile terminal receives the live stream audio data sent by the push stream server, and the live stream audio data is uploaded by the live stream terminal.
  • Step 403 sending the audio data of the target event to the target audio device.
  • the target audio device receives audio data for the target event.
  • the target audio device is used to play the audio data of the target event. If the target event is a communication incoming event, then send the audio data of the communication incoming event to the target audio device through the call data link; if the target event is a play event, then send the audio of the play event to the target audio device through the multimedia data link data.
  • the mobile terminal respectively establishes a communication connection with the wireless headset and the vehicle-mounted Bluetooth device. If the mobile terminal does not obtain the preset rules and the target event is an incoming communication event, the mobile terminal determines the target audio device as The wireless headset will then obtain the call data and send the call data to the wireless headset for playback by the wireless headset. If the mobile terminal does not obtain the preset rules and the target event is a playback event, the mobile terminal determines the target audio device as the vehicle Bluetooth device, then obtains the call data and sends the call data to the vehicle Bluetooth device, and the vehicle Bluetooth device performs play.
  • the mobile terminal will determine the target audio device corresponding to the incoming communication event and the playback event as the vehicle bluetooth device.
  • the corresponding The audio data is sent to the car bluetooth device, and played by the car bluetooth device.
  • the audio data playback method after monitoring an incoming communication call event or a playback event, automatically determines the device that plays the audio data of the above event according to the preset rules, so as to meet the audio data playback requirements in different scenarios
  • the above pre-set rules are set by the user according to their own needs. If the user wants to protect privacy, he can choose to play the call data through a device other than the car wireless audio device, so as to prevent the call data from being heard by others and effectively protect User privacy, for example, the pre-set rules refer to playing audio data through the wireless audio device activated by the user's active triggering of the playback command. At this time, the user can choose the wireless audio device closest to himself to play the audio device, which improves convenience. .
  • the preset corresponding relationship is set by the user, and the setting process of the preset corresponding relationship will be introduced below.
  • the user sets the preset corresponding relationship in the wireless audio device that has established a communication connection with the mobile terminal.
  • the mobile terminal acquires the preset corresponding relationship through the following steps.
  • Step 601 the mobile terminal sends connected device information to the first wireless audio device through a control information link.
  • the connected device information includes information of a wireless audio device that has established a communication connection with the mobile terminal.
  • the connected device information includes the name, MAC address, signal strength, etc. of the wireless audio device establishing a communication connection with the mobile terminal.
  • the first wireless audio device includes and is not limited to: a smart wearable device, a vehicle wireless audio device, a tablet computer, and the like.
  • the mobile terminal after establishing a communication connection with the first wireless audio device, the mobile terminal sends connected device information to the first wireless audio device.
  • 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 audio device list corresponding to the data type includes device identifiers, such as device names, that are allowed to play the audio data of the data type. 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 with an audio playback function in the mobile terminal, such as a speaker, an earpiece, and the like.
  • the first wireless audio device is a vehicle-mounted wireless audio device 60 with a display screen.
  • the vehicle-mounted wireless 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 includes wireless earphones, car wireless audio devices, handsets and speakers, and the audio device list 62 corresponding to the call data includes wireless earphones, car wireless audio devices, handsets and speakers.
  • the first wireless audio device determines an audio device corresponding to at least one data type based on the first selection signal, and obtains a preset corresponding relationship.
  • the first selection signal is triggered by the user, and the first selection signal includes a combination of at least one or more of the following: a first touch signal corresponding to the display screen, a first operation signal corresponding to a physical button of the first wireless audio device, and a first touch signal corresponding to the first wireless audio device. a voice signal.
  • 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, then The audio device identified by the selected device identifier is determined as the audio device corresponding to the data type.
  • the display screen is not a touch display screen, and each device identifier in the audio device list displayed by the first wireless audio device corresponds to a physical key. If a pressing signal corresponding to a certain physical key is received , the audio device identified by the device identifier corresponding to the physical key is determined as the audio device corresponding to the data type.
  • the first wireless audio device displays a selection box in the audio device list, and the audio device identified by the device identifier in the selection box is determined as the audio device corresponding to the data type.
  • the first wireless audio device also includes a forward physical button and a backward physical button, and the first wireless audio device changes the selection position of the selection box by targeting the forward physical button and/or the backward physical button, that is, changes the selected device identification .
  • the first wireless audio device plays an inquiry message, which is used to inquire about the audio device corresponding to each data type, and the user speaks the name of the audio device selected by himself, and at this time, the first wireless audio device sends the user The audio device identified by the said audio device name is determined as the audio device corresponding to the data type.
  • Step 604 the first wireless audio device sends the preset corresponding relationship to the mobile terminal through the control information link.
  • the mobile terminal receives the preset correspondence sent by the first wireless audio device.
  • the mobile terminal determines the different data types according to the default settings.
  • Type corresponding audio device The first preset duration is set according to actual needs, for example, the first preset duration is 10 seconds.
  • the mobile terminal acquires the preset corresponding relationship through the following steps.
  • Step 605 Send the connected device information to the second wireless audio device through the control information link.
  • the connected device information includes information of a wireless audio device that has established a communication connection with the mobile terminal.
  • the second wireless audio device includes and is not limited to: a smart speaker, a wireless earphone, and the like.
  • the mobile terminal after establishing a communication connection with the second wireless audio device, the mobile terminal sends connected device information to the second wireless audio device.
  • Step 606 the second wireless audio device is used to play an audio device list corresponding to at least one data type based on the connected device information.
  • the second wireless audio device since the second wireless audio device does not have a display screen, the second wireless audio device plays an audio device list corresponding to at least one data type through voice broadcast.
  • the second wireless audio device determines an audio device corresponding to at least one data type based on the second selection signal, and obtains a preset corresponding relationship.
  • the second selection signal is triggered by the user, and the second selection signal includes at least one or a combination of the following items: a second operation signal corresponding to a physical button of the second wireless audio device, and a second voice signal.
  • each device identifier in the audio device list corresponding to the data type corresponds to an operation signal of a target entity key, and if a target operation signal corresponding to the target entity key is received, the target operation signal corresponding to the The audio device identified by the device identifier is determined as the audio device corresponding to the data type.
  • Table-2 below exemplarily shows different audio devices identified by different operation signals of the pause key.
  • Operation signal type Audio equipment Single push operation signal Bluetooth Speaker double press operation signal Wireless Headphones long press operation signal smart wearable device
  • the second wireless audio device plays the audio device list corresponding to the call data through voice broadcast. If a long-press operation signal corresponding to the pause key is received, the smart wearable device is determined as an audio device for playing call data.
  • each device identifier in the audio device list corresponding to the data type corresponds to a physical button, and if a pressing signal corresponding to a certain physical button is received, the device identifier corresponding to the physical button is identified Audio device, determined as the audio device corresponding to the data type.
  • the second wireless audio device plays the audio device list corresponding to the call data through voice broadcast, and the user speaks out the name of the audio device selected by the user.
  • the identified audio device is determined as the audio device corresponding to the data type.
  • Step 608 the second wireless audio device sends the preset corresponding relationship to the mobile terminal through the control information link.
  • the mobile terminal receives the preset correspondence sent by the first wireless audio device.
  • the mobile terminal determines the audio devices corresponding to different data types according to default settings.
  • the second preset duration is set according to actual needs, for example, the second preset duration is 10 seconds.
  • the user sets the preset correspondence between different data types and different audio devices on the side of the wireless audio device. After the subsequent mobile terminal detects a communication call event or a playback event, according to Use the above preset corresponding relationship to automatically determine the device that plays the audio data of the above event to meet the audio data playback requirements in different scenarios. If the user wants to protect privacy, choose to use a device other than the vehicle wireless audio device (such as a wireless headset , mobile phone handset, etc.) to play the call data to prevent the call data from being heard by others and effectively protect user privacy. In addition, in this case, after the mobile terminal detects an incoming communication event or a playback event, the user does not need to make a selection, which improves the convenience of playing audio data.
  • a device other than the vehicle wireless audio device such as a wireless headset , mobile phone handset, etc.
  • the user sets the preset correspondence relationship in the mobile terminal, and the mobile terminal obtains the preset correspondence relationship through the following steps.
  • 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 has established a communication connection with the mobile terminal.
  • the audio device list corresponding to the data type includes device identifiers that are allowed to play the audio data of the data type. 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.
  • FIG. 7 it shows a schematic interface of an audio device list corresponding to at least one data type provided by an embodiment of the present application.
  • the mobile terminal displays an audio device list 71 corresponding to the multimedia data and an audio device list 72 corresponding to the call data.
  • the audio device list 71 corresponding to the multimedia data includes a wireless earphone, a vehicle-mounted wireless audio device, a handset and a loudspeaker.
  • the audio device list 72 corresponding to the data includes wireless earphones, car wireless audio devices, mobile phone receivers and speakers.
  • Step 610 the mobile terminal determines at least one audio device corresponding to the data type based on the third selection signal, and obtains a preset corresponding relationship.
  • the third selection signal is triggered by the user, and the third selection signal includes a combination of one or more of the following: a third touch signal and a third voice signal corresponding to the mobile terminal.
  • 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 will be Device, determined as the audio device corresponding to the data type.
  • the mobile terminal plays inquiry information, and the inquiry information is used to inquire about the audio equipment corresponding to each data type.
  • the identified audio device is determined as the audio device corresponding to the data type.
  • the mobile terminal determines the audio devices corresponding to different data types according to default settings.
  • the third preset duration is set according to actual needs, for example, the third preset duration is 10 seconds.
  • the first preset duration, the second preset duration, and the third preset duration may be the same or different.
  • the user sets the preset corresponding relationship between different data types and different audio devices on the side of the mobile terminal. After the subsequent mobile terminal detects a communication call event or a playback event, according to the user The above-mentioned preset corresponding relationship automatically determines the device for playing the audio data of the above-mentioned event to meet the audio data playback requirements in different scenarios. If the user wants to protect privacy, he/she can choose to use a device other than the vehicle-mounted wireless audio device (such as a wireless headset, Mobile phone handset, etc.) to play the call data to prevent the call data from being heard by others, effectively protecting user privacy. In addition, in this case, after the mobile terminal detects an incoming communication event or a playback event, the user does not need to make a selection, which improves the convenience of playing audio data.
  • a device other than the vehicle-mounted wireless audio device such as a wireless headset, Mobile phone handset, etc.
  • the wireless audio device that establishes a communication connection with the mobile terminal includes a wireless earphone, and after step 403, the audio data playback method further includes the following steps:
  • Step 701 In the case that the target audio device is not a wireless earphone, through a control information link with the wireless earphone, receive a switching request sent by the wireless earphone after detecting a wearing event.
  • the wearing event refers to an event that the user wears the wireless headset.
  • the wireless headset includes a wearing sensor, and the sensor data acquired by the wearing sensor is used as the basis for judging the wearing event. If the sensor data acquired by the wearing sensor conforms to the preset data characteristics, it is determined that the wearing event occurs; if the wearing If the sensor data acquired by the sensor does not meet the preset data characteristics, it is determined that no wearing event has occurred.
  • the switch request is used to request to switch the audio device playing the target event to a wireless headset.
  • the switching request includes the device identifier of the wireless headset, such as the name of the wireless headset, the MAC address, and the like.
  • Step 702 Send the audio data of the target event to the wireless headset based on the switching request.
  • the mobile terminal After receiving the switching request, the mobile terminal determines the wireless earphone as the target audio device corresponding to the target event, and then sends the audio data of the target event to the wireless earphone. If the target event is an incoming communication event, the audio data of the incoming communication event is sent to the wireless headset through the call data link; if the target event is a play event, the audio data of the play event is sent to the wireless headset through the multimedia data link.
  • the wireless earphone After receiving the audio data of the target event, the wireless earphone plays the audio data of the target event.
  • the target audio device is automatically changed to a wireless headset, and the audio data of the target event is played by the wireless headset, which realizes the rapid switching of the audio device and improves the convenience of operation .
  • FIG. 8 shows a method for playing audio data provided by an exemplary embodiment of the present application.
  • the method is applied to the wireless audio device in FIG. 2 or 3 , and the method includes the following steps.
  • step 801 the wireless audio device acquires a preset correspondence between data types and audio devices.
  • step 801 is implemented as: receiving the connected device information sent by the mobile terminal through the control information link, and the connected device information includes the wireless audio device for establishing a communication connection with the mobile terminal.
  • Device information displaying a list of audio devices corresponding to at least one data type based on the connected device information; determining at least one audio device corresponding to the data type based on the first selection signal to obtain a preset correspondence, wherein the first selection signal includes at least the following A combination of one or more items: a first touch signal corresponding to the display screen, a first operation signal corresponding to a physical button of the first wireless audio device, and a first voice signal.
  • step 801 is implemented as: receiving the connected device information sent by the mobile terminal through the control information link, and the connected device information includes the wireless device for establishing a communication connection with the mobile terminal.
  • Information about the audio device displaying a list of audio devices 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 the second selection signal to obtain a preset correspondence, wherein the second selection signal includes the following A combination of at least one or more items: a second operation signal corresponding to a physical button of the second wireless audio device, and a second voice signal.
  • Step 802 Send the preset corresponding relationship to the mobile terminal through the control information link with the mobile terminal.
  • the mobile terminal is used to determine the target audio device corresponding to the target event based on the preset correspondence after monitoring the target event, and the target event includes a communication call event and/or a playback event;
  • Step 803 receiving the audio data of the target event sent by the mobile terminal after determining the wireless audio device as the target audio device.
  • Step 804 playing the audio data of the target event.
  • the audio data playback method provided in the embodiment of the present application automatically determines the device for playing the audio data of the above-mentioned event according to the corresponding relationship preset by the user after monitoring the incoming communication call event or the playback event, so as to meet the requirements of audio data playback in different scenarios
  • Demand when users want to protect their privacy, they can choose to play call data through devices other than car wireless audio devices (such as wireless headsets, mobile phone handsets, etc.), so as to prevent call data from being heard by others and effectively protect user privacy.
  • the mobile terminal detects an incoming communication event or a playback event, the user does not need to make a selection, which improves the convenience of playing audio data.
  • FIG. 9 shows a method for playing audio data provided by an exemplary embodiment of the present application.
  • the method is applied to the wireless audio device in FIG. 2 or 3 , and the method includes the following steps.
  • Step 901 through the control information link with the mobile terminal, receive the notification information sent by the mobile terminal, the notification information is used to notify the detected target event, the target event includes a communication call event and/or a playback event.
  • Step 902 after receiving the confirmed play instruction, send a play request to the mobile terminal through the control information link.
  • the play request is used to request to play the audio data of the target event, and the mobile terminal is used to determine the wireless audio device as the target audio device based on the play request.
  • Step 903 receiving the audio data of the target event sent by the mobile terminal after determining the wireless audio device as the target audio device.
  • Step 904 playing the audio data of the target event.
  • the audio data playback method provided by the embodiment of the present application determines the wireless audio device on which the playback instruction triggered by the user is activated as the audio device that plays the audio data after monitoring the incoming communication call event or the playback event. At this time, the user can choose the wireless audio device closest to you to play the audio device to improve convenience.
  • the embodiment of the present application also provides a method for playing audio data, which is applied to the implementation environment shown in FIG. 3 .
  • the method includes:
  • Step 1001 the mobile terminal searches for a vehicle-mounted wireless audio device.
  • Step 1002 the mobile terminal establishes a communication connection with the vehicle wireless audio equipment.
  • Step 1003 the mobile terminal sends connected device information to the vehicle wireless audio device.
  • Step 1004 the vehicle wireless audio device displays a list of audio devices corresponding to different data types.
  • Step 1005 the vehicle-mounted wireless audio device detects whether a selection signal is received.
  • step 1006 If the selection signal is received, execute step 1006; if the selection signal is not received, execute step 1007.
  • Step 1006 the vehicle-mounted Bluetooth terminal sends the preset correspondence between different data types and different audio devices determined based on the selection signal to the mobile terminal.
  • Step 1007 the vehicle-mounted wireless audio device detects whether the user is using call audio or media audio.
  • step 1008 If the user does not use call audio and media audio, execute step 1008; if the user uses call audio, execute step 1009; if the user uses media audio, execute step 1010.
  • step 1008 it is determined that the audio devices corresponding to the call audio and the media audio are both vehicle-mounted Bluetooth terminals.
  • Step 1009 determine that the audio device corresponding to the call audio is not the vehicle Bluetooth terminal, and determine that the audio device corresponding to the media audio is not the vehicle Bluetooth terminal after the user selects or after the call ends.
  • step 1010 it is determined that the audio devices corresponding to the call audio and the media audio are both vehicle-mounted Bluetooth terminals.
  • the user sets the preset correspondence between different data types and different audio devices on the vehicle-mounted Bluetooth device. After the subsequent mobile terminal detects a communication call event or a playback event, according to the above-mentioned
  • the preset corresponding relationship automatically determines the device that plays the audio data of the above events to meet the audio data playback requirements in different scenarios. If the user wants to protect privacy, he/she chooses to use a device other than the car wireless audio device (such as a wireless headset, a mobile phone, etc.) handset, etc.) to play the call data to prevent the call data from being heard by others, effectively protecting user privacy.
  • the mobile terminal detects an incoming communication event or a playback event, the user does not need to make a selection, which improves the convenience of playing audio data.
  • the embodiment of the present application also provides an audio data playback device, which includes: a device determination module 1101 , a data acquisition module 1102 , and a data sending module 1103 .
  • the device determination module 1101 is configured to determine the target audio device corresponding to the target event when the target event is detected, the target event includes a communication call event and/or a playback event, and the target audio device is used to represent the audio data of the target event devices; the target audio device is determined in at least one wireless audio device and the mobile terminal.
  • a data acquisition module 1102 configured to acquire audio data of a target event.
  • the data sending module 1103 is configured to send the audio data of the target event to the target audio device, and the target audio device is used to play the audio data of the target event.
  • the preset rules include: preset corresponding relationships, and/or, requesting playback events; preset corresponding relationships include corresponding relationships between different data types and different audio devices, and requesting playback events refers to the monitoring of the target audio device sent Event to play the request.
  • the embodiment of the present application provides an audio data playback device. After monitoring an incoming communication event or a playback event, it automatically determines the device that plays the audio data of the above event according to the preset rules, so as to meet the requirements of audio data playback in different scenarios.
  • Requirements, such as the above preset rules are set by users according to their own needs. If users want to protect their privacy, they can choose to play call data through devices other than car wireless audio devices (such as wireless earphones, mobile phone receivers, etc.) to avoid The call data is heard by other people, which effectively protects the privacy of the user.
  • the pre-set rules refer to the wireless audio device activated by the user's active triggering of the playback command to play the audio data. At this time, the user can choose the wireless device closest to him. Audio devices to play audio devices, improving convenience.
  • the device determination module 1101 is configured to search for a target audio device corresponding to the target data type in the preset correspondence, and the preset correspondence includes different data types and Correspondence between different audio devices, the target data type is used to represent the data type of the audio data of the target event.
  • the device further includes: a relationship acquisition module (not shown in FIG. 11 ).
  • a relationship acquiring module configured to acquire a preset corresponding relationship through a control information link with a target device in at least one wireless audio device.
  • the target device is a first wireless audio device with a display screen
  • the relationship acquisition module is configured to: send connected device information to the first wireless audio device through a control information link, and the first wireless audio device is used to Displaying a list of audio devices corresponding to at least one data type based on the connected device information, determining at least one audio device corresponding to the data type based on the first selection signal, and obtaining a preset correspondence; receiving the information sent by the first wireless audio device through the control information link Preset corresponding relationship; wherein, the connected device information includes information about a wireless audio device that establishes a communication connection with the mobile terminal, and the first selection signal includes at least one or more of the following: a first touch signal corresponding to the display screen, Corresponding to the first operation signal and the first voice signal of the physical key of the first wireless audio device.
  • the target device is a second wireless audio device without a display screen
  • the relationship acquisition module is configured to: send connected device information to the second wireless audio device through a control information link, and the second wireless audio device uses Playing the audio device list corresponding to at least one data type based on the connected device information, determining the audio device corresponding to at least one data type based on the second selection signal, and obtaining the preset correspondence relationship; receiving the second wireless audio device sent through the control information link
  • the preset corresponding relationship; the second selection signal includes a combination of at least one or more of the following: a second operation signal corresponding to a physical button of the second wireless audio device, and a second voice signal.
  • control information link is a data link established based on the Object Push Specification OPP protocol.
  • the relationship obtaining module is configured to: display a list of audio devices corresponding to at least one data type based on the connected device information; determine the audio device corresponding to at least one data type based on the third selection signal, and obtain a preset corresponding relationship.
  • the device determination module 1101 is configured to: send notification information to at least one wireless audio device through a control information link with at least one wireless audio device, The notification information is used to notify that the target event has been detected; through the control information link with the third wireless audio device, the play request sent by the third wireless audio device is received, and the play request is used to request to play the audio data of the target event; based on the play request to determine the third wireless audio device as the target audio device.
  • the device further includes: a switching module.
  • the switching module is used to: when the target audio device is not a wireless headset, through the control information link with the wireless headset, receive the switching request sent by the wireless headset after monitoring the wearing event; send the wireless headset based on the switching request The audio data of the target event is sent, and the wireless headset is used to play the audio data of the target event.
  • sending the audio data of the target event to the target audio device includes: when the target event is an incoming communication event, sending the audio data of the incoming communication event to the target audio device through a communication data link; When the target event is a play event, the audio data of the play event is sent to the target audio device through the multimedia data link.
  • the embodiment of the present application also provides an audio data playback device, which includes: a relationship acquiring module 1201 , a relationship sending 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 data types and audio devices.
  • the relationship sending module 1202 is configured to send the preset corresponding relationship to the mobile terminal through the control information link with the mobile terminal, and the mobile terminal is used to determine the target corresponding to the target event based on the preset corresponding relationship after monitoring the target event
  • target events include communication incoming events and/or playback events.
  • the first receiving module 1203 is configured to receive the audio data of the target event sent by the mobile terminal after the wireless audio device is determined as the target audio device.
  • the first playing module 1204 is used to play the audio data of the target event.
  • the audio data playback device provided by the embodiment of the present application automatically determines the device for playing the audio data of the above-mentioned event according to the corresponding relationship preset by the user after monitoring the incoming communication call event or the playback event, so as to meet the requirements of audio data playback in different scenarios.
  • Demand when users want to protect their privacy, they can choose to play call data through devices other than car wireless audio devices (such as wireless headsets, mobile phone handsets, etc.), so as to prevent call data from being heard by others and effectively protect user privacy.
  • the mobile terminal detects an incoming communication event or a playback event, the user does not need to make a selection, which improves the convenience of playing audio data.
  • the wireless audio device is a first wireless audio device equipped with a display screen
  • the relationship obtaining module 1201 is configured to: receive connected device information sent by the mobile terminal through a control information link, the connected device information includes information related to the mobile Information about the wireless audio device with which the terminal establishes a communication connection; based on the connected device information, a list of audio devices corresponding to at least one data type is displayed; based on the first selection signal, at least one audio device corresponding to the data type is determined to obtain a preset correspondence, wherein, The first selection signal includes a combination of at least one or more of the following: a first touch signal corresponding to the display screen, a first operation signal corresponding to a physical button of the first wireless audio device, and a first voice signal.
  • the wireless audio device is a second wireless audio device without a display screen
  • the relationship acquisition module 1201 is configured to: receive connected device information sent by the mobile terminal through a control information link, the connected device information includes Information about wireless audio equipment with which the mobile terminal establishes a communication connection;
  • the second selection signal includes at least one or more of the following A combination of items: a second operation signal corresponding to a physical button of the second wireless audio device, and a second voice signal.
  • the embodiment of the present application also provides an audio data playing device, which 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 notification information sent by the mobile terminal through the control information link with the mobile terminal.
  • the notification information is used to notify the detected target event, and the target event includes a communication call event and/or a play event.
  • the request sending module 1302 is configured to send a play request to the mobile terminal through the control information link after receiving the confirmed play instruction, the play request is used to request to play the audio data of the target event, and the mobile terminal is used to send the wireless data to the mobile terminal based on the play request.
  • the audio device is identified as the target audio device.
  • the second receiving module 1303 is configured to receive the audio data of the target event sent by the mobile terminal after the wireless audio device is determined as the target audio device.
  • the second playing module 1304 is used to play the audio data of the target event.
  • the audio data playback method provided by the embodiment of the present application determines the wireless audio device on which the playback instruction triggered by the user is activated as the audio device that plays the audio data after monitoring the incoming communication call event or the playback event. At this time, the user can choose the wireless audio device closest to you to play the audio device to improve convenience.
  • the coupling between the modules may be electrical, mechanical or other forms of coupling.
  • each functional module in each embodiment of the present application may be integrated into one processing module, each module may exist separately physically, or two or more modules may be integrated into one module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules.
  • the embodiment of the present application also provides an electronic device 1400 , and the electronic device 1400 may be a mobile terminal or a wireless audio device.
  • the electronic device 1400 includes a processor 1410 and a memory 1420, wherein the memory 1420 stores computer program instructions.
  • Processor 1410 may include one or more processing cores.
  • the processor 1410 uses various interfaces and lines to connect various parts in the entire battery management system, by running or executing instructions, programs, code sets or instruction sets stored in the memory 1420, and calling data stored in the memory 1420, Execute various functions and process data of the battery management system.
  • the processor 1410 may adopt at least one of a digital signal processing (Digital Signal Processing, DSP), a field-programmable gate array (Field-Programmable Gate Array, FPGA), and a programmable logic array (Programmable Logic Array, PLA). implemented in the form of hardware.
  • DSP Digital Signal Processing
  • FPGA Field-Programmable Gate Array
  • PLA programmable logic array
  • the processor 1410 may integrate one or a combination of a central processing unit 1410 (Central Processing Unit, CPU), an image processor 1410 (Graphics Processing Unit, GPU), a modem, and the like.
  • a central processing unit 1410 Central Processing Unit, CPU
  • an image processor 1410 Graphics Processing Unit, GPU
  • a modem and the like.
  • the CPU mainly handles the operating system, user interface and application programs, etc.
  • the GPU is used to render and draw the displayed content
  • the modem is used to handle wireless communication. It can be understood that, the above-mentioned modem may not be integrated into the processor 1410, but may be realized by a communication chip alone.
  • the memory 1420 may include a random access memory 1420 (Random Access Memory, RAM), and may also include a read-only memory 1420 (Read-Only Memory).
  • the memory 1420 may be used to store instructions, programs, codes, sets of codes, or sets of instructions.
  • the memory 1420 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for implementing the following various method embodiments, and the like.
  • the storage data area can also store data (such as phone book, audio and video data, and chat record data) created during the use of the electronic device map.
  • the embodiment of the present application also provides a computer-readable storage medium 1500, in which computer program instructions 1510 are stored, and the computer program instructions 1510 can be invoked by a processor to execute the above-mentioned embodiments. method described in .
  • the computer readable storage medium may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
  • the computer-readable storage medium includes a non-transitory computer-readable storage medium (non-transitory computer-readable storage medium).
  • the computer-readable storage medium 1500 has a storage space for program codes for executing any method steps in the above methods. These program codes can be read from or written into one or more computer program products. The program code can eg be compressed in a suitable form.

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Telephone Function (AREA)

Abstract

本申请实施例提供一种音频数据播放方法、装置、电子设备及存储介质。该方法应用于移动终端,移动终端与至少一个无线音频设备建立通信连接,该方法包括:当监测到目标事件时,按照预设规则确定目标事件对应的目标音频设备,目标事件包括通讯呼入事件和/或播放事件,目标音频设备用于表征播放目标事件的音频数据的设备;获取目标事件的音频数据;向目标音频设备发送目标事件的音频数据,目标音频设备用于播放目标事件的音频数据。在本申请实施例中,在监测到通讯呼入事件或者播放事件后,根据预先设定的规则自动确定播放上述事件的音频数据的设备,以满足不同场景下的音频数据播放需求。

Description

音频数据播放方法、装置、电子设备及存储介质
相关申请的交叉引用
本申请要求于2021年09月16日提交中国专利局的申请号为CN202111088906.X、名称为“音频数据播放方法、装置、电子设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及移动终端技术领域,更具体地,涉及一种音频数据播放方法、装置、电子设备及存储介质。
背景技术
目前,蓝牙技术得到广泛应用,市场上涌现出无线耳机、车载蓝牙设备、智能可穿戴设备等蓝牙设备。
上述蓝牙设备与移动终端建立连接后,移动终端所播放的音频数据(例如通话数据、多媒体数据等等)被传输至上述蓝牙设备,由蓝牙设备进行播放。例如,当移动终端与车载蓝牙设备建立蓝牙连接,且监测到通讯呼入事件时,用户选择接听后,由车载蓝牙设备来播放通话数据。
发明内容
本申请实施例提供一种音频数据播放方法、装置、电子设备及存储介质。
第一方面,本申请一些实施例提供一种音频数据播放方法,该方法应用于移动终端,上述移动终端与至少一个无线音频设备建立通信连接,该方法包括:在监测到目标事件的情况下,确定目标事件对应的目标音频设备,目标事件包括通讯呼入事件和/或播放事件,目标音频设备用于表征播放目标事件的音频数据的设备;目标音频设备在至少一个无线音频设备以及移动终端中确定;获取目标事件的音频数据;向目标音频设备发送目标事件的音频数据,目标音频设备用于播放目标事件的音频数据;其中,所述预设规则包括:预设对应关系,和/或,请求播放事件;所述预设对应关系包括不同数据类型与不同音频设备之间的对应关系,所述请求播放事件是指监测到所述目标音频设备发送的播放请求的事件。
第二方面,本申请一些实施例提供一种音频数据播放方法,该方法应用于与移动终端建立通信连接的无线音频设备,该方法包括:获取数据类型与音频设备之间的预设对应关系;通过与移动终端之间的控制信息链路,向移动终端发送预设对应关系,移动终端用于在监测到目标事件后,基于预设对应关系确定目标事件对应的目标音频设备,目标事件包括通讯呼入事件和/或播放事件;接收移动终端在将无线音频设备确定为目标音频设备后发送的目标事件的音频数据;播放目标事件的音频数据。
第三方面,本申请一些实施例提供一种音频数据播放方法,该方法应用于与移动终端建立通信连接的无线音频设备,该方法包括:通过与移动终端之间的控制信息链路,接收移动终端发送的通知信息,通知信息用于通知监测到目标事件,目标事件包括通讯呼入事件和/或播放事件;在接收到确认播放指令后,通过控制信息链路,向移动终端发送播放请求,播放请求用于请求播放目标事件的音频数据,移动终端用于基于播放请求,将无线音频设备确定为目标音频设备;接收移动终端在将无线音频设备确定为目标音频设备后发送的目标事件的音频数据;播放目标事件的音频数据。
第四方面,本申请一些实施例提供一种音频数据播放装置,该装置包括:设备确定模块,用于在监测到目标事件的情况下,确定目标事件对应的目标音频设备,目标事件包括通讯呼入事件和/或播放事件,目标音频设备用于表征播放目标事件的音频数据的设备;目标音频设备在至少一个无线音频设备以及移动终端中确定;数据获取模块,用于获取目标事件的音频数据;数据发送模块,用于向目标音频设备发送目标事件的音频数据,目标音频设备用于播放目标事件的音频数据;其中,所述预设规则包括:预设对应关系,和/或,请求播放事件;所述预设对 应关系包括不同数据类型与不同音频设备之间的对应关系,所述请求播放事件是指监测到所述目标音频设备发送的播放请求的事件。
第五方面,本申请一些实施例提供一种音频数据播放装置,该装置包括:关系获取模块,用于获取数据类型与音频设备之间的预设对应关系;关系发送模块,用于通过与移动终端之间的控制信息链路,向移动终端发送预设对应关系,移动终端用于在监测到目标事件后,基于预设对应关系确定目标事件对应的目标音频设备,目标事件包括通讯呼入事件和/或播放事件;第一接收模块,用于接收移动终端在将无线音频设备确定为目标音频设备后发送的目标事件的音频数据;第一播放模块,用于播放目标事件的音频数据。
第六方面,本申请一些实施例提供一种音频数据播放装置,该装置包括:信息接收模块,用于通过与移动终端之间的控制信息链路,接收移动终端发送的通知信息,通知信息用于通知监测到目标事件,目标事件包括通讯呼入事件和/或播放事件;请求发送模块,用于在接收到确认播放指令后,通过控制信息链路,向移动终端发送播放请求,播放请求用于请求播放目标事件的音频数据,移动终端用于基于播放请求,将无线音频设备确定为目标音频设备;第二接收模块,用于接收移动终端在将无线音频设备确定为目标音频设备后发送的目标事件的音频数据;第二播放模块,用于播放目标事件的音频数据。
第七方面,本申请一些实施例提供一种电子设备,该电子设备包括处理器以及存储器,存储器存储有计算机程序指令,计算机程序指令被处理器调用执行如上述第一方面、第二方面、第三方面中任一方面的方法。
在一些实施例中,当电子设备为移动终端时,其用于执行如上述第一方面的方法。在另一些实施例中,当电子设备为无线音频设备时,其用于执行如上述第一方面或第二方面所述的方法。
第八方面,本申请一些实施例提供一种计算机可读取存储介质,该计算机可读取存储介质中存储有程序代码,程序代码被处理器调用执行如上述第一方面、第二方面、第三方面中任一方面的方法。
第九方面,本申请一些实施例提供一种计算机程序产品,该计算机程序产品被执行时,用于实现如上述第一方面、第二方面、第三方面中任一方面的方法。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是相关技术提供的音频数据播放方法涉及的界面示意图。
图2是本申请一个实施例提供的实施环境的示意图。
图3是本申请另一个实施例提供的实施环境的示意图。
图4是本申请一个实施例提供的音频数据播放方法的流程图。
图5是本申请一个实施例提供的确定目标音频设备的示意图。
图6是本申请一个实施例提供的获取预设对应关系涉及的界面示意图。
图7是本申请另一个实施例提供的获取预设对应关系涉及的界面示意图。
图8是本申请一个实施例提供的音频数据播放方法的流程图。
图9是本申请另一个实施例提供的音频数据播放方法的流程图。
图10是本申请另一个实施例提供的音频数据播放方法的流程图。
图11是本申请一个实施例提供的音频数据播放装置的框图。
图12是本申请另一个实施例提供的音频数据播放装置的框图。
图13是本申请另一个实施例提供的音频数据播放装置的框图。
图14是本申请一个实施例提供的电子设备的框图。
图15是本申请一个实施例提供的计算机可读存储介质的框图。
具体实施方式
下面详细描述本申请的实施方式,实施方式的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施方式是示例性地,仅用于解释本申请,而不能理解为对本申请的限制。
为了使本技术领域的人员更好地理解本申请的方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整的描述。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
如图1所示,相关技术还提供一种音频数据播放方法,具体如下:手机监测到来电呼入事件后,用户选择接听来电,此时手机显示选择窗口11,该选择窗口11包括具有播放通话数据功能的设备,以及手机中具有播放通话数据功能的功能模组,包括车载蓝牙设备111、蓝牙耳机112、手机听筒113、扬声器114等,用户可以在上述选择窗口11中选择接听通话的设备或者功能模组。
在第一种相关技术中,在连接车载蓝牙设备后默认由车载蓝牙设备来播放通话数据,用户无法自行选择,无法满足隐私性要求较高的通话场景下的通话需求。
在第二种相关技术中,用户需要在接听后选择播放通话数据的功能模组或设备,从选择接听到播放通话数据之间存在时延,此外,在车辆行驶过程中通过对手机的操作来进行选择,该过程危险性较大,最后,手机不在用户附近时,操作不便。
基于上述相关技术存在的缺陷,本申请实施例提供一种音频数据播放方法,在监测到通讯呼入事件或者播放事件后,根据预先设定的规则自动确定播放上述事件的音频数据的设备,以满足不同场景下的音频数据播放需求,例如上述预先设定的规则是用户按照自身需求进行设置的,用户想要保护隐私的情况下选择通过车载无线音频设备之外的设备(比如无线耳机、手机听筒等)播放通话数据,避免通话数据被其他人听到,有效保护用户隐私,再例如预先设定的规则是指通过用户主动触发的播放指令所作用的无线音频设备来播放音频数据,此时用户可以选择距离自身最近的无线音频设备来播放音频设备,提升便利性。
如图2所示,其示出本申请一个示例性实施例提供的实施环境。该实施环境包括:移动终端21和至少一个无线音频设备。
移动终端21具有通话功能,比如通过用户识别模块(Subscriber Identification Module,SIM)与其他移动终端进行通话,或者,通过具有语音通话功能的应用程序与其他移动终端进行通话。上述具有语音通话功能的应用程序可以是社交类应用程序、购物类应用程序等。在一些实施例中,移动终端21还具有音频播放功能,移动终端21通过听筒组件、扬声器组件等实现上述音频播放功能。
在本申请实施例中,移动终端21与至少一个无线音频设备之间建立有通信连接。在一些实施例中,移动终端21具有通讯模组,通过上述通讯模组与上述无线音频设备建立通信连接,之后向无线音频设备发送音频数据,例如通话数据、多媒体音频数据等,以使得无线音频设备播放移动终端21所接收到的通话数据,或者播放移动终端21中的多媒体文件。通讯模组包括且不限于:蓝牙模组、射频模组、近距离无线通讯(Near Field Communication,NFC)模组等,在本申请实施例中,仅以通讯模组为蓝牙模组为例进行说明,移动终端21与至少一个无线音频设备之间建立有蓝牙连接。移动终端21可以是智能手机、个人计算机、平板电脑等等。在另一些实施例中,移动终端21与无线音频设备连接至同一局域网,基于上述局域网进行通信连接。上述局域网包括且不限于:无线局域网(Wireless Local Area Network,WLAN)、基于Airplay传输协议建立的局域网、基于数字生活网络联盟(Digital Living Network Alliance,DLNA)传输协议建立的局域网等等。
无线音频设备也具有通讯模组,无线音频设备所具有的通讯模组能够实现与移动终端21之间的数据交互。此外,无线音频设备还具有音频播放功能。无线音频设备包括且不限于:无线耳机、智能可穿戴设备、车载无线音频设备、平板电脑、智能音箱等等。如图2所示,移动终端21分别与两个无线耳机22、智能音箱23、智能可穿戴设备24之间建立有通信连接。
在一些实施例中,移动终端21与无线音频设备之间的通信连接包括控制信息链路与数据链路。
控制信息链路用于供移动终端21与无线音频设备之间传输控制信息,上述控制信息包括且不限于:与移动终端21建立通信连接的无线音频设备的信息(例如名称、MAC地址、信号强度等)、不同数据类型与不同音频设备之间的对应关系、通知信息、请求信息等等。在一些实施例中,控制信息链路是基于对象推送规范(Object Push Profile,OPP)协议建立的通信链 路。
数据链路用于供移动终端21与无线音频设备之间传输音频数据,上述音频数据包括通话数据与多媒体数据。在一些实施例中,数据链路包括通话数据链路与多媒体数据链路,通话数据链路用于供移动终端21与无线音频设备之间传输通话数据,多媒体数据链路用于供移动终端21与无线音频设备之间传输多媒体数据。
在一些实施例中,通话数据链路是基于免提功能配置(Hand Free Profile,HFP)协议建立的通信链路。在一些实施例中,多媒体数据链路是基于高级音频传输规范(Advanced Audio Distribution Profile,A2DP)协议建立的通信链路。A2DP协议定义在异步无连接(Asynchronous Connectionless Link,ACL)信道上传输高质量音频信息,并且在同一条ACL Link(连接)上建立了两条逻辑链路控制和适配协议通道(Logical Link Control and Adaptation Protocol channel,L2CAP channel),一条用来负责指令交互,另一条用来负责传输音频流(也即多媒体数据链路)。
需要说明的是,上述控制信息链路可以在移动终端与无线音频设备之间建立通信连接后建立,也可以在建立通信连接,且存在控制信息传输需求后建立;上述数据链路可以在移动终端与无线音频设备之间建立通信连接后建立,也可以在建立通信连接,且存在数据传输需求后建立。控制信息链路与数据链路的建立时机可以相同,也可以不相同。
参见图2,移动终端21与两个无线耳机22、智能音箱23、智能可穿戴设备24之间建立的通信连接包括基于OPP协议建立的控制信息链路、基于A2DP协议建立的多媒体数据链路以及基于HFP协议的通话数据链路。
如图3所示,其示出本申请一个示例性实施例提供的实施环境。该实施环境包括:移动终端31、无线耳机32和车载无线音频设备33。
移动终端31和车载无线音频设备33之间的通信连接包括基于OPP协议建立的控制信息链路、基于A2DP协议建立的多媒体数据链路以及基于HFP协议的通话数据链路。移动终端31与无线耳机32之间的通信连接包括基于A2DP协议建立的多媒体数据链路以及基于HFP协议的通话数据链路。
在该实施环境中,移动终端31通过与车载无线音频设备33之间的控制信息链路来接收不同数据类型与不同音频设备之间的预设对应关系。具体地,当移动终端31与车载无线音频设备33建立通信连接后,通过控制信息链路向车载无线音频设备33发送已连接设备信息,车载无线音频设备33基于已连接设备信息显示至少一个数据类型对应的音频设备列表,用户选择各个数据类型分别对应的音频设备,此时车载无线音频设备33获取到上述预设对应关系,之后通过控制信息链路向移动终端31发送该预设对应关系。
在一些实施例中,若确定通话数据对应的音频设备为无线耳机32,则移动终端31通过与无线耳机32之间的通话数据链路,向无线耳机32发送通话数据。在一些实施例中,若确定多媒体数据对应的音频设备为无线耳机32,则移动终端31通过与无线耳机32之间的多媒体数据链路,向无线耳机32发送多媒体数据。
在一些实施例中,若确定通话数据对应的音频设备为车载无线音频设备33,则移动终端31通过与车载无线音频设备33之间的通话数据链路,向车载无线音频设备33发送通话数据。在一些实施例中,若确定多媒体数据对应的音频设备为车载无线音频设备33,则移动终端31通过与车载无线音频设备33之间的多媒体数据链路,向车载无线音频设备33发送多媒体数据。
如图4所示,其示出了本申请一个示例性实施例提供的音频数据播放方法,该方法应用于图2或图3中的移动终端,该移动终端与至少一个无线音频设备建立通信连接,该方法包括如下步骤:
步骤401,当监测到目标事件时,按照预设规则确定目标事件对应的目标音频设备。
目标事件包括通讯呼入事件。通讯呼入事件是指对端移动终端请求与本端移动终端建立通话的事件。在一些实施例中,对端移动终端接收针对本端移动终端内置的SIM卡的号码的呼叫指令后,向本端移动终端发送通话请求,此时本端移动终端监测到通讯呼入事件。在另一些实施例中,对端移动终端接收针对指定应用程序中指定帐号的语音通话指令或视频通话指令后,向本端移动终端发送通话请求,此时本端移动终端监测到通讯呼入事件,指定帐号是本端移动终端中指定应用程序所登录的用户帐号,指定应用程序是指具有语音通话功能或视频通话功能 的应用程序,例如社交类应用程序。
目标事件还包括播放事件,播放事件是指播放移动终端中的音频数据的事件,上述音频数据可以是多媒体文件中的音频数据,多媒体文件包括且不限于:音乐文件、视频文件、有声书文件等等,也可以是直播场景下从直播终端中实时获取的音频数据。在一些实施例中,当移动终端接收到针对多媒体文件的播放指令后,监测到播放事件。在另一些实施例中,当移动终端接收到针对直播频道的打开指示后,监测到播放事件。
目标音频设备用于表征播放目标事件的音频数据的设备。当目标事件为通讯呼入事件时,目标事件的音频数据为通话数据;当目标事件为播放事件时,目标事件的音频数据为多媒体数据。在本申请实施例中,目标音频设备可以是至少一个无线音频设备中的设备,也可以是移动终端。
预设规则包括:预设对应关系,和/或,请求播放事件。预设对应关系包括不同数据类型与不同音频设备之间的对应关系。请求播放事件是指监测到目标音频设备发送的播放请求的事件。在本申请实施例中,在监测到通讯呼入事件或者播放事件后,移动终端根据预先设定的规则自动确定播放上述事件的音频数据的设备,以满足不同场景下的音频数据播放需求。其中,预先设定的规则可以是用户按照自身需求设置的,也可以是通过用户主动触发的播放指令所作用的无线音频设备来播放音频数据。下面分别对这两种情况进行描述。
在一些实施例中,移动终端在预设对应关系中查找目标数据类型对应的目标音频设备。预设对应关系包括不同数据类型与不同音频设备之间的对应关系。目标数据类型用于表征目标事件的音频数据所属的数据类型。目标数据类型包括通话数据和多媒体数据。
预设对应关系由用户自定义设置,具体的设置过程将在下文实施例进行讲解。另外,预设对应关系可以由用户在移动终端中设定,也可以由用户在与移动终端建立通信连接的无线音频设备中设定。若用户在与移动终端建立通信连接的无线音频设备中设定,则移动终端在确定目标音频设备之前,通过与至少一个无线音频设备中的目标设备之间的控制信息链路,获取预设对应关系。可选地,移动终端在与至少一个无线音频设备中的目标设备建立通信连接后,通过与目标设备之间的控制信息链路,获取上述预设对应关系。在一些实施例中,控制信息链路是基于OPP协议建立的数据链路。以下表-1示例性示出了一种预设对应关系。
数据类型 音频设备
通话数据 无线耳机
多媒体数据 车载无线音频设备
表-1
示例性地,移动终端监测到通讯呼入事件,通讯呼入事件的数据类型为通话数据,查找上述表-1可以确定,该通讯呼入事件对应的目标音频设备为无线耳机。
在该种实施方式中,移动终端监测到目标事件后,按照用户预先设置的预设对应关系来确定目标音频设备,用户想要保护隐私的情况下选择通过车载无线音频设备之外的设备(比如无线耳机、手机听筒等)播放通话数据,避免通话数据被其他人听到,有效保护用户隐私。
在另一些实施例中,移动终端通过如下步骤确定目标事件对应的目标音频设备:通过与至少一个无线音频设备之间的控制信息链路,向至少一个无线音频设备发送通知信息;通过与第三无线音频设备之间的控制信息链路,接收第三无线音频设备发送的播放请求,播放请求用于请求播放目标事件的音频数据;基于播放请求,将第三无线音频设备确定为目标音频设备。
至少一个无线音频设备是指与移动终端建立通信连接的无线音频设备。控制信息链路用于供移动终端与无线音频设备之间传输控制信息。在一些实施例中,控制信息链路是基于OPP协议建立的数据链路。
在该实施例中,移动终端通过控制信息链路向无线音频设备发送通知信息,通知信息用于通知监测到目标事件。当目标事件为通讯呼入事件时,通知信息还包括通话发起方的身份标识,比如通话发起方的SIM卡号码、联系人帐号等等。当目标事件为播放事件时,通知信息还包括音频数据的唯一标识,比如多媒体文件的文件标识,直播频道的频道标识等等。
无线音频设备在接收到通知消息后发出提示信息,该提示信息用于提示移动终端监测到目标事件。当无线音频设备具有显示屏幕时,无线音频设备在该显示屏幕上显示提示信息,示例性地,无线音频设备为具有显示屏幕的智能可穿戴设备时,智能可穿戴设备显示通讯呼入事件的通讯呼入界面,以提示用户。当无线音频设备不具有显示屏幕时,无线音频设备通过语音方式发出提示信息,示例性地,无线音频设备为不具有显示屏幕的智能音箱时,智能音箱发出提 示信息“您接收到来自号码135xxxx2101的来电”。
用户可以根据无线音频设备发出的提示信息选择目标音频设备。在一些实施例中,用户针对无线音频设备发出确认播放指令,接收到确认播放指令的无线音频设备也即是第三无线音频设备,之后第三无线音频设备通过与移动终端之间的控制信息链路,向移动终端发送播放请求,之后移动终端将第三无线音频设备确定为目标音频设备。上述播放请求用于请求播放目标事件的音频数据。可选地,该播放请求携带第三无线音频设备的唯一标识,比如设备名称、MAC地址等等。另外,确认播放指令包括且不限于:对应于无线音频设备的显示屏幕中的确认按钮的触发信号、对应于无线音频设备的实体按键的指定操作信号,比如长按信号灯、语音确认信号。需要说明的是,不同无线音频设备所对应的确认播放指令由用户自定义设定,或者,由移动终端与无线音频设备之间协商设定。
在该种实施方式中,移动终端监测到目标事件后,向建立通信连接的各个无线音频设备发送通知信息,用户可以选择距离自己最近的无线音频设备来播放目标事件的音频数据,提高操作的便利性。
如图5所示,本申请实施例提供一种确定目标音频设备的方式。移动终端51监测到通讯呼入事件,通过控制信息链路向智能可穿戴设备52、蓝牙音箱53、车载蓝牙终端54发送通知信息,智能可穿戴设备52以及车载蓝牙终端54显示通讯呼入事件的通讯呼入界面55,蓝牙音箱53发出提示信息“你接收到来自号码134xxxx2523的来电”,用户针对智能可穿戴设备52发出确认播放指令,之后智能可穿戴设备52向移动终端发送播放请求,之后移动终端51将智能可穿戴设备52确定为目标音频设备。步骤402,获取目标事件的音频数据。
当目标事件为通讯呼入事件时,移动终端接收到接通指示后,持续接收对端移动终端发送的通话数据。
当目标事件为播放事件时,若移动终端通过针对多媒体文件的播放指令监测到播放事件,则移动终端从本地读取多媒体文件的音频数据,或者,从云端下载多媒体文件的音频数据。当目标事件为播放事件时,若移动终端通过针对直播频道的打开指示监测到播放事件,则移动终端接收推流服务器发送的直播流音频数据,该直播流音频数据由直播终端上传。
步骤403,向目标音频设备发送目标事件的音频数据。
相应地,目标音频设备接收目标事件的音频数据。目标音频设备用于播放目标事件的音频数据。若目标事件为通讯呼入事件,则通过通话数据链路向目标音频设备发送通讯呼入事件的音频数据;若目标事件为播放事件,则通过多媒体数据链路向目标音频设备发送播放事件的音频数据。
在其他可能的实现方式中,移动终端分别与无线耳机、车载蓝牙设备建立通信连接,若移动终端未获取到预设规则,且目标事件为通讯呼入事件,则移动终端将目标音频设备确定为无线耳机,之后获取通话数据并且将将通话数据发送至无线耳机,由无线耳机进行播放。若移动终端未获取到预设规则,且目标事件为播放事件,则移动终端将目标音频设备确定为车载蓝牙设备,之后获取通话数据并且将将通话数据发送至车载蓝牙设备,由车载蓝牙设备进行播放。若移动终端未获取到预设规则,且未检测到目标事件,则移动终端将通讯呼入事件以及播放事件对应的目标音频设备确定为车载蓝牙设备,后续检测到上述两类事件时,将相应的音频数据发送至车载蓝牙设备,由车载蓝牙设备进行播放。
本申请实施例提供地音频数据播放方法,在监测到通讯呼入事件或者播放事件后,根据预先设定的规则自动确定播放上述事件的音频数据的设备,以满足不同场景下的音频数据播放需求,例如上述预先设定的规则是用户按照自身需求进行设置的,用户想要保护隐私的情况下选择通过车载无线音频设备之外的设备播放通话数据,避免通话数据被其他人听到,有效保护用户隐私,再例如预先设定的规则是指通过用户主动触发的播放指令所作用的无线音频设备来播放音频数据,此时用户可以选择距离自身最近的无线音频设备来播放音频设备,提升便利性。
在上文实施例中提到,预设对应关系由用户自定义设置,下面对预设对应关系的设置过程进行介绍。
在一些实施例中,用户在与移动终端建立有通信连接的无线音频设备中设置上述预设对应关系。在该实施例中,当目标设备为具备显示屏幕的第一无线音频设备时,移动终端通过如下步骤获取预设对应关系。
步骤601,移动终端通过控制信息链路向第一无线音频设备发送已连接设备信息。
已连接设备信息包括与移动终端建立通信连接的无线音频设备的信息。在一些实施例中,已连接设备信息包括与移动终端建立通信连接的无线音频设备的名称、MAC地址、信号强度等等。第一无线音频设备包括且不限于:智能可穿戴设备、车载无线音频设备、平板电脑等等。
在一些实施例中,移动终端与第一无线音频设备建立通信连接后,向第一无线音频设备发送已连接设备信息。
步骤602,第一无线音频设备用于基于已连接设备信息显示至少一个数据类型对应的音频设备列表。
数据类型对应的音频设备列表包括允许播放该数据类型的音频数据的设备标识,比如设备名称。需要说明的是,数据类型对应的音频设备列表包括与移动终端建立通信连接的无线音频设备。在一些实施例中,数据类型对应的音频设备列表中包括移动终端中具有音频播放功能的部件,比如扬声器、听筒等。
参见图6,其示出了本申请一个实施例提供的至少一个数据类型对应的音频设备列表的界面示意图。在该实施例中,第一无线音频设备为具有显示屏幕的车载无线音频设备60,车载无线音频设备60显示多媒体数据对应的音频设备列表61以及通话数据对应的音频设备列表62,多媒体数据对应的音频设备列表61包括无线耳机、车载无线音频设备、手机听筒和扬声器,通话数据对应的音频设备列表62包括无线耳机、车载无线音频设备、手机听筒和扬声器。
步骤603,第一无线音频设备基于第一选择信号确定至少一个数据类型对应的音频设备,得到预设对应关系。
第一选择信号由用户触发,第一选择信号包括以下至少一项或多项的组合:对应于显示屏幕的第一触摸信号、对应于第一无线音频设备的实体按键的第一操作信号、第一语音信号。
在一些实施例中,显示屏幕为触摸显示屏,第一无线音频设备所显示的音频设备列表中的每个设备标识均为可操作控件,若接收到对应于某个设备标识的触发信号,则将被选择的设备标识所标识的音频设备,确定为该数据类型对应的音频设备。
在另一些实施例中,显示屏幕不为触摸显示屏,第一无线音频设备所显示的音频设备列表中的每个设备标识均对应一个实体按键,若接收到对应于某个实体按键的按压信号,则将该实体按键对应的设备标识所标识的音频设备,确定为该数据类型对应的音频设备。在另一些实施例中,第一无线音频设备在音频设备列表中显示选择框,选择框所框选的设备标识所标识的音频设备,确定为该数据类型对应的音频设备。其中,第一无线音频设备还包括前进实体按键与后退实体按键,第一无线音频设备通过针对前进实体按键和/或后退实体按键,改变选择框的框选位置,也即改变被选择的设备标识。
在另一些实施例中,第一无线音频设备播放询问信息,该询问信息用于询问每个数据类型对应的音频设备,用户说出自己选择的音频设备名称,此时第一无线音频设备将用户说的音频设备名称所标识的音频设备,确定为该数据类型对应的音频设备。
步骤604,第一无线音频设备通过控制信息链路向移动终端发送预设对应关系。
相应地,移动终端接收第一无线音频设备发送的预设对应关系。
需要说明的是,若第一无线音频设备在第一预设时长内未接收到第一选择信号,则取消显示至少一个数据类型对应的音频设备列表,此时由移动终端按照默认设置确定不同数据类型对应的音频设备。第一预设时长根据实际需求设定,示例性地,第一预设时长为10秒。
当目标设备为不具备显示屏幕的第二无线音频设备时,移动终端通过如下步骤获取预设对应关系。
步骤605,通过控制信息链路向第二无线音频设备发送已连接设备信息。
已连接设备信息包括与移动终端建立通信连接的无线音频设备的信息。第二无线音频设备包括且不限于:智能音箱、无线耳机等等。在一些实施例中,移动终端与第二无线音频设备建立通信连接后,向第二无线音频设备发送已连接设备信息。
步骤606,第二无线音频设备用于基于已连接设备信息播放至少一个数据类型对应的音频设备列表。
在本申请实施例中,由于第二无线音频设备不具有显示屏幕,因此第二无线音频设备通过语音播报方式,播放至少一个数据类型对应的音频设备列表。
步骤607,第二无线音频设备基于第二选择信号确定至少一个数据类型对应的音频设备,得到预设对应关系。
第二选择信号由用户触发,第二选择信号包括以下至少一项或多项的组合:对应于第二无线音频设备的实体按键的第二操作信号、第二语音信号。
在一些实施例中,数据类型对应的音频设备列表中的每个设备标识均对应目标实体按键的一种操作信号,若接收到对应于目标实体按键的目标操作信号,则将目标操作信号对应的设备标识所标识的音频设备,确定为该数据类型对应的音频设备。以下表-2示例性示出了对于暂停健的不同操作信号所标识的不同音频设备。
操作信号类型 音频设备
单次按压操作信号 蓝牙音箱
双次按压操作信号 无线耳机
长按操作信号 智能可穿戴设备
表-2
以表-2为例,第二无线音频设备通过语音播报方式,播放通话数据对应的音频设备列表。若接收到对应于暂停键的长按操作信号,则将智能可穿戴设备确定为播放通话数据的音频设备。
在一些实施例中,数据类型对应的音频设备列表中的每个设备标识均对应一个实体按键,若接收到对应于某个实体按键的按压信号,则将该实体按键对应的设备标识所标识的音频设备,确定为该数据类型对应的音频设备。
在另一些实施例中,第二无线音频设备通过语音播报方式,播放通话数据对应的音频设备列表,用户说出自己选择的音频设备名称,此时第二无线音频设备将用户说的音频设备名称所标识的音频设备,确定为该数据类型对应的音频设备。
步骤608,第二无线音频设备通过控制信息链路向移动终端发送预设对应关系。
相应地,移动终端接收第一无线音频设备发送的预设对应关系。
需要说明的是,若第二无线音频设备在第二预设时长内未接收到第二选择信号,此时由移动终端按照默认设置确定不同数据类型对应的音频设备。第二预设时长根据实际需求设定,示例性地,第二预设时长为10秒。
本申请实施例提供的音频数据播放方法,用户在无线音频设备一侧设置不同数据类型与不同音频设备之间的预设对应关系,后续移动终端在监测到通讯呼入事件或者播放事件后,根据用上述预设对应关系自动确定播放上述事件的音频数据的设备,以满足不同场景下的音频数据播放需求,用户想要保护隐私的情况下选择通过车载无线音频设备之外的设备(比如无线耳机、手机听筒等)播放通话数据,避免通话数据被其他人听到,有效保护用户隐私。此外,该种情况下,移动终端监测到通讯呼入事件或者播放事件后,无需用户进行选择,提升播放音频数据的便利性。
在另一些实施例中,用户在移动终端中设置上述预设对应关系,移动终端通过如下步骤获取预设对应关系。
步骤609,移动终端基于已连接设备信息显示至少一个数据类型对应的音频设备列表。
已连接设备信息包括与移动终端建立通信连接的无线音频设备的信息。数据类型对应的音频设备列表包括允许播放该数据类型的音频数据的设备标识。需要说明的是,数据类型对应的音频设备列表包括与移动终端建立通信连接的无线音频设备。
参见图7,其示出了本申请一个实施例提供的至少一个数据类型对应的音频设备列表的界面示意图。在该实施例中,移动终端显示多媒体数据对应的音频设备列表71以及通话数据对应的音频设备列表72,多媒体数据对应的音频设备列表71包括无线耳机、车载无线音频设备、手机听筒和扬声器,通话数据对应的音频设备列表72包括无线耳机、车载无线音频设备、手机听筒和扬声器。
步骤610,移动终端基于第三选择信号确定至少一个数据类型对应的音频设备,得到预设对应关系。
第三选择信号由用户触发,第三选择信号包括以下一项或多项的组合:对应于所述移动终端的第三触摸信号、第三语音信号。
在一些实施例中,移动终端所显示的音频设备列表中的每个设备标识均为可操作控件,若接收到对应于某个设备标识的触摸信号,则将被选择的设备标识所标识的音频设备,确定为该数据类型对应的音频设备。
在另一些实施例中,移动终端播放询问信息,该询问信息用于询问每个数据类型对应的音 频设备,用户说出自己选择的音频设备名称,此时移动终端将用户说的音频设备名称所标识的音频设备,确定为该数据类型对应的音频设备。
需要说明的是,若移动终端在第三预设时长内未接收到第三选择信号,此时由移动终端按照默认设置确定不同数据类型对应的音频设备。第三预设时长根据实际需求设定,示例性地,第三预设时长为10秒。第一预设时长、第二预设时长、第三预设时长可以相同,也可以不相同。
本申请实施例提供的音频数据播放方法,用户在移动终端一侧设置不同数据类型与不同音频设备之间的预设对应关系,后续移动终端在监测到通讯呼入事件或者播放事件后,根据用上述预设对应关系自动确定播放上述事件的音频数据的设备,以满足不同场景下的音频数据播放需求,用户想要保护隐私的情况下选择通过车载无线音频设备之外的设备(比如无线耳机、手机听筒等)播放通话数据,避免通话数据被其他人听到,有效保护用户隐私。此外,该种情况下,移动终端监测到通讯呼入事件或者播放事件后,无需用户进行选择,提升播放音频数据的便利性。
在确定播放目标事件的音频数据的播放设备后,用户还可以选择切换播放设备。在一些实施例中,与移动终端建立有通信连接的无线音频设备包括无线耳机,在步骤403之后,该音频数据播放方法还包括如下步骤:
步骤701,在目标音频设备不为无线耳机的情况下,通过与无线耳机之间的控制信息链路,接收无线耳机在监测到佩戴事件后发送的切换请求。
佩戴事件是指用户佩戴无线耳机的事件。在一些实施例中,无线耳机包括佩戴传感器,佩戴传感器器所获取的传感器数据作为佩戴事件的判断依据,若佩戴传感器器所获取的传感器数据符合预设数据特征,则确定发生佩戴事件;若佩戴传感器器所获取的传感器数据不符合预设数据特征,则确定未发生佩戴事件。
切换请求用于请求将播放目标事件的音频设备切换成无线耳机。切换请求包括无线耳机的设备标识,比如无线耳机名称、MAC地址等。
步骤702,基于切换请求向无线耳机发送目标事件的音频数据。
移动终端在接收到切换请求后,将无线耳机确定为目标事件对应的目标音频设备,之后向无线耳机发送目标事件的音频数据。若目标事件为通讯呼入事件,则通过通话数据链路向无线耳机发送通讯呼入事件的音频数据;若目标事件为播放事件,则通过多媒体数据链路向无线耳机发送播放事件的音频数据。
无线耳机在接收到目标事件的音频数据后,播放目标事件的音频数据。
本申请实施例提供的音频数据播放方法,用户在佩戴蓝牙耳机后,自动将目标音频设备变更为无线耳机,由无线耳机播放目标事件的音频数据,实现了音频设备的快速切换,提高操作便利性。
如图8所示,其示出了本申请一个示例性实施例提供的音频数据播放方法,该方法应用于图2或图3中的无线音频设备,该方法包括如下步骤。
步骤801,无线音频设备获取数据类型与音频设备之间的预设对应关系。
当无线音频设备为具备显示屏幕的第一无线音频设备时,步骤801实现为:通过控制信息链路接收移动终端发送的已连接设备信息,已连接设备信息包括与移动终端建立通信连接的无线音频设备的信息;基于已连接设备信息显示至少一个数据类型对应的音频设备列表;基于第一选择信号确定至少一个数据类型对应的音频设备,得到预设对应关系,其中,第一选择信号包括以下至少一项或多项的组合:对应于显示屏幕的第一触摸信号、对应于第一无线音频设备的实体按键的第一操作信号、第一语音信号。
当无线音频设备为不具备显示屏幕的第二无线音频设备时,步骤801实现为:通过控制信息链路接收移动终端发送的已连接设备信息,已连接设备信息包括与移动终端建立通信连接的无线音频设备的信息;基于已连接设备信息显示至少一个数据类型对应的音频设备列表;基于第二选择信号确定至少一个数据类型对应的音频设备,得到预设对应关系,其中,第二选择信号包括以下至少一项或多项的组合:对应于第二无线音频设备的实体按键的第二操作信号、第二语音信号。
步骤802,通过与移动终端之间的控制信息链路,向移动终端发送预设对应关系。
移动终端用于在监测到目标事件后,基于预设对应关系确定目标事件对应的目标音频设备,目标事件包括通讯呼入事件和/或播放事件;
步骤803,接收移动终端在将无线音频设备确定为目标音频设备后发送的目标事件的音频数据。
步骤804,播放目标事件的音频数据。
本申请实施例提供的音频数据播放方法,在监测到通讯呼入事件或者播放事件后,根据用户预先设置的对应关系自动确定播放上述事件的音频数据的设备,以满足不同场景下的音频数据播放需求,用户想要保护隐私的情况下选择通过车载无线音频设备之外的设备(比如无线耳机、手机听筒等)播放通话数据,避免通话数据被其他人听到,有效保护用户隐私。此外,该种情况下,移动终端监测到通讯呼入事件或者播放事件后,无需用户进行选择,提升播放音频数据的便利性。
如图9所示,其示出了本申请一个示例性实施例提供的音频数据播放方法,该方法应用于图2或图3中的无线音频设备,该方法包括如下步骤。
步骤901,通过与移动终端之间的控制信息链路,接收移动终端发送的通知信息,通知信息用于通知监测到目标事件,目标事件包括通讯呼入事件和/或播放事件。
步骤902,在接收到确认播放指令后,通过控制信息链路,向移动终端发送播放请求。
播放请求用于请求播放目标事件的音频数据,移动终端用于基于播放请求,将无线音频设备确定为目标音频设备。
步骤903,接收移动终端在将无线音频设备确定为目标音频设备后发送的目标事件的音频数据。
步骤904,播放目标事件的音频数据。
本申请实施例提供的音频数据播放方法,在监测到通讯呼入事件或者播放事件后,将用户主动触发的播放指令所作用的无线音频设备,确定为播放音频数据的音频设备,此时用户可以选择距离自身最近的无线音频设备来播放音频设备,提升便利性。
如图10所示,本申请实施例还提供一种音频数据播放方法,该方法应用于图3所示的实施环境。该方法包括:
步骤1001,移动终端搜索到车载无线音频设备。
步骤1002,移动终端与车载无线音频设备建立通信连接。
步骤1003,移动终端向车载无线音频设备发送已连接设备信息。
步骤1004,车载无线音频设备显示不同数据类型对应的音频设备列表。
步骤1005,车载无线音频设备检测是否接收到选择信号。
若接收到选择信号,则执行步骤1006;若未接收到选择信号,则执行步骤1007。
步骤1006,车载蓝牙终端将基于选择信号确定的不同数据类型与不同音频设备之间的预设对应关系发送至移动终端。
步骤1007,车载无线音频设备检测用户是否正在使用通话音频或媒体音频。
若用户未使用通话音频以及媒体音频,则执行步骤1008;若用户使用通话音频,则执行步骤1009;若用户使用媒体音频,则执行步骤1010。
步骤1008,确定通话音频以及媒体音频对应的音频设备均为车载蓝牙终端。
步骤1009,确定通话音频对应的音频设备不为车载蓝牙终端,在用户选择后或者通话结束后将通话音频对应的音频设备不为车载蓝牙终端,确定媒体音频对应的音频设备为车载蓝牙终端。
步骤1010,确定通话音频以及媒体音频对应的音频设备均为车载蓝牙终端。
本申请实施例提供的音频数据播放方法,用户在车载蓝牙设备设置不同数据类型与不同音频设备之间的预设对应关系,后续移动终端在监测到通讯呼入事件或者播放事件后,根据用上述预设对应关系自动确定播放上述事件的音频数据的设备,以满足不同场景下的音频数据播放需求,用户想要保护隐私的情况下选择通过车载无线音频设备之外的设备(比如无线耳机、手机听筒等)播放通话数据,避免通话数据被其他人听到,有效保护用户隐私。此外,该种情况下,移动终端监测到通讯呼入事件或者播放事件后,无需用户进行选择,提升播放音频数据的便利性。
如图11所示,本申请实施例还提供一种音频数据播放装置,该装置包括:设备确定模块1101、数据获取模块1102、数据发送模块1103。
设备确定模块1101,用于在监测到目标事件的情况下,确定目标事件对应的目标音频设备,目标事件包括通讯呼入事件和/或播放事件,目标音频设备用于表征播放目标事件的音频数据的设备;目标音频设备在至少一个无线音频设备以及移动终端中确定。
数据获取模块1102,用于获取目标事件的音频数据。
数据发送模块1103,用于向目标音频设备发送目标事件的音频数据,目标音频设备用于播放目标事件的音频数据。
其中,预设规则包括:预设对应关系,和/或,请求播放事件;预设对应关系包括不同数据类型与不同音频设备之间的对应关系,请求播放事件是指监测到目标音频设备发送的播放请求的事件。
本申请实施例提供一种音频数据播放装置,在监测到通讯呼入事件或者播放事件后,根据预先设定的规则自动确定播放上述事件的音频数据的设备,以满足不同场景下的音频数据播放需求,例如上述预先设定的规则是用户按照自身需求进行设置的,用户想要保护隐私的情况下选择通过车载无线音频设备之外的设备(比如无线耳机、手机听筒等)播放通话数据,避免通话数据被其他人听到,有效保护用户隐私,再例如预先设定的规则是指通过用户主动触发的播放指令所作用的无线音频设备来播放音频数据,此时用户可以选择距离自身最近的无线音频设备来播放音频设备,提升便利性。
在一些实施例中,预设规则包括预设对应关系的情况下,设备确定模块1101,用于在预设对应关系中查找目标数据类型对应的目标音频设备,预设对应关系包括不同数据类型与不同音频设备之间的对应关系,目标数据类型用于表征目标事件的音频数据所属的数据类型。
在一些实施例中,装置还包括:关系获取模块(图11未示出)。
关系获取模块,用于通过与至少一个无线音频设备中的目标设备之间的控制信息链路,获取预设对应关系。
在一些实施例中,目标设备为具备显示屏幕的第一无线音频设备,关系获取模块,用于:通过控制信息链路向第一无线音频设备发送已连接设备信息,第一无线音频设备用于基于已连接设备信息显示至少一个数据类型对应的音频设备列表,基于第一选择信号确定至少一个数据类型对应的音频设备,得到预设对应关系;接收第一无线音频设备通过控制信息链路发送的预设对应关系;其中,已连接设备信息包括与移动终端建立通信连接的无线音频设备的信息,第一选择信号包括以下至少一项或多项的组合:对应于显示屏幕的第一触摸信号、对应于第一无线音频设备的实体按键的第一操作信号、第一语音信号。
在一些实施例中,目标设备为不具备显示屏幕的第二无线音频设备,关系获取模块,用于:通过控制信息链路向第二无线音频设备发送已连接设备信息,第二无线音频设备用于基于已连接设备信息播放至少一个数据类型对应的音频设备列表,基于第二选择信号确定至少一个数据类型对应的音频设备,得到预设对应关系;接收第二无线音频设备通过控制信息链路发送的预设对应关系;第二选择信号包括以下至少一项或多项的组合:对应于第二无线音频设备的实体按键的第二操作信号、第二语音信号。
在一些实施例中,控制信息链路是基于对象推送规范OPP协议建立的数据链路。
在一些实施例中,关系获取模块,用于:基于已连接设备信息显示至少一个数据类型对应的音频设备列表;基于第三选择信号确定至少一个数据类型对应的音频设备,得到预设对应关系。
在一些实施例中,预设规则包括请求播放事件的情况下,设备确定模块1101,用于:通过与至少一个无线音频设备之间的控制信息链路,向至少一个无线音频设备发送通知信息,通知信息用于通知监测到目标事件;通过与第三无线音频设备之间的控制信息链路,接收第三无线音频设备发送的播放请求,播放请求用于请求播放目标事件的音频数据;基于播放请求,将第三无线音频设备确定为目标音频设备。
在一些实施例中,装置还包括:切换模块。切换模块,用于:在目标音频设备不为无线耳机的情况下,通过与无线耳机之间的控制信息链路,接收无线耳机在监测到佩戴事件后发送的切换请求;基于切换请求向无线耳机发送目标事件的音频数据,无线耳机用于播放目标事件的音频数据。
在一些实施例中,向目标音频设备发送目标事件的音频数据,包括:在目标事件为通讯呼入事件的情况下,通过通话数据链路向目标音频设备发送通讯呼入事件的音频数据;在目标事件为播放事件的情况下,通过多媒体数据链路向目标音频设备发送播放事件的音频数据。
如图12所示,本申请实施例还提供一种音频数据播放装置,该装置包括:关系获取模块1201、关系发送模块1202、第一接收模块1203和第一播放模块1204。
关系获取模块1201,用于获取数据类型与音频设备之间的预设对应关系。
关系发送模块1202,用于通过与移动终端之间的控制信息链路,向移动终端发送预设对应关系,移动终端用于在监测到目标事件后,基于预设对应关系确定目标事件对应的目标音频设备,目标事件包括通讯呼入事件和/或播放事件。
第一接收模块1203,用于接收移动终端在将无线音频设备确定为目标音频设备后发送的目标事件的音频数据。
第一播放模块1204,用于播放目标事件的音频数据。
本申请实施例提供的音频数据播放装置,在监测到通讯呼入事件或者播放事件后,根据用户预先设置的对应关系自动确定播放上述事件的音频数据的设备,以满足不同场景下的音频数据播放需求,用户想要保护隐私的情况下选择通过车载无线音频设备之外的设备(比如无线耳机、手机听筒等)播放通话数据,避免通话数据被其他人听到,有效保护用户隐私。此外,该种情况下,移动终端监测到通讯呼入事件或者播放事件后,无需用户进行选择,提升播放音频数据的便利性。
在一些实施例中,无线音频设备为具备显示屏幕的第一无线音频设备,关系获取模块1201,用于:通过控制信息链路接收移动终端发送的已连接设备信息,已连接设备信息包括与移动终端建立通信连接的无线音频设备的信息;基于已连接设备信息显示至少一个数据类型对应的音频设备列表;基于第一选择信号确定至少一个数据类型对应的音频设备,得到预设对应关系,其中,第一选择信号包括以下至少一项或多项的组合:对应于显示屏幕的第一触摸信号、对应于第一无线音频设备的实体按键的第一操作信号、第一语音信号。
在一些实施例中,无线音频设备为不具备显示屏幕的第二无线音频设备,,关系获取模块1201,用于:通过控制信息链路接收移动终端发送的已连接设备信息,已连接设备信息包括与移动终端建立通信连接的无线音频设备的信息;
基于已连接设备信息显示至少一个数据类型对应的音频设备列表;基于第二选择信号确定至少一个数据类型对应的音频设备,得到预设对应关系,其中,第二选择信号包括以下至少一项或多项的组合:对应于第二无线音频设备的实体按键的第二操作信号、第二语音信号。
如图13所示,本申请实施例还提供一种音频数据播放装置,该装置包括:信息接收模块1301、请求发送模块1302、第二接收模块1303、第二播放模块1304。
信息接收模块1301,用于通过与移动终端之间的控制信息链路,接收移动终端发送的通知信息,通知信息用于通知监测到目标事件,目标事件包括通讯呼入事件和/或播放事件。
请求发送模块1302,用于在接收到确认播放指令后,通过控制信息链路,向移动终端发送播放请求,播放请求用于请求播放目标事件的音频数据,移动终端用于基于播放请求,将无线音频设备确定为目标音频设备。
第二接收模块1303,用于接收移动终端在将无线音频设备确定为目标音频设备后发送的目标事件的音频数据。
第二播放模块1304,用于播放目标事件的音频数据。
本申请实施例提供的音频数据播放方法,在监测到通讯呼入事件或者播放事件后,将用户主动触发的播放指令所作用的无线音频设备,确定为播放音频数据的音频设备,此时用户可以选择距离自身最近的无线音频设备来播放音频设备,提升便利性。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性,机械或其它形式的耦合。
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模 块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。
如图14所示,本申请实施例还提供一种电子设备1400,该电子设备1400可以是移动终端,也可以是无线音频设备。该电子设备1400包括处理器1410、存储器1420,其中,存储器1420存储有计算机程序指令。
处理器1410可以包括一个或者多个处理核。处理器1410利用各种接口和线路连接整个电池管理系统内的各种部分,通过运行或执行存储在存储器1420内的指令、程序、代码集或指令集,以及调用存储在存储器1420内的数据,执行电池管理系统的各种功能和处理数据。可选地,处理器1410可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器1410可集成中央处理器1410(Central Processing Unit,CPU)、图像处理器1410(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器1410中,单独通过一块通信芯片进行实现。
存储器1420可以包括随机存储器1420(Random Access Memory,RAM),也可以包括只读存储器1420(Read-Only Memory)。存储器1420可用于存储指令、程序、代码、代码集或指令集。存储器1420可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各种方法实施例的指令等。存储数据区还可以存储电子设备图在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。
如图15所示,本申请实施例还提供一种计算机可读存储介质1500,该计算机可读存储介质1500中存储有计算机程序指令1510,计算机程序指令1510可被处理器调用以执行上述实施例中所描述的方法。
计算机可读存储介质可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质包括非易失性计算机可读存储介质(non-transitory computer-readable storage medium)。计算机可读存储介质1500具有执行上述方法中的任何方法步骤的程序代码的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码可以例如以适当形式进行压缩。
以上,仅是本申请的较佳实施例而已,并非对本申请作任何形式上的限制,虽然本申请已以较佳实施例揭示如上,然而并非用以限定本申请,任何本领域技术人员,在不脱离本申请技术方案范围内,当可利用上述揭示的技术内容做出些许更动或修饰为等同变化的等效实施例,但凡是未脱离本申请技术方案内容,依据本申请的技术实质对以上实施例所作的任何简介修改、等同变化与修饰,均仍属于本申请技术方案的范围内。

Claims (20)

  1. 一种音频数据播放方法,其特征在于,所述方法应用于移动终端,所述移动终端与至少一个无线音频设备建立通信连接,所述方法包括:
    在监测到目标事件的情况下,基于预设规则确定目标事件对应的目标音频设备,所述目标事件包括通讯呼入事件和/或播放事件;所述目标音频设备用于表征播放所述目标事件的音频数据的设备;所述目标音频设备在至少一个所述无线音频设备以及所述移动终端中确定;
    获取所述目标事件的音频数据;
    向所述目标音频设备发送所述目标事件的音频数据,所述目标音频设备用于播放所述目标事件的音频数据;
    其中,所述预设规则包括:预设对应关系,和/或,请求播放事件;所述预设对应关系包括不同数据类型与不同音频设备之间的对应关系,所述请求播放事件是指监测到所述目标音频设备发送的播放请求的事件。
  2. 根据权利要求1所述的方法,其特征在于,所述预设规则包括所述预设对应关系的情况下,所述基于预设规则确定目标事件对应的目标音频设备,包括:
    获取数据类型与音频设备之间的预设对应关系;
    在所述预设对应关系中查找与目标数据类型对应的所述目标音频设备,所述目标数据类型用于表征目标事件的音频数据所属的数据类型。
  3. 根据权利要求2所述的方法,其特征在于,所述获取数据类型与音频设备之间的预设对应关系,
    包括:
    在与至少一个所述无线音频设备中的目标设备建立通信连接后,通过与所述目标设备之间的控制信息链路,获取所述预设对应关系。
  4. 根据权利要求3所述的方法,其特征在于,所述目标设备为具备显示屏幕的第一无线音频设备,所述通过与所述目标设备之间的控制信息链路,获取所述预设对应关系,包括:
    通过所述控制信息链路向所述第一无线音频设备发送已连接设备信息,所述第一无线音频设备用于基于所述已连接设备信息显示至少一个数据类型对应的音频设备列表,基于第一选择信号确定至少一个所述数据类型对应的音频设备,得到所述预设对应关系;
    接收所述第一无线音频设备通过所述控制信息链路发送的所述预设对应关系;
    其中,所述已连接设备信息包括与所述移动终端建立通信连接的所述无线音频设备的信息,所述第一选择信号包括以下至少一项或多项的组合:对应于所述显示屏幕的第一触摸信号、对应于所述第一无线音频设备的实体按键的第一操作信号、第一语音信号。
  5. 根据权利要求3所述的方法,其特征在于,所述目标设备为不具备显示屏幕的第二无线音频设备,所述通过与至少一个所述无线音频设备中的目标设备之间的控制信息链路,获取所述预设对应关系,包括:
    通过所述控制信息链路向所述第二无线音频设备发送已连接设备信息,所述第二无线音频设备用于基于所述已连接设备信息播放至少一个数据类型对应的音频设备列表,基于第二选择信号确定至少一个所述数据类型对应的音频设备,得到所述预设对应关系;
    接收所述第二无线音频设备通过所述控制信息链路发送的所述预设对应关系;
    所述第二选择信号包括以下至少一项或多项的组合:对应于所述第二无线音频设备的实体按键的第二操作信号、第二语音信号。
  6. 根据权利要求3至5任一项所述的方法,其特征在于,所述控制信息链路是基于对象推送规范OPP协议建立的数据链路。
  7. 根据权利要求2所述的方法,其特征在于,所述获取数据类型与音频设备之间的预设对应关系,包括:
    基于已连接设备信息显示至少一个数据类型对应的音频设备列表;
    基于第三选择信号确定至少一个所述数据类型对应的音频设备,得到所述预设对应关系。
  8. 根据权利要求1所述的方法,其特征在于,所述预设规则包括所述请求播放事件的情况下,所述基于预设规则确定目标事件对应的目标音频设备,包括:
    通过与至少一个所述无线音频设备之间的控制信息链路,向至少一个所述无线音频设备发送通知信息,所述通知信息用于通知监测到所述目标事件;
    通过与第三无线音频设备之间的控制信息链路,接收所述第三无线音频设备发送的播放请求,所述播放请求用于请求播放所述目标事件的音频数据,所述第三无线音频设备是接收到确认播放指令的音频播放设备;
    基于所述播放请求,将所述第三无线音频设备确定为所述目标音频设备。
  9. 根据权利要求1至8任一项所述的方法,其特征在于,至少一个所述无线音频设备包括无线耳机,所述向所述目标音频设备发送所述目标事件的音频数据之后,还包括:
    在所述目标音频设备不为所述无线耳机的情况下,通过与所述无线耳机之间的控制信息链路,接收所述无线耳机在监测到佩戴事件后发送的切换请求;
    基于所述切换请求向所述无线耳机发送所述目标事件的音频数据,所述无线耳机用于播放所述目标事件的音频数据。
  10. 根据权利要求1至9任一项所述的方法,其特征在于,所述向所述目标音频设备发送所述目标事件的音频数据,包括:
    在所述目标事件为通讯呼入事件的情况下,通过通话数据链路向所述目标音频设备发送所述通讯呼入事件的音频数据;
    在所述目标事件为播放事件的情况下,通过多媒体数据链路向所述目标音频设备发送所述播放事件的音频数据。
  11. 一种音频数据播放方法,其特征在于,所述方法应用于与移动终端建立通信连接的无线音频设备,所述方法包括:
    获取数据类型与音频设备之间的预设对应关系;
    通过与所述移动终端之间的控制信息链路,向所述移动终端发送所述预设对应关系,所述移动终端用于在监测到目标事件后,基于所述预设对应关系确定所述目标事件对应的目标音频设备,所述目标事件包括通讯呼入事件和/或播放事件;
    接收所述移动终端在将所述无线音频设备确定为所述目标音频设备后发送的所述目标事件的音频数据;
    播放所述目标事件的音频数据。
  12. 根据权利要求11所述的方法,其特征在于,所述无线音频设备为具备显示屏幕的第一无线音频设备,所述获取数据类型与音频设备之间的预设对应关系,包括:
    通过所述控制信息链路接收所述移动终端发送的已连接设备信息,所述已连接设备信息包括与所述移动终端建立通信连接的所述无线音频设备的信息;
    基于所述已连接设备信息显示至少一个所述数据类型对应的音频设备列表;
    基于第一选择信号确定至少一个所述数据类型对应的音频设备,得到所述预设对应关系,其中,所述第一选择信号包括以下至少一项或多项的组合:对应于所述显示屏幕的第一触摸信号、对应于所述第一无线音频设备的实体按键的第一操作信号、第一语音信号。
  13. 根据权利要求11所述的方法,其特征在于,所述无线音频设备为不具备显示屏幕的第二无线音频设备,所述获取数据类型与音频设备之间的预设对应关系,包括:
    通过所述控制信息链路接收所述移动终端发送的已连接设备信息,所述已连接设备信息包括与所述移动终端建立通信连接的所述无线音频设备的信息;
    基于所述已连接设备信息显示至少一个所述数据类型对应的音频设备列表;
    基于第二选择信号确定至少一个所述数据类型对应的音频设备,得到所述预设对应关系,其中,所述第二选择信号包括以下至少一项或多项的组合:对应于所述第二无线音频设备的实体按键的第二操作信号、第二语音信号。
  14. 一种音频数据播放方法,其特征在于,所述方法应用于与移动终端建立通信连接的无线音频设备,所述方法包括:
    通过与所述移动终端之间的控制信息链路,接收所述移动终端发送的通知信息,所述通知信息用于通知监测到目标事件,所述目标事件包括通讯呼入事件和/或播放事件;
    在接收到确认播放指令后,通过所述控制信息链路,向所述移动终端发送播放请求,所述播放请求用于请求播放所述目标事件的音频数据,所述移动终端用于基于所述播放请求,将所述无线音频设备确定为所述目标音频设备;
    接收所述移动终端在将所述无线音频设备确定为所述目标音频设备后发送的所述目标事件的音频数据;
    播放所述目标事件的音频数据。
  15. 一种音频数据播放装置,其特征在于,所述装置包括:
    设备确定模块,用于在监测到目标事件的情况下,确定目标事件对应的目标音频设备,所述目标事件包括通讯呼入事件和/或播放事件,所述目标音频设备用于表征播放所述目标事件的音频数据的设备;所述目标音频设备在至少一个所述无线音频设备以及所述移动终端中确定;数据获取模块,用于获取所述目标事件的音频数据;
    数据发送模块,用于向所述目标音频设备发送所述目标事件的音频数据,所述目标音频设备用于播放所述目标事件的音频数据;
    其中,所述预设规则包括:预设对应关系,和/或,请求播放事件;所述预设对应关系包括不同数据类型与不同音频设备之间的对应关系,所述请求播放事件是指监测到所述目标音频设备发送的播放请求的事件。
  16. 一种音频数据播放装置,其特征在于,所述装置包括:
    关系获取模块,用于获取数据类型与音频设备之间的预设对应关系;
    关系发送模块,用于通过与所述移动终端之间的控制信息链路,向所述移动终端发送所述预设对应关系,所述移动终端用于在监测到目标事件后,基于所述预设对应关系确定所述目标事件对应的目标音频设备,所述目标事件包括通讯呼入事件和/或播放事件;
    第一接收模块,用于接收所述移动终端在将所述无线音频设备确定为所述目标音频设备后发送的所述目标事件的音频数据;
    第一播放模块,用于播放所述目标事件的音频数据。
  17. 一种音频数据播放装置,其特征在于,所述装置包括:
    信息接收模块,用于通过与移动终端之间的控制信息链路,接收所述移动终端发送的通知信息,所述通知信息用于通知监测到目标事件,所述目标事件包括通讯呼入事件和/或播放事件;
    请求发送模块,用于在接收到确认播放指令后,通过所述控制信息链路,向所述移动终端发送播放请求,所述播放请求用于请求播放所述目标事件的音频数据,所述移动终端用于基于所述播放请求,将所述无线音频设备确定为所述目标音频设备;
    第二接收模块,用于接收所述移动终端在将所述无线音频设备确定为所述目标音频设备后发送的所述目标事件的音频数据;
    第二播放模块,用于播放所述目标事件的音频数据。
  18. 一种移动终端,其特征在于,所述移动终端包括处理器以及存储器,所述存储器存储有计算机程序指令,所述计算机程序指令被所述处理器调用执行如权利要求1-9任一项所述的方法。
  19. 一种无线音频设备,其特征在于,所述无线音频设备包括处理器以及存储器,所述存储器存储有计算机程序指令,所述计算机程序指令被所述处理器调用执行如权利要求10-13任一项所述的方法。
  20. 一种计算机可读取存储介质,其特征在于,所述计算机可读取存储介质中存储有程序代码,所述程序代码被处理器调用执行如权利要求1-13任一项所述的方法。
PCT/CN2022/111173 2021-09-16 2022-08-09 音频数据播放方法、装置、电子设备及存储介质 WO2023040517A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111088906.X 2021-09-16
CN202111088906.XA CN113784001B (zh) 2021-09-16 2021-09-16 音频数据播放方法、装置、电子设备及存储介质

Publications (1)

Publication Number Publication Date
WO2023040517A1 true WO2023040517A1 (zh) 2023-03-23

Family

ID=78851503

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/111173 WO2023040517A1 (zh) 2021-09-16 2022-08-09 音频数据播放方法、装置、电子设备及存储介质

Country Status (2)

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

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113784001B (zh) * 2021-09-16 2023-11-24 Oppo广东移动通信有限公司 音频数据播放方法、装置、电子设备及存储介质
CN114513571A (zh) * 2022-02-17 2022-05-17 北京小米移动软件有限公司 设备连接方法、装置、电子设备及可读储存介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104092658A (zh) * 2014-04-30 2014-10-08 腾讯科技(深圳)有限公司 音频数据播放方法及装置
CN108769431A (zh) * 2018-07-03 2018-11-06 Oppo(重庆)智能科技有限公司 音频播放控制方法、装置、存储介质及移动终端
CN108781236A (zh) * 2017-06-16 2018-11-09 华为技术有限公司 音频播放方法及电子设备
US20190339935A1 (en) * 2018-05-07 2019-11-07 Spotify Ab Command confirmation for a media playback device
CN110764730A (zh) * 2018-07-25 2020-02-07 杭州海康威视数字技术股份有限公司 播放音频数据的方法和装置
CN113296728A (zh) * 2021-05-24 2021-08-24 Oppo广东移动通信有限公司 音频播放方法、装置、电子设备及存储介质
CN113784001A (zh) * 2021-09-16 2021-12-10 Oppo广东移动通信有限公司 音频数据播放方法、装置、电子设备及存储介质

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107656719B (zh) * 2017-09-05 2020-12-11 百度在线网络技术(北京)有限公司 电子设备提示音的设置方法和电子设备
CN111638779A (zh) * 2020-04-27 2020-09-08 维沃移动通信有限公司 音频播放控制方法、装置、电子设备及可读存储介质

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104092658A (zh) * 2014-04-30 2014-10-08 腾讯科技(深圳)有限公司 音频数据播放方法及装置
CN108781236A (zh) * 2017-06-16 2018-11-09 华为技术有限公司 音频播放方法及电子设备
US20190339935A1 (en) * 2018-05-07 2019-11-07 Spotify Ab Command confirmation for a media playback device
CN108769431A (zh) * 2018-07-03 2018-11-06 Oppo(重庆)智能科技有限公司 音频播放控制方法、装置、存储介质及移动终端
CN110764730A (zh) * 2018-07-25 2020-02-07 杭州海康威视数字技术股份有限公司 播放音频数据的方法和装置
CN113296728A (zh) * 2021-05-24 2021-08-24 Oppo广东移动通信有限公司 音频播放方法、装置、电子设备及存储介质
CN113784001A (zh) * 2021-09-16 2021-12-10 Oppo广东移动通信有限公司 音频数据播放方法、装置、电子设备及存储介质

Also Published As

Publication number Publication date
CN113784001A (zh) 2021-12-10
CN113784001B (zh) 2023-11-24

Similar Documents

Publication Publication Date Title
US11805350B2 (en) Point-to-multipoint data transmission method and device
US11812485B2 (en) Bluetooth communication method and terminal
WO2023040517A1 (zh) 音频数据播放方法、装置、电子设备及存储介质
US7747338B2 (en) Audio system employing multiple mobile devices in concert
WO2019090726A1 (zh) 选择蓝牙设备的方法、终端和系统
CN105472778B (zh) 建立无线连接的方法及装置
CN105611055B (zh) 通话方法及装置
US9917943B2 (en) Automatic prompt at call-end
WO2008101407A1 (fr) Procédé et système d'entrée/sortie de flux de données audio
WO2021180083A1 (zh) 蓝牙通信系统和无线通信系统
US20070121606A1 (en) VOIP Hub Using Existing Audio or Video Systems
US10827455B1 (en) Method and apparatus for sending a notification to a short-range wireless communication audio output device
CN111447600A (zh) 无线耳机的音频共享方法、终端设备及存储介质
CN111432386A (zh) 蓝牙耳机的连接切换方法、装置、设备及存储介质
CN114786139A (zh) 连接建立方法、装置、设备、存储介质及程序产品
CN110248347B (zh) 通话异常检测方法、装置、设备及存储介质
WO2023045784A1 (zh) 通话控制方法、装置、电子设备及计算机可读存储介质
TW201725882A (zh) 行動裝置的廣播通訊方法及無線電雲端系統的通訊方法
CN113286281B (zh) 紧急呼叫方法和相关装置
CN114844736A (zh) 一种设备及通话控制方法
CN114844735A (zh) 一种显示设备及语音转发方法
CN114844983A (zh) 一种显示设备、通话设备及投屏控制方法
CN111164956B (zh) 事件通知
CN109618062B (zh) 语音交互方法、装置、设备以及计算机可读存储介质
CN106657533B (zh) 通话处理方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22868894

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE