CN106776793A - A kind of method and apparatus of playing audio-fequency data - Google Patents
A kind of method and apparatus of playing audio-fequency data Download PDFInfo
- Publication number
- CN106776793A CN106776793A CN201611046966.4A CN201611046966A CN106776793A CN 106776793 A CN106776793 A CN 106776793A CN 201611046966 A CN201611046966 A CN 201611046966A CN 106776793 A CN106776793 A CN 106776793A
- Authority
- CN
- China
- Prior art keywords
- target
- terminal location
- regional extent
- corresponding relation
- audio data
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/40—Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
- G06F16/43—Querying
- G06F16/438—Presentation of query results
- G06F16/4387—Presentation of query results by the use of playlists
Abstract
The invention discloses a kind of method and apparatus of playing audio-fequency data, belong to field of computer technology.Methods described includes:Obtain terminal location;According to the regional extent for prestoring and the corresponding relation of voice data, the corresponding target audio data of target area scope belonging to the terminal location are determined;The target audio data are played out.Using the present invention, the flexibility of audio broadcasting can be improved.
Description
Technical field
The present invention relates to field of computer technology, more particularly to a kind of method and apparatus of playing audio-fequency data.
Background technology
With the development of audio storage technology and play-back technology, the audios such as music, news, story are listened to have become people
One of the most frequently used entertainment way.
It is that the audio for oneself liking listening is added in playlist that people typically listen the mode of audio, terminal can circulate or
Shuffle audio in the play list.
Realize it is of the invention during, inventor find prior art at least there is problems with:
Audio broadcasting is carried out through the above way, no matter when and where, can only repeatedly play in the play list these
Changeless audio, so that, the flexibility for causing audio to be played is poor.
The content of the invention
In order to solve problem of the prior art, the method and dress of a kind of playing audio-fequency data are the embodiment of the invention provides
Put.The technical scheme is as follows:
First aspect, there is provided a kind of method of playing audio-fequency data, methods described includes:
Obtain terminal location;
According to the regional extent for prestoring and the corresponding relation of voice data, the target belonging to the terminal location is determined
The corresponding target audio data of regional extent;
The target audio data are played out.
Optionally, the acquisition terminal location, including:According to default detection cycle, terminal location is obtained;
The regional extent that the basis is prestored and the corresponding relation of voice data, determine belonging to the terminal location
The corresponding target audio data of target area scope, including:
According to the regional extent for prestoring and the corresponding relation of voice data, determine the terminal location in the correspondence
Target area scope affiliated in the regional extent that relation includes;
If the target area scope belonging to the terminal location is relative to upper detection cycle generation area range,
Then according to the regional extent and the corresponding relation of voice data, the target area scope correspondence belonging to the terminal location is determined
Target audio data.
So, can prevent audio from occurring interrupting repeatedly, replaying.
Optionally, the regional extent that the basis is prestored and the corresponding relation of voice data, determine the terminal position
The affiliated corresponding target audio data of target area scope are put, including:
According to the regional extent for prestoring and the corresponding relation of voice data, determine the terminal location in the correspondence
Target area scope affiliated in the regional extent that relation includes;
If the target area scope belonging to the terminal location has multiple, according to each region in the corresponding relation
The corresponding pre-set priority of scope, it is determined that in multiple target areas scope highest priority first area scope;
According to the regional extent for prestoring and the corresponding relation of voice data, determine that the first area scope is corresponding
Target audio data.
So, can set region and play more flexible with audio.
Optionally, the regional extent that the basis is prestored and the corresponding relation of voice data, determine the terminal position
The affiliated corresponding target audio data of target area scope are put, including:
According to the regional extent for prestoring and the corresponding relation of audio data sets, determine belonging to the terminal location
The corresponding target audio data acquisition system of target area scope;
It is described that the target audio data are played out, including:
Played in order or shuffle are carried out to the voice data in the target audio data acquisition system.
So, when user's extended stationary periods are in certain region, can prevent from playing identical audio repeatedly.
Optionally, it is described that the target audio data are played out, including:
According to the distance and the corresponding relation of volume that prestore, and the terminal location and the target area scope
Center distance, determine corresponding target volume;
The target audio data are played out based on the target volume.
So, the broadcast sound volume of audio can flexibly be automatically controlled.
Optionally, methods described also includes:
When terminal location is detected beyond the target area scope, stop playing the target audio data.
So, the broadcasting and stopping of audio can flexibly be controlled.
Second aspect, there is provided a kind of device of playing audio-fequency data, described device includes:
Acquisition module, for obtaining terminal location;
Determining module, for according to the regional extent for prestoring and the corresponding relation of voice data, determining the terminal
The corresponding target audio data of target area scope belonging to position;
Playing module, for being played out to the target audio data.
Optionally, the acquisition module, is used for:According to default detection cycle, terminal location is obtained;
The determining module, is used for:
According to the regional extent for prestoring and the corresponding relation of voice data, determine the terminal location in the correspondence
Target area scope affiliated in the regional extent that relation includes;
If the target area scope belonging to the terminal location is relative to upper detection cycle generation area range,
Then according to the regional extent and the corresponding relation of voice data, the target area scope correspondence belonging to the terminal location is determined
Target audio data.
Optionally, the determining module, is used for:
According to the regional extent for prestoring and the corresponding relation of voice data, determine the terminal location in the correspondence
Target area scope affiliated in the regional extent that relation includes;
If the target area scope belonging to the terminal location has multiple, according to each region in the corresponding relation
The corresponding pre-set priority of scope, it is determined that in multiple target areas scope highest priority first area scope;
According to the regional extent for prestoring and the corresponding relation of voice data, determine that the first area scope is corresponding
Target audio data.
Optionally, the determining module, is used for:
According to the regional extent for prestoring and the corresponding relation of audio data sets, determine belonging to the terminal location
The corresponding target audio data acquisition system of target area scope;
The playing module, is used for:
Played in order or shuffle are carried out to the voice data in the target audio data acquisition system.
Optionally, the playing module, is used for:
According to the distance and the corresponding relation of volume that prestore, and the terminal location and the target area scope
Center distance, determine corresponding target volume;
The target audio data are played out based on the target volume.
Optionally, the playing module, is additionally operable to:
When terminal location is detected beyond the target area scope, stop playing the target audio data.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought is:
In the embodiment of the present invention, terminal location is obtained, according to the regional extent for prestoring pass corresponding with voice data
System, determines the corresponding target audio data of target area scope belonging to terminal location, and target audio data are played out.This
Sample, the position where terminal being held based on user provides the user more flexible changeable audio, can improve audio broadcasting
Flexibility.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below will be to that will make needed for embodiment description
Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for
For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings
Accompanying drawing.
Fig. 1 is a kind of system architecture schematic diagram provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic flow sheet of the method for playing audio-fequency data provided in an embodiment of the present invention;
Fig. 3 is a kind for the treatment of schematic diagram of playing audio-fequency data provided in an embodiment of the present invention;
Fig. 4 is a kind of structural representation of the device of playing audio-fequency data provided in an embodiment of the present invention;
Fig. 5 is a kind of structural representation of server provided in an embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention
Formula is described in further detail.
A kind of method of playing audio-fequency data is the embodiment of the invention provides, as shown in figure 1, the system architecture of the method can
Constituted with by terminal and server.Wherein, terminal can be the mobile terminals such as mobile phone, panel computer, can be provided with audio and broadcast
Put application program.Server can be with the background server of audio play-back application.The executive agent of the method can be above-mentioned
Server in system architecture, it is also possible to the terminal in system architecture.
Server can including processor, memory, transceiver etc. part.Processor, can be CPU (Central
Processing Unit, CPU) etc., the target area scope being determined for belonging to terminal location is corresponding
Target audio data, wait treatment.Memory, can be RAM (Random Access Memory, random access memory),
Flash (flash memory) etc., the number generated in the data, the processing procedure that can be used for needed for storing data, the processing procedure for receiving
According to etc., such as corresponding relation, target audio data of regional extent and voice data.Transceiver, can be used for terminal or its
Its server (such as location-server) carries out data transmission, for example, sending target audio data to terminal, transceiver can include
Antenna, match circuit, modem etc..
Terminal can including processor, memory, transceiver, audio output part etc. part.Processor, can be CPU
Deng.Memory, can be RAM (Random Access Memory, random access memory), Flash (flash memory) etc., Ke Yiyong
Data generated in data, the processing procedure needed for data, the processing procedure that storage is received etc..Transceiver, can be used for
Carry out data transmission with server, for example, the target audio data that can be sent with the reception server, can send eventually to server
End position, transceiver can be including antenna, match circuit, modem etc..Audio output part can be audio amplifier, earphone
Deng, can be used for play target audio data.Terminal can also be including input block, display unit, audio detection part etc..It is defeated
It can be touch-screen, keyboard, mouse etc. to enter part.Audio detection part, can be microphone etc..
In the present embodiment, in case of no particular description, the detailed of scheme is carried out so that executive agent is as server as an example
Describe in detail bright, other situations are similar to therewith, are not repeated.Audio in the present embodiment can be music, news, introduce explanation or event
Thing etc..
As shown in Fig. 2 the handling process of the method can include the steps:
Step 201, obtains terminal location.
In force, user can in the terminal install audio play-back application, it is desirable to can when listening to audio
To open audio play-back application.The function that audio is played based on position can be provided with audio play-back application,
User can open the function, and carried terminal is arbitrarily moved.Terminal can be positioned by positioner to itself, be obtained
Terminal location, and server is sent to, server can then get terminal location.Or, server can also be to terminal
Location server obtains terminal location.
Optionally, terminal location can be obtained according to default detection cycle.
In force, terminal location can be sent to server by terminal according to certain detection cycle.Or server
Periodically terminal location can be obtained to the location server of terminal.
In above-mentioned treatment, if executive agent is terminal, the treatment of terminal can just be obtained from the position of body.
Step 202, according to the regional extent for prestoring and the corresponding relation of voice data, determines belonging to terminal location
The corresponding target audio data of target area scope.
In force, technical staff can in advance for different objects sets different audios, for example, being a building
Corresponding audio is set, is that a sight spot sets corresponding audio, or, for a corridor sets corresponding sound in museum
Frequently, it is that an exhibition room sets corresponding audio, is that a showpiece sets corresponding audio.Can be each when audio is set
Object sets the audio matched with its characteristic, for example, for certain Basketball hall sets finger-popping music or basketball fact
Report, be the introduction in certain Western-style classical art product exhibition center setting violin playing solo song or exhibition center.Furthermore it is possible to be these
Object sets corresponding regional extent, for example, this object with certain area such as building, sight spot, corridor, exhibition room
Regional extent, can be the occupation of land scope of building, sight spot, corridor, exhibition room, and showpiece etc. is this without area or area very little
The regional extent of negligible object, can be the regional extent of the pre-set radius centered on object.And then, by mesh
The regional extent and the mark of the voice data for object setting of thing are marked, corresponding storage is carried out, can be with mapping table
Form storage, as shown in table 1 so that, it is established that the corresponding relation of regional extent and voice data.The corresponding relation can be deposited
Storage is in the server, it is also possible to which storage is in the terminal.In mapping table, the form of the information of regional extent can be with various more
Sample, for example, central coordinate of circle and radius can be recorded for border circular areas, can be polygonal with journal for polygonal region
Each apex coordinate, etc..
Table 1
Regional extent | Voice data |
Regional extent A | Voice data a |
Regional extent B | Voice data b |
Regional extent C | Voice data c |
Server after terminal location is got, all regional extents that can be included in the mapping table of above-mentioned storage
In, search the regional extent (i.e. target area scope) comprising current terminal location.And then, determine that the target area scope exists
Corresponding voice data (i.e. target audio data) in the mapping table.If not finding bag in above-mentioned corresponding relation
Regional extent containing terminal location, then cannot determine corresponding voice data, then can not carry out follow-up play voice data
Treatment.
Optionally, if user is maintained in certain regional extent, will not repeat to refresh the broadcasting of voice data, accordingly
, terminal location can be periodically obtained, also, the treatment of step 202 can be as follows:According to the regional extent that prestores with
The corresponding relation of voice data, determines the affiliated target area model in the regional extent that above-mentioned corresponding relation includes of terminal location
Enclose;If the target area scope belonging to terminal location is relative to upper detection cycle generation area range, according to area
Domain scope and the corresponding relation of voice data, determine the corresponding target audio data of target area scope belonging to terminal location.
In force, in each detection cycle, server, can be in the correspondence of above-mentioned storage after terminal location is got
In all regional extents that relation table is included, the regional extent comprising current terminal location, and then the end to finding are searched
Regional extent belonging to end position is stored.So, each detection cycle, it is determined that regional extent belonging to terminal location
Afterwards, the regional extent belonging to the terminal location determined in a detection cycle can be obtained, by the region model in current detection cycle
Enclose and be compared with the regional extent of a upper detection cycle.If identical, illustrate terminal do not move out also before region model
Enclose, can keep playing original voice data, i.e., need not carry out the treatment of step 202 and step 203.If it is different, then saying
Bright terminal enters a new regional extent, can play the corresponding voice data of the regional extent, that is, carry out step 202 and
The treatment of step 203.
Optionally, if terminal is simultaneously in multiple regional extents, can be higher based on default priority selection one
The regional extent of priority, and then determine corresponding voice data, the treatment of corresponding step 202 can be as follows:
Step one, according to the regional extent for prestoring and the corresponding relation of voice data, determines terminal location above-mentioned
Target area scope affiliated in the regional extent that corresponding relation includes.
Respective handling may refer to description above.
Step 2, if the target area scope belonging to terminal location has multiple, according in above-mentioned corresponding relation each
The corresponding pre-set priority of regional extent, it is determined that in multiple target areas scope highest priority first area scope.
In force, may there is overlap in multiple regional extents that above-mentioned corresponding relation includes, for example, certain natural science
The one end in certain corridor has displayed a showpiece in shop, and the corresponding regional extent of the showpiece is the pre-set radius with showpiece as the center of circle
Border circular areas, it is seen that the regional extent of the regional extent in the corridor and the showpiece exists Chong Die.In this case, terminal may
Two regional extents are located at simultaneously.Under the circumstances, technical staff can be that different regional extents are set different excellent
First level, especially sets different priority to there is the regional extent for overlapping, and sets higher to more important regional extent
Priority, relatively low priority is set to hardly important regional extent.For example, in the above example, the region model of showpiece
The priority enclosed can be higher than the priority of the regional extent in corridor.
When it is determined that terminal location belongs to multiple target area scopes, the default excellent of each target area scope can be obtained
First level.Priority to multiple target area scopes is compared, and in multiple target area scopes, determines highest priority
First area scope.
Step 3, according to the regional extent for prestoring and the corresponding relation of voice data, determines first area scope pair
The target audio data answered.
In force, it is determined that after the first area scope of highest priority, can be searched in above-mentioned mapping table
The corresponding target audio data of first area scope.
Optionally, in above-mentioned corresponding relation, one regional extent of correspondence can be provided with multiple audios, accordingly, step
Rapid 202 treatment can be as follows:According to the regional extent for prestoring and the corresponding relation of audio data sets, terminal position is determined
Put the affiliated corresponding target audio data acquisition system of target area scope.
In force, in above-mentioned mapping table, each regional extent can constitute sound to that should have multiple voice datas
Frequency data acquisition system.Terminal location can search the corresponding sound of the regional extent in certain regional extent in mapping table
Frequency data acquisition system, for follow-up broadcasting.So, when user's long-staying in certain regional extent, can be broadcast for user
Put unduplicated song.
Optionally, different types of voice data can be played under audio play-back application different mode, accordingly
The treatment of step 202 can be as follows:If being currently at the first mode of operation, according to the regional extent and first for prestoring
The corresponding relation of the voice data of audio types, determines the corresponding target sound frequency of target area scope belonging to terminal location
According to;If being currently at the second mode of operation, according to the regional extent and the voice data of the second audio types that prestore
Corresponding relation, determine the corresponding target audio data of target area scope belonging to terminal location.
In force, the first audio types of the first mode of operation correspondence, the second mode of operation the second audio types of correspondence, this
Individual corresponding relation can arbitrarily be set according to the actual requirements.For example, the first mode of operation is visitor's pattern, the first audio types are
History, humanity and characteristic introduce audio, by the voice data of this type the introduction of sight spot, scenery can be carried out for user
Illustrate, the second mode of operation is browse mode (or exploring pattern or saunter pattern), the second audio types are music VF, are led to
Cross this type and provide the user the music being consistent with region.
Target audio data are played out by step 203.
In force, if executive agent is server, server is finding the corresponding target sound of target area scope
Frequency, can be by target audio data is activation to terminal after, and terminal can be played out to the target audio data for receiving.
If executive agent is terminal, terminal, can be directly to mesh after the corresponding target audio data of target area scope are found
Mark voice data is played out.
The treatment schematic diagram of above-mentioned whole method can be as shown in Figure 3.
Optionally, for it is above-mentioned find target area scope corresponding target audio data acquisition system in the case of, step
203 treatment can carry out played in order or shuffle to the voice data in target audio data acquisition system.
In force, if executive agent is server, server is finding the corresponding target sound of target area scope
After frequency data acquisition system, all voice datas in target audio data acquisition system can be all sent to terminal, terminal carries out order
Play or shuffle.Or server can be sent to terminal, terminal-pair with one voice data of sequential selection or random selection
The voice data is played out, and broadcasting sends audio request, server then sequential selection or random selection after terminating to server
Next voice data is sent to terminal, and the rest may be inferred.If executive agent is terminal, terminal is finding target area scope
After corresponding target audio data acquisition system, played in order or random can be carried out to the voice data in target audio data acquisition system
Play.
Optionally, when target audio data are played, position of the terminal in the scope of target area can be based on, to playing
Volume is controlled, and the treatment of corresponding step 203 can be as follows:According to the distance and the corresponding relation of volume that prestore,
And terminal location and the distance at the center of target area scope, determine corresponding target volume;Based on target volume to target
Voice data is played out.
Wherein, the center of regional extent can be the geometric center of gravity of regional extent.
In force, technical staff can to pre-set terminal location value different from the distance at regional extent center corresponding
Different volumes.Wherein it is possible to set bigger apart from smaller corresponding volume.It is corresponding with volume such that it is able to set up distance
Relation.If executive agent is server, the corresponding relation can be stored in server, server can with computing terminal position with
The distance at the center of target area scope, and then corresponding volume (i.e. target is searched in above-mentioned corresponding relation based on the distance
Volume), then target volume and target audio data can be sent jointly to terminal, terminal can then be based on target volume pair
Target audio data are played out.If executive agent is terminal, the corresponding relation can be stored in terminal, and terminal can be calculated
The distance at the center of terminal location and target area scope, and then corresponding sound is searched in above-mentioned corresponding relation based on the distance
Amount (i.e. target volume), may then based on target volume and target audio data is played out.In above-mentioned distance and volume
In corresponding relation, distance and volume can be directly proportional, so, user in moving process, volume can show gradually increase (to
In the moving process of regional extent center) or taper into the effect of (in away from regional extent central process).
Optionally, can be each regional extent be respectively provided with the corresponding relation of distance and volume, i.e. storage region scope,
The corresponding relation of distance and volume, the treatment of corresponding step 203 can be as follows:According to the regional extent, distance that prestore
With the corresponding relation of volume, the distance at the center of target area scope, and terminal location and target area scope, it is determined that correspondence
Target volume;Target audio data are played out based on target volume.
In force, when the corresponding relation of the regional extent, distance and volume is set, for bigger regional extent,
Volume is slower with the speed of distance change, and for smaller regional extent, volume is faster with the speed of distance change.
Optionally, the treatment mechanism for stopping playing target audio can also be set, accordingly after step 203 can be with
It is handled as follows:
Step 204, when terminal location is detected beyond target area scope, stops playing target audio data.
In force, for it is above-mentioned be periodically detected terminal location in the case of, terminal play target audio data mistake
Cheng Zhong, server may proceed to according to detection cycle obtain terminal location, and at the regional level with the corresponding relation of voice data in
The regional extent belonging to terminal location is searched, if not finding the regional extent comprising terminal location, end can be determined
Beyond target area scope, now, server can notify that terminal stops playing target audio data to end position.If
Executive agent is terminal, and terminal then can directly stop playing target audio data.
In the embodiment of the present invention, terminal location is obtained, according to the regional extent for prestoring pass corresponding with voice data
System, determines the corresponding target audio data of target area scope belonging to terminal location, and target audio data are played out.This
Sample, the position where terminal being held based on user provides the user more flexible changeable audio, can improve audio broadcasting
Flexibility.
Based on identical technology design, the embodiment of the present invention additionally provides a kind of device of playing audio-fequency data, the device
Can be the server or terminal in above-described embodiment, as shown in figure 4, the device includes:
Acquisition module 410, for obtaining terminal location;
Determining module 420, for according to the regional extent for prestoring and the corresponding relation of voice data, determining the end
The corresponding target audio data of target area scope belonging to end position;
Playing module 430, for being played out to the target audio data.
Optionally, the acquisition module 410, is used for:According to default detection cycle, terminal location is obtained;
The determining module 420, is used for:
According to the regional extent for prestoring and the corresponding relation of voice data, determine the terminal location in the correspondence
Target area scope affiliated in the regional extent that relation includes;
If the target area scope belonging to the terminal location is relative to upper detection cycle generation area range,
Then according to the regional extent and the corresponding relation of voice data, the target area scope correspondence belonging to the terminal location is determined
Target audio data.
Optionally, the determining module 420, is used for:
According to the regional extent for prestoring and the corresponding relation of voice data, determine the terminal location in the correspondence
Target area scope affiliated in the regional extent that relation includes;
If the target area scope belonging to the terminal location has multiple, according to each region in the corresponding relation
The corresponding pre-set priority of scope, it is determined that in multiple target areas scope highest priority first area scope;
According to the regional extent for prestoring and the corresponding relation of voice data, determine that the first area scope is corresponding
Target audio data.
Optionally, the determining module 420, is used for:
According to the regional extent for prestoring and the corresponding relation of audio data sets, determine belonging to the terminal location
The corresponding target audio data acquisition system of target area scope;
The playing module 430, is used for:
Played in order or shuffle are carried out to the voice data in the target audio data acquisition system.
Optionally, the playing module 430, is used for:
According to the distance and the corresponding relation of volume that prestore, and the terminal location and the target area scope
Center distance, determine corresponding target volume;
The target audio data are played out based on the target volume.
Optionally, the playing module 430, is additionally operable to:
When terminal location is detected beyond the target area scope, stop playing the target audio data.
In the embodiment of the present invention, terminal location is obtained, according to the regional extent for prestoring pass corresponding with voice data
System, determines the corresponding target audio data of target area scope belonging to terminal location, and target audio data are played out.This
Sample, the position where terminal being held based on user provides the user more flexible changeable audio, can improve audio broadcasting
Flexibility.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant the method
Embodiment in be described in detail, explanation will be not set forth in detail herein.
It should be noted that:Above-described embodiment provide playing audio-fequency data device in playing audio-fequency data, only with
The division of above-mentioned each functional module is carried out for example, in practical application, as needed can distribute by not above-mentioned functions
With functional module complete, will the internal structure of device be divided into different functional modules, to complete whole described above
Or partial function.In addition, the device of playing audio-fequency data that above-described embodiment is provided is implemented with the method for playing audio-fequency data
Example belongs to same design, and it implements process and refers to embodiment of the method, repeats no more here.
Fig. 5 is the structural representation of server provided in an embodiment of the present invention.The server 1900 can be because of configuration or performance
The different and larger difference of producing ratio, can include one or more central processing units (central processing
Units, CPU) 1922 (for example, one or more processors) and memory 1932, one or more storage applications
The storage medium 1930 (such as one or more mass memory units) of program 1942 or data 1944.Wherein, memory
1932 and storage medium 1930 can be it is of short duration storage or persistently storage.The program stored in storage medium 1930 can include one
Individual or more than one module (diagram is not marked), each module can be included to the series of instructions operation in server.More enter
One step ground, central processing unit 1922 be could be arranged to be communicated with storage medium 1930, and storage medium is performed on server 1900
Series of instructions operation in 1930.
Server 1900 can also include one or more power supplys 1926, one or more wired or wireless nets
Network interface 1950, one or more input/output interfaces 1958, one or more keyboards 1956, and/or, one or
More than one operating system 1941, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM
Etc..
Server 1900 can include memory, and one or more than one program, one of them or one
Individual procedure above is stored in memory, and is configured to one or one by one or more than one computing device
Individual procedure above includes the instruction for carrying out following operation:
Obtain terminal location;
According to the regional extent for prestoring and the corresponding relation of voice data, the target belonging to the terminal location is determined
The corresponding target audio data of regional extent;
The target audio data are played out.
Optionally, the acquisition terminal location, including:According to default detection cycle, terminal location is obtained;
The regional extent that the basis is prestored and the corresponding relation of voice data, determine belonging to the terminal location
The corresponding target audio data of target area scope, including:
According to the regional extent for prestoring and the corresponding relation of voice data, determine the terminal location in the correspondence
Target area scope affiliated in the regional extent that relation includes;
If the target area scope belonging to the terminal location is relative to upper detection cycle generation area range,
Then according to the regional extent and the corresponding relation of voice data, the target area scope correspondence belonging to the terminal location is determined
Target audio data.
So, can prevent audio from occurring interrupting repeatedly, replaying.
Optionally, the regional extent that the basis is prestored and the corresponding relation of voice data, determine the terminal position
The affiliated corresponding target audio data of target area scope are put, including:
According to the regional extent for prestoring and the corresponding relation of voice data, determine the terminal location in the correspondence
Target area scope affiliated in the regional extent that relation includes;
If the target area scope belonging to the terminal location has multiple, according to each region in the corresponding relation
The corresponding pre-set priority of scope, it is determined that in multiple target areas scope highest priority first area scope;
According to the regional extent for prestoring and the corresponding relation of voice data, determine that the first area scope is corresponding
Target audio data.
So, can set region and play more flexible with audio.
Optionally, the regional extent that the basis is prestored and the corresponding relation of voice data, determine the terminal position
The affiliated corresponding target audio data of target area scope are put, including:
According to the regional extent for prestoring and the corresponding relation of audio data sets, determine belonging to the terminal location
The corresponding target audio data acquisition system of target area scope;
It is described that the target audio data are played out, including:
Played in order or shuffle are carried out to the voice data in the target audio data acquisition system.
So, when user's extended stationary periods are in certain region, can prevent from playing identical audio repeatedly.
Optionally, it is described that the target audio data are played out, including:
According to the distance and the corresponding relation of volume that prestore, and the terminal location and the target area scope
Center distance, determine corresponding target volume;
The target audio data are played out based on the target volume.
So, the broadcast sound volume of audio can flexibly be automatically controlled.
Optionally, methods described also includes:
When terminal location is detected beyond the target area scope, stop playing the target audio data.
So, the broadcasting and stopping of audio can flexibly be controlled.
In the embodiment of the present invention, terminal location is obtained, according to the regional extent for prestoring pass corresponding with voice data
System, determines the corresponding target audio data of target area scope belonging to terminal location, and target audio data are played out.This
Sample, the position where terminal being held based on user provides the user more flexible changeable audio, can improve audio broadcasting
Flexibility.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can be by hardware
To complete, it is also possible to instruct the hardware of correlation to complete by program, described program can be stored in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all it is of the invention spirit and
Within principle, any modification, equivalent substitution and improvements made etc. should be included within the scope of the present invention.
Claims (12)
1. a kind of method of playing audio-fequency data, it is characterised in that methods described includes:
Obtain terminal location;
According to the regional extent for prestoring and the corresponding relation of voice data, the target area belonging to the terminal location is determined
The corresponding target audio data of scope;
The target audio data are played out.
2. method according to claim 1, it is characterised in that the acquisition terminal location, including:According to default detection
In the cycle, obtain terminal location;
The regional extent that the basis is prestored and the corresponding relation of voice data, determine the target belonging to the terminal location
The corresponding target audio data of regional extent, including:
According to the regional extent for prestoring and the corresponding relation of voice data, determine the terminal location in the corresponding relation
Including regional extent in affiliated target area scope;
If the target area scope belonging to the terminal location is relative to upper detection cycle generation area range, root
According to the regional extent and the corresponding relation of voice data, the corresponding mesh of target area scope belonging to the terminal location is determined
Mark voice data.
3. method according to claim 1, it is characterised in that regional extent and voice data that the basis is prestored
Corresponding relation, determine the corresponding target audio data of target area scope belonging to the terminal location, including:
According to the regional extent for prestoring and the corresponding relation of voice data, determine the terminal location in the corresponding relation
Including regional extent in affiliated target area scope;
If the target area scope belonging to the terminal location has multiple, according to each regional extent in the corresponding relation
Corresponding pre-set priority, it is determined that in multiple target areas scope highest priority first area scope;
According to the regional extent for prestoring and the corresponding relation of voice data, the corresponding target of the first area scope is determined
Voice data.
4. method according to claim 1, it is characterised in that regional extent and voice data that the basis is prestored
Corresponding relation, determine the corresponding target audio data of target area scope belonging to the terminal location, including:
According to the regional extent for prestoring and the corresponding relation of audio data sets, the target belonging to the terminal location is determined
The corresponding target audio data acquisition system of regional extent;
It is described that the target audio data are played out, including:
Played in order or shuffle are carried out to the voice data in the target audio data acquisition system.
5. method according to claim 1, it is characterised in that described that the target audio data are played out, including:
According to the corresponding relation of the distance that prestores and volume, and in the terminal location and the target area scope
The distance of the heart, determines corresponding target volume;
The target audio data are played out based on the target volume.
6. method according to claim 1, it is characterised in that methods described also includes:
When terminal location is detected beyond the target area scope, stop playing the target audio data.
7. a kind of device of playing audio-fequency data, it is characterised in that described device includes:
Acquisition module, for obtaining terminal location;
Determining module, for according to the regional extent for prestoring and the corresponding relation of voice data, determining the terminal location
The corresponding target audio data of affiliated target area scope;
Playing module, for being played out to the target audio data.
8. device according to claim 7, it is characterised in that the acquisition module, is used for:According to default detection week
Phase, obtain terminal location;
The determining module, is used for:
According to the regional extent for prestoring and the corresponding relation of voice data, determine the terminal location in the corresponding relation
Including regional extent in affiliated target area scope;
If the target area scope belonging to the terminal location is relative to upper detection cycle generation area range, root
According to the regional extent and the corresponding relation of voice data, the corresponding mesh of target area scope belonging to the terminal location is determined
Mark voice data.
9. device according to claim 7, it is characterised in that the determining module, is used for:
According to the regional extent for prestoring and the corresponding relation of voice data, determine the terminal location in the corresponding relation
Including regional extent in affiliated target area scope;
If the target area scope belonging to the terminal location has multiple, according to each regional extent in the corresponding relation
Corresponding pre-set priority, it is determined that in multiple target areas scope highest priority first area scope;
According to the regional extent for prestoring and the corresponding relation of voice data, the corresponding target of the first area scope is determined
Voice data.
10. device according to claim 7, it is characterised in that the determining module, is used for:
According to the regional extent for prestoring and the corresponding relation of audio data sets, the target belonging to the terminal location is determined
The corresponding target audio data acquisition system of regional extent;
The playing module, is used for:
Played in order or shuffle are carried out to the voice data in the target audio data acquisition system.
11. devices according to claim 7, it is characterised in that the playing module, are used for:
According to the corresponding relation of the distance that prestores and volume, and in the terminal location and the target area scope
The distance of the heart, determines corresponding target volume;
The target audio data are played out based on the target volume.
12. devices according to claim 7, it is characterised in that the playing module, are additionally operable to:
When terminal location is detected beyond the target area scope, stop playing the target audio data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611046966.4A CN106776793B (en) | 2016-11-23 | 2016-11-23 | A kind of method and apparatus of playing audio-fequency data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611046966.4A CN106776793B (en) | 2016-11-23 | 2016-11-23 | A kind of method and apparatus of playing audio-fequency data |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106776793A true CN106776793A (en) | 2017-05-31 |
CN106776793B CN106776793B (en) | 2019-01-22 |
Family
ID=58974525
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611046966.4A Active CN106776793B (en) | 2016-11-23 | 2016-11-23 | A kind of method and apparatus of playing audio-fequency data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106776793B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110764730A (en) * | 2018-07-25 | 2020-02-07 | 杭州海康威视数字技术股份有限公司 | Method and device for playing audio data |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005107617A (en) * | 2003-09-29 | 2005-04-21 | Sony Corp | Voice data retrieval apparatus |
CN101968791A (en) * | 2010-08-10 | 2011-02-09 | 深圳市飘移网络技术有限公司 | Data storage method and device |
CN202221649U (en) * | 2010-12-30 | 2012-05-16 | 上海博泰悦臻电子设备制造有限公司 | Vehicle-mounted music playing device |
CN103858449A (en) * | 2011-07-22 | 2014-06-11 | S.M.娱乐有限公司 | Method and system for providing a social music service using an LBS, and recording medium for recording a program for executing the method |
CN104469670A (en) * | 2014-10-22 | 2015-03-25 | 广东小天才科技有限公司 | Method for switching sound effect mode based on position of mobile terminal and mobile terminal |
CN105787027A (en) * | 2016-02-24 | 2016-07-20 | 广东欧珀移动通信有限公司 | Audio file playing method and terminal |
CN105828288A (en) * | 2016-03-21 | 2016-08-03 | 乐视网信息技术(北京)股份有限公司 | Multimedia control method and device |
-
2016
- 2016-11-23 CN CN201611046966.4A patent/CN106776793B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005107617A (en) * | 2003-09-29 | 2005-04-21 | Sony Corp | Voice data retrieval apparatus |
CN101968791A (en) * | 2010-08-10 | 2011-02-09 | 深圳市飘移网络技术有限公司 | Data storage method and device |
CN202221649U (en) * | 2010-12-30 | 2012-05-16 | 上海博泰悦臻电子设备制造有限公司 | Vehicle-mounted music playing device |
CN103858449A (en) * | 2011-07-22 | 2014-06-11 | S.M.娱乐有限公司 | Method and system for providing a social music service using an LBS, and recording medium for recording a program for executing the method |
CN104469670A (en) * | 2014-10-22 | 2015-03-25 | 广东小天才科技有限公司 | Method for switching sound effect mode based on position of mobile terminal and mobile terminal |
CN105787027A (en) * | 2016-02-24 | 2016-07-20 | 广东欧珀移动通信有限公司 | Audio file playing method and terminal |
CN105828288A (en) * | 2016-03-21 | 2016-08-03 | 乐视网信息技术(北京)股份有限公司 | Multimedia control method and device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110764730A (en) * | 2018-07-25 | 2020-02-07 | 杭州海康威视数字技术股份有限公司 | Method and device for playing audio data |
CN110764730B (en) * | 2018-07-25 | 2023-11-14 | 杭州海康威视数字技术股份有限公司 | Method and device for playing audio data |
Also Published As
Publication number | Publication date |
---|---|
CN106776793B (en) | 2019-01-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108462895A (en) | Sound effect treatment method, device and machine readable media | |
CN104918069B (en) | One kind plays scenario reduction method, system, playback terminal and control terminal | |
CN109791765A (en) | Multiple voice services | |
US20220028407A1 (en) | Method and device for processing music file, terminal and storage medium | |
TW201423734A (en) | Music playing system and method based on speech emotion recognition | |
CN105025415A (en) | Sound effect switching method and user terminal | |
CN102081501A (en) | Method and device for providing shortcut operation application programs for user and mobile terminal | |
CN106210755A (en) | A kind of methods, devices and systems playing live video | |
CN106126160B (en) | A kind of effect adjusting method and user terminal | |
CN106093950A (en) | Mobile terminal positioner and method | |
CN104270700A (en) | Method and system for generating mobile sound source in 3D audio frequency and device | |
CN105979312A (en) | Information sharing method and device | |
CN106254903A (en) | The synchronous broadcast method of a kind of multi-medium data, Apparatus and system | |
KR20140111786A (en) | Performance service method using robot and apparatus therefor | |
CN103335644A (en) | Voice broadcast method for street view map, and relevant apparatus | |
CN107371102A (en) | Control method, device and the storage medium and mobile terminal of audio broadcast sound volume | |
CN103716729B (en) | Export the method and electronic equipment of audio | |
CN108549486A (en) | The method and device of explanation is realized in virtual scene | |
CN109243488A (en) | Audio-frequency detection, device and storage medium | |
CN107146608A (en) | A kind of control method for playing back, device and smart machine | |
CN109508168A (en) | Multichannel volume adjusting method and relevant apparatus | |
CN106791916A (en) | A kind of methods, devices and systems of recommendation of audio data | |
CN110309238A (en) | Point of interest interactive approach, system, electric terminal and storage medium in music | |
CN106776793A (en) | A kind of method and apparatus of playing audio-fequency data | |
CN107452361A (en) | Song subordinate sentence method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 510660 Guangzhou City, Guangzhou, Guangdong, Whampoa Avenue, No. 315, self - made 1-17 Applicant after: Guangzhou KuGou Networks Co., Ltd. Address before: 510000 B1, building, No. 16, rhyme Road, Guangzhou, Guangdong, China 13F Applicant before: Guangzhou KuGou Networks Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |