WO2017032025A1 - 一种音乐播放控制方法及终端设备 - Google Patents

一种音乐播放控制方法及终端设备 Download PDF

Info

Publication number
WO2017032025A1
WO2017032025A1 PCT/CN2016/080567 CN2016080567W WO2017032025A1 WO 2017032025 A1 WO2017032025 A1 WO 2017032025A1 CN 2016080567 W CN2016080567 W CN 2016080567W WO 2017032025 A1 WO2017032025 A1 WO 2017032025A1
Authority
WO
WIPO (PCT)
Prior art keywords
pressure value
touch pressure
value set
voiceprint information
preset
Prior art date
Application number
PCT/CN2016/080567
Other languages
English (en)
French (fr)
Inventor
李建林
李家达
Original Assignee
广东欧珀移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广东欧珀移动通信有限公司 filed Critical 广东欧珀移动通信有限公司
Publication of WO2017032025A1 publication Critical patent/WO2017032025A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L17/00Speaker identification or verification

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a music playback control method and a terminal device.
  • the embodiment of the invention provides a music playing control method and a terminal device, which can quickly control music playing.
  • a first aspect of the embodiments of the present invention provides a music playback control method, including:
  • the preset area is a music play button area
  • the set of touch pressure values includes a first touch pressure value set, a second touch pressure value set, and a third touch pressure value set, wherein the first touch pressure value set, the second touch pressure value set, and the third touch pressure value set have no intersection with each other
  • the preset And searching for a music playback control instruction corresponding to the set of the touch pressure values in the correspondence between the pressure value set and the music play instruction including:
  • the preset area is a music switching button area
  • the touch pressure value set includes a fourth touch pressure value. Any one of a set and a fifth touch pressure value set, wherein the fourth touch pressure value set and the fifth touch pressure value set have no intersection with each other, the preset pressure value set and the music play instruction Searching for a music play control instruction corresponding to the set of touch pressure values in the corresponding relationship, including:
  • the method further includes:
  • the method further includes:
  • the first voiceprint information or the second voiceprint information is used as the preset voiceprint information.
  • the method further includes:
  • the voiceprint information When the voiceprint information does not match the preset voiceprint information, the voiceprint information is prompted to not match the preset voiceprint information.
  • the method further includes:
  • a second aspect of the embodiments of the present invention provides a terminal device, including:
  • a detecting unit configured to detect a touch pressure value of a preset area of the screen of the terminal device when the terminal device is in a locked state
  • An identification unit configured to identify a set of touch pressure values into which the touch pressure value falls
  • a searching unit configured to search for a music play control instruction corresponding to the touch pressure value set from a preset relationship between the preset pressure value set and the music play instruction; wherein different music play control commands corresponding to different touch pressure value sets are different ;
  • an execution unit configured to perform a corresponding control operation on the music being played by the terminal device according to the music play control instruction.
  • the preset area is a music play button area
  • the set of touch pressure values includes a first touch pressure value set, a second touch pressure value set, and a third touch pressure value set, wherein the first touch pressure value set, the second touch pressure value set, and the third touch pressure value set have no intersection with each other
  • the searching unit is pre- The manner of finding the music playback control instruction corresponding to the set of the touch pressure values in the correspondence between the set of pressure values and the music play command is specifically:
  • the searching unit searches for the first one from the preset relationship between the preset pressure value set and the music play instruction. Touching the start music playback instruction corresponding to the pressure value set; or,
  • the searching unit searches for the second from the preset relationship between the preset pressure value set and the music play instruction. Touching the pause music play instruction corresponding to the pressure value set; or,
  • the searching unit searches for the third from the corresponding relationship between the preset pressure value set and the music play instruction.
  • the exit music play instruction corresponding to the pressure value set is touched.
  • the preset area is a music switching button area
  • the touch pressure value set includes a fourth touch pressure value.
  • the searching unit searches for the fourth from the corresponding relationship between the preset pressure value set and the music play instruction. Touching the music switching instruction corresponding to the pressure value set; or,
  • the searching unit searches for the fifth from the corresponding relationship between the preset pressure value set and the music play instruction. Touch the music volume adjustment command corresponding to the pressure value set.
  • the terminal The equipment also includes:
  • a comparing unit configured to compare whether the voiceprint information matches the preset voiceprint information
  • the recognition unit is triggered to recognize the touch pressure value set in which the touch pressure value falls.
  • the terminal device further includes:
  • a sending unit configured to separately send a preset voiceprint information obtaining request to the specified relationship user in the social application that is running in the terminal device and the designated relationship user in the address book;
  • a receiving unit configured to receive first voiceprint information sent by the specified relationship user in the social application, and second voiceprint information sent by the specified relationship user in the address book;
  • a determining unit configured to determine whether the first voiceprint information and the second voiceprint information match
  • a determining unit configured to use the first voiceprint information or the second voiceprint information as the preset voiceprint information when the determining unit determines that the result is YES.
  • the terminal device further includes:
  • the first prompting unit is configured to prompt the voiceprint information to not match the preset voiceprint information when the voiceprint information does not match the preset voiceprint information.
  • the terminal device further includes:
  • the second prompting unit is configured to prompt that the first voiceprint information and the second voiceprint information do not match when the first voiceprint information does not match the second voiceprint information.
  • a third aspect of the embodiments of the present invention provides a terminal device, where the terminal device includes a memory, a processor, and a screen, where the memory is used to store an instruction;
  • the processor invoking an instruction stored in the memory performs the following operations:
  • the preset area is a music play button area
  • the set of touch pressure values includes a first touch pressure value set, a second touch pressure value set, and a third touch pressure value set, wherein the first touch pressure value set, the second touch pressure value set, and the third touch pressure value set have no intersection with each other
  • the processor is pre-processed
  • the corresponding relationship between the set of pressure values and the music play command is used to find a music play control instruction corresponding to the set of touch pressure values, specifically:
  • the preset area is a music switching button area
  • the touch pressure value set includes a fourth touch pressure value. Any one of the set and the fifth touch pressure value set, wherein the fourth touch pressure value set and the fifth touch pressure value set have no intersection with each other, and the processor sets the music from the preset pressure value Searching for a music play control instruction corresponding to the set of touch pressure values in a correspondence relationship of the play command, specifically:
  • the processing After detecting the touch pressure value of the preset area of the terminal device screen, the processor is further configured to:
  • the processor is further configured to:
  • the first voiceprint information or the second voiceprint information is used as the preset voiceprint information.
  • the processor is further configured to:
  • the voiceprint information When the voiceprint information does not match the preset voiceprint information, the voiceprint information is prompted to not match the preset voiceprint information.
  • the processor is further configured to:
  • a computer readable storage medium stores one or more computer programs, and the terminal device executes the music playback control method of the first aspect described above by running the one or more computer programs, and the repeated portions are not described again.
  • the terminal device when the terminal device is in the locked state, detecting the touch pressure value of the preset area of the screen of the terminal device; identifying the touch pressure value set that touches the pressure value; from the preset pressure value set and the music play instruction Searching for a music play control instruction corresponding to the set of touch pressure values in the corresponding relationship; wherein the music play control commands corresponding to different sets of touch pressure values are different; performing corresponding control operations on the music being played by the terminal device according to the music play control command .
  • the preset area of the screen of the terminal device can be pressed to quickly control the music playing and improve the user experience.
  • FIG. 1 is a flowchart of a music playback control method according to an embodiment of the present invention
  • FIG. 2 is a flowchart of another music playback control method according to an embodiment of the present invention.
  • FIG. 3 is a flowchart of another music playback control method according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of another terminal device according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of another terminal device according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic diagram of a multimedia play interface disclosed in an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of another multimedia play interface disclosed in an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of still another terminal device according to an embodiment of the present invention.
  • the embodiment of the invention provides a music playing control method and a terminal device, which can quickly control music playing. The details are described below separately.
  • the terminal device described in the embodiment of the present invention may include: a mobile phone, a tablet computer, or a walkman.
  • the terminal device is merely an example, and is not exhaustive, including but not limited to the above terminal device.
  • FIG. 1 is a flowchart of a music playback control method according to an embodiment of the present invention. As shown in FIG. 1, the music playback control method described in this embodiment includes the following steps:
  • the pressure value of the preset area of the screen of the terminal device can be detected by the pressure sensor in the screen of the terminal device, and the touch pressure value of the preset area of the screen of the terminal device can be detected in real time, and the preset area can be the terminal.
  • the arbitrary position of the device screen may be a circular area, a rectangular area, or other polygonal area, and the preset area may be any size, which is not limited in the embodiment of the present invention.
  • the touch pressure value may be the touch pressure value of the user's finger.
  • the pressure sensor in the screen of the terminal device can be used to identify the set of touch pressure values in which the pressure value falls, and the touch pressure value set can be a larger interval or a smaller interval, and can pass through the terminal device.
  • the system setting can also be set by the user.
  • the set of pressure values can be 0 to 0.1 N, 0.1 to 0.2 N, 0.2 to 0.3 N, 0.3 to 0.4 N, 0.4 to 0.5 N, and 0.5 to 0.6 N.
  • the correspondence between the pressure value set and the music play instruction may be preset and stored in the memory of the terminal device, and different music play control commands corresponding to the set of touch pressure values are different, for example, if the pressure value set is 0.1 ⁇ 0.3N, the corresponding music playback control command is to switch the song command. If the touch pressure value set is 0.3 ⁇ 0.5N, the corresponding music playback control command is to adjust the volume command, and if the touch pressure value set is 0.5 ⁇ 0.7N, corresponding The music playback control command is a music style adjustment command.
  • the preset area is a music play button area
  • the touch pressure value set includes any one of a first touch pressure value set, a second touch pressure value set, and a third touch pressure value set, where The first touch pressure value set, the second touch pressure value set and the third touch pressure value set have no intersection, and the music play control corresponding to the touch pressure value set is searched from the corresponding relationship between the preset pressure value set and the music play instruction. Instructions, including:
  • the start music play instruction corresponding to the first touch pressure value set is searched from the corresponding relationship between the preset pressure value set and the music play instruction;
  • the pause music play instruction corresponding to the second touch pressure value set is searched from the corresponding relationship between the preset pressure value set and the music play instruction;
  • the exit music play instruction corresponding to the third touch pressure value set is searched from the correspondence between the preset pressure value set and the music play instruction.
  • the playback interface when the terminal device is in the locked state, the playback interface can be displayed on the screen of the terminal device, but the playback interface cannot be operated, and the playback interface displays the music play button area, as shown in FIG.
  • the first touch pressure value set for example, 0.2 to 0.4N, including 0.2N, excluding 0.4N
  • the corresponding relationship between the preset pressure value set and the music play command is searched for and Activating a music play instruction corresponding to the first touch pressure value set
  • the second touch pressure value set eg, 0.4 to 0.6N, including 0.4N, excluding 0.6N
  • the music playback control command corresponding to the first touch pressure value set is a start music play instruction
  • the music play control command corresponding to the second touch pressure value set is a pause music play instruction
  • the third touch pressure value set corresponding to the music play control command is an exit
  • the music playing instruction, the starting music playing instruction may be to start the currently paused playing music, or to start the music player and play the music played by the music player last time; suspending the music playing instruction may pause the currently playing music, and exit the music.
  • the play command may stop playing the currently playing music, or stop playing the currently played music and exit the currently playing music player.
  • the preset area is a music switching button area
  • the touch pressure value set includes any one of a fourth touch pressure value set and a fifth touch pressure value set, wherein the fourth touch pressure value set and The fifth touch pressure value set has no intersection, and the music play control instruction corresponding to the touch pressure value set is searched from the correspondence between the preset pressure value set and the music play instruction, including:
  • the music switching instruction corresponding to the fourth touch pressure value set is searched from the corresponding relationship between the preset pressure value set and the music play instruction;
  • the music volume adjustment command corresponding to the fifth touch pressure value set is searched for from the correspondence between the preset pressure value set and the music play command.
  • the playback interface when the terminal device is in the locked state, the playback interface can be displayed on the screen of the terminal device, but the playback interface cannot be operated, and the music switching button area is displayed on the playback interface, as shown in FIG.
  • the music switching button area 1 and the music switching button area 2 may be included when the detected touch pressure value in the music switching button area falls within the fourth touch pressure value set (for example, 0.1 to 0.3 N, including 0.1 N, excluding 0.3 N) And searching for a music switching instruction corresponding to the fourth touch pressure value set from a correspondence between the preset pressure value set and the music play instruction, for example, as shown in FIG.
  • the fourth touch pressure value is searched from the correspondence between the preset pressure value set and the music play command.
  • the corresponding music up switching instruction is set (ie, switching to the previous music); when the detected touch pressure value in the music switching button area 2 falls into the fourth touch pressure
  • a music downward switching instruction corresponding to the fourth touch pressure value set is searched for from a correspondence between the preset pressure value set and the music play instruction ( That is to switch to the next music).
  • the fifth touch pressure value is searched from the correspondence between the preset pressure value set and the music play command.
  • the corresponding music volume adjustment command is collected. For example, as shown in FIG.
  • the music volume down command corresponding to the fifth touch pressure value set is searched from the corresponding relationship between the preset pressure value set and the music play command (ie, the current music play volume is turned down); when the music switch is detected
  • the touch pressure value in the button area 2 falls within the fifth touch pressure value set (for example, 0.3 to 0.5N, including 0.3N, excluding 0.5N)
  • the corresponding relationship between the preset pressure value set and the music play instruction is searched for.
  • the music volume up command corresponding to the fifth touch pressure value set ie, the current music play volume is turned up).
  • the music played by the terminal device is executed according to the music play control command.
  • Controlling operation for example, if the music playback control command is to switch the song command, switching the currently playing music; if the music playback control command is adjusting the volume command, adjusting the volume of the music playback; if the music playback control command is a music style adjustment instruction, Then adjust the style of the currently playing music.
  • the embodiment of the invention can quickly adjust the parameters of the music playing according to the touch pressure value in the preset area, and can quickly control the playing of the music when the terminal device is in the locked state, and can quickly control the playing of the music without modifying the terminal device, thereby improving the user.
  • the embodiment of the invention can quickly adjust the parameters of the music playing according to the touch pressure value in the preset area, and can quickly control the playing of the music when the terminal device is in the locked state, and can quickly control the playing of the music without modifying the terminal device, thereby improving the user.
  • the touch pressure value in the preset area can quickly control the playing of the music when the terminal device is in the locked state
  • the terminal device when the terminal device is in the locked state, detecting the touch pressure value of the preset area of the screen of the terminal device; identifying the touch pressure value set that touches the pressure value; from the preset pressure value set and the music play instruction Searching for a music play control instruction corresponding to the set of touch pressure values in the corresponding relationship; wherein the music play control commands corresponding to different sets of touch pressure values are different; performing corresponding control operations on the music being played by the terminal device according to the music play control command .
  • the preset area of the screen of the terminal device can be pressed to quickly control the music playing and improve the user experience.
  • FIG. 2 is a flowchart of another music playback control method according to an embodiment of the present invention. As shown in FIG. 2, the music playing control method described in this embodiment includes the following steps:
  • the input voiceprint information may be collected by a microphone in the terminal device, and the input voiceprint information may be voiceprint information input by the user.
  • the terminal device may output prompt information, the prompt information prompts the user to input the voiceprint information and open the microphone in the terminal device to receive the user input voiceprint information.
  • step S203 Compare whether the voiceprint information and the preset voiceprint information match; if yes, perform step S204, if not, the prompt voiceprint information does not match the preset voiceprint information, and the process ends.
  • the voiceprint information may specifically include a formant frequency and a formant in the sound wave spectrum of the voiceprint information acquired by the microphone.
  • the intensity, the number of the formants, and the like, the preset voiceprint information may be pre-stored voiceprint information of the user, or may be pre-acquired voiceprint information of the user. Comparing whether the voiceprint information and the preset voiceprint information match can compare whether the formant frequency in the sound wave spectrum of the voiceprint information matches the formant frequency in the sound wave spectrum of the preset voiceprint information, and compare the sound wave spectrum in the voiceprint information.
  • step S204 If the matching is matched, step S204 is performed. If the matching is not performed, the prompt voiceprint information does not match the preset voiceprint information, and the process ends.
  • the voiceprint information collected and input is matched with the preset voiceprint information, and the voiceprint information of the user is verified to prevent illegal operations of the strange user, thereby improving the security of the terminal device.
  • step S201 in the embodiment of the present invention reference may be made to the step S101 shown in FIG. 1 , and the steps S204 to S206 may be referred to the steps S102 to S104 in FIG. 1 .
  • the terminal device when the terminal device is in the locked state, detecting the touch pressure value of the preset area of the screen of the terminal device; collecting the input voiceprint information; comparing whether the voiceprint information matches the preset voiceprint information; if matched, Identifying a set of touch pressure values that touch the pressure value; and searching for a music play control instruction corresponding to the touch pressure value set from the correspondence between the preset pressure value set and the music play command; wherein, the different touch pressure value sets correspond to The music playback control command is different; the corresponding control operation is performed on the music being played by the terminal device according to the music playback control instruction.
  • the preset area of the screen of the terminal device can be pressed to quickly control the music playing and improve the user experience.
  • FIG. 3 is a flowchart of another music playback control method according to an embodiment of the present invention. As shown in FIG. 3, the music playing control method described in this embodiment includes the following steps:
  • the specified relationship user in the social application that is running in the terminal device and the designated relationship user in the address book respectively send a preset voiceprint information acquisition request
  • the social application may be WeChat, QQ, letter, easy letter, etc.
  • the designated relationship user can be the user who inputs the voiceprint information. For example, when user A uses the terminal device of user B, if user A needs to perform playback control on the music played by the terminal device of user B in the locked state, user A touches the preset of the screen of the terminal device of user B.
  • the terminal device of user B detects the touch pressure value of the preset area of the screen of the terminal device, outputs prompt information, prompts information to input voiceprint information, user A inputs voiceprint information, and the social device that the terminal device is running to the terminal device
  • the specified relationship user (user A) and the designated relationship user (user A) in the address book respectively send a preset voiceprint information acquisition request.
  • S304 Receive first voiceprint information sent by a specified relationship user in the social application and second voiceprint information sent by the specified relationship user in the address book.
  • the specified relationship user is assigned.
  • the first voiceprint information is input in the social application and the second voiceprint information is input in the address book, and the terminal device receives the first voiceprint information sent by the specified relationship in the social application and the specified relationship in the address book sent by the user.
  • Second voiceprint information is assigned.
  • a preset voiceprint information acquisition request in a running social application and an address book application such as a multimedia message
  • user A inputs the first voiceprint information in the running social application
  • the second voiceprint information is input in the address book application
  • the terminal device receives the first voiceprint information sent by the user A in the running social application and the second voiceprint information sent by the user A in the address book application (such as a multimedia message).
  • step S305 determining whether the first voiceprint information and the second voiceprint information match; if yes, executing step S306; if not, prompting that the first voiceprint information does not match the second voiceprint information, and ending the process.
  • the embodiment of the present invention when the first voiceprint information matches the second voiceprint information, it indicates that the specified relationship user in the social application and the designated relationship user in the address book are the same person; when the first voiceprint information and the second voice information When the voiceprint information does not match, it indicates that the specified relationship user in the social application and the specified relationship user in the address book are not the same person.
  • the embodiments of the present invention can be used to verify the identity of a specified relationship user through multiple channels (social application and address book), improve the security of the terminal device, and prevent the terminal device from being operated by an unfamiliar user.
  • the first voiceprint information or the second voiceprint information is used as preset voiceprint information.
  • the terminal device when the first voiceprint information matches the second voiceprint information, it indicates that the designated relationship user in the social application and the designated relationship user in the address book are the same person, and the terminal device will first voice information or
  • the second voiceprint information is used as the preset voiceprint information.
  • step S307 Compare whether the voiceprint information and the preset voiceprint information match; if yes, perform step S308, if not, the prompt voiceprint information does not match the preset voiceprint information, and the process ends.
  • the terminal device when the terminal device is in the locked state, detecting the touch pressure value of the preset area of the terminal device screen; collecting the input voiceprint information; and designating the relationship user and the address book in the social application that the terminal device is running.
  • the designated relationship user respectively sends a preset voiceprint information acquisition request; receives the first voiceprint information sent by the specified relationship user in the social application and the second voiceprint information sent by the specified relationship user in the address book; and determines the first sound Whether the pattern information matches the second voiceprint information; if yes, the first voiceprint information or the second voiceprint information is used as the preset voiceprint information; whether the voiceprint information matches the preset voiceprint information; if matched, the identification touches a set of touch pressure values falling in the pressure value; searching for a music play control instruction corresponding to the touch pressure value set from a correspondence between the preset pressure value set and the music play command; wherein the music touch corresponding to the different touch pressure value sets Different control commands; perform corresponding control operations on the music being played by the terminal
  • FIG. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
  • the terminal device described in this embodiment includes a detecting unit 401, an identifying unit 402, a searching unit 403, and an executing unit 404, where:
  • the detecting unit 401 is configured to detect a touch pressure value of the preset area of the screen of the terminal device when the terminal device is in the locked state.
  • the detecting unit 401 can detect the touch pressure value of the preset area of the screen of the terminal device through the pressure sensor in the screen of the terminal device, and can detect the touch pressure value of the preset area of the screen of the terminal device in real time, the preset area. It may be any position of the screen of the terminal device, and may be a circular area, a rectangular area or other polygonal area, and the preset area may be any size, which is not limited in the embodiment of the present invention.
  • the touch pressure value may be the touch pressure value of the user's finger.
  • the identification unit 402 is configured to identify a set of touch pressure values that touch the pressure value.
  • the identification unit 402 can identify the touch pressure value set by the pressure sensor in the screen of the terminal device, and the touch pressure value set may be a larger interval or a smaller interval.
  • the terminal device system setting can also be set by the user.
  • the touch pressure value set can be 0 to 0.1 N, 0.1 to 0.2 N, 0.2 to 0.3 N, 0.3 to 0.4 N, 0.4 to 0.5 N, and 0.5 to Any one of 0.6N, 0.6 to 0.7N, 0.7 to 0.8N, 0.8 to 0.9N, and 0.9 to 1.0 N may be 0 to 0.01 N, 0.01 to 0.02 N, 0.02 to 0.03 N, and 0.03 to 0.04 N.
  • any one of 0.06 to 0.07N, 0.07 to 0.08N, 0.08 to 0.09N, and 0.09 to 0.1N may be 0 to 1N, 1 to 2N, 2 to 3N, 3 to 4N, 4 to 5N, and 5 to 5 to Any one of 6N, 6 to 7N, 7 to 8N, 8 to 9N, and 9 to 10N, and the set of the contact pressure values can be arbitrarily set, which is not limited in the embodiment of the present invention.
  • the searching unit 403 is configured to search for a music play control instruction corresponding to the touch pressure value set from the preset relationship between the set of pressure values and the music play command; wherein the music play control commands corresponding to the different touch pressure value sets are different.
  • the correspondence between the pressure value set and the music play instruction may be preset and stored in the memory of the terminal device, and different music play control commands corresponding to different touch pressure value sets are different, and the search unit 403 receives the preset pressure.
  • the music playback control instruction corresponding to the touch pressure value set is searched for in the correspondence between the value set and the music play instruction. For example, if the touch pressure value set is 0.1-0.3N, the corresponding music play control command is a switch song command, and if the touch pressure value set is 0.3-0.5N, the corresponding music play control command is a volume command, if the pressure value is touched The set is 0.5 to 0.7N, and the corresponding music playback control command is a music style adjustment command.
  • the preset area is a music play button area
  • the touch pressure value set includes any one of a first touch pressure value set, a second touch pressure value set, and a third touch pressure value set, wherein the first touch pressure The value set, the second touch pressure value set and the third touch pressure value set have no intersection with each other
  • the searching unit 403 searches for the music play control instruction corresponding to the touch pressure value set from the preset relationship between the preset pressure value set and the music play instruction.
  • the specific way is:
  • the searching unit 403 searches for the start music playing instruction corresponding to the first touch pressure value set from the corresponding relationship between the preset pressure value set and the music play instruction. ;or,
  • the searching unit 403 searches for the pause music playing instruction corresponding to the second touch pressure value set from the corresponding relationship between the preset pressure value set and the music play instruction. ;or,
  • the searching unit 403 searches for the exit music play instruction corresponding to the third touch pressure value set from the corresponding relationship between the preset pressure value set and the music play instruction. .
  • the playback interface when the terminal device is in the locked state, the playback interface can be displayed on the screen of the terminal device, but the playback interface cannot be operated, and the play interface displays the music play button area.
  • the recognition unit 402 recognizes that the touch pressure value in the music play button area falls within the first touch pressure value set (for example, 0.2 to 0.4 N, including 0.2 N, excluding 0.4 N)
  • the search unit 403 And determining, by the preset pressure value set and the music play instruction, a start music play instruction corresponding to the first touch pressure value set; when the recognition unit 402 identifies that the touch pressure value in the music play button area falls within the second touch pressure value
  • the searching unit 403 searches for the paused music playing corresponding to the second touch pressure value set from the correspondence between the preset pressure value set and the music play instruction.
  • the search unit 403 receives the preset pressure.
  • the corresponding music playback instruction corresponding to the third touch pressure value set is searched for in the correspondence between the value set and the music play instruction.
  • the music playback control command corresponding to the first touch pressure value set is a start music play instruction
  • the music play control command corresponding to the second touch pressure value set is a pause music play instruction
  • the third touch pressure value set corresponding to the music play control command is an exit
  • the music playing instruction, the starting music playing instruction may be to start the currently paused playing music, or to start the music player and play the music played by the music player last time; suspending the music playing instruction may pause the currently playing music, and exit the music.
  • the play command may stop playing the currently playing music, or stop playing the currently played music and exit the currently playing music player.
  • the preset area is a music switching button area
  • the touch pressure value set includes any one of a fourth touch pressure value set and a fifth touch pressure value set, wherein the fourth touch pressure value set and the fifth touch pressure level
  • the value set has no intersection with each other, and the manner in which the search unit searches for the music playback control instruction corresponding to the touch pressure value set from the corresponding relationship between the preset pressure value set and the music play instruction is specifically:
  • the search unit searches for a music switching instruction corresponding to the fourth touch pressure value set from the correspondence between the preset pressure value set and the music play instruction; or ,
  • the search unit searches for a music volume adjustment instruction corresponding to the fifth touch pressure value set from the correspondence between the preset pressure value set and the music play instruction.
  • the playback interface when the terminal device is in the locked state, the playback interface can be displayed on the screen of the terminal device, but the playback interface cannot be operated, and the music switching button area is displayed on the playback interface.
  • the music switching button area may include a music switching button area 1 and a music switching button area 2, and when the recognition unit 402 recognizes that the touch pressure value in the music switching button area falls within the fourth touch pressure value set (for example, 0.1 to When 0.3N, including 0.1N, excluding 0.3N), the searching unit 403 searches for a music switching instruction corresponding to the fourth touch pressure value set from the correspondence between the preset pressure value set and the music playing instruction, for example, As shown in FIG.
  • the search unit 403 Searching for a music up-switching instruction corresponding to the fourth touch pressure value set (ie, switching to the previous music) from a preset relationship between the preset pressure value set and the music play command; when the recognition unit 402 identifies the music switching button area 2
  • the searching unit 403 sets the preset pressure value from the music playback command.
  • the search unit 403 sets the preset pressure value from the preset pressure value set. Searching for a music volume adjustment instruction corresponding to the fifth touch pressure value set in the correspondence relationship with the music play instruction, for example, as shown in FIG.
  • the searching unit 403 searches for the fifth touch pressure value set from the correspondence between the preset pressure value set and the music play instruction.
  • Corresponding music volume down command ie, lowering the current music play volume
  • the recognition unit 402 recognizes that the touch pressure value in the music switch button area 2 falls within the fifth touch pressure value set (eg, 0.3 to 0.5N, including 0.3N)
  • the searching unit 403 searches for a music volume up command corresponding to the fifth touch pressure value set from the correspondence between the preset pressure value set and the music play command (ie, increases the height) Before the music playback volume).
  • the executing unit 404 is configured to perform a corresponding control operation on the music that the terminal device is playing according to the music playing control instruction.
  • the execution unit 404 is working on the terminal device according to the music play control command.
  • the played music performs a corresponding control operation, for example, if the music play control command is a switch song command, the currently played music is switched; if the music is broadcasted
  • the control command is to adjust the volume command to adjust the volume of the music playing; if the music playback control command is the music style adjustment command, the style of the currently playing music is adjusted.
  • the embodiment of the invention can quickly adjust the parameters of the music playing according to the touch pressure value in the preset area, and can quickly control the playing of the music when the terminal device is in the locked state, and can quickly control the playing of the music without modifying the terminal device, thereby improving the user.
  • the embodiment of the invention can quickly adjust the parameters of the music playing according to the touch pressure value in the preset area, and can quickly control the playing of the music when the terminal device is in the locked state, and can quickly control the playing of the music without modifying the terminal device, thereby improving the user.
  • the touch pressure value in the preset area can quickly control the playing of the music when the terminal device is in the locked state
  • the detecting unit 401 detects the touch pressure value of the preset area of the terminal device screen; the identifying unit 402 identifies the touch pressure value set in which the touch pressure value falls; the searching unit 403 And setting a music play control instruction corresponding to the touch pressure value set in the correspondence between the pressure value set and the music play command; wherein the music play control command corresponding to the different touch pressure value set is different; the execution unit 404 is configured according to the music play control command A corresponding control operation is performed on the music that the terminal device is playing.
  • the preset area of the screen of the terminal device can be pressed to quickly control the music playing and improve the user experience.
  • FIG. 5 is a schematic structural diagram of another terminal device according to an embodiment of the present invention.
  • the terminal device described in this embodiment includes an acquisition unit 405 and a comparison unit 406 in addition to the detection unit 401, the identification unit 402, the search unit 403, and the execution unit 404 shown in FIG. ,among them:
  • the collecting unit 405 is configured to collect the input voiceprint information.
  • the collecting unit 405 can collect the input voiceprint information through the microphone in the terminal device, and the input voiceprint information can be the voiceprint information input by the user.
  • the terminal device may output prompt information, the prompt information prompts the user to input the voiceprint information and open the microphone in the terminal device to receive the user input voiceprint information.
  • the comparing unit 406 is configured to compare whether the voiceprint information matches the preset voiceprint information.
  • the trigger recognition unit 402 identifies the touch pressure value set in which the pressure value falls.
  • the comparing unit 406 compares the voiceprint information with the preset voiceprint information, and the voiceprint information may specifically include the sound spectrum of the voiceprint information acquired by the microphone.
  • the formant frequency, the intensity of the formant, the number of formants, etc., the preset voiceprint information may be pre-stored user's voiceprint information, or may be a pre-acquired user's voiceprint letter. interest. Comparing whether the voiceprint information and the preset voiceprint information match can compare whether the formant frequency in the sound wave spectrum of the voiceprint information matches the formant frequency in the sound wave spectrum of the preset voiceprint information, and compare the sound wave spectrum in the voiceprint information.
  • the trigger recognition unit 402 identifies the set of touch pressure values that the touch pressure value falls into.
  • the voiceprint information collected and input is matched with the preset voiceprint information, and the voiceprint information of the user is verified to prevent illegal operations of the strange user, thereby improving the security of the terminal device.
  • the detecting unit 401 detects the touch pressure value of the preset area of the screen of the terminal device; the collecting unit 405 collects the input voiceprint information; and the comparing unit 406 compares the voiceprint information with the preset. Whether the voiceprint information matches; if matched, the identification unit 402 identifies the touch pressure value set that touches the pressure value; the search unit 403 searches for the corresponding pressure value set from the corresponding relationship between the preset pressure value set and the music play command.
  • the music playing control command wherein the different music playing control commands corresponding to the different touch pressure value sets are different; the executing unit 404 performs a corresponding control operation on the music being played by the terminal device according to the music playing control command.
  • the preset area of the screen of the terminal device can be pressed to quickly control the music playing and improve the user experience.
  • FIG. 6 is a schematic structural diagram of another terminal device according to an embodiment of the present invention.
  • the terminal device described in this embodiment includes, in addition to the detecting unit 401, the identifying unit 402, the searching unit 403, the executing unit 404, the collecting unit 405, and the comparing unit 406 shown in FIG.
  • a transmitting unit 407, a receiving unit 408, a determining unit 409, and a determining unit 410 are included, wherein:
  • the sending unit 407 is configured to separately send a preset voiceprint information acquisition request to the specified relationship user in the social application that is running by the terminal device and the designated relationship user in the address book.
  • the sending unit 407 sends a preset voiceprint information obtaining request to the designated relationship user in the social application that is running in the terminal device and the specified relationship user in the address book.
  • the social application can be WeChat, QQ, Trusted, Easy Letter, etc.
  • the designated user can be the user who inputs the voiceprint information. For example, when user A uses the terminal device of user B, if user A needs to perform playback control on the music played by the terminal device of user B in the locked state, user A touches the preset of the screen of the terminal device of user B.
  • the device detects the touch pressure value of the preset area of the screen of the terminal device, outputs the prompt information, the prompt information prompts the input of the voiceprint information, the user A inputs the voiceprint information, and the sending unit 407 sends the specified relationship user to the social application that the terminal device is running.
  • (User A) and the specified relationship user (User A) in the address book respectively transmit a preset voiceprint information acquisition request.
  • the receiving unit 408 is configured to receive the first voiceprint information sent by the specified relationship user in the social application and the second voiceprint information sent by the specified relationship user in the address book.
  • the sending unit 407 sends the preset voiceprint information obtaining request to the specified relationship user in the social application that is running in the terminal device and the specified relationship user in the address book respectively, and the designated relationship user inputs in the social application respectively.
  • the first voiceprint information and the second voiceprint information are input in the address book, and the receiving unit 408 receives the first voiceprint information sent by the specified relationship user in the social application and the second voiceprint information sent by the specified relationship in the address book. .
  • the receiving unit 408 receives the first voiceprint information sent by the user A in the running social application and the second voiceprint information sent by the user A in the address book application (such as a multimedia message).
  • the determining unit 409 is configured to determine whether the first voiceprint information and the second voiceprint information match.
  • the determining unit 409 determines that the first voiceprint information matches the second voiceprint information, it indicates that the designated relationship user in the social application and the designated relationship user in the address book are the same person; the determining unit 409 determines the first When the voiceprint information does not match the second voiceprint information, it indicates that the specified relationship user in the social application and the designated relationship user in the address book are not the same person.
  • the embodiments of the present invention can be used to verify the identity of a specified relationship user through multiple channels (social application and address book), improve the security of the terminal device, and prevent the terminal device from being operated by an unfamiliar user.
  • the determining unit 410 is configured to use the first voiceprint information or the second voiceprint information as the preset voiceprint information when the determining unit 409 determines that the result is YES.
  • the determining unit 409 determines that the first voiceprint information matches the second voiceprint information, it indicates that the designated relationship user in the social application and the designated relationship user in the address book are the same person, and the determining unit 410
  • One tone information or second voiceprint information is used as the preset voiceprint information.
  • the detecting unit 401 detects the touch pressure value of the preset area of the terminal device screen; the collecting unit 405 collects the input voiceprint information; and the sending unit 407 sends the social device to the terminal device.
  • the specified relationship user in the application and the specified relationship user in the address book respectively send a preset voiceprint information acquisition request; the receiving unit 408 receives the first voiceprint information sent by the specified relationship user in the social application and the specified relationship user in the address book.
  • the second voiceprint information is sent; the determining unit 409 determines whether the first voiceprint information and the second voiceprint information match; if yes, the determining unit 410 uses the first voiceprint information or the second voiceprint information as the preset voiceprint information; The comparing unit 406 compares whether the voiceprint information matches the preset voiceprint information; if it matches, the identifying unit 402 identifies the touch pressure value set that touches the pressure value; the searching unit 403 corresponds to the music play command from the preset pressure value set. Searching for a music play control instruction corresponding to the set of touch pressure values in the relationship; wherein different touch pressure value sets are Different music player should control instruction; execution unit 404 performs the corresponding music according to the music playback control command to the terminal device is playing control operation. When the terminal device is in the locked state, the preset area of the screen of the terminal device can be pressed to quickly control the music playing and improve the user experience.
  • FIG. 9 is a schematic structural diagram of still another terminal device according to an embodiment of the present invention.
  • the terminal device includes a memory 901 and a processor 902.
  • the number of processors 902 may be one or more.
  • a processor is taken as an example
  • a screen 903, also called a display screen is an input device of the terminal device.
  • the memory 901, the processor 902 and the screen 903 can pass A bus or other connection is used, wherein the connection through the bus is taken as an example in FIG.
  • the memory 901 is used to store instructions, and the processor 902 calls the instructions stored in the memory 901 to perform the following operations:
  • Corresponding control operations are performed on the music being played by the terminal device according to the music playback control command.
  • the preset area is a music play button area
  • the touch pressure value set includes any one of a first touch pressure value set, a second touch pressure value set, and a third touch pressure value set, wherein The first touch pressure value set, the second touch pressure value set and the third touch pressure value set have no intersection
  • the processor 902 searches for music corresponding to the touch pressure value set from the preset relationship between the preset pressure value set and the music play instruction.
  • the playback control command is specifically:
  • the start music play instruction corresponding to the first touch pressure value set is searched from the corresponding relationship between the preset pressure value set and the music play instruction;
  • the pause music play instruction corresponding to the second touch pressure value set is searched from the corresponding relationship between the preset pressure value set and the music play instruction;
  • the exit music play instruction corresponding to the third touch pressure value set is searched from the correspondence between the preset pressure value set and the music play instruction.
  • the preset area is a music switching button area
  • the touch pressure value set includes any one of a fourth touch pressure value set and a fifth touch pressure value set, wherein the fourth touch pressure value set and the fifth touch pressure level The value set does not intersect with each other
  • the processor 902 searches for a music playback control instruction corresponding to the touch pressure value set from the preset relationship between the preset pressure value set and the music play instruction, specifically:
  • the music switching instruction corresponding to the fourth touch pressure value set is searched from the corresponding relationship between the preset pressure value set and the music play instruction;
  • the music volume adjustment command corresponding to the fifth touch pressure value set is searched for from the correspondence between the preset pressure value set and the music play command.
  • the processor 902 is further configured to:
  • the comparison between the voiceprint information and the preset voiceprint information if matched, performs the step of identifying the touch pressure value set in which the pressure value falls.
  • the processor 902 is further configured to:
  • the first voiceprint information or the second voiceprint information is used as the preset voiceprint information.
  • processor 902 is further configured to:
  • the prompt voiceprint information does not match the preset voiceprint information.
  • processor 902 is further configured to:
  • the first voiceprint information does not match the second voiceprint information
  • the first voiceprint information and the second voiceprint information are not matched.
  • the user can quickly control the music playing by pressing the preset area of the terminal device screen 903 when the terminal device is in the locked state, thereby improving the user experience.
  • the program may be stored in a computer readable storage medium, and the storage medium may include: Flash disk, Read-Only Memory (ROM), Random Access Memory (RAM), disk or optical disk.

