CN105389118B - A kind of switching method and user terminal of audio file - Google Patents

A kind of switching method and user terminal of audio file Download PDF

Info

Publication number
CN105389118B
CN105389118B CN201510925324.0A CN201510925324A CN105389118B CN 105389118 B CN105389118 B CN 105389118B CN 201510925324 A CN201510925324 A CN 201510925324A CN 105389118 B CN105389118 B CN 105389118B
Authority
CN
China
Prior art keywords
audio file
touch
target
distance
user terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510925324.0A
Other languages
Chinese (zh)
Other versions
CN105389118A (en
Inventor
任超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510925324.0A priority Critical patent/CN105389118B/en
Publication of CN105389118A publication Critical patent/CN105389118A/en
Application granted granted Critical
Publication of CN105389118B publication Critical patent/CN105389118B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • 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/16Sound input; Sound output
    • G06F3/167Audio in a user interface, e.g. using voice commands for navigating, audio feedback

Abstract

The invention discloses a kind of switching methods of audio file, comprising: obtains the touch parameter that user to user terminal touch screen carries out touch operation;The Target Wireless speaker is determined according to the touch parameter;If the touch parameter meets audio file switching condition, target audio file is determined according to the touch parameter;Audio file play instruction is sent to the Target Wireless speaker, the audio file play instruction, which is used to indicate, plays the target audio file.The embodiment of the invention also provides a kind of user terminals.The switching efficiency and convenience of audio file can be promoted using the embodiment of the present invention.

Description

A kind of switching method and user terminal of audio file
Technical field
The present invention relates to wireless sound box technical field more particularly to the switching methods and user terminal of a kind of audio file.
Background technique
Wireless sound box has independent processing unit and interconnection device, can by wireless network and user terminal (such as Mobile phone) connection, wireless sound box and user terminal can be communicated after the completion of connection.Currently, by installing on user terminal The audio that wireless sound box plays can be switched in APP, it is common practice to switching last track/next track is clicked on being playing interface Key, this operating method needs user to be switched to corresponding broadcast interface, then again by clicking on the broadcast interface The mode of last track/next track key switches over, it is clear that this mode operating efficiency is lower.
Summary of the invention
The embodiment of the present invention provides the switching method and user terminal of a kind of audio file, to promote cutting for audio file Change efficiency and convenience.
First aspect of the embodiment of the present invention provides a kind of switching method of audio file, comprising:
Obtain the touch parameter that user to user terminal touch screen carries out touch operation;
The Target Wireless speaker is determined according to the touch parameter;
If the touch parameter meets audio file switching condition, target audio file is determined according to the touch parameter;
Audio file play instruction is sent to the Target Wireless speaker, the audio file play instruction, which is used to indicate, to be broadcast Put the target audio file.
In conjunction with the embodiment of the present invention in a first aspect, in the first possible implementation of the first aspect, the method Further include:
If the touch parameter is unsatisfactory for audio file switching condition, audio file is determined according to the touch parameter The adjustment direction of target adjustment duration and the target adjustment duration;Audio file control is sent to the Target Wireless speaker to refer to It enables, the audio file control instruction is used to indicate the adjustment side according to the target adjustment duration and the target adjustment duration To the playback progress for adjusting the currently playing audio file of the Target Wireless speaker.
In conjunction with the possible implementation of the first of first aspect of the embodiment of the present invention or first aspect, in first aspect In second of possible implementation, the touch parameter for obtaining user to user terminal touch screen and carrying out touch operation, packet It includes:
The first identifier point and second identifier point that user carries out touch operation to the touch screen are obtained in first time;? Second time obtained the third identification point and the 4th identification point that user carries out touch operation to the touch screen;According to described first Identification point and the third identification point determine the first glide direction, and according to the second identifier point and the 4th identification point Determine the second glide direction;Determine the first distance between the first identifier point and the third identification point and second mark Know the second distance between point and the 4th identification point;According to the difference of the first time and second time, and The first distance and the second distance, determine First Speed and second speed;By the first distance, described second away from From, the First Speed, the second speed, first glide direction and second glide direction join as the touch-control Number.
In conjunction with second of possible implementation of first aspect of the embodiment of the present invention, the third in first aspect may Implementation in, it is described that the Target Wireless speaker is determined according to the touch parameter, comprising:
According to the mapping relations of touch screen zone and wireless sound box, determine locating for the first identifier point and second identifier point The corresponding wireless sound box of touch screen zone, and using the wireless sound box as Target Wireless speaker.
In conjunction with second of first aspect of the embodiment of the present invention or the third possible implementation, the of first aspect In four kinds of possible implementations, the audio file switching condition is comprised at least one of the following: first glide direction and Second glide direction is matched with default glide direction;The First Speed and the second speed are less than or equal to default speed Degree;The first distance and the second distance are greater than or equal to pre-determined distance.
Second aspect of the embodiment of the present invention provides a kind of user terminal, comprising:
Acquiring unit carries out the touch parameter of touch operation for obtaining user to user terminal touch screen;
Determination unit determines the Target Wireless sound for the touch parameter according to the information acquired by the acquisition unit Case;
The determination unit, it is single according to the acquisition if being also used to the touch parameter meets audio file switching condition The touch parameter that member is got determines target audio file;
Transmission unit, the Target Wireless speaker for determining to the determination unit send audio file broadcasting and refer to It enables, the audio file play instruction, which is used to indicate, plays the target audio file that the determination unit determines.
In conjunction with second aspect of the embodiment of the present invention, in the first possible implementation of the second aspect, the determination Unit determines audio text according to the touch parameter if being also used to the touch parameter is unsatisfactory for audio file switching condition The adjustment direction of the target adjustment duration of part and the target adjustment duration;The transmission unit, be also used to the target without Line speaker sends audio file control instruction, and the audio file control instruction is used to indicate determining according to the determination unit The adjustment direction of the target adjustment duration and the target adjustment duration adjusts the currently playing sound of the Target Wireless speaker The playback progress of frequency file.
In conjunction with the possible implementation of the first of second aspect of the embodiment of the present invention or second aspect, in second aspect In second of possible implementation, the acquiring unit is specifically used for:
The first identifier point and second identifier point that user carries out touch operation to the touch screen are obtained in first time;? Second time obtained the third identification point and the 4th identification point that user carries out touch operation to the touch screen;According to described first Identification point and the third identification point determine the first glide direction, and according to the second identifier point and the 4th identification point Determine the second glide direction;Determine the first distance between the first identifier point and the third identification point and second mark Know the second distance between point and the 4th identification point;According to the difference of the first time and second time, and The first distance and the second distance, determine First Speed and second speed;By the first distance, described second away from From, the First Speed, the second speed, first glide direction and second glide direction join as the touch-control Number.
In conjunction with second of possible implementation of second aspect of the embodiment of the present invention, the third in second aspect may Implementation in, the determination unit is specifically used for:
According to the mapping relations of touch screen zone and wireless sound box, determine locating for the first identifier point and second identifier point The corresponding wireless sound box of touch screen zone, and using the wireless sound box as Target Wireless speaker.
In conjunction with second of second aspect of the embodiment of the present invention or the third possible implementation, the of second aspect In four kinds of possible implementations, the audio file switching condition is comprised at least one of the following: first glide direction and Second glide direction is matched with default glide direction;The First Speed and the second speed are less than or equal to default speed Degree;The first distance and the second distance are greater than or equal to pre-determined distance.
As can be seen that in the embodiment of the present invention, when user terminal detects that user to user terminal touch screen is touched When operation, user terminal obtains the touch parameter that user to user terminal touch screen carries out touch operation;And according to the touch-control Parameter determines the Target Wireless speaker, in the case where the touch parameter meets audio file switching condition, user terminal Target audio file is determined according to the touch parameter, and sends audio file play instruction, institute to the Target Wireless speaker It states audio file play instruction and is used to indicate the broadcasting target audio file.As it can be seen that user only need to be to user terminal touch screen Touch operation is carried out, i.e., the audio file of changeable wireless sound box is conducive to the switching effect for promoting the audio file of wireless sound box Rate and convenience.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of network architecture provided in an embodiment of the present invention;
Fig. 2 is the structure composed of the user terminal of the method disclosed by the embodiments of the present invention for realizing addition wireless sound box Figure;
Fig. 3 is the flow diagram of the method for the disclosed addition wireless sound box of embodiment of the present invention method;
Fig. 3 .1 is the part flow diagram of the method for the disclosed addition wireless sound box of embodiment of the present invention method;
Fig. 3 .2 is the part flow diagram of the method for the disclosed addition wireless sound box of embodiment of the present invention method;
Fig. 4 is the unit composed structure schematic diagram of user terminal disclosed by the embodiments of the present invention.
Specific embodiment
The embodiment of the present invention provides the switching method and user terminal of a kind of audio file, to promote cutting for audio file Change efficiency and convenience.
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work It encloses.
It is described in detail separately below.
Description and claims of this specification and term " first ", " second ", " third " and " in the attached drawing Four " etc. are not use to describe a particular order for distinguishing different objects.In addition, term " includes " and " having " and it Any deformation, it is intended that cover and non-exclusive include.Such as it contains the process, method of a series of steps or units, be System, product or equipment are not limited to listed step or unit, but optionally further comprising the step of not listing or list Member, or optionally further comprising other step or units intrinsic for these process, methods, product or equipment.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodiments Containing at least one embodiment of the present invention.Each position in the description occur the phrase might not each mean it is identical Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and Implicitly understand, embodiment described herein can be combined with other embodiments.
In order to be best understood from the switching method and user terminal of a kind of audio file disclosed by the embodiments of the present invention, below first The network architecture being applicable in the embodiment of the present invention is described.Referring to Fig. 1, Fig. 1 is a kind of net disclosed by the embodiments of the present invention Network framework schematic diagram.It may include Target Wireless speaker and user terminal in network architecture shown in Fig. 1.Shown in Fig. 1 In network architecture, user terminal may include cell phone, tablet computer, personal digital assistant (Personal Digital Assistant, PDA), mobile internet device (Mobile Internet Device, MID), intelligent wearable device (as intelligence Wrist-watch, Intelligent bracelet) etc. all types of user terminal, the embodiment of the present invention be not construed as limiting.Target Wireless speaker may include bluetooth without Line speaker, WIFI wireless sound box, 2.4G wireless sound box, FM wireless sound box etc., the embodiment of the present invention is not construed as limiting.
In order to be best understood from the switching method and user terminal of a kind of audio file disclosed by the embodiments of the present invention, below first The user terminal being applicable in the embodiment of the present invention is described.Referring to Figure 1, Fig. 1 is a kind of reality provided in an embodiment of the present invention The structure composed figure of the user terminal of the switching method of existing audio file of the present invention.It is specific in the structure composed figure of the user terminal It may include at least one processor Processor 201, at least one processor Memory Unit 202, at least one is logical Letter bus B US 203, reception/transmitting line 204, antenna 205, at least one touch screen Touch Screen 206, at least one A display screen Display Screen 207, microphone Microphone 208, loudspeaker Speaker 209, client identify mould Block SIM Card210, physical button Keys 211, random access memory ram memory 202a, nonvolatile memory Flash ROM memory 202b, external memory External Storage 212, bluetooth controller Bluetooth Controller 213, digital signal processing circuit 214;Wherein, above-mentioned processor 201 passes through reception/transmitting line 204 and day The communication of line 205 control and External cell net;At least one processor for example can be random access memory, non-volatile Property memory, SIM card 210 and external memory 212;It is stored with instruction set in at least one processor, the instruction set It closes and is integrated in operating system or by the way that in the executable application program of processor 201, which being capable of bootstrap processor 201 execute the switching method with the audio file specifically disclosed in embodiment of the present invention method.
Processor 201 in above-mentioned user terminal 200 can couple at least one processor, the memory 202 In prestore instruction set, described instruction set specifically includes touch parameter and obtains module and determining module, the memory 202 are also further stored with kernel module, and the kernel module includes operating system (such as WINDOWSTM, ANDROIDTM, IOSTM Deng).The processor 201 calls described instruction set to execute wireless sound box sound channel controlling party disclosed in the embodiment of the present invention Method, specifically includes the following steps:
Touch parameter in 201 run memory 202 of processor of the user terminal 200 obtains module and obtains user couple The touch parameter of user terminal touch screen progress touch operation;
Cover half root tuber is true according to the touch parameter really in 201 run memory 202 of processor of the user terminal 200 The fixed Target Wireless speaker;
If the processor 201 of the user terminal 200 determines that the touch parameter meets audio file switching condition, described In 201 run memory 202 of processor of user terminal 200 really cover half root tuber according to the touch parameter determine target audio text Part;
Reception/transmitting line 204 of the user terminal 200 sends audio file broadcasting to the Target Wireless speaker and refers to It enables, the audio file play instruction, which is used to indicate, plays the target audio file.
Optionally, if the processor 201 of the user terminal 200 determines that the touch parameter is unsatisfactory for audio file switching Condition, cover half root tuber is determined according to the touch parameter really in 201 run memory 202 of processor of the user terminal 200 The adjustment direction of the target adjustment duration of audio file and the target adjustment duration;
Reception/transmitting line 204 of the user terminal 200 sends audio file control to the Target Wireless speaker and refers to It enables, the audio file control instruction is used to indicate the adjustment side according to the target adjustment duration and the target adjustment duration To the playback progress for adjusting the currently playing audio file of the Target Wireless speaker.
Optionally, the touch parameter in 201 run memory 202 of processor of the user terminal 200 obtains module and obtains Take the concrete mode that family carries out the touch parameter of touch operation to user terminal touch screen are as follows: processor 201 is at the first time Obtain first identifier point and second identifier point that user carries out touch operation to the touch screen;User couple is obtained in the second time The touch screen carries out the third identification point and the 4th identification point of touch operation;According to the first identifier point and the third mark Know point and determine the first glide direction, and the second glide direction is determined according to the second identifier point and the 4th identification point; Determine that first distance and second identifier point and the described 4th between the first identifier point and the third identification point are marked Know the second distance between point;According to the difference and the first distance of the first time and second time and institute Second distance is stated, determines First Speed, the second speed, first glide direction and second glide direction as institute State touch parameter.
Optionally, in 201 run memory 202 of processor of the user terminal 200 really cover half root tuber according to the touching Control parameter determines the concrete mode of the Target Wireless speaker are as follows: according to the mapping relations of touch screen zone and wireless sound box, really The corresponding wireless sound box of touch screen zone locating for the fixed first identifier point and second identifier point, and the wireless sound box is made For Target Wireless speaker.
Optionally, the audio file switching condition comprises at least one of the following: first glide direction and described Two glide directions are matched with default glide direction;The First Speed and the second speed are less than or equal to pre-set velocity;Institute It states first distance and the second distance is greater than or equal to pre-determined distance.
As can be seen that in the embodiment of the present invention, when user terminal detects that user to user terminal touch screen is touched When operation, user terminal obtains the touch parameter that user to user terminal touch screen carries out touch operation;And according to the touch-control Parameter determines the Target Wireless speaker, in the case where the touch parameter meets audio file switching condition, user terminal Target audio file is determined according to the touch parameter, and sends audio file play instruction, institute to the Target Wireless speaker It states audio file play instruction and is used to indicate the broadcasting target audio file.As it can be seen that user only need to be to user terminal touch screen Touch operation is carried out, i.e., the audio file of changeable wireless sound box is conducive to the switching effect for promoting the audio file of wireless sound box Rate and convenience.
Consistent with the technical solution of foregoing description, as a specific embodiment, Fig. 3 is include user terminal specific The flow diagram of the switching method of the audio file of implementation procedure.Although the switching method of audio file described herein is base It is executed in user terminal shown in Fig. 2, but should be noted that the switching method of audio file disclosed by the embodiments of the present invention Carrying out practically environment be not limited only to above-mentioned user terminal.
As shown in figure 3, the switching method of audio file disclosed in embodiment of the present invention method specifically includes the following steps:
S301, user terminal obtain the touch parameter that user to user terminal touch screen carries out touch operation.
In the embodiment of the present invention, the touch-control that the touch screen 206 of user terminal 200 is capable of real-time detection to user slides behaviour Make, which specifically includes touch-control clicking operation, touch-control slide and multi-point touch operation.
For example, Fig. 3 .1 is referred to, user terminal obtains the specific implementation of the touch parameter of the touch-control slide Mode are as follows:
S301-a1, the user terminal obtain user in first time and carry out the first of touch operation to the touch screen Identification point and second identifier point.
S301-a2, the user terminal obtain the third that user carries out touch operation to the touch screen in the second time Identification point and the 4th identification point.
S301-a3, the user terminal determine the first sliding side according to the first identifier point and the third identification point To, and the second glide direction determined according to the second identifier point and the 4th identification point.
S301-a4, the user terminal determine the first distance between the first identifier point and the third identification point Second distance between the second identifier point and the 4th identification point.
S301-a5, the user terminal are according to the difference and described first of the first time and second time Distance and the second distance, determine First Speed and second speed.
S301-a6, the user terminal are by the first distance, the second distance, the First Speed, described second Speed, first glide direction and second glide direction are as the touch parameter.
For example, two fingers of user slide on user terminal touch screen according to preset direction respectively, for user For terminal, what user terminal was got at any time is two points.Therefore, user terminal obtains user couple in first time The first identifier point and second identifier point of user terminal touch screen progress touch operation;It is whole that user to user is obtained in the second time Touch screen is held to carry out the third identification point and the 4th identification point of touch operation;Further according to the first identifier point and the third mark Know point and determine the first glide direction, and the second glide direction is determined according to the second identifier point and the 4th identification point; The first distance between first identifier point and third identification point and second between second identifier point and the 4th identification point are determined again Distance;Difference and first distance and the second distance of the user terminal according to first time and the second time, determine first Speed and second speed user terminal;Finally by first distance, second distance, First Speed, second speed, the first glide direction With the second glide direction as touch parameter.Wherein, first identifier point and second identifier point can be two fingers and just start to touch Touch touch point when user terminal touch screen, be also possible to two fingers on user terminal touch screen in sliding process certain two A point;Third identification point and the 4th identification point can be the last touch-control that two fingers slide on user terminal touch screen Point is also possible to two fingers, two points of certain on user terminal touch screen in sliding process;Etc..Wherein, above-mentioned default Direction for example can be it is horizontal to the left, horizontally to the right, vertically upward or vertically downward etc., the present invention is not construed as limiting.
S302, the user terminal determine the Target Wireless speaker according to the touch parameter.
For example, Fig. 3 .2 is referred to, user terminal determines the tool of the Target Wireless speaker according to the touch parameter Body implementation are as follows:
S302-a1, the user terminal determine first mark according to the mapping relations of touch screen zone and wireless sound box Know point wireless sound box corresponding with touch screen zone locating for second identifier point.
S302-a2, the user terminal are using the wireless sound box as Target Wireless speaker.
For example, the touch screen of user terminal can be divided into multiple regions by user terminal, and each region is corresponding different Wireless sound box, for example, A corresponding wireless sound box in region is a, B corresponding wireless sound box in region is b, etc., wherein each Region is distinguished with coordinate range, for example, the coordinate range of region A is (0,0)-(5,5), the coordinate range of region A be (5, 5)-(10,5) etc., if first identifier point is (1,1), second identifier point is (3,4), it is seen that first identifier point and second identifier The locating touch screen zone of point is region A, then A corresponding wireless sound box in region is wireless sound box a, the then mesh that user terminal determines Mark wireless sound box is a.
If S303, the touch parameter meet audio file switching condition, the user terminal is according to the touch parameter Determine target audio file.
Optionally, the audio file switching condition comprises at least one of the following: first glide direction and described Two glide directions are matched with default glide direction;The First Speed and the second speed are less than or equal to pre-set velocity;Institute It states first distance and the second distance is greater than or equal to pre-determined distance.Wherein, pre-determined distance for example can be 1cm, 1.5cm, 2cm, 3cm or other values, pre-set velocity for example can be 1cm/s, 1.5cm/s, 2cm/s, 3cm/s or other values, preset Glide direction for example can be it is horizontal to the left, horizontally to the right, vertically upward or vertically downward etc., the present invention is not construed as limiting.
For example, if the first glide direction and the second glide direction are that horizontally to the right, presetting glide direction is level To the right, user terminal determines that the specific embodiment of target audio file may is that user terminal root according to the touch parameter According to the mapping relations of sliding speed and audio file, determine that the average speed of the first sliding speed and the second sliding speed is corresponding Audio file, for example, the first sliding speed is 1.5cm/s, the second sliding speed is 1.45cm/s, average speed 1.475cm/ S, if speed be greater than when the corresponding audio file of 1cm/s it is upper one first, when corresponding less than the 1cm/s audio file of speed next, Therefore, user terminal is using upper the one of the currently playing audio file of Target Wireless speaker first audio file as above-mentioned target audio File.
Optionally, if the touch parameter is unsatisfactory for audio file switching condition, the user terminal is according to the touch-control Parameter determines the adjustment direction of target adjustment duration and the target adjustment duration;The user terminal is to the Target Wireless sound Case sends audio file control instruction, and the audio file control instruction is used to indicate according to the target adjustment duration and described The adjustment direction of target adjustment duration adjusts the playback progress of the currently playing audio file of the Target Wireless speaker.
Optionally, user terminal determines the tune of target adjustment duration and the target adjustment duration according to the touch parameter Perfect square to specific embodiment may is that user terminal determine the average distance of the first distance and the second distance with And the average speed of the First Speed and the second speed;User terminal is according to the average distance and the average speed Determine the target adjustment duration of audio file.
For example, if the first glide direction and the second glide direction be it is horizontal to the left, presetting glide direction is level To the right, audio file switching condition is that first glide direction and second glide direction are matched with default glide direction, It can be seen that touch parameter is unsatisfactory for audio file switching condition.If above-mentioned average speed is 5cm/s, above-mentioned average distance is 5cm, is used Family terminal determines the specific embodiment of the target adjustment duration of audio file according to the average distance and the average speed Are as follows: when average speed is greater than pre-set velocity (such as 4cm/s), user terminal is determined according to the mapping relations of distance and adjustment duration The target adjustment duration of audio file, distance and adjustment duration mapping close be 1cm/5s, it is determined that target adjustment when it is a length of 25s。
Again for example, above-mentioned average speed is 5cm/s, and above-mentioned average distance is 5cm, and user terminal is according to described average Distance and the average speed determine the specific embodiment of the target adjustment duration of audio file are as follows: user terminal is according to distance The target adjustment duration of audio file is determined with the mapping relations and speed of adjustment duration and the mapping relations of adjustment duration.Than Such as, the mapping relations of distance and adjustment duration are 1cm/5s, and speed and the mapping relations for adjusting duration are 5cm/s/5s, then target A length of 25s*5=125s when adjustment.
Optionally, user determines the specific reality of the adjustment direction of target adjustment duration according to average speed and average distance Apply mode are as follows: if average speed is greater than or equal to pre-set velocity, user terminal is using F.F. as the adjustment of target adjustment duration Adjustment direction;If average speed is less than pre-set velocity, user terminal is using rewind as the adjustment adjustment side of target adjustment duration To.For example, then the adjustment direction of target mark adjustment duration is F.F. when pre-set velocity is 4cm/s.
Optionally, user terminal to Target Wireless speaker send audio file control instruction can be user terminal directly to Target Wireless speaker is sent;Either user terminal is sent by the MPP speaker in wireless music system to Target Wireless speaker; Either user terminal is sent by another user terminal to Target Wireless speaker;Etc., the present invention is without limitation.
S304, the user terminal send audio file play instruction, the audio file to the Target Wireless speaker Play instruction, which is used to indicate, plays the target audio file.
Optionally, user terminal to Target Wireless speaker send audio file play instruction can be user terminal directly to Target Wireless speaker is sent;Either user terminal passes through network entry point (the Mesh Portal in wireless music system Point, MPP) speaker to Target Wireless speaker send;Either user terminal passes through another user terminal to Target Wireless speaker It sends;Etc., the present invention is without limitation.
As can be seen that in the embodiment of the present invention, when user terminal detects that user to user terminal touch screen is touched When operation, user terminal obtains the touch parameter that user to user terminal touch screen carries out touch operation;And according to the touch-control Parameter determines the Target Wireless speaker, in the case where the touch parameter meets audio file switching condition, user terminal Target audio file is determined according to the touch parameter, and sends audio file play instruction, institute to the Target Wireless speaker It states audio file play instruction and is used to indicate the broadcasting target audio file.As it can be seen that user only need to be to user terminal touch screen Touch operation is carried out, i.e., the audio file of changeable wireless sound box is conducive to the switching effect for promoting the audio file of wireless sound box Rate and convenience.
It is below the unit composed structure of user terminal disclosed by the embodiments of the present invention, user disclosed by the embodiments of the present invention The unit composed structure of terminal is for executing the method that embodiment of the present invention method is realized.
Based on the composition framework of user terminal 200 shown in Fig. 2, the embodiment of the invention discloses a kind of user terminal. Referring to Fig. 4, Fig. 4 is the unit composed structure schematic diagram of user terminal disclosed by the embodiments of the present invention.
As shown in figure 4, the user terminal 400 may include detection unit 401, acquiring unit 402, transmission unit 403, In:
Acquiring unit 401 carries out the touch parameter of touch operation for obtaining user to user terminal touch screen.
Determination unit 402 determines the Target Wireless for the touch parameter according to the information acquired by the acquisition unit Speaker.
The determination unit 402, if being also used to the touch parameter meets audio file switching condition, according to the acquisition The touch parameter that unit is got determines target audio file.
Transmission unit 403, the Target Wireless speaker for determining to the determination unit send audio file and play Instruction, the audio file play instruction, which is used to indicate, plays the target audio file that the determination unit determines.
Optionally, the determination unit 402, if being also used to the touch parameter is unsatisfactory for audio file switching condition, The target adjustment duration of audio file and the adjustment direction of the target adjustment duration are determined according to the touch parameter;The hair Unit 403 is sent, is also used to send audio file control instruction to the Target Wireless speaker, the audio file control instruction is used It is adjusted in the adjustment direction of the target adjustment duration and the target adjustment duration that instruction is determined according to the determination unit The playback progress of the currently playing audio file of the Target Wireless speaker.
Optionally, the acquiring unit 401 is specifically used for: obtaining user in first time and touches to the touch screen The first identifier point and second identifier point of operation;The third that user carries out touch operation to the touch screen is obtained in the second time Identification point and the 4th identification point;The first glide direction, Yi Jigen are determined according to the first identifier point and the third identification point The second glide direction is determined according to the second identifier point and the 4th identification point;Determine the first identifier point and the third Second distance between first distance between identification point and second identifier point and the 4th identification point;According to described The difference and the first distance of one time and second time and the second distance, determine First Speed and second Speed;By the first distance, the second distance, the First Speed, the second speed, first glide direction and Second glide direction is as the touch parameter.
Optionally, the determination unit 401 is specifically used for: according to the mapping relations of touch screen zone and wireless sound box, really The corresponding wireless sound box of touch screen zone locating for the fixed first identifier point and second identifier point, and the wireless sound box is made For Target Wireless speaker.
Optionally, the audio file switching condition comprises at least one of the following: first glide direction and described Two glide directions are matched with default glide direction;The First Speed and the second speed are less than or equal to pre-set velocity;Institute It states first distance and the second distance is greater than or equal to pre-determined distance.
It should be noted that user terminal 400 described in the embodiment of the present invention is presented in the form of functional unit.This In used term " unit " should be understood as meaning as widest as possible, for realizing function described by each " unit " Object for example can be integrated circuit ASIC, single circuit, for executing the processor of one or more softwares or firmware program Other of (shared, dedicated or chipset) and memory, combinational logic circuit, and/or the above-mentioned function of offer realization are suitable Component.For example, art technology person people can be assumed that the composition form of the hardware carrier of user terminal 400 specifically can be with It is user terminal 200 shown in Fig. 2.Wherein, the function of the acquiring unit 401 and the determination unit 402 can be by described Processor 201 and memory 202 in user terminal 200 are realized, particular by 201 run memory 202 of processor Touch parameter obtain module to obtain the touch parameter that user to user terminal touch screen carries out touch operation, the user is whole Really the cover half block touch parameter according to the information acquired by the acquisition unit in 201 run memory 202 of processor at end 200 Determine the Target Wireless speaker;And if the processor 201 of the user terminal 200 determines that the touch parameter meets audio File switching condition, in 201 run memory 202 of processor of the user terminal 200 really cover half root tuber according to the acquisition The touch parameter that unit is got determines target audio file;The function of the transmission unit 403 can be by the user Reception/transmitting line 204 of terminal 200 realizes, particular by the user terminal 200 reception/transmitting line 204 to The Target Wireless speaker that the determination unit determines sends audio file play instruction, and the audio file play instruction is used The target audio file that the determination unit determines is played in instruction.
As can be seen that in the embodiment of the present invention, when user terminal detects that user to user terminal touch screen is touched When operation, user terminal obtains the touch parameter that user to user terminal touch screen carries out touch operation;And according to the touch-control Parameter determines the Target Wireless speaker, in the case where the touch parameter meets audio file switching condition, user terminal Target audio file is determined according to the touch parameter, and sends audio file play instruction, institute to the Target Wireless speaker It states audio file play instruction and is used to indicate the broadcasting target audio file.As it can be seen that user only need to be to user terminal touch screen Touch operation is carried out, i.e., the audio file of changeable wireless sound box is conducive to the switching effect for promoting the audio file of wireless sound box Rate and convenience.
The embodiment of the present invention also provides a kind of computer storage medium, wherein the computer storage medium can be stored with journey Sequence, the program include some or all of any control property processing method recorded in above method embodiment when executing Step.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because According to the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules is not necessarily of the invention It is necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed device, it can be by another way It realizes.For example, the apparatus embodiments described above are merely exemplary, such as the division of the unit, it is only a kind of Logical function partition, there may be another division manner in actual implementation, such as multiple units or components can combine or can To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Coupling, direct-coupling or communication connection can be through some interfaces, the indirect coupling or communication connection of device or unit, It can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer-readable access to memory.Based on this understanding, technical solution of the present invention substantially or Person says that all or part of the part that contributes to existing technology or the technical solution can body in the form of software products Reveal and, which is stored in a memory, including some instructions are used so that a computer equipment (can be personal computer, server or network equipment etc.) executes all or part of each embodiment the method for the present invention Step.And memory above-mentioned includes: USB flash disk, read-only memory (ROM, Read-Only Memory), random access memory The various media that can store program code such as (RAM, Random Access Memory), mobile hard disk, magnetic or disk.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can store in a computer-readable memory, memory May include: flash disk, read-only memory (English: Read-Only Memory, referred to as: ROM), random access device (English: Random Access Memory, referred to as: RAM), disk or CD etc..
The embodiment of the present invention has been described in detail above, specific case used herein to the principle of the present invention and Embodiment is expounded, and the above description of the embodiment is only used to help understand the method for the present invention and its core ideas; At the same time, for those skilled in the art can in specific embodiments and applications according to the thought of the present invention There is change place, to sum up above-mentioned, the contents of this specification are not to be construed as limiting the invention.

Claims (7)

1. a kind of switching method of audio file characterized by comprising
Obtain the touch parameter that user to user terminal touch screen carries out touch operation;
Target Wireless speaker is determined according to the touch parameter;
If the touch parameter meets audio file switching condition, target audio file is determined according to the touch parameter;
Audio file play instruction is sent to the Target Wireless speaker, the audio file play instruction, which is used to indicate, plays institute State target audio file;
The touch parameter for obtaining user to user terminal touch screen and carrying out touch operation, comprising: obtain and use in first time Family carries out the first identifier point and second identifier point of touch operation to the touch screen;User is obtained to the touching in the second time Touch third identification point and the 4th identification point that screen carries out touch operation;It is true according to the first identifier point and the third identification point Fixed first glide direction, and the second glide direction is determined according to the second identifier point and the 4th identification point;Determine institute State first distance between first identifier point and the third identification point and second identifier point and the 4th identification point it Between second distance;According to the difference and the first distance and described second of the first time and second time Distance determines First Speed and second speed;By the first distance, the second distance, the First Speed, described second Speed, first glide direction and second glide direction are as the touch parameter;
Wherein, described that Target Wireless speaker is determined according to the touch parameter, comprising: according to touch screen zone and wireless sound box Mapping relations, determine the corresponding wireless sound box of touch screen zone locating for the first identifier point and second identifier point, and by institute Wireless sound box is stated as Target Wireless speaker.
2. the method according to claim 1, wherein the method also includes:
If the touch parameter is unsatisfactory for audio file switching condition, the target of audio file is determined according to the touch parameter Adjust the adjustment direction of duration and the target adjustment duration;
Audio file control instruction is sent to the Target Wireless speaker, the audio file control instruction is used to indicate according to institute The adjustment direction for stating target adjustment duration and the target adjustment duration adjusts the currently playing audio of the Target Wireless speaker The playback progress of file.
3. method according to claim 1 or 2, which is characterized in that the audio file switching condition include it is following at least A kind of: first glide direction and second glide direction are matched with default glide direction;The First Speed and described Second speed is less than or equal to pre-set velocity;The first distance and the second distance are greater than or equal to pre-determined distance.
4. a kind of user terminal characterized by comprising
Acquiring unit carries out the touch parameter of touch operation for obtaining user to user terminal touch screen;
Determination unit determines Target Wireless speaker for the touch parameter according to the information acquired by the acquisition unit;
The determination unit obtains if being also used to the touch parameter meets audio file switching condition according to the acquiring unit The touch parameter got determines target audio file;
Transmission unit, the Target Wireless speaker for determining to the determination unit send audio file play instruction, institute It states audio file play instruction and is used to indicate the target audio file that the broadcasting determination unit determines;
Wherein, the acquiring unit is specifically used for: obtaining user in first time and carries out the of touch operation to the touch screen One identification point and second identifier point;The second time obtain user to the touch screen carry out touch operation third identification point and 4th identification point;The first glide direction is determined according to the first identifier point and the third identification point, and according to described Two identification points and the 4th identification point determine the second glide direction;Determine the first identifier point and the third identification point it Between first distance and second identifier point and the 4th identification point between second distance;According to the first time and The difference and the first distance of second time and the second distance, determine First Speed and second speed;By institute State first distance, the second distance, the First Speed, the second speed, first glide direction and described second Glide direction is as the touch parameter;
Wherein, the determination unit is specifically used for: according to the mapping relations of touch screen zone and wireless sound box, determining described first The corresponding wireless sound box of touch screen zone locating for identification point and second identifier point, and using the wireless sound box as Target Wireless Speaker.
5. user terminal according to claim 4, which is characterized in that
The determination unit is joined if being also used to the touch parameter is unsatisfactory for audio file switching condition according to the touch-control Number determines the target adjustment duration of audio file and the adjustment direction of the target adjustment duration;
The transmission unit is also used to send audio file control instruction, the audio file control to the Target Wireless speaker System instruction is used to indicate the adjustment of the target adjustment duration and the target adjustment duration that determine according to the determination unit Direction adjusts the playback progress of the currently playing audio file of the Target Wireless speaker.
6. user terminal according to claim 4 or 5, which is characterized in that the audio file switching condition includes following At least one: first glide direction and second glide direction are matched with default glide direction;The First Speed and The second speed is less than or equal to pre-set velocity;The first distance and the second distance are greater than or equal to pre-determined distance.
7. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has computer journey Sequence, the computer program is for instructing related hardware, to complete method described in claims 1 to 3 any one.
CN201510925324.0A 2015-12-10 2015-12-10 A kind of switching method and user terminal of audio file Active CN105389118B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510925324.0A CN105389118B (en) 2015-12-10 2015-12-10 A kind of switching method and user terminal of audio file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510925324.0A CN105389118B (en) 2015-12-10 2015-12-10 A kind of switching method and user terminal of audio file

Publications (2)

Publication Number Publication Date
CN105389118A CN105389118A (en) 2016-03-09
CN105389118B true CN105389118B (en) 2018-12-11

Family

ID=55421440

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510925324.0A Active CN105389118B (en) 2015-12-10 2015-12-10 A kind of switching method and user terminal of audio file

Country Status (1)

Country Link
CN (1) CN105389118B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105867180A (en) * 2016-03-31 2016-08-17 北京小米移动软件有限公司 Control method and device
WO2020073536A1 (en) 2018-10-09 2020-04-16 华为技术有限公司 Voice switching method, electronic device, and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103248405A (en) * 2012-02-14 2013-08-14 太和光股份有限公司 Receiving apparatus, host apparatus, and control method
CN103329075A (en) * 2011-01-06 2013-09-25 Tivo有限公司 Method and apparatus for gesture based controls
CN104572060A (en) * 2013-10-28 2015-04-29 广达电脑股份有限公司 remote playing system and method
CN104753484A (en) * 2015-03-11 2015-07-01 广东欧珀移动通信有限公司 Volume control method for wireless loudspeaker boxes and terminal
CN104765548A (en) * 2015-03-24 2015-07-08 广东欧珀移动通信有限公司 Voice box play control method and terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9703471B2 (en) * 2012-11-06 2017-07-11 D&M Holdings, Inc. Selectively coordinated audio player system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103329075A (en) * 2011-01-06 2013-09-25 Tivo有限公司 Method and apparatus for gesture based controls
CN103248405A (en) * 2012-02-14 2013-08-14 太和光股份有限公司 Receiving apparatus, host apparatus, and control method
CN104572060A (en) * 2013-10-28 2015-04-29 广达电脑股份有限公司 remote playing system and method
CN104753484A (en) * 2015-03-11 2015-07-01 广东欧珀移动通信有限公司 Volume control method for wireless loudspeaker boxes and terminal
CN104765548A (en) * 2015-03-24 2015-07-08 广东欧珀移动通信有限公司 Voice box play control method and terminal

Also Published As

Publication number Publication date
CN105389118A (en) 2016-03-09

Similar Documents

Publication Publication Date Title
CN105354039B (en) Application management method and device
CN104571498A (en) Application program starting method
CN106406675A (en) Fast method for running application programs and terminal equipment
CN105487705B (en) Mobile terminal, input processing method and user equipment
CN106060612A (en) Video playing method and video playing device
CN103970414A (en) Application icon management method and terminal
CN104795080A (en) Music playing control method and device
CN103500232A (en) Multimedia data sharing method and electronic equipment
CN109032470A (en) Screenshot method, device, terminal and computer readable storage medium
CN104869207A (en) Volume adjusting method and mobile terminal
CN105389118B (en) A kind of switching method and user terminal of audio file
CN104536781A (en) Terminal
CN107967092A (en) Application related information display methods and relevant device
CN107404587A (en) Audio play control method, audio broadcast control device and mobile terminal
CN104571888B (en) Radio station switching method and radio station switching device in intelligent terminal
CN103207726B (en) The apparatus and method of clipper service are provided in portable terminal
CN105824509A (en) Method and device for arranging icons
CN111857473B (en) Audio playing method and device and electronic equipment
CN105808061A (en) Desktop arranging method and mobile terminal
CN106303003A (en) The method of a kind of application recommendation and terminal
CN105933492A (en) Phone number obtaining method and device
CN105959496B (en) Playback method and device
CN104052801A (en) Information processing method and electronic equipment
CN105528175B (en) A kind of method and user terminal for adding wireless sound box
CN107071655B (en) Method and device for configuring stereo output, audio playing equipment and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.