CN104143347A - Audio playing control method, client side and terminal device - Google Patents

Audio playing control method, client side and terminal device Download PDF

Info

Publication number
CN104143347A
CN104143347A CN201310169023.0A CN201310169023A CN104143347A CN 104143347 A CN104143347 A CN 104143347A CN 201310169023 A CN201310169023 A CN 201310169023A CN 104143347 A CN104143347 A CN 104143347A
Authority
CN
China
Prior art keywords
terminal device
client
audio file
information
velocity information
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.)
Pending
Application number
CN201310169023.0A
Other languages
Chinese (zh)
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201310169023.0A priority Critical patent/CN104143347A/en
Publication of CN104143347A publication Critical patent/CN104143347A/en
Pending legal-status Critical Current

Links

Landscapes

  • Telephone Function (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the invention provides an audio playing method, a client side and a terminal device. The audio playing control method comprises the steps that the client side detects the speed information of the terminal device where the client side is located, the client side acquires an audio file related to the speed information of the terminal device according to the incidence relation of the preset speed information and the audio file, and the client side controls playing of the acquired audio file. By means of the audio playing method, the client side and the terminal device, the audio playing controlling efficiency can be effectively improved, and the intelligence of audio playing controlling can be improved.

Description

Audio play control method, client and terminal device
Technical field
The present invention relates to Internet technical field, be specifically related to audio frequency play-back technology field, relate in particular to a kind of audio play control method, client and terminal device.
Background technology
At present, terminal device (for example: mobile phone, vehicle-mounted terminal equipment etc.) in the process of audio frequency Play Control be mainly manual control, for example: user can manually select the local audio file of terminal device, utilize the audio client in terminal device to play; Or user can the audio client by terminal device select network audio file play, etc.The artificial audio frequency Play Control of above-mentioned dependence intelligent lower, especially be not suitable for the scene of terminal device in moving process, for example: vehicle-mounted terminal equipment is in vehicle operating process time, need vehicle driver manually to select audio file to play, both reduce the intelligent of audio client, also may affect driving safety simultaneously.
Summary of the invention
The embodiment of the present invention provides a kind of audio play control method, client and terminal device, can effectively improve the efficiency of audio frequency Play Control, promotes the intelligent of audio frequency Play Control.
First aspect present invention provides a kind of audio play control method, can comprise:
Client detects the velocity information of described client place terminal device;
Described client, according to default velocity information and the incidence relation of audio file, is obtained the audio file being associated with the velocity information of described terminal device;
The audio file obtaining described in described client control broadcasting.
Second aspect present invention provides a kind of client, can comprise:
Speed detection module, for detection of the velocity information of described client place terminal device;
Audio frequency acquisition module, for according to default velocity information and the incidence relation of audio file, obtains the audio file being associated with the velocity information of described terminal device;
Transmit control module, for controlling the audio file obtaining described in broadcasting.
Third aspect present invention provides a kind of terminal device, can comprise the client that above-mentioned second aspect provides.
Implement the embodiment of the present invention, there is following beneficial effect:
In the embodiment of the present invention, client can be by detecting the velocity information of client place terminal device, the audio file that automatic acquisition is associated with the velocity information of terminal device carries out Play Control, audio frequency Play Control process is without artificial participation, thereby improve the efficiency of audio frequency Play Control, effectively promoted the intelligent of audio frequency Play Control.
Brief description of the drawings
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The process flow diagram of a kind of audio play control method that Fig. 1 provides for the embodiment of the present invention;
The process flow diagram of the another kind of audio play control method that Fig. 2 provides for the embodiment of the present invention;
The process flow diagram of another audio play control method that Fig. 3 provides for the embodiment of the present invention;
The structural representation of a kind of client that Fig. 4 provides for the embodiment of the present invention;
The structural representation of an embodiment of the speed detection module that Fig. 5 provides for the embodiment of the present invention;
The structural representation of another embodiment of the speed detection module that Fig. 6 provides for the embodiment of the present invention;
The structural representation of the embodiment of the transmit control module that Fig. 7 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
In the embodiment of the present invention, audio file can include but not limited to: the files such as song, snatch of song, music, snatch of music.Terminal device can include but not limited to: PC(Personal Computer, personal computer), the equipment such as panel computer, mobile phone, smart mobile phone, notebook computer, car-mounted terminal.Client refers to carry out the client of audio frequency Play Control and processing, can include but not limited to: IM(Instant Messenger, instant messaging) client, SNS(Social Networking Services, social network services) client etc.Wherein, client is installed in terminal device, and client belongs to the client modules in terminal device, and terminal device belongs to client place terminal device.
Below in conjunction with accompanying drawing 1-accompanying drawing 3, the audio play control method that the embodiment of the present invention is provided describes in detail.
Refer to Fig. 1, the process flow diagram of a kind of audio play control method providing for the embodiment of the present invention; The method can comprise the following steps S101-step S103.
S101, client detects the velocity information of described client place terminal device.
Wherein, the velocity information of described terminal device, refers to the velocity information of described terminal device in moving process, for example: the velocity information of mobile phone in moving process; Or car-mounted terminal is along with the velocity information in vehicle mobile process, etc.
S102, described client, according to default velocity information and the incidence relation of audio file, is obtained the audio file being associated with the velocity information of described terminal device.
Wherein, described default velocity information with the incidence relation of audio file is: a velocity information is associated with at least one audio file.For instance, the incidence relation of described default velocity information and audio file can adopt following table one expression:
Table one: the incidence relation table of default velocity information and audio file
The identification information of the associated audio file of record in above-mentioned table one, can be ID(Identity, identification number) or URL(Uniform Resource Locator, URL(uniform resource locator)) address, can get the audio file of described association according to the identification information of this associated audio file; For example: the audio file one in above-mentioned table one can be the URL address information of audio file one, can download audio files one according to the URL address information of this audio file one; For another example: the audio file one in above-mentioned table one can be the ID of audio file, can obtain audio file one by the ID of this audio file one.Being understandable that, only, for for example, can also there are other situations in the content of above-mentioned table one, for example: quantity and the type of the associated audio file of velocity information in above-mentioned table one can be set according to actual conditions; For another example: the quantity of the velocity information in above-mentioned table one can be set according to actual conditions; Etc..
Can there are two kinds of feasible embodiments in this step:
In a kind of feasible embodiment, the incidence relation of described default velocity information and audio file can be stored in server.According to example shown in table one, in this step, described client can send audio frequency to server and obtain request, and this audio frequency obtains the velocity information of carrying described terminal device in request; Server receives after this audio frequency obtains request, obtains the identification information of the audio file being associated with the velocity information of described terminal device by inquiring about above-mentioned table one; The audio file being associated described in the identification information of the audio file being associated described in described server basis obtains, the audio file being associated with velocity information described terminal device that obtain is returned to described client by described server.
In the feasible embodiment of another kind, the incidence relation of described default velocity information and audio file can be stored in described client.In this step, described client is according to the velocity information of described terminal device; Obtain the identification information of the audio file being associated with the velocity information of described terminal device by inquiring about above-mentioned table one, and the audio file being associated described in obtaining according to the identification information of the described audio file being associated.
S103, the audio file that described client control is obtained described in playing.
In this step, the audio file obtaining described in described client control broadcasting, for example: if step S102 gets audio file one, audio file two and audio file three, in this step, described client can played in order audio file one, audio file two and audio file three, also can from audio file one, audio file two and audio file three, select an audio file to play at random.
In the embodiment of the present invention, client can be by detecting the velocity information of client place terminal device, the audio file that automatic acquisition is associated with the velocity information of terminal device carries out Play Control, audio frequency Play Control process is without artificial participation, thereby improve the efficiency of audio frequency Play Control, effectively promoted the intelligent of audio frequency Play Control.
Refer to Fig. 2, the process flow diagram of the another kind of audio play control method providing for the embodiment of the present invention; The method can comprise the following steps S201-step S205.
S201, client is opened GPS(Global Positioning System, GPS according to default sense cycle) apply, detect the positional information of described client place terminal device.
In the present embodiment, be provided with GPS application in described client, client can be opened this GPS application according to default sense cycle, and wherein, this sense cycle can be set according to actual conditions, for example: can set sense cycle can be 5s, 10s, etc.Taking sense cycle as 5s as example describes, start timing from starting described client, in the time that first 5s arrives, described client is opened GPS application, and the positional information that detects described client place terminal device is S1, and after detection completes, closes GPS application; In the time that second 5s arrives, described client is opened GPS application, and the positional information that detects described client place terminal device is S2, and after detection completes, closes GPS application; By that analogy.
S202, described client, according to the positional information of the described terminal device detecting in the current detection cycle, is calculated the mean velocity information of described terminal device within the current detection cycle.
In the embodiment of the present invention, the mean velocity information of described terminal device within the current detection cycle, refer to positional information that described terminal device detects from last sense cycle to current detection cycle detection to positional information distance segment in, with this mean velocity information operation, for example: suppose that the mean velocity information that described terminal device calculates in the time that first 5s arrives is V1, in distance segment between the positional information detecting while showing described terminal device from starting point to first 5s arrival, move with V1.Suppose that the current detection cycle is second sense cycle, according to the example in step S201, start timing from starting described client, when second 5s arrives, the positional information that described terminal device detected is S2; The computation process of this step can comprise:
(1) calculating of distance.Described client can be according to the positional information of the described terminal device detecting in the current detection cycle, and the positional information of the described terminal device detecting in last sense cycle, calculates the displacement of described terminal device within the current detection cycle; According to the example of this step S202, the positional information of the described terminal device detecting in last sense cycle is S1, and the displacement of described terminal device is that the relative S1 of S2 is apart from s.
(2) calculating of mean velocity information.Described client is calculated the mean velocity information of described terminal device within the current detection cycle, the duration that wherein T is sense cycle according to formula V=s/T.
Be understandable that, through above-mentioned (1) and (2), this step can calculate the mean velocity information of described terminal device within the current detection cycle, and this mean velocity information has embodied described terminal device ruuning situation in the horizontal direction.
S203, described client, according to default velocity information and the incidence relation of audio file, is obtained the audio file being associated with the mean velocity information of described terminal device.
The step S203 of the present embodiment can embodiment shown in Figure 1 step S102, be not repeated herein.
S204, described client is the mean velocity information within the current detection cycle and the mean velocity information of described terminal device in upper once sense cycle according to described terminal device, calculates the acceleration information of described terminal device.
This step is calculated the acceleration information of described terminal device according to acceleration formula, for example: suppose that the mean velocity information in last sense cycle is V1, mean velocity information in the current detection cycle is V2, the acceleration information that described client is calculated described terminal device according to acceleration formula is: Va=(V2-V1)/T, the duration that wherein T is sense cycle.Be understandable that, if the acceleration information result of calculation of described terminal device is positive number, show that described terminal device serves as reasons slow in fast from last sense cycle to the velocity variations in current detection cycle; If the acceleration information result of calculation of described terminal device for negative, shows described terminal device and serves as reasons fast to slow from last sense cycle to the velocity variations in current detection cycle.
S205, described client is according to the acceleration information of described terminal device, the broadcast sound volume of the audio file obtaining described in control and/or play rhythm.
In this step, the audio file obtaining described in described client control broadcasting, for example: according to the example of step S204, can get the audio file triad frequency file four that V2 is associated, in this step, described client can played in order audio file triad frequency file four, also can from audio file triad frequency file three, select an audio file to play at random.
In this step, if it is slow in fast that described terminal device is served as reasons from last sense cycle to the velocity variations in current detection cycle, described client can be in the process of the audio file that obtains described in playing, and improves the volume of described audio file and/or promotes the rhythm of described audio file; If it is fast to slow that described terminal device is served as reasons from last sense cycle to the velocity variations in current detection cycle, described client can be in the process of the audio file that obtains described in playing, and reduces the volume of described audio file and/or reduces the rhythm of described audio file; Can make so more the fit practical operation situation of terminal device of the broadcasting situation of audio file, the broadcasting that promotes user is experienced.
Or conversely, if it is fast to slow that described terminal device is served as reasons from last sense cycle to the velocity variations in current detection cycle, described client can be in the process of the audio file that obtains described in playing, and improves the volume of described audio file and/or promotes the rhythm of described audio file; If it is slow in fast that described terminal device is served as reasons from last sense cycle to the velocity variations in current detection cycle, described client can be in the process of the audio file that obtains described in playing, and reduces the volume of described audio file and/or reduces the rhythm of described audio file; The broadcasting situation of audio file and the practical operation situation contrary of terminal device can be made like this, described terminal device safe operation can be reminded.
In the embodiment of the present invention, client can be by detecting the velocity information of client place terminal device, the audio file that automatic acquisition is associated with the velocity information of terminal device carries out Play Control, audio frequency Play Control process is without artificial participation, thereby improve the efficiency of audio frequency Play Control, effectively promoted the intelligent of audio frequency Play Control.
Refer to Fig. 3, the process flow diagram of another audio play control method providing for the embodiment of the present invention; The method can comprise the following steps S301-step S305.
S301, client is opened GPS application and gravity sensing application according to default sense cycle simultaneously, detects positional information and the gravity sensing information of described client place terminal device.
In the present embodiment, be provided with GPS application and gravity sensing application in described client, GPS application can be used for detecting the positional information of described client place terminal device; Gravity sensing application can be used for detecting the gravity sensing information of described client place terminal device.Client can be opened this GPS application and the application of this gravity sensing according to default sense cycle simultaneously, and wherein, this sense cycle can be set according to actual conditions, for example: can set sense cycle can be 5s, 10s, etc.Taking sense cycle as 5s as example describes, start timing from starting described client, in the time that first 5s arrives, described client is opened GPS application and gravity sensing application simultaneously, detect positional information and the gravity sensing information of described client place terminal device, and after detection completes, close GPS application and gravity sensing application; In the time that second 5s arrives, described client is opened GPS application and gravity sensing application simultaneously, detects positional information and the gravity sensing information of described client place terminal device, and after detection completes, closes GPS application and gravity sensing application; By that analogy.
S302, described client, according to the positional information of the described terminal device detecting in the current detection cycle and gravity sensing information, is calculated the mean velocity information of described terminal device within the current detection cycle.
The step S202 of embodiment shown in Figure 2, described client can be according to the positional information of the described terminal device detecting in the current detection cycle, calculates described terminal device mean velocity information within the current detection cycle, in the horizontal direction.And gravity sensing information can reflect described terminal device motion conditions in vertical direction, be that described client can be according to the gravity sensing information of the described terminal device detecting in the current detection cycle, calculate described terminal device mean velocity information within the current detection cycle, in vertical direction, this concrete computation process can utilize existing gravity sensor and gyroscope principle to carry out comprehensive analytical calculation, is not repeated herein.Therefore, in this step, the positional information of the described terminal device of described client based on detecting in the current detection cycle and gravity sensing information, can calculate described terminal device within the current detection cycle, embody the mean velocity information of the ruuning situation of horizontal direction and vertical direction simultaneously.
S303, described client, according to default velocity information and the incidence relation of audio file, is obtained the audio file being associated with the mean velocity information of described terminal device.
S304, described client is the mean velocity information within the current detection cycle and the mean velocity information of described terminal device in upper once sense cycle according to described terminal device, calculates the acceleration information of described terminal device.
S305, described client is according to the acceleration information of described terminal device, the broadcast sound volume of the audio file obtaining described in control and/or play rhythm.
The step S303-step S305 of the embodiment of the present invention can embodiment shown in Figure 2 step S203-step S205, be not repeated herein.
In the embodiment of the present invention, client can be by detecting the velocity information of client place terminal device, the audio file that automatic acquisition is associated with the velocity information of terminal device carries out Play Control, audio frequency Play Control process is without artificial participation, thereby improve the efficiency of audio frequency Play Control, effectively promoted the intelligent of audio frequency Play Control.
Below in conjunction with accompanying drawing 4-accompanying drawing 7, the structure of the client that the embodiment of the present invention is provided describes in detail.It should be noted that, the client shown in accompanying drawing 4-accompanying drawing 7, for carrying out Fig. 1 of the present invention-method embodiment illustrated in fig. 3, for convenience of explanation, only show the part relevant to the embodiment of the present invention, concrete ins and outs do not disclose, and please refer to the embodiment shown in Fig. 1-Fig. 3 of the present invention.
Refer to Fig. 4, the structural representation of a kind of client providing for the embodiment of the present invention; This client can comprise: speed detection module 101, audio frequency acquisition module 102 and transmit control module 103.
Speed detection module 101, for detection of the velocity information of described client place terminal device.
Wherein, the velocity information of described terminal device, refers to the velocity information of described terminal device in moving process, for example: the velocity information of mobile phone in moving process; Or car-mounted terminal is along with the velocity information in vehicle mobile process, etc.
Audio frequency acquisition module 102, for according to default velocity information and the incidence relation of audio file, obtains the audio file being associated with the velocity information of described terminal device.
Wherein, described default velocity information with the incidence relation of audio file is: a velocity information is associated with at least one audio file.For instance, the incidence relation of described default velocity information and audio file can adopt above-mentioned table one expression.Can there are two kinds of feasible embodiments in described audio frequency acquisition module 102:
In a kind of feasible embodiment, the incidence relation of described default velocity information and audio file can be stored in server.According to example shown in table one, described audio frequency acquisition module 102 can send audio frequency to server and obtain request, and this audio frequency obtains the velocity information of carrying described terminal device in request; Server receives after this audio frequency obtains request, obtains the identification information of the audio file being associated with the velocity information of described terminal device by inquiring about above-mentioned table one; The audio file being associated described in the identification information of the audio file being associated described in described server basis obtains, the audio file being associated with velocity information described terminal device that obtain is returned to described audio frequency acquisition module 102 by described server.
In the feasible embodiment of another kind, the incidence relation of described default velocity information and audio file can be stored in described client.Described audio frequency acquisition module 102 is according to the velocity information of described terminal device; Obtain the identification information of the audio file being associated with the velocity information of described terminal device by inquiring about above-mentioned table one, and the audio file being associated described in obtaining according to the identification information of the described audio file being associated.
Transmit control module 103, for controlling the audio file obtaining described in broadcasting.
The audio file obtaining described in described transmit control module 103 control broadcastings, for example: if get audio file one, audio file two and audio file three, described transmit control module 103 can played in order audio file one, audio file two and audio file three, also can from audio file one, audio file two and audio file three, select an audio file to play at random.
In the embodiment of the present invention, client can be by detecting the velocity information of client place terminal device, the audio file that automatic acquisition is associated with the velocity information of terminal device carries out Play Control, audio frequency Play Control process is without artificial participation, thereby improve the efficiency of audio frequency Play Control, effectively promoted the intelligent of audio frequency Play Control.
Below in conjunction with accompanying drawing 5-accompanying drawing 7, the each module in above-mentioned client is described in detail.
Refer to Fig. 5, the structural representation of an embodiment of the speed detection module providing for the embodiment of the present invention; This speed detection module 101 can comprise: the first detecting unit 1101 and First Speed computing unit 1102.
The first detecting unit 1101, opens GPS application for the sense cycle according to default, detects the positional information of described client place terminal device.
In the present embodiment, be provided with GPS application in described client, client can be opened this GPS application according to default sense cycle, and wherein, this sense cycle can be set according to actual conditions, for example: can set sense cycle can be 5s, 10s, etc.Taking sense cycle as 5s as example describes, start timing from starting described client, in the time that first 5s arrives, described the first detecting unit 1101 is opened GPS application, the positional information that detects described client place terminal device is S1, and after detection completes, closes GPS application; In the time that second 5s arrives, described the first detecting unit 1101 is opened GPS application, and the positional information that detects described client place terminal device is S2, and after detection completes, closes GPS application; By that analogy.
First Speed computing unit 1102, for according to the positional information of the described terminal device detecting in the current detection cycle, calculates the mean velocity information of described terminal device within the current detection cycle.
In the embodiment of the present invention, the mean velocity information of described terminal device within the current detection cycle, refer to positional information that described terminal device detects from last sense cycle to current detection cycle detection to positional information distance segment in, with this mean velocity information operation, for example: suppose that the mean velocity information that described terminal device calculates in the time that first 5s arrives is V1, in distance segment between the positional information detecting while showing described terminal device from starting point to first 5s arrival, move with V1.Suppose that the current detection cycle is second sense cycle, according to the example in embodiment illustrated in fig. 4, start timing from starting described client, when second 5s arrives, the positional information that described terminal device detected is S2; The computation process of described First Speed computing unit 1102 can comprise:
(1) calculating of distance.Described First Speed computing unit 1102 can be according to the positional information of the described terminal device detecting in the current detection cycle, and the positional information of the described terminal device detecting in last sense cycle, calculate the displacement of described terminal device within the current detection cycle; According to the example in embodiment illustrated in fig. 4, the positional information of the described terminal device detecting in last sense cycle is S1, and the displacement of described terminal device is that the relative S1 of S2 is apart from s.
(2) calculating of mean velocity information.Described First Speed computing unit 1102 calculates the mean velocity information of described terminal device within the current detection cycle, the duration that wherein T is sense cycle according to formula V=s/T.
Be understandable that, through above-mentioned (1) and (2), described First Speed computing unit 1102 can calculate the mean velocity information of described terminal device within the current detection cycle, and this mean velocity information has embodied described terminal device ruuning situation in the horizontal direction.
Refer to Fig. 6, the structural representation of another embodiment of the speed detection module providing for the embodiment of the present invention; This speed detection module 101 can comprise: the second detecting unit 1111 and second speed computing unit 1112.
The second detecting unit 1111 is opened GPS application and gravity sensing application for the sense cycle according to default simultaneously, detects positional information and the gravity sensing information of described client place terminal device.
In the present embodiment, be provided with GPS application and gravity sensing application in described client, GPS application can be used for detecting the positional information of described client place terminal device; Gravity sensing application can be used for detecting the gravity sensing information of described client place terminal device.Described the second detecting unit 1111 can be opened this GPS application and gravity sensing application according to default sense cycle simultaneously, and wherein, this sense cycle can be set according to actual conditions, for example: can set sense cycle can be 5s, 10s, etc.Taking sense cycle as 5s as example describes, start timing from starting described client, in the time that first 5s arrives, described the second detecting unit 1111 is opened GPS application and gravity sensing application simultaneously, detect positional information and the gravity sensing information of described client place terminal device, and after detection completes, close GPS application and gravity sensing application; In the time that second 5s arrives, described the second detecting unit 1111 is opened GPS application and gravity sensing application simultaneously, detects positional information and the gravity sensing information of described client place terminal device, and after detection completes, closes GPS application and gravity sensing application; By that analogy.
Second speed computing unit 1112, for according to the positional information of the described terminal device detecting in the current detection cycle and gravity sensing information, calculates the mean velocity information of described terminal device within the current detection cycle.
Embodiment shown in Figure 5, according to the positional information of the described terminal device detecting in the current detection cycle, can calculate described terminal device mean velocity information within the current detection cycle, in the horizontal direction.And gravity sensing information can reflect described terminal device motion conditions in vertical direction, according to the gravity sensing information of the described terminal device detecting in the current detection cycle, can calculate described terminal device mean velocity information within the current detection cycle, in vertical direction, this concrete computation process can utilize existing gravity sensor and gyroscope principle to carry out comprehensive analytical calculation, is not repeated herein.Therefore, positional information and the gravity sensing information of the described terminal device of described second speed computing unit 1112 based on detecting in the current detection cycle, can calculate described terminal device within the current detection cycle, embody the mean velocity information of the ruuning situation of horizontal direction and vertical direction simultaneously.
Refer to Fig. 7, the structural representation of the embodiment of the transmit control module providing for the embodiment of the present invention; This transmit control module 103 can comprise: acceleration calculation unit 1301 and playing control unit 1302.
Acceleration calculation unit 1301, for the mean velocity information within the current detection cycle and the described terminal device mean velocity information in upper once sense cycle according to described terminal device, calculates the acceleration information of described terminal device.
Described acceleration calculation unit 1301 calculates the acceleration information of described terminal device according to acceleration formula, for example: suppose that the mean velocity information in last sense cycle is V1, mean velocity information in the current detection cycle is V2, the acceleration information that described acceleration calculation unit 1301 calculates described terminal device according to acceleration formula is: Va=(V2-V1)/T, the duration that wherein T is sense cycle.Be understandable that, if the acceleration information result of calculation of described terminal device is positive number, show that described terminal device serves as reasons slow in fast from last sense cycle to the velocity variations in current detection cycle; If the acceleration information result of calculation of described terminal device for negative, shows described terminal device and serves as reasons fast to slow from last sense cycle to the velocity variations in current detection cycle.
Playing control unit 1302, for according to the acceleration information of described terminal device, the broadcast sound volume of the audio file obtaining described in control and/or play rhythm.
The audio file obtaining described in described playing control unit 1302 control broadcastings, for example: if get the audio file triad frequency file four that V2 is associated, described playing control unit 1302 can played in order audio file triad frequency file four, also can from audio file triad frequency file three, select an audio file to play at random.
If it is slow in fast that described terminal device is served as reasons from last sense cycle to the velocity variations in current detection cycle, described playing control unit 1302 can be in the process of the audio file that obtains described in playing, and improves the volume of described audio file and/or promotes the rhythm of described audio file; If it is fast to slow that described terminal device is served as reasons from last sense cycle to the velocity variations in current detection cycle, described playing control unit 1302 can be in the process of the audio file that obtains described in playing, and reduces the volume of described audio file and/or reduces the rhythm of described audio file; Can make so more the fit practical operation situation of terminal device of the broadcasting situation of audio file, the broadcasting that promotes user is experienced.
Or conversely, if it is fast to slow that described terminal device is served as reasons from last sense cycle to the velocity variations in current detection cycle, described playing control unit 1302 can be in the process of the audio file that obtains described in playing, and improves the volume of described audio file and/or promotes the rhythm of described audio file; If it is slow in fast that described terminal device is served as reasons from last sense cycle to the velocity variations in current detection cycle, described playing control unit 1302 can be in the process of the audio file that obtains described in playing, and reduces the volume of described audio file and/or reduces the rhythm of described audio file; The broadcasting situation of audio file and the practical operation situation contrary of terminal device can be made like this, described terminal device safe operation can be reminded.
By the description of above-described embodiment, in the embodiment of the present invention, client can be by detecting the velocity information of client place terminal device, the audio file that automatic acquisition is associated with the velocity information of terminal device carries out Play Control, audio frequency Play Control process is without artificial participation, thereby improve the efficiency of audio frequency Play Control, effectively promoted the intelligent of audio frequency Play Control.
The embodiment of the invention also discloses a kind of terminal device, in this terminal device, comprise client, the 26S Proteasome Structure and Function of this client can, referring to Fig. 4-associated description embodiment illustrated in fig. 7, be not repeated herein.It should be noted that, the terminal device of the present embodiment can be applied in the method shown in Fig. 1-Fig. 3.
By the description of above-described embodiment, in the embodiment of the present invention, client can be by detecting the velocity information of client place terminal device, the audio file that automatic acquisition is associated with the velocity information of terminal device carries out Play Control, audio frequency Play Control process is without artificial participation, thereby improve the efficiency of audio frequency Play Control, effectively promoted the intelligent of audio frequency Play Control.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, can carry out the hardware that instruction is relevant by computer program to complete, described program can be stored in a computer read/write memory medium, this program, in the time carrying out, can comprise as the flow process of the embodiment of above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosed is only preferred embodiment of the present invention, certainly can not limit with this interest field of the present invention, and the equivalent variations of therefore doing according to the claims in the present invention, still belongs to the scope that the present invention is contained.

Claims (11)

1. an audio play control method, is characterized in that, comprising:
Client detects the velocity information of described client place terminal device;
Described client, according to default velocity information and the incidence relation of audio file, is obtained the audio file being associated with the velocity information of described terminal device;
The audio file obtaining described in described client control broadcasting.
2. the method for claim 1, is characterized in that, described client detects the velocity information of described client place terminal device, comprising:
Client is opened global position system GPS application according to default sense cycle, detects the positional information of described client place terminal device;
Described client, according to the positional information of the described terminal device detecting in the current detection cycle, is calculated the mean velocity information of described terminal device within the current detection cycle.
3. the method for claim 1, is characterized in that, described client detects the velocity information of described client place terminal device, comprising:
Client is opened GPS application and gravity sensing application according to default sense cycle simultaneously, detects positional information and the gravity sensing information of described client place terminal device;
Described client, according to the positional information of the described terminal device detecting in the current detection cycle and gravity sensing information, is calculated the mean velocity information of described terminal device within the current detection cycle.
4. the method as described in claim 1-3 any one, is characterized in that, described default velocity information with the incidence relation of audio file is: a velocity information is associated with at least one audio file.
5. method as claimed in claim 2 or claim 3, is characterized in that, the audio file that described client control is obtained described in playing, comprising:
Described client is the mean velocity information within the current detection cycle and the mean velocity information of described terminal device in upper once sense cycle according to described terminal device, calculates the acceleration information of described terminal device;
Described client is according to the acceleration information of described terminal device, the broadcast sound volume of the audio file obtaining described in control and/or play rhythm.
6. a client, is characterized in that, comprising:
Speed detection module, for detection of the velocity information of described client place terminal device;
Audio frequency acquisition module, for according to default velocity information and the incidence relation of audio file, obtains the audio file being associated with the velocity information of described terminal device;
Transmit control module, for controlling the audio file obtaining described in broadcasting.
7. client as claimed in claim 6, is characterized in that, described speed detection module comprises:
The first detecting unit, opens GPS application for the sense cycle according to default, detects the positional information of described client place terminal device;
First Speed computing unit, for according to the positional information of the described terminal device detecting in the current detection cycle, calculates the mean velocity information of described terminal device within the current detection cycle.
8. client as claimed in claim 6, is characterized in that, described speed detection module comprises:
The second detecting unit is opened GPS application and gravity sensing application for the sense cycle according to default simultaneously, detects positional information and the gravity sensing information of described client place terminal device;
Second speed computing unit, for according to the positional information of the described terminal device detecting in the current detection cycle and gravity sensing information, calculates the mean velocity information of described terminal device within the current detection cycle.
9. the client as described in claim 6-8 any one, is characterized in that, described default velocity information with the incidence relation of audio file is: a velocity information is associated with at least one audio file.
10. client as claimed in claim 7 or 8, is characterized in that, described transmit control module comprises:
Acceleration calculation unit, for the mean velocity information within the current detection cycle and the described terminal device mean velocity information in upper once sense cycle according to described terminal device, calculates the acceleration information of described terminal device;
Playing control unit, for according to the acceleration information of described terminal device, the broadcast sound volume of the audio file obtaining described in control and/or play rhythm.
11. 1 kinds of terminal devices, is characterized in that, comprise the client as described in claim 6-10 any one.
CN201310169023.0A 2013-05-09 2013-05-09 Audio playing control method, client side and terminal device Pending CN104143347A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310169023.0A CN104143347A (en) 2013-05-09 2013-05-09 Audio playing control method, client side and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310169023.0A CN104143347A (en) 2013-05-09 2013-05-09 Audio playing control method, client side and terminal device

Publications (1)

Publication Number Publication Date
CN104143347A true CN104143347A (en) 2014-11-12

Family

ID=51852503

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310169023.0A Pending CN104143347A (en) 2013-05-09 2013-05-09 Audio playing control method, client side and terminal device

Country Status (1)

Country Link
CN (1) CN104143347A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107426612A (en) * 2017-05-31 2017-12-01 厦门幻世网络科技有限公司 A kind of method and medium for controlling broadcasting speed
CN109461461A (en) * 2018-09-29 2019-03-12 北京小米移动软件有限公司 Audio frequency playing method, device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050060072A1 (en) * 2003-07-31 2005-03-17 Fujitsu Ten Limited Control apparatus for an in-vehicle device, control method for an in-vehicle device, and control program for an in-vehicle device
CN101295013A (en) * 2007-04-28 2008-10-29 佛山市顺德区顺达电脑厂有限公司 System and method for controlling video playing by global positioning system
CN101388233A (en) * 2008-10-22 2009-03-18 深圳华为通信技术有限公司 Method for playing music based on step of user and mobile terminal
CN101420654A (en) * 2008-11-07 2009-04-29 深圳华为通信技术有限公司 Overspeed prompting method, terminal device and system
CN202243174U (en) * 2011-08-19 2012-05-30 上海博泰悦臻电子设备制造有限公司 Vehicle system and speed prompting device thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050060072A1 (en) * 2003-07-31 2005-03-17 Fujitsu Ten Limited Control apparatus for an in-vehicle device, control method for an in-vehicle device, and control program for an in-vehicle device
CN101295013A (en) * 2007-04-28 2008-10-29 佛山市顺德区顺达电脑厂有限公司 System and method for controlling video playing by global positioning system
CN101388233A (en) * 2008-10-22 2009-03-18 深圳华为通信技术有限公司 Method for playing music based on step of user and mobile terminal
CN101420654A (en) * 2008-11-07 2009-04-29 深圳华为通信技术有限公司 Overspeed prompting method, terminal device and system
CN202243174U (en) * 2011-08-19 2012-05-30 上海博泰悦臻电子设备制造有限公司 Vehicle system and speed prompting device thereof

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107426612A (en) * 2017-05-31 2017-12-01 厦门幻世网络科技有限公司 A kind of method and medium for controlling broadcasting speed
CN109461461A (en) * 2018-09-29 2019-03-12 北京小米移动软件有限公司 Audio frequency playing method, device, electronic equipment and storage medium
CN109461461B (en) * 2018-09-29 2021-01-15 北京小米移动软件有限公司 Audio playing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN104742903B (en) Realize the method and device of cruise
CA2896719C (en) Audio control process
CN103546866B (en) A kind of method of arrival reminding and terminal
CN109634263B (en) Automatic driving method based on data synchronization, terminal and readable storage medium
EP3358811A1 (en) Systems and methods for content delivery and management
CN103079013A (en) Application operation method and device of mobile terminal and mobile terminal
CN110278324B (en) Method and device for detecting subway station entrance and exit states, terminal equipment and storage medium
US9679483B2 (en) System and method for providing traffic information
CN103763675A (en) User behavior analyzing and prompting method and system based on mobile terminal
CN104166464A (en) Method, device and portable terminal for controlling panorama display
CN104075725A (en) Navigation route generation method, and related equipment and system used in same
CN104143347A (en) Audio playing control method, client side and terminal device
US10555113B2 (en) Method and apparatus for adaptable geofences working in conjunction with vehicles
CN111045518A (en) Method for acquiring attitude data and related device
CN106842272B (en) Method, system and device for generating parking track in parking lot
CN103344247B (en) The air navigation aid of multi-client and device
EP2923250B1 (en) Low power management of multiple sensor integrated chip architecture
CN105551286A (en) Detection method for parking position of transportation means and electronic equipment
CN106558186A (en) Electronic installation and its safety warning system and method
CN114103944A (en) Workshop time distance adjusting method, device and equipment
CN102176038A (en) Information processing method, device and system
JP2019133670A (en) Information presentation method, information presentation system and information presentation program
Prakash et al. Traffic detection system using android
CN109407123A (en) A kind of information processing method, terminal and computer readable storage medium
CN103926610A (en) Equipment position information recording method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20141112

RJ01 Rejection of invention patent application after publication