Abstract

本发明实施例公开了一种音乐播放控制方法及终端设备,该方法包括:在终端设备处于锁定状态时,检测终端设备屏幕的预设区域的触及压力值;识别触及压力值落入的触及压力值集合;从预设的压力值集合与音乐播放指令的对应关系中查找与触及压力值集合对应的音乐播放控制指令;其中,不同的触及压力值集合对应的音乐播放控制指令不同;根据音乐播放控制指令对终端设备正在播放的音乐执行对应的控制操作。实施本发明实施例,可以快速控制音乐播放。

Description

一种音乐播放控制方法及终端设备
本发明要求2015年08月27日递交的发明名称为“一种音乐播放控制方法及终端设备”的申请号201510537175.0的在先申请优先权,上述在先申请的内容以引入的方式并入本文本中。
技术领域
本发明涉及通信技术领域,具体涉及一种音乐播放控制方法及终端设备。
背景技术
随着手机、平板电脑等终端设备的逐渐普及,在终端设备上播放音乐已经成为人们重要的娱乐功能,越来越多的人选择在终端设备上播放音乐。用户在终端设备上播放音乐时,若一段时间内未对终端设备进行操作,终端设备则进入锁定状态,此时,若用户需要控制音乐的播放(如切换当前播放歌曲,切换播放模式),则需要对终端设备进行解锁后进入音乐播放界面才能控制音乐的播放,在终端设备处于锁定状态时,控制音乐播放比较费时。
发明内容
本发明实施例提供一种音乐播放控制方法及终端设备,可以快速控制音乐播放。
本发明实施例第一方面,提供了一种音乐播放控制方法,包括:
在终端设备处于锁定状态时,检测终端设备屏幕的预设区域的触及压力值;
识别所述触及压力值落入的触及压力值集合;
从预设的压力值集合与音乐播放指令的对应关系中查找与所述触及压力值集合对应的音乐播放控制指令;其中,不同的触及压力值集合对应的音乐播放控制指令不同;
根据所述音乐播放控制指令对所述终端设备正在播放的音乐执行对应的 控制操作。
在本发明实施例第一方面的第一种可能的实现方式中,所述预设区域为音乐播放按钮区域,所述触及压力值集合包括第一触及压力值集合、第二触及压力值集合和第三触及压力值集合中的任一种,其中,所述第一触及压力值集合、所述第二触及压力值集合和所述第三触及压力值集合互无交集,所述从预设的压力值集合与音乐播放指令的对应关系中查找与所述触及压力值集合对应的音乐播放控制指令,包括:
当所述触及压力值落入所述第一触及压力值集合时,从所述预设的压力值集合与音乐播放指令的对应关系中查找与所述第一触及压力值集合对应的启动音乐播放指令;或者,
当所述触及压力值落入所述第二触及压力值集合时,从所述预设的压力值集合与音乐播放指令的对应关系中查找与所述第二触及压力值集合对应的暂停音乐播放指令;或者,
当所述触及压力值落入所述第三触及压力值集合时,从所述预设的压力值集合与音乐播放指令的对应关系中查找与所述第三触及压力值集合对应的退出音乐播放指令。
结合本发明实施例第一方面,在本发明实施例第一方面的第二种可能的实现方式中,所述预设区域为音乐切换按钮区域,所述触及压力值集合包括第四触及压力值集合和第五触及压力值集合中的任一种,其中,所述第四触及压力值集合和所述第五触及压力值集合互无交集,所述从预设的压力值集合与音乐播放指令的对应关系中查找与所述触及压力值集合对应的音乐播放控制指令,包括:
当所述触及压力值落入所述第四触及压力值集合时,从所述预设的压力值集合与音乐播放指令的对应关系中查找与所述第四触及压力值集合对应的音乐切换指令;或者,
当所述触及压力值落入所述第五触及压力值集合时,从所述预设的压力值集合与音乐播放指令的对应关系中查找与所述第五触及压力值集合对应的音乐音量调节指令。
结合本发明实施例第一方面或本发明实施例第一方面的第一种或第二种 可能的实现方式,在本发明实施例第一方面的第三种可能的实现方式中,在检测终端设备屏幕的预设区域的触及压力值之后,所述方法还包括:
采集输入的声纹信息;
比较所述声纹信息与预设声纹信息是否匹配,若匹配,执行所述识别所述触及压力值落入的触及压力值集合的步骤。
结合本发明实施例第一方面的第三种可能的实现方式,在本发明实施例第一方面的第四种可能的实现方式中,在采集输入的声纹信息之后,以及在比较所述声纹信息与预设声纹信息是否匹配之前,所述方法还包括:
向所述终端设备正在运行的社交应用中的指定关系用户和通信录中的所述指定关系用户分别发送预设声纹信息获取请求;
接收所述社交应用中的所述指定关系用户发送的第一声纹信息和所述通信录中的所述指定关系用户发送的第二声纹信息;
判断所述第一声纹信息与所述第二声纹信息是否匹配;
若是,将所述第一声纹信息或所述第二声纹信息作为所述预设声纹信息。
结合本发明实施例第一方面的第三种可能的实现方式,在本发明实施例第一方面的第五种可能的实现方式中,所述方法还包括:
当所述声纹信息与所述预设声纹信息不匹配时,提示所述声纹信息与所述预设声纹信息不匹配。
结合本发明实施例第一方面的第四种可能的实现方式,在本发明实施例第一方面的第六种可能的实现方式中,所述方法还包括:
当所述第一声纹信息与所述第二声纹信息不匹配时,提示所述第一声纹信息与所述第二声纹信息不匹配。
本发明实施例第二方面,提供了一种终端设备,包括:
检测单元,用于在终端设备处于锁定状态时,检测终端设备屏幕的预设区域的触及压力值;
识别单元,用于识别所述触及压力值落入的触及压力值集合;
查找单元,用于从预设的压力值集合与音乐播放指令的对应关系中查找与所述触及压力值集合对应的音乐播放控制指令;其中,不同的触及压力值集合对应的音乐播放控制指令不同;
执行单元,用于根据所述音乐播放控制指令对所述终端设备正在播放的音乐执行对应的控制操作。
在本发明实施例第二方面的第一种可能的实现方式中,所述预设区域为音乐播放按钮区域,所述触及压力值集合包括第一触及压力值集合、第二触及压力值集合和第三触及压力值集合中的任一种,其中,所述第一触及压力值集合、所述第二触及压力值集合和所述第三触及压力值集合互无交集,所述查找单元从预设的压力值集合与音乐播放指令的对应关系中查找与所述触及压力值集合对应的音乐播放控制指令的方式具体为:
当所述识别单元识别所述触及压力值落入所述第一触及压力值集合时,所述查找单元从所述预设的压力值集合与音乐播放指令的对应关系中查找与所述第一触及压力值集合对应的启动音乐播放指令;或者,
当所述识别单元识别所述触及压力值落入所述第二触及压力值集合时,所述查找单元从所述预设的压力值集合与音乐播放指令的对应关系中查找与所述第二触及压力值集合对应的暂停音乐播放指令;或者,
当所述识别单元识别所述触及压力值落入所述第三触及压力值集合时,所述查找单元从所述预设的压力值集合与音乐播放指令的对应关系中查找与所述第三触及压力值集合对应的退出音乐播放指令。
结合本发明实施例第二方面,在本发明实施例第二方面的第二种可能的实现方式中,所述预设区域为音乐切换按钮区域,所述触及压力值集合包括第四触及压力值集合和第五触及压力值集合中的任一种,其中,所述第四触及压力值集合和所述第五触及压力值集合互无交集,所述查找单元从预设的压力值集合与音乐播放指令的对应关系中查找与所述触及压力值集合对应的音乐播放控制指令的方式具体为:
当所述识别单元识别所述触及压力值落入所述第四触及压力值集合时,所述查找单元从所述预设的压力值集合与音乐播放指令的对应关系中查找与所述第四触及压力值集合对应的音乐切换指令;或者,
当所述识别单元识别所述触及压力值落入所述第五触及压力值集合时,所述查找单元从所述预设的压力值集合与音乐播放指令的对应关系中查找与所述第五触及压力值集合对应的音乐音量调节指令。
结合本发明实施例第二方面或本发明实施例第二方面的第一种或第二种可能的实现方式,在本发明实施例第二方面的第三种可能的实现方式中,所述终端设备还包括:
采集单元,用于采集输入的声纹信息;
比较单元,用于比较所述声纹信息与预设声纹信息是否匹配;
其中,当所述比较单元比较所述声纹信息与所述预设声纹信息匹配时,触发所述识别单元识别所述触及压力值落入的触及压力值集合。
结合本发明实施例第二方面的第三种可能的实现方式,在本发明实施例第二方面的第四种可能的实现方式中,所述终端设备还包括:
发送单元,用于向所述终端设备正在运行的社交应用中的指定关系用户和通信录中的所述指定关系用户分别发送预设声纹信息获取请求;
接收单元,用于接收所述社交应用中的所述指定关系用户发送的第一声纹信息和所述通信录中的所述指定关系用户发送的第二声纹信息;
判断单元,用于判断所述第一声纹信息与所述第二声纹信息是否匹配;
确定单元,用于当所述判断单元判断结果为是时,将所述第一声纹信息或所述第二声纹信息作为所述预设声纹信息。
结合本发明实施例第二方面的第三种可能的实现方式,在本发明实施例第二方面的第五种可能的实现方式中,所述终端设备还包括:
第一提示单元,用于当所述声纹信息与所述预设声纹信息不匹配时,提示所述声纹信息与所述预设声纹信息不匹配。
结合本发明实施例第二方面的第四种可能的实现方式,在本发明实施例第二方面的第六种可能的实现方式中,所述终端设备还包括:
第二提示单元,用于当所述第一声纹信息与所述第二声纹信息不匹配时,提示所述第一声纹信息与所述第二声纹信息不匹配。
本发明实施例第三方面,提供了一种终端设备,所述终端设备包括存储器、处理器和屏幕,所述存储器用于存储指令;
所述处理器调用存储在所述存储器中的指令执行如下操作:
在终端设备处于锁定状态时,检测终端设备所述屏幕的预设区域的触及压力值;
识别所述触及压力值落入的触及压力值集合;
从预设的压力值集合与音乐播放指令的对应关系中查找与所述触及压力值集合对应的音乐播放控制指令;其中,不同的触及压力值集合对应的音乐播放控制指令不同;
根据所述音乐播放控制指令对所述终端设备正在播放的音乐执行对应的控制操作。
在本发明实施例第三方面的第一种可能的实现方式中,所述预设区域为音乐播放按钮区域,所述触及压力值集合包括第一触及压力值集合、第二触及压力值集合和第三触及压力值集合中的任一种,其中,所述第一触及压力值集合、所述第二触及压力值集合和所述第三触及压力值集合互无交集,所述处理器从预设的压力值集合与音乐播放指令的对应关系中查找与所述触及压力值集合对应的音乐播放控制指令,具体为:
当所述触及压力值落入所述第一触及压力值集合时,从所述预设的压力值集合与音乐播放指令的对应关系中查找与所述第一触及压力值集合对应的启动音乐播放指令;或者,
当所述触及压力值落入所述第二触及压力值集合时,从所述预设的压力值集合与音乐播放指令的对应关系中查找与所述第二触及压力值集合对应的暂停音乐播放指令;或者,
当所述触及压力值落入所述第三触及压力值集合时,从所述预设的压力值集合与音乐播放指令的对应关系中查找与所述第三触及压力值集合对应的退出音乐播放指令。
结合本发明实施例第三方面,在本发明实施例第三方面的第二种可能的实现方式中,所述预设区域为音乐切换按钮区域,所述触及压力值集合包括第四触及压力值集合和第五触及压力值集合中的任一种,其中,所述第四触及压力值集合和所述第五触及压力值集合互无交集,所述处理器从预设的压力值集合与音乐播放指令的对应关系中查找与所述触及压力值集合对应的音乐播放控制指令,具体为:
当所述触及压力值落入所述第四触及压力值集合时,从所述预设的压力值集合与音乐播放指令的对应关系中查找与所述第四触及压力值集合对应的音 乐切换指令;或者,
当所述触及压力值落入所述第五触及压力值集合时,从所述预设的压力值集合与音乐播放指令的对应关系中查找与所述第五触及压力值集合对应的音乐音量调节指令。
结合本发明实施例第三方面或本发明实施例第三方面的第一种或第二种可能的实现方式,在本发明实施例第三方面的第三种可能的实现方式中,所述处理器检测终端设备屏幕的预设区域的触及压力值之后,所述处理器还用于:
采集输入的声纹信息;
比较所述声纹信息与预设声纹信息是否匹配,若匹配,执行所述识别所述触及压力值落入的触及压力值集合的步骤。
结合本发明实施例第三方面的第三种可能的实现方式,在本发明实施例第三方面的第四种可能的实现方式中,所述处理器采集输入的声纹信息之后,以及所述处理器比较所述声纹信息与预设声纹信息是否匹配之前,所述处理器还用于:
向所述终端设备正在运行的社交应用中的指定关系用户和通信录中的所述指定关系用户分别发送预设声纹信息获取请求;
接收所述社交应用中的所述指定关系用户发送的第一声纹信息和所述通信录中的所述指定关系用户发送的第二声纹信息;
判断所述第一声纹信息与所述第二声纹信息是否匹配;
若是,将所述第一声纹信息或所述第二声纹信息作为所述预设声纹信息。
结合本发明实施例第三方面的第三种可能的实现方式,在本发明实施例第三方面的第五种可能的实现方式中,所述处理器还用于:
当所述声纹信息与所述预设声纹信息不匹配时,提示所述声纹信息与所述预设声纹信息不匹配。
结合本发明实施例第三方面的第四种可能的实现方式,在本发明实施例第三方面的第六种可能的实现方式中,所述处理器还用于:
当所述第一声纹信息与所述第二声纹信息不匹配时,提示所述第一声纹信息与所述第二声纹信息不匹配。
本发明实施例第四方面,提供了一种计算机可读存储介质,所述计算机可 读存储介质存储有一个或多个计算机程序,所述终端设备通过运行所述一个或多个计算机程序来执行上述第一方面的音乐播放控制方法,重复之处不再赘述。
本发明实施例中,在终端设备处于锁定状态时,检测终端设备屏幕的预设区域的触及压力值;识别触及压力值落入的触及压力值集合;从预设的压力值集合与音乐播放指令的对应关系中查找与触及压力值集合对应的音乐播放控制指令;其中,不同的触及压力值集合对应的音乐播放控制指令不同;根据音乐播放控制指令对终端设备正在播放的音乐执行对应的控制操作。实施本发明实施例,可以在终端设备处于锁定状态时,通过按压终端设备屏幕的预设区域,快速控制音乐播放,提高用户体验。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本发明实施例公开的一种音乐播放控制方法的流程图;
图2是本发明实施例公开的另一种音乐播放控制方法的流程图;
图3是本发明实施例公开的另一种音乐播放控制方法的流程图;
图4是本发明实施例公开的一种终端设备的结构示意图;
图5是本发明实施例公开的另一种终端设备的结构示意图;
图6是本发明实施例公开的另一种终端设备的结构示意图;
图7是本发明实施例公开的一种多媒体播放界面的示意图;
图8是本发明实施例公开的另一种多媒体播放界面的示意图;
图9是本发明实施例公开的又一种终端设备的结构示意图。
具体实施方式
下面将结合本发明实施方式中的附图,对本发明实施方式中的技术方案进行清楚、完整地描述。显然,所描述的实施方式是本发明的一部分实施方式, 而不是全部实施方式。基于本发明中的实施方式,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施方式,都应属于本发明保护的范围。
本发明实施例提供一种音乐播放控制方法及终端设备,可以快速控制音乐播放。以下分别进行详细说明。
本发明实施例中描述的终端设备可包括:手机、平板电脑或者随身听等,上述终端设备仅是举例,而非穷举,包含但不限于上述终端设备。
请参阅图1,图1是本发明实施例公开的一种音乐播放控制方法的流程图。如图1所示,本实施例中所描述的音乐播放控制方法,包括步骤:
S101,在终端设备处于锁定状态时,检测终端设备屏幕的预设区域的触及压力值。
本发明实施例中,可以通过终端设备的屏幕中的压力传感器检测终端设备屏幕的预设区域的触及压力值,可以实时检测终端设备屏幕的预设区域的触及压力值,预设区域可以是终端设备屏幕的任意位置,可以为圆形区域、矩形区域或其他多边形区域,预设区域可以是任意大小,本发明实施例不做限定。触及压力值可以是用户的手指的触及压力值。
S102,识别触及压力值落入的触及压力值集合。
本发明实施例中,可以通过终端设备屏幕中的压力传感器识别触及压力值落入的触及压力值集合,触及压力值集合可以是较大的区间,也可以是较小的区间,可以通过终端设备系统设定,也可以通过用户进行设定,例如,触及压力值集合可以为0~0.1N、0.1~0.2N、0.2~0.3N、0.3~0.4N、0.4~0.5N、0.5~0.6N、0.6~0.7N、0.7~0.8N、0.8~0.9N、0.9~1.0N中的其中任意一个,也可以为0~0.01N、0.01~0.02N、0.02~0.03N、0.03~0.04N、0.04~0.05N、0.05~0.06N、0.06~0.07N、0.07~0.08N、0.08~0.09N、0.09~0.1N中的其中任意一个,也可以为0~1N、1~2N、2~3N、3~4N、4~5N、5~6N、6~7N、7~8N、8~9N、9~10N中的其中任意一个,触及压力值集合可以任意设定,本发明实施例不做限定。
S103,从预设的压力值集合与音乐播放指令的对应关系中查找与触及压力值集合对应的音乐播放控制指令;其中,不同的触及压力值集合对应的音乐播放控制指令不同。
本发明实施例中,压力值集合与音乐播放指令的对应关系可以预先设置并存储在终端设备的存储器中,不同的触及压力值集合对应的音乐播放控制指令不同,例如,若触及压力值集合为0.1~0.3N,对应的音乐播放控制指令为切换歌曲指令,若触及压力值集合为0.3~0.5N,对应的音乐播放控制指令为调节音量指令,若触及压力值集合为0.5~0.7N,对应的音乐播放控制指令为音乐风格调节指令。
在一些可行的实施方式中,预设区域为音乐播放按钮区域,触及压力值集合包括第一触及压力值集合、第二触及压力值集合和第三触及压力值集合中的任一种,其中,第一触及压力值集合、第二触及压力值集合和第三触及压力值集合互无交集,从预设的压力值集合与音乐播放指令的对应关系中查找与触及压力值集合对应的音乐播放控制指令,包括:
当触及压力值落入第一触及压力值集合时,从预设的压力值集合与音乐播放指令的对应关系中查找与第一触及压力值集合对应的启动音乐播放指令;或者,
当触及压力值落入第二触及压力值集合时,从预设的压力值集合与音乐播放指令的对应关系中查找与第二触及压力值集合对应的暂停音乐播放指令;或者,
当触及压力值落入第三触及压力值集合时,从预设的压力值集合与音乐播放指令的对应关系中查找与第三触及压力值集合对应的退出音乐播放指令。
本发明实施例中,在终端设备处于锁定状态时,终端设备屏幕上可以显示播放界面,但是无法对播放界面进行操作,播放界面会显示音乐播放按钮区域,如图7所示,当检测音乐播放按钮区域内的触及压力值落入第一触及压力值集合(例如0.2~0.4N,包括0.2N,不包括0.4N)时,从预设的压力值集合与音乐播放指令的对应关系中查找与第一触及压力值集合对应的启动音乐播放指令;当检测音乐播放按钮区域内的触及压力值落入第二触及压力值集合(例如0.4~0.6N,包括0.4N,不包括0.6N)时,从预设的压力值集合与音乐播放指令的对应关系中查找与第二触及压力值集合对应的暂停音乐播放指令;当检测音乐播放按钮区域内的触及压力值落入第三触及压力值集合(例如0.6~0.8N,包括0.6N,不包括0.8N)时,从预设的压力值集合与音乐播放指令的对应关系中 查找与第三触及压力值集合对应的退出音乐播放指令。第一触及压力值集合对应的音乐播放控制指令为启动音乐播放指令,第二触及压力值集合对应的音乐播放控制指令为暂停音乐播放指令,第三触及压力值集合对应的音乐播放控制指令为退出音乐播放指令,启动音乐播放指令可以为启动当前暂停播放的音乐,也可以为启动音乐播放器,并播放音乐播放器最近一次播放的音乐;暂停音乐播放指令可以为暂停当前播放的音乐,退出音乐播放指令可以为停止播放当前播放的音乐,也可以为停止播放当前播放的音乐,并退出当前播放的音乐播放器。
在一些可行的实施方式中,预设区域为音乐切换按钮区域,触及压力值集合包括第四触及压力值集合和第五触及压力值集合中的任一种,其中,第四触及压力值集合和第五触及压力值集合互无交集,从预设的压力值集合与音乐播放指令的对应关系中查找与触及压力值集合对应的音乐播放控制指令,包括:
当触及压力值落入第四触及压力值集合时,从预设的压力值集合与音乐播放指令的对应关系中查找与第四触及压力值集合对应的音乐切换指令;或者,
当触及压力值落入第五触及压力值集合时,从预设的压力值集合与音乐播放指令的对应关系中查找与第五触及压力值集合对应的音乐音量调节指令。
本发明实施例中,在终端设备处于锁定状态时,终端设备屏幕上可以显示播放界面,但是无法对播放界面进行操作,播放界面会显示音乐切换按钮区域,如图8所示,音乐切换按钮区域可以包括音乐切换按钮区域1和音乐切换按钮区域2,当检测音乐切换按钮区域内的触及压力值落入第四触及压力值集合(例如0.1~0.3N,包括0.1N,不包括0.3N)时,从预设的压力值集合与音乐播放指令的对应关系中查找与第四触及压力值集合对应的音乐切换指令,举例来说,如图8所示,当检测音乐切换按钮区域1内的触及压力值落入第四触及压力值集合(例如0.1~0.3N,包括0.1N,不包括0.3N)时,从预设的压力值集合与音乐播放指令的对应关系中查找与第四触及压力值集合对应的音乐向上切换指令(即切换到上一首音乐);当检测音乐切换按钮区域2内的触及压力值落入第四触及压力值集合(例如0.1~0.3N,包括0.1N,不包括0.3N)时,从预设的压力值集合与音乐播放指令的对应关系中查找与第四触及压力值集合对应的音乐向下切换指令(即切换到下一首音乐)。当检测音乐播放按钮区域内的触及压 力值落入第五触及压力值集合(例如0.3~0.5N,包括0.3N,不包括0.5N)时,从预设的压力值集合与音乐播放指令的对应关系中查找与第五触及压力值集合对应的音乐音量调节指令,举例来说,如图8所示,当检测音乐切换按钮区域1内的触及压力值落入第五触及压力值集合(例如0.3~0.5N,包括0.3N,不包括0.5N)时,从预设的压力值集合与音乐播放指令的对应关系中查找与第五触及压力值集合对应的音乐音量调低指令(即调低当前音乐播放音量);当检测音乐切换按钮区域2内的触及压力值落入第五触及压力值集合(例如0.3~0.5N,包括0.3N,不包括0.5N)时,从预设的压力值集合与音乐播放指令的对应关系中查找与第五触及压力值集合对应的音乐音量调高指令(即调高当前音乐播放音量)。
S104,根据音乐播放控制指令对终端设备正在播放的音乐执行对应的控制操作。
本发明实施例中,从预设的压力值集合与音乐播放指令的对应关系中查找与触及压力值集合对应的音乐播放控制指令之后,根据音乐播放控制指令对终端设备正在播放的音乐执行对应的控制操作,例如,若音乐播放控制指令为切换歌曲指令,则切换当前播放的音乐;若音乐播放控制指令为调节音量指令,则调节音乐播放的音量;若音乐播放控制指令为音乐风格调节指令,则调节当前播放音乐的风格。本发明实施例可以根据预设区域内的触及压力值快速调节音乐播放的参数,可以在终端设备处于锁定状态下,快速控制播放音乐,无需对终端设备进行解锁即可快速控制播放音乐,提高用户体验。
本发明实施例中,在终端设备处于锁定状态时,检测终端设备屏幕的预设区域的触及压力值;识别触及压力值落入的触及压力值集合;从预设的压力值集合与音乐播放指令的对应关系中查找与触及压力值集合对应的音乐播放控制指令;其中,不同的触及压力值集合对应的音乐播放控制指令不同;根据音乐播放控制指令对终端设备正在播放的音乐执行对应的控制操作。实施本发明实施例,可以在终端设备处于锁定状态时,通过按压终端设备屏幕的预设区域,快速控制音乐播放,提高用户体验。
请参阅图2,图2是本发明实施例公开的另一种音乐播放控制方法的流程图。如图2所示,本实施例中所描述的音乐播放控制方法,包括步骤:
S201,在终端设备处于锁定状态时,检测终端设备屏幕的预设区域的触及压力值。
S202,采集输入的声纹信息。
本发明实施例中,可以通过终端设备中的麦克风采集输入的声纹信息,输入的声纹信息可以为用户输入的声纹信息。在采集输入的声纹信息之前,终端设备可以输出提示信息,该提示信息提示用户输入声纹信息并打开终端设备中的麦克风,以接收用户输入声纹信息。
S203,比较声纹信息与预设声纹信息是否匹配;若匹配,执行步骤S204,若不匹配,则提示声纹信息与预设声纹信息不匹配,结束本流程。
本发明实施例中,采集输入的声纹信息后,比较声纹信息与预设声纹信息是否匹配,声纹信息具体可以包括麦克风获取的声纹信息的声波频谱中的共振峰频率、共振峰的强度、共振峰的个数等,预设声纹信息可以为预先存储的用户的声纹信息,也可以为预先获取的用户的声纹信息。比较声纹信息与预设声纹信息是否匹配可以比较声纹信息的声波频谱中的共振峰频率与预设声纹信息的声波频谱中的共振峰频率是否匹配,比较声纹信息的声波频谱中的共振峰强度与预设声纹信息的声波频谱中的共振峰强度是否匹配,比较声纹信息的声波频谱中的共振峰个数与预设声纹信息的声波频谱中的共振峰个数是否匹配,若均匹配,则执行步骤S204,若不匹配,则提示声纹信息与预设声纹信息不匹配,结束本流程。本发明实施例中,可以通过比较采集输入的声纹信息与预设声纹信息匹配,对用户的声纹信息进行验证,防止陌生用户非法操作,提升了终端设备的安全性。
S204,识别触及压力值落入的触及压力值集合。
S205,从预设的压力值集合与音乐播放指令的对应关系中查找与触及压力值集合对应的音乐播放控制指令;其中,不同的触及压力值集合对应的音乐播放控制指令不同。
S206,根据音乐播放控制指令对终端设备正在播放的音乐执行对应的控制操作。
本发明实施例中的步骤S201可以参阅图1所示步骤S101,步骤S204~步骤S206可以参阅图1所示步骤S102~步骤S104,本发明实施例不再赘述。
本发明实施例中,在终端设备处于锁定状态时,检测终端设备屏幕的预设区域的触及压力值;采集输入的声纹信息;比较声纹信息与预设声纹信息是否匹配;若匹配,识别触及压力值落入的触及压力值集合;从预设的压力值集合与音乐播放指令的对应关系中查找与触及压力值集合对应的音乐播放控制指令;其中,不同的触及压力值集合对应的音乐播放控制指令不同;根据音乐播放控制指令对终端设备正在播放的音乐执行对应的控制操作。实施本发明实施例,可以在终端设备处于锁定状态时,通过按压终端设备屏幕的预设区域,快速控制音乐播放,提高用户体验。
请参阅图3,图3是本发明实施例公开的另一种音乐播放控制方法的流程图。如图3所示,本实施例中所描述的音乐播放控制方法,包括步骤:
S301,在终端设备处于锁定状态时,检测终端设备屏幕的预设区域的触及压力值。
S302,采集输入的声纹信息。
S303,向终端设备正在运行的社交应用中的指定关系用户和通信录中的指定关系用户分别发送预设声纹信息获取请求。
本发明实施例中,当采集输入的声纹信息之后,向终端设备正在运行的社交应用中的指定关系用户和通信录中的指定关系用户分别发送预设声纹信息获取请求,社交应用可以为微信、QQ、有信、易信等,指定关系用户可以是输入声纹信息的用户。举例来说,当用户A使用用户B的终端设备时,若用户A需要对用户B的终端设备在锁定状态下播放的音乐进行播放控制时,用户A触摸用户B的终端设备的屏幕的预设区域,用户B的终端设备检测终端设备的屏幕的预设区域的触及压力值,输出提示信息,提示信息提示输入声纹信息,用户A输入声纹信息,终端设备向终端设备正在运行的社交应用中的指定关系用户(用户A)和通信录中的指定关系用户(用户A)分别发送预设声纹信息获取请求。
S304,接收社交应用中的指定关系用户发送的第一声纹信息和通信录中的指定关系用户发送的第二声纹信息。
本发明实施例中,向终端设备正在运行的社交应用中的指定关系用户和通信录中的指定关系用户分别发送预设声纹信息获取请求之后,指定关系用户分 别在社交应用中输入第一声纹信息和在通讯录中输入第二声纹信息,终端设备接收社交应用中的指定关系用户发送的第一声纹信息和通信录中的指定关系用户发送的第二声纹信息。例如,当用户A在正在运行的社交应用中和通讯录应用(如彩信)中分别收到预设声纹信息获取请求时,用户A在正在运行的社交应用中输入第一声纹信息,在通讯录应用中输入第二声纹信息,终端设备接收正在运行的社交应用中的用户A发送的第一声纹信息和通信录应用(如彩信)中的用户A发送的第二声纹信息。
S305,判断第一声纹信息与第二声纹信息是否匹配;若是,则执行步骤S306,若否,则提示第一声纹信息与第二声纹信息不匹配,结束本流程。
本发明实施例中,当第一声纹信息与第二声纹信息匹配时,表明社交应用中的指定关系用户和通信录中的指定关系用户为同一个人;当第一声纹信息与第二声纹信息不匹配时,表明社交应用中的指定关系用户和通信录中的指定关系用户不是同一个人。实施本发明实施例,可以通过多个渠道(社交应用和通信录)验证指定关系用户的身份,提高终端设备的安全性,防止终端设备被陌生用户操作。
S306,将第一声纹信息或第二声纹信息作为预设声纹信息。
本发明实施例中,当第一声纹信息与第二声纹信息匹配时,表明社交应用中的指定关系用户和通信录中的指定关系用户为同一个人,终端设备将第一声纹信息或第二声纹信息作为预设声纹信息。实施本发明实施例,可以快速获取预设声纹信息,避免了预设声纹信息存储在终端设备中容易被泄露的风险,提高了终端设备的安全性。
S307,比较声纹信息与预设声纹信息是否匹配;若匹配,执行步骤S308,若不匹配,则提示声纹信息与预设声纹信息不匹配,结束本流程。
S308,识别触及压力值落入的触及压力值集合。
S309,从预设的压力值集合与音乐播放指令的对应关系中查找与触及压力值集合对应的音乐播放控制指令;其中,不同的触及压力值集合对应的音乐播放控制指令不同。
S310,根据音乐播放控制指令对终端设备正在播放的音乐执行对应的控制操作。
本发明实施例中,在终端设备处于锁定状态时,检测终端设备屏幕的预设区域的触及压力值;采集输入的声纹信息;向终端设备正在运行的社交应用中的指定关系用户和通信录中的指定关系用户分别发送预设声纹信息获取请求;接收社交应用中的指定关系用户发送的第一声纹信息和通信录中的指定关系用户发送的第二声纹信息;判断第一声纹信息与第二声纹信息是否匹配;若是,将第一声纹信息或第二声纹信息作为预设声纹信息;比较声纹信息与预设声纹信息是否匹配;若匹配,识别触及压力值落入的触及压力值集合;从预设的压力值集合与音乐播放指令的对应关系中查找与触及压力值集合对应的音乐播放控制指令;其中,不同的触及压力值集合对应的音乐播放控制指令不同;根据音乐播放控制指令对终端设备正在播放的音乐执行对应的控制操作。实施本发明实施例,可以在终端设备处于锁定状态时,通过按压终端设备屏幕的预设区域,快速控制音乐播放,提高用户体验。
请参阅图4,图4是本发明实施例公开的一种终端设备的结构示意图。如图4所示,本实施例中所描述的终端设备,包括检测单元401、识别单元402、查找单元403和执行单元404,其中:
检测单元401,用于在终端设备处于锁定状态时,检测终端设备屏幕的预设区域的触及压力值。
本发明实施例中,检测单元401可以通过终端设备的屏幕中的压力传感器检测终端设备屏幕的预设区域的触及压力值,可以实时检测终端设备屏幕的预设区域的触及压力值,预设区域可以是终端设备屏幕的任意位置,可以为圆形区域、矩形区域或其他多边形区域,预设区域可以是任意大小,本发明实施例不做限定。触及压力值可以是用户的手指的触及压力值。
识别单元402,用于识别触及压力值落入的触及压力值集合。
本发明实施例中,识别单元402可以通过终端设备屏幕中的压力传感器识别触及压力值落入的触及压力值集合,触及压力值集合可以是较大的区间,也可以是较小的区间,可以通过终端设备系统设定,也可以通过用户进行设定,例如,触及压力值集合可以为0~0.1N、0.1~0.2N、0.2~0.3N、0.3~0.4N、0.4~0.5N、0.5~0.6N、0.6~0.7N、0.7~0.8N、0.8~0.9N、0.9~1.0N中的其中任意一个,也可以为0~0.01N、0.01~0.02N、0.02~0.03N、0.03~0.04N、0.04~0.05N、0.05~0.06N、 0.06~0.07N、0.07~0.08N、0.08~0.09N、0.09~0.1N中的其中任意一个,也可以为0~1N、1~2N、2~3N、3~4N、4~5N、5~6N、6~7N、7~8N、8~9N、9~10N中的其中任意一个,触及压力值集合可以任意设定,本发明实施例不做限定。
查找单元403,用于从预设的压力值集合与音乐播放指令的对应关系中查找与触及压力值集合对应的音乐播放控制指令;其中,不同的触及压力值集合对应的音乐播放控制指令不同。
本发明实施例中,压力值集合与音乐播放指令的对应关系可以预先设置并存储在终端设备的存储器中,不同的触及压力值集合对应的音乐播放控制指令不同,查找单元403从预设的压力值集合与音乐播放指令的对应关系中查找与触及压力值集合对应的音乐播放控制指令。例如,若触及压力值集合为0.1~0.3N,对应的音乐播放控制指令为切换歌曲指令,若触及压力值集合为0.3~0.5N,对应的音乐播放控制指令为调节音量指令,若触及压力值集合为0.5~0.7N,对应的音乐播放控制指令为音乐风格调节指令。
可选的,预设区域为音乐播放按钮区域,触及压力值集合包括第一触及压力值集合、第二触及压力值集合和第三触及压力值集合中的任一种,其中,第一触及压力值集合、第二触及压力值集合和第三触及压力值集合互无交集,查找单元403从预设的压力值集合与音乐播放指令的对应关系中查找与触及压力值集合对应的音乐播放控制指令的方式具体为:
当识别单元402识别触及压力值落入第一触及压力值集合时,查找单元403从预设的压力值集合与音乐播放指令的对应关系中查找与第一触及压力值集合对应的启动音乐播放指令;或者,
当识别单元402识别触及压力值落入第二触及压力值集合时,查找单元403从预设的压力值集合与音乐播放指令的对应关系中查找与第二触及压力值集合对应的暂停音乐播放指令;或者,
当识别单元402识别触及压力值落入第三触及压力值集合时,查找单元403从预设的压力值集合与音乐播放指令的对应关系中查找与第三触及压力值集合对应的退出音乐播放指令。
本发明实施例中,在终端设备处于锁定状态时,终端设备屏幕上可以显示播放界面,但是无法对播放界面进行操作,播放界面会显示音乐播放按钮区域, 如图7所示,当识别单元402识别音乐播放按钮区域内的触及压力值落入第一触及压力值集合(例如0.2~0.4N,包括0.2N,不包括0.4N)时,查找单元403从预设的压力值集合与音乐播放指令的对应关系中查找与第一触及压力值集合对应的启动音乐播放指令;当识别单元402识别音乐播放按钮区域内的触及压力值落入第二触及压力值集合(例如0.4~0.6N,包括0.4N,不包括0.6N)时,查找单元403从预设的压力值集合与音乐播放指令的对应关系中查找与第二触及压力值集合对应的暂停音乐播放指令;当识别单元402识别音乐播放按钮区域内的触及压力值落入第三触及压力值集合(例如0.6~0.8N,包括0.6N,不包括0.8N)时,查找单元403从预设的压力值集合与音乐播放指令的对应关系中查找与第三触及压力值集合对应的退出音乐播放指令。第一触及压力值集合对应的音乐播放控制指令为启动音乐播放指令,第二触及压力值集合对应的音乐播放控制指令为暂停音乐播放指令,第三触及压力值集合对应的音乐播放控制指令为退出音乐播放指令,启动音乐播放指令可以为启动当前暂停播放的音乐,也可以为启动音乐播放器,并播放音乐播放器最近一次播放的音乐;暂停音乐播放指令可以为暂停当前播放的音乐,退出音乐播放指令可以为停止播放当前播放的音乐,也可以为停止播放当前播放的音乐,并退出当前播放的音乐播放器。
可选的,预设区域为音乐切换按钮区域,触及压力值集合包括第四触及压力值集合和第五触及压力值集合中的任一种,其中,第四触及压力值集合和第五触及压力值集合互无交集,查找单元从预设的压力值集合与音乐播放指令的对应关系中查找与触及压力值集合对应的音乐播放控制指令的方式具体为:
当识别单元402识别触及压力值落入第四触及压力值集合时,查找单元从预设的压力值集合与音乐播放指令的对应关系中查找与第四触及压力值集合对应的音乐切换指令;或者,
当识别单元402识别触及压力值落入第五触及压力值集合时,查找单元从预设的压力值集合与音乐播放指令的对应关系中查找与第五触及压力值集合对应的音乐音量调节指令。
本发明实施例中,在终端设备处于锁定状态时,终端设备屏幕上可以显示播放界面,但是无法对播放界面进行操作,播放界面会显示音乐切换按钮区域, 如图8所示,音乐切换按钮区域可以包括音乐切换按钮区域1和音乐切换按钮区域2,当识别单元402识别音乐切换按钮区域内的触及压力值落入第四触及压力值集合(例如0.1~0.3N,包括0.1N,不包括0.3N)时,查找单元403从预设的压力值集合与音乐播放指令的对应关系中查找与第四触及压力值集合对应的音乐切换指令,举例来说,如图8所示,当识别单元402识别音乐切换按钮区域1内的触及压力值落入第四触及压力值集合(例如0.1~0.3N,包括0.1N,不包括0.3N)时,查找单元403从预设的压力值集合与音乐播放指令的对应关系中查找与第四触及压力值集合对应的音乐向上切换指令(即切换到上一首音乐);当识别单元402识别音乐切换按钮区域2内的触及压力值落入第四触及压力值集合(例如0.1~0.3N,包括0.1N,不包括0.3N)时,查找单元403从预设的压力值集合与音乐播放指令的对应关系中查找与第四触及压力值集合对应的音乐向下切换指令(即切换到下一首音乐)。当识别单元402识别音乐播放按钮区域内的触及压力值落入第五触及压力值集合(例如0.3~0.5N,包括0.3N,不包括0.5N)时,查找单元403从预设的压力值集合与音乐播放指令的对应关系中查找与第五触及压力值集合对应的音乐音量调节指令,举例来说,如图8所示,当识别单元402识别音乐切换按钮区域1内的触及压力值落入第五触及压力值集合(例如0.3~0.5N,包括0.3N,不包括0.5N)时,查找单元403从预设的压力值集合与音乐播放指令的对应关系中查找与第五触及压力值集合对应的音乐音量调低指令(即调低当前音乐播放音量);当识别单元402识别音乐切换按钮区域2内的触及压力值落入第五触及压力值集合(例如0.3~0.5N,包括0.3N,不包括0.5N)时,查找单元403从预设的压力值集合与音乐播放指令的对应关系中查找与第五触及压力值集合对应的音乐音量调高指令(即调高当前音乐播放音量)。
执行单元404,用于根据音乐播放控制指令对终端设备正在播放的音乐执行对应的控制操作。
本发明实施例中,查找单元403从预设的压力值集合与音乐播放指令的对应关系中查找与触及压力值集合对应的音乐播放控制指令之后,执行单元404根据音乐播放控制指令对终端设备正在播放的音乐执行对应的控制操作,例如,若音乐播放控制指令为切换歌曲指令,则切换当前播放的音乐;若音乐播 放控制指令为调节音量指令,则调节音乐播放的音量;若音乐播放控制指令为音乐风格调节指令,则调节当前播放音乐的风格。本发明实施例可以根据预设区域内的触及压力值快速调节音乐播放的参数,可以在终端设备处于锁定状态下,快速控制播放音乐,无需对终端设备进行解锁即可快速控制播放音乐,提高用户体验。
本发明实施例中,在终端设备处于锁定状态时,检测单元401检测终端设备屏幕的预设区域的触及压力值;识别单元402识别触及压力值落入的触及压力值集合;查找单元403从预设的压力值集合与音乐播放指令的对应关系中查找与触及压力值集合对应的音乐播放控制指令;其中,不同的触及压力值集合对应的音乐播放控制指令不同;执行单元404根据音乐播放控制指令对终端设备正在播放的音乐执行对应的控制操作。实施本发明实施例,可以在终端设备处于锁定状态时,通过按压终端设备屏幕的预设区域,快速控制音乐播放,提高用户体验。
请参阅图5,图5是本发明实施例公开的另一种终端设备的结构示意图。如图5所示,本实施例中所描述的终端设备,除了包括图4所示的检测单元401、识别单元402、查找单元403和执行单元404之外,还包括采集单元405和比较单元406,其中:
采集单元405,用于采集输入的声纹信息。
本发明实施例中,采集单元405可以通过终端设备中的麦克风采集输入的声纹信息,输入的声纹信息可以为用户输入的声纹信息。在采集输入的声纹信息之前,终端设备可以输出提示信息,该提示信息提示用户输入声纹信息并打开终端设备中的麦克风,以接收用户输入声纹信息。
比较单元406,用于比较声纹信息与预设声纹信息是否匹配。
其中,当比较单元406比较声纹信息与预设声纹信息匹配时,触发识别单元402识别触及压力值落入的触及压力值集合。
本发明实施例中,采集单元405采集输入的声纹信息后,比较单元406比较声纹信息与预设声纹信息是否匹配,声纹信息具体可以包括麦克风获取的声纹信息的声波频谱中的共振峰频率、共振峰的强度、共振峰的个数等,预设声纹信息可以为预先存储的用户的声纹信息,也可以为预先获取的用户的声纹信 息。比较声纹信息与预设声纹信息是否匹配可以比较声纹信息的声波频谱中的共振峰频率与预设声纹信息的声波频谱中的共振峰频率是否匹配,比较声纹信息的声波频谱中的共振峰强度与预设声纹信息的声波频谱中的共振峰强度是否匹配,比较声纹信息的声波频谱中的共振峰个数与预设声纹信息的声波频谱中的共振峰个数是否匹配,若均匹配,则触发识别单元402识别触及压力值落入的触及压力值集合。本发明实施例中,可以通过比较采集输入的声纹信息与预设声纹信息匹配,对用户的声纹信息进行验证,防止陌生用户非法操作,提升了终端设备的安全性。
本发明实施例中,在终端设备处于锁定状态时,检测单元401检测终端设备屏幕的预设区域的触及压力值;采集单元405采集输入的声纹信息;比较单元406比较声纹信息与预设声纹信息是否匹配;若匹配,识别单元402识别触及压力值落入的触及压力值集合;查找单元403从预设的压力值集合与音乐播放指令的对应关系中查找与触及压力值集合对应的音乐播放控制指令;其中,不同的触及压力值集合对应的音乐播放控制指令不同;执行单元404根据音乐播放控制指令对终端设备正在播放的音乐执行对应的控制操作。实施本发明实施例,可以在终端设备处于锁定状态时,通过按压终端设备屏幕的预设区域,快速控制音乐播放,提高用户体验。
请参阅图6,图6是本发明实施例公开的另一种终端设备的结构示意图。如图6所示,本实施例中所描述的终端设备,除了包括图5所示的检测单元401、识别单元402、查找单元403、执行单元404、采集单元405和比较单元406之外,还包括发送单元407、接收单元408、判断单元409和确定单元410,其中:
发送单元407,用于向终端设备正在运行的社交应用中的指定关系用户和通信录中的指定关系用户分别发送预设声纹信息获取请求。
本发明实施例中,采集单元405采集输入的声纹信息之后,发送单元407向终端设备正在运行的社交应用中的指定关系用户和通信录中的指定关系用户分别发送预设声纹信息获取请求,社交应用可以为微信、QQ、有信、易信等,指定关系用户可以是输入声纹信息的用户。举例来说,当用户A使用用户B的终端设备时,若用户A需要对用户B的终端设备在锁定状态下播放的音乐进行播放控制时,用户A触摸用户B的终端设备的屏幕的预设区域,用户B的终端 设备检测终端设备的屏幕的预设区域的触及压力值,输出提示信息,提示信息提示输入声纹信息,用户A输入声纹信息,发送单元407向终端设备正在运行的社交应用中的指定关系用户(用户A)和通信录中的指定关系用户(用户A)分别发送预设声纹信息获取请求。
接收单元408,用于接收社交应用中的指定关系用户发送的第一声纹信息和通信录中的指定关系用户发送的第二声纹信息。
本发明实施例中,发送单元407向终端设备正在运行的社交应用中的指定关系用户和通信录中的指定关系用户分别发送预设声纹信息获取请求之后,指定关系用户分别在社交应用中输入第一声纹信息和在通讯录中输入第二声纹信息,接收单元408接收社交应用中的指定关系用户发送的第一声纹信息和通信录中的指定关系用户发送的第二声纹信息。例如,当用户A在正在运行的社交应用中和通讯录应用(如彩信)中分别收到预设声纹信息获取请求时,用户A在正在运行的社交应用中输入第一声纹信息,在通讯录应用中输入第二声纹信息,接收单元408接收正在运行的社交应用中的用户A发送的第一声纹信息和通信录应用(如彩信)中的用户A发送的第二声纹信息。
判断单元409,用于判断第一声纹信息与第二声纹信息是否匹配。
本发明实施例中,判断单元409判断第一声纹信息与第二声纹信息匹配时,表明社交应用中的指定关系用户和通信录中的指定关系用户为同一个人;判断单元409判断第一声纹信息与第二声纹信息不匹配时,表明社交应用中的指定关系用户和通信录中的指定关系用户不是同一个人。实施本发明实施例,可以通过多个渠道(社交应用和通信录)验证指定关系用户的身份,提高终端设备的安全性,防止终端设备被陌生用户操作。
确定单元410,用于当判断单元409判断结果为是时,将第一声纹信息或第二声纹信息作为预设声纹信息。
本发明实施例中,当判断单元409判断第一声纹信息与第二声纹信息匹配时,表明社交应用中的指定关系用户和通信录中的指定关系用户为同一个人,确定单元410将第一声纹信息或第二声纹信息作为预设声纹信息。实施本发明实施例,可以快速获取预设声纹信息,避免了预设声纹信息存储在终端设备中容易被泄露的风险,提高了终端设备的安全性。
本发明实施例中,在终端设备处于锁定状态时,检测单元401检测终端设备屏幕的预设区域的触及压力值;采集单元405采集输入的声纹信息;发送单元407向终端设备正在运行的社交应用中的指定关系用户和通信录中的指定关系用户分别发送预设声纹信息获取请求;接收单元408接收社交应用中的指定关系用户发送的第一声纹信息和通信录中的指定关系用户发送的第二声纹信息;判断单元409判断第一声纹信息与第二声纹信息是否匹配;若是,确定单元410将第一声纹信息或第二声纹信息作为预设声纹信息;比较单元406比较声纹信息与预设声纹信息是否匹配;若匹配,识别单元402识别触及压力值落入的触及压力值集合;查找单元403从预设的压力值集合与音乐播放指令的对应关系中查找与触及压力值集合对应的音乐播放控制指令;其中,不同的触及压力值集合对应的音乐播放控制指令不同;执行单元404根据音乐播放控制指令对终端设备正在播放的音乐执行对应的控制操作。实施本发明实施例,可以在终端设备处于锁定状态时,通过按压终端设备屏幕的预设区域,快速控制音乐播放,提高用户体验。
请参阅图9,图9是本发明实施例公开的又一种终端设备的结构示意图,如图9所示,终端设备包括存储器901、处理器902(处理器902的数量可以一个或多个,图9中以一个处理器为例)和屏幕903,屏幕,也叫显示屏,是终端设备的一种输入装置,在本发明的一些实施例中,存储器901、处理器902和屏幕903可通过总线或者其它方式连接,其中,图9中以通过总线连接为例。存储器901用于存储指令,处理器902调用存储在存储器901中的指令执行如下操作:
在终端设备处于锁定状态时,检测终端设备屏幕903的预设区域的触及压力值;
识别触及压力值落入的触及压力值集合;
从预设的压力值集合与音乐播放指令的对应关系中查找与触及压力值集合对应的音乐播放控制指令;其中,不同的触及压力值集合对应的音乐播放控制指令不同;
根据音乐播放控制指令对终端设备正在播放的音乐执行对应的控制操作。
可选的,预设区域为音乐播放按钮区域,触及压力值集合包括第一触及压力值集合、第二触及压力值集合和第三触及压力值集合中的任一种,其中,第 一触及压力值集合、第二触及压力值集合和第三触及压力值集合互无交集,处理器902从预设的压力值集合与音乐播放指令的对应关系中查找与触及压力值集合对应的音乐播放控制指令,具体为:
当触及压力值落入第一触及压力值集合时,从预设的压力值集合与音乐播放指令的对应关系中查找与第一触及压力值集合对应的启动音乐播放指令;或者,
当触及压力值落入第二触及压力值集合时,从预设的压力值集合与音乐播放指令的对应关系中查找与第二触及压力值集合对应的暂停音乐播放指令;或者,
当触及压力值落入第三触及压力值集合时,从预设的压力值集合与音乐播放指令的对应关系中查找与第三触及压力值集合对应的退出音乐播放指令。
可选的,预设区域为音乐切换按钮区域,触及压力值集合包括第四触及压力值集合和第五触及压力值集合中的任一种,其中,第四触及压力值集合和第五触及压力值集合互无交集,处理器902从预设的压力值集合与音乐播放指令的对应关系中查找与触及压力值集合对应的音乐播放控制指令,具体为:
当触及压力值落入第四触及压力值集合时,从预设的压力值集合与音乐播放指令的对应关系中查找与第四触及压力值集合对应的音乐切换指令;或者,
当触及压力值落入第五触及压力值集合时,从预设的压力值集合与音乐播放指令的对应关系中查找与第五触及压力值集合对应的音乐音量调节指令。
可选的,处理器902检测终端设备屏幕903的预设区域的触及压力值之后,处理器902还用于:
采集输入的声纹信息;
比较声纹信息与预设声纹信息是否匹配,若匹配,执行识别触及压力值落入的触及压力值集合的步骤。
可选的,处理器902采集输入的声纹信息之后,以及处理器902比较声纹信息与预设声纹信息是否匹配之前,处理器902还用于:
向终端设备正在运行的社交应用中的指定关系用户和通信录中的指定关系用户分别发送预设声纹信息获取请求;
接收社交应用中的指定关系用户发送的第一声纹信息和通信录中的指定 关系用户发送的第二声纹信息;
判断第一声纹信息与第二声纹信息是否匹配;
若是,将第一声纹信息或第二声纹信息作为预设声纹信息。
可选的,处理器902还用于:
当声纹信息与预设声纹信息不匹配时,提示声纹信息与预设声纹信息不匹配。
可选的,处理器902还用于:
当第一声纹信息与第二声纹信息不匹配时,提示第一声纹信息与第二声纹信息不匹配。
实施图9所示的终端设备,可以在终端设备处于锁定状态时,通过按压终端设备屏幕903的预设区域,快速控制音乐播放,提高用户体验。
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:闪存盘、只读存储器(Read-Only Memory,ROM)、随机存取器(Random Access Memory,RAM)、磁盘或光盘等。
以上对本发明实施例所提供的一种音乐播放控制方法及终端设备进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。

Claims (21)

  1. 一种音乐播放控制方法,其特征在于,包括:
    在终端设备处于锁定状态时,检测终端设备屏幕的预设区域的触及压力值;
    识别所述触及压力值落入的触及压力值集合;
    从预设的压力值集合与音乐播放指令的对应关系中查找与所述触及压力值集合对应的音乐播放控制指令;其中,不同的触及压力值集合对应的音乐播放控制指令不同;
    根据所述音乐播放控制指令对所述终端设备正在播放的音乐执行对应的控制操作。
  2. 根据权利要求1所述的方法,其特征在于,所述预设区域为音乐播放按钮区域,所述触及压力值集合包括第一触及压力值集合、第二触及压力值集合和第三触及压力值集合中的任一种,其中,所述第一触及压力值集合、所述第二触及压力值集合和所述第三触及压力值集合互无交集,所述从预设的压力值集合与音乐播放指令的对应关系中查找与所述触及压力值集合对应的音乐播放控制指令,包括:
    当所述触及压力值落入所述第一触及压力值集合时,从所述预设的压力值集合与音乐播放指令的对应关系中查找与所述第一触及压力值集合对应的启动音乐播放指令;或者,
    当所述触及压力值落入所述第二触及压力值集合时,从所述预设的压力值集合与音乐播放指令的对应关系中查找与所述第二触及压力值集合对应的暂停音乐播放指令;或者,
    当所述触及压力值落入所述第三触及压力值集合时,从所述预设的压力值集合与音乐播放指令的对应关系中查找与所述第三触及压力值集合对应的退出音乐播放指令。
  3. 根据权利要求1所述的方法,其特征在于,所述预设区域为音乐切换按 钮区域,所述触及压力值集合包括第四触及压力值集合和第五触及压力值集合中的任一种,其中,所述第四触及压力值集合和所述第五触及压力值集合互无交集,所述从预设的压力值集合与音乐播放指令的对应关系中查找与所述触及压力值集合对应的音乐播放控制指令,包括:
    当所述触及压力值落入所述第四触及压力值集合时,从所述预设的压力值集合与音乐播放指令的对应关系中查找与所述第四触及压力值集合对应的音乐切换指令;或者,
    当所述触及压力值落入所述第五触及压力值集合时,从所述预设的压力值集合与音乐播放指令的对应关系中查找与所述第五触及压力值集合对应的音乐音量调节指令。
  4. 根据权利要求1~3任一项所述的方法,其特征在于,在检测终端设备屏幕的预设区域的触及压力值之后,所述方法还包括:
    采集输入的声纹信息;
    比较所述声纹信息与预设声纹信息是否匹配,若匹配,执行所述识别所述触及压力值落入的触及压力值集合的步骤。
  5. 根据权利要求4所述的方法,其特征在于,在采集输入的声纹信息之后,以及在比较所述声纹信息与预设声纹信息是否匹配之前,所述方法还包括:
    向所述终端设备正在运行的社交应用中的指定关系用户和通信录中的所述指定关系用户分别发送预设声纹信息获取请求;
    接收所述社交应用中的所述指定关系用户发送的第一声纹信息和所述通信录中的所述指定关系用户发送的第二声纹信息;
    判断所述第一声纹信息与所述第二声纹信息是否匹配;
    若是,将所述第一声纹信息或所述第二声纹信息作为所述预设声纹信息。
  6. 根据权利要求4所述的方法,其特征在于,所述方法还包括:
    当所述声纹信息与所述预设声纹信息不匹配时,提示所述声纹信息与所述预设声纹信息不匹配。
  7. 根据权利要求5所述的方法,其特征在于,所述方法还包括:
    当所述第一声纹信息与所述第二声纹信息不匹配时,提示所述第一声纹信息与所述第二声纹信息不匹配。
  8. 一种终端设备,其特征在于,包括:
    检测单元,用于在终端设备处于锁定状态时,检测终端设备屏幕的预设区域的触及压力值;
    识别单元,用于识别所述触及压力值落入的触及压力值集合;
    查找单元,用于从预设的压力值集合与音乐播放指令的对应关系中查找与所述触及压力值集合对应的音乐播放控制指令;其中,不同的触及压力值集合对应的音乐播放控制指令不同;
    执行单元,用于根据所述音乐播放控制指令对所述终端设备正在播放的音乐执行对应的控制操作。
  9. 根据权利要求8所述的终端设备,其特征在于,所述预设区域为音乐播放按钮区域,所述触及压力值集合包括第一触及压力值集合、第二触及压力值集合和第三触及压力值集合中的任一种,其中,所述第一触及压力值集合、所述第二触及压力值集合和所述第三触及压力值集合互无交集,所述查找单元从预设的压力值集合与音乐播放指令的对应关系中查找与所述触及压力值集合对应的音乐播放控制指令的方式具体为:
    当所述识别单元识别所述触及压力值落入所述第一触及压力值集合时,所述查找单元从所述预设的压力值集合与音乐播放指令的对应关系中查找与所述第一触及压力值集合对应的启动音乐播放指令;或者,
    当所述识别单元识别所述触及压力值落入所述第二触及压力值集合时,所述查找单元从所述预设的压力值集合与音乐播放指令的对应关系中查找与所述第二触及压力值集合对应的暂停音乐播放指令;或者,
    当所述识别单元识别所述触及压力值落入所述第三触及压力值集合时,所述查找单元从所述预设的压力值集合与音乐播放指令的对应关系中查找与所 述第三触及压力值集合对应的退出音乐播放指令。
  10. 根据权利要求8所述的终端设备,其特征在于,所述预设区域为音乐切换按钮区域,所述触及压力值集合包括第四触及压力值集合和第五触及压力值集合中的任一种,其中,所述第四触及压力值集合和所述第五触及压力值集合互无交集,所述查找单元从预设的压力值集合与音乐播放指令的对应关系中查找与所述触及压力值集合对应的音乐播放控制指令的方式具体为:
    当所述识别单元识别所述触及压力值落入所述第四触及压力值集合时,所述查找单元从所述预设的压力值集合与音乐播放指令的对应关系中查找与所述第四触及压力值集合对应的音乐切换指令;或者,
    当所述识别单元识别所述触及压力值落入所述第五触及压力值集合时,所述查找单元从所述预设的压力值集合与音乐播放指令的对应关系中查找与所述第五触及压力值集合对应的音乐音量调节指令。
  11. 根据权利要求8~10任一项所述的终端设备,其特征在于,所述终端设备还包括:
    采集单元,用于采集输入的声纹信息;
    比较单元,用于比较所述声纹信息与预设声纹信息是否匹配;
    其中,当所述比较单元比较所述声纹信息与所述预设声纹信息匹配时,触发所述识别单元识别所述触及压力值落入的触及压力值集合。
  12. 根据权利要求11所述的终端设备,其特征在于,所述终端设备还包括:
    发送单元,用于向所述终端设备正在运行的社交应用中的指定关系用户和通信录中的所述指定关系用户分别发送预设声纹信息获取请求;
    接收单元,用于接收所述社交应用中的所述指定关系用户发送的第一声纹信息和所述通信录中的所述指定关系用户发送的第二声纹信息;
    判断单元,用于判断所述第一声纹信息与所述第二声纹信息是否匹配;
    确定单元,用于当所述判断单元判断结果为是时,将所述第一声纹信息或所述第二声纹信息作为所述预设声纹信息。
  13. 根据权利要求11所述的终端设备,其特征在于,所述终端设备还包括:
    第一提示单元,用于当所述声纹信息与所述预设声纹信息不匹配时,提示所述声纹信息与所述预设声纹信息不匹配。
  14. 根据权利要求13所述的终端设备,其特征在于,所述终端设备还包括:
    第二提示单元,用于当所述第一声纹信息与所述第二声纹信息不匹配时,提示所述第一声纹信息与所述第二声纹信息不匹配。
  15. 一种终端设备,其特征在于,所述终端设备包括存储器、处理器和屏幕,所述存储器用于存储指令;
    所述处理器调用存储在所述存储器中的指令执行如下操作:
    在终端设备处于锁定状态时,检测终端设备所述屏幕的预设区域的触及压力值;
    识别所述触及压力值落入的触及压力值集合;
    从预设的压力值集合与音乐播放指令的对应关系中查找与所述触及压力值集合对应的音乐播放控制指令;其中,不同的触及压力值集合对应的音乐播放控制指令不同;
    根据所述音乐播放控制指令对所述终端设备正在播放的音乐执行对应的控制操作。
  16. 根据权利要求15所述的终端设备,其特征在于,所述预设区域为音乐播放按钮区域,所述触及压力值集合包括第一触及压力值集合、第二触及压力值集合和第三触及压力值集合中的任一种,其中,所述第一触及压力值集合、所述第二触及压力值集合和所述第三触及压力值集合互无交集,所述处理器从预设的压力值集合与音乐播放指令的对应关系中查找与所述触及压力值集合对应的音乐播放控制指令,具体为:
    当所述触及压力值落入所述第一触及压力值集合时,从所述预设的压力值集合与音乐播放指令的对应关系中查找与所述第一触及压力值集合对应的启 动音乐播放指令;或者,
    当所述触及压力值落入所述第二触及压力值集合时,从所述预设的压力值集合与音乐播放指令的对应关系中查找与所述第二触及压力值集合对应的暂停音乐播放指令;或者,
    当所述触及压力值落入所述第三触及压力值集合时,从所述预设的压力值集合与音乐播放指令的对应关系中查找与所述第三触及压力值集合对应的退出音乐播放指令。
  17. 根据权利要求15所述的终端设备,其特征在于,所述预设区域为音乐切换按钮区域,所述触及压力值集合包括第四触及压力值集合和第五触及压力值集合中的任一种,其中,所述第四触及压力值集合和所述第五触及压力值集合互无交集,所述处理器从预设的压力值集合与音乐播放指令的对应关系中查找与所述触及压力值集合对应的音乐播放控制指令,具体为:
    当所述触及压力值落入所述第四触及压力值集合时,从所述预设的压力值集合与音乐播放指令的对应关系中查找与所述第四触及压力值集合对应的音乐切换指令;或者,
    当所述触及压力值落入所述第五触及压力值集合时,从所述预设的压力值集合与音乐播放指令的对应关系中查找与所述第五触及压力值集合对应的音乐音量调节指令。
  18. 根据权利要求15~17任一项所述的终端设备,其特征在于,所述处理器检测终端设备屏幕的预设区域的触及压力值之后,所述处理器还用于:
    采集输入的声纹信息;
    比较所述声纹信息与预设声纹信息是否匹配,若匹配,执行所述识别所述触及压力值落入的触及压力值集合的步骤。
  19. 根据权利要求18所述的终端设备,其特征在于,所述处理器采集输入的声纹信息之后,以及所述处理器比较所述声纹信息与预设声纹信息是否匹配之前,所述处理器还用于:
    向所述终端设备正在运行的社交应用中的指定关系用户和通信录中的所述指定关系用户分别发送预设声纹信息获取请求;
    接收所述社交应用中的所述指定关系用户发送的第一声纹信息和所述通信录中的所述指定关系用户发送的第二声纹信息;
    判断所述第一声纹信息与所述第二声纹信息是否匹配;
    若是,将所述第一声纹信息或所述第二声纹信息作为所述预设声纹信息。
  20. 根据权利要求18所述的终端设备,其特征在于,所述处理器还用于:
    当所述声纹信息与所述预设声纹信息不匹配时,提示所述声纹信息与所述预设声纹信息不匹配。
  21. 根据权利要求19所述的终端设备,其特征在于,所述处理器还用于:
    当所述第一声纹信息与所述第二声纹信息不匹配时,提示所述第一声纹信息与所述第二声纹信息不匹配。
PCT/CN2016/080567 2015-08-27 2016-04-28 一种音乐播放控制方法及终端设备 WO2017032025A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510537175.0 2015-08-27
CN201510537175.0A CN105159492B (zh) 2015-08-27 2015-08-27 一种音乐播放控制方法及终端设备

Publications (1)

Publication Number Publication Date
WO2017032025A1 true WO2017032025A1 (zh) 2017-03-02

Family

ID=54800371

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/080567 WO2017032025A1 (zh) 2015-08-27 2016-04-28 一种音乐播放控制方法及终端设备

Country Status (2)

Country Link
CN (1) CN105159492B (zh)
WO (1) WO2017032025A1 (zh)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105159492B (zh) * 2015-08-27 2019-03-15 Oppo广东移动通信有限公司 一种音乐播放控制方法及终端设备
CN106802760A (zh) * 2015-11-25 2017-06-06 西安中兴新软件有限责任公司 一种控制音频播放的方法及装置
CN105824529B (zh) * 2016-03-11 2019-07-09 深圳市元征科技股份有限公司 一种控制音乐播放的方法及智能穿戴设备
CN106155622A (zh) * 2016-06-17 2016-11-23 广东欧珀移动通信有限公司 一种音效模式设置方法及装置
CN106371738A (zh) * 2016-08-26 2017-02-01 广东欧珀移动通信有限公司 移动终端及其屏幕亮度的控制方法和装置
CN106445393A (zh) * 2016-10-31 2017-02-22 珠海市魅族科技有限公司 一种影音播放控制方法及装置
CN106708402A (zh) * 2016-11-25 2017-05-24 努比亚技术有限公司 控制终端应用的方法及装置

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101699369A (zh) * 2009-11-18 2010-04-28 英华达(南昌)科技有限公司 一种用于电子设备压力触发装置和包含所述装置的电子设备
CN103531200A (zh) * 2013-10-29 2014-01-22 宇龙计算机通信科技(深圳)有限公司 语音解锁方法和终端
CN105159492A (zh) * 2015-08-27 2015-12-16 广东欧珀移动通信有限公司 一种音乐播放控制方法及终端设备

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8918146B2 (en) * 2010-05-10 2014-12-23 Microsoft Corporation Automatic gain control based on detected pressure
CN102750066A (zh) * 2011-04-20 2012-10-24 上海三旗通信科技股份有限公司 触屏终端在锁屏状态下实现特定功能控制方式
CN103259908B (zh) * 2012-02-15 2017-06-27 联想(北京)有限公司 一种移动终端及其智能控制方法
CN103513882B (zh) * 2013-05-31 2016-12-28 展讯通信(上海)有限公司 一种触控设备的控制方法、装置及触控设备

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101699369A (zh) * 2009-11-18 2010-04-28 英华达(南昌)科技有限公司 一种用于电子设备压力触发装置和包含所述装置的电子设备
CN103531200A (zh) * 2013-10-29 2014-01-22 宇龙计算机通信科技(深圳)有限公司 语音解锁方法和终端
CN105159492A (zh) * 2015-08-27 2015-12-16 广东欧珀移动通信有限公司 一种音乐播放控制方法及终端设备

Also Published As

Publication number Publication date
CN105159492A (zh) 2015-12-16
CN105159492B (zh) 2019-03-15

Similar Documents

Publication Publication Date Title
WO2017032025A1 (zh) 一种音乐播放控制方法及终端设备
US11470382B2 (en) Methods and systems for detecting audio output of associated device
US11942085B1 (en) Naming devices via voice commands
US10354649B2 (en) Altering audio to improve automatic speech recognition
US9368105B1 (en) Preventing false wake word detections with a voice-controlled device
US11087769B1 (en) User authentication for voice-input devices
US10546585B2 (en) Localizing and verifying utterances by audio fingerprinting
US9728188B1 (en) Methods and devices for ignoring similar audio being received by a system
KR101726945B1 (ko) 수동 시작/종료 포인팅 및 트리거 구문들에 대한 필요성의 저감
EP2669889B1 (en) Method and apparatus for executing voice command in an electronic device
US10127906B1 (en) Naming devices via voice commands
EP3721605A1 (en) Streaming radio with personalized content integration
WO2014086238A1 (zh) 语音后台控制方法及移动终端
WO2018031295A1 (en) Distributed voice processing system
JP2015514254A (ja) ユーザからのオーディオ入力
US10242674B2 (en) Passive word detection with sound effects
US10185544B1 (en) Naming devices via voice commands
KR20160014297A (ko) 전자 장치 및 이의 제어 방법
TW202025138A (zh) 語音互動方法、裝置及系統
US20140316783A1 (en) Vocal keyword training from text
WO2016184095A1 (zh) 操作事件的执行方法及装置、终端
WO2019129042A1 (zh) 一种双开应用的切换方法及相关设备
WO2016201767A1 (zh) 一种语音控制方法、装置及计算机存储介质
WO2017032027A1 (zh) 一种视频画面缩放方法及终端设备
US20230362026A1 (en) Output device selection

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16838287

Country of ref document: EP

Kind code of ref document: A1