CN106898370A - Audio file play method and device - Google Patents
Audio file play method and device Download PDFInfo
- Publication number
- CN106898370A CN106898370A CN201710087005.6A CN201710087005A CN106898370A CN 106898370 A CN106898370 A CN 106898370A CN 201710087005 A CN201710087005 A CN 201710087005A CN 106898370 A CN106898370 A CN 106898370A
- Authority
- CN
- China
- Prior art keywords
- audio file
- audio
- illuminating lamp
- input
- file
- 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
- G11—INFORMATION STORAGE
- G11B—INFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
- G11B27/00—Editing; Indexing; Addressing; Timing or synchronising; Monitoring; Measuring tape travel
- G11B27/10—Indexing; Addressing; Timing or synchronising; Measuring tape travel
- G11B27/19—Indexing; Addressing; Timing or synchronising; Measuring tape travel by using information detectable on the record carrier
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/60—Information retrieval; Database structures therefor; File system structures therefor of audio data
- G06F16/68—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/62—Protecting access to data via a platform, e.g. using keys or access control rules
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- Computer Security & Cryptography (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Bioethics (AREA)
- Library & Information Science (AREA)
- Multimedia (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Circuit Arrangement For Electric Light Sources In General (AREA)
Abstract
The present invention provides a kind of audio file play method and device, is applied to be provided with the square illuminating lamp of audio player, and the square illuminating lamp can prestore multiple audio files with user terminal communication in the square illuminating lamp.Method includes:Monitor whether to receive the audio play instruction that user terminal sends;When the audio play instruction of user terminal transmission is received, whether there is new audio file to be input into the preset duration before detection current time;When thering is new audio file to be input into the preset duration before current time, the audio file of new input is played;When there is no new audio file to be input into the preset duration before current time, the environmental information of current environment is detected, and the audio file matched with the environmental information is chosen in the multiple audio files for prestoring and played out.
Description
Technical field
The present invention relates to control technology field, in particular to a kind of audio file play method and device.
Background technology
With the development of social economy, urban development is more and more faster, and the life of people, is fitted with road for convenience
Lighting apparatus.Wherein, street lamp is main lighting apparatus, is widely used on cell and all kinds of park plazas.
And in daily life, with the high speed development of urban civilization, the continuous improvement of people's living standard, people start
Gradually recognize healthy importance.Especially the elderly, is accustomed to the square dance after supper, but play the music danced
People are then needed voluntarily to carry the equipment such as sound equipment, extremely inconvenience.The street lamp with music playback function is occurred in that therewith, but still
People oneself are needed to carry music storage device such as USB flash disk etc., for the elderly, operation smart machine uploads music file
And play out more difficult, it is impossible to correctly play music.
The content of the invention
In view of this, it is an object of the invention to provide a kind of audio file play method and device, can improve above-mentioned
Problem.
In order to achieve the above object, present pre-ferred embodiments provide a kind of audio file play method, are applied to install
Have a square illuminating lamp of audio player, the square illuminating lamp can with user terminal communication, it is pre- in the square illuminating lamp
There are multiple audio files, methods described includes:
Monitor whether to receive the audio play instruction that user terminal sends;
Receive user terminal transmission audio play instruction when, detection current time before preset duration in whether
There is new audio file to be input into;
When thering is new audio file to be input into the preset duration before current time, the new audio file is played;
When there is no new audio file to be input into the preset duration before the current time, the ring of current environment is detected
Environment information;
Audio file corresponding with the environmental information is chosen in the multiple audio files for prestoring to play out, it is described wide
The corresponding relation being stored between varying environment information and the different audio files for prestoring in the illuminating lamp of field.
Present pre-ferred embodiments also provide a kind of audio file playing device, are applied to be provided with the wide of audio player
Field illuminating lamp, the square illuminating lamp can prestore multiple audio files with user terminal communication in the square illuminating lamp,
The audio file playing device includes:
Monitoring modular, for monitoring whether to receive the audio play instruction that user terminal sends;
Audio file is input into detection module, for when the audio play instruction of user terminal transmission is received, detection to be worked as
Whether there is new audio file to be input into preset duration before the preceding moment;
First audio file playing module, for there is new audio file to be input into the preset duration before current time
When, play the new audio file;
Environmental information detection module, for not having new audio file defeated in the preset duration before the current time
It is fashionable, detect the environmental information of current environment;
Second audio file playing module, for choosing corresponding with the environmental information in the multiple audio files for prestoring
Audio file play out, between the varying environment that is stored with square illuminating lamp information and the different audio files for prestoring
Corresponding relation.
Audio file play method provided in an embodiment of the present invention and device, play when there is new audio file to be input into
The audio file of new input, when without new audio file input, then chosen in the audio file for prestoring with currently
The audio file of environmental information matching is played out.Even if in this way, user leaves behind audio storage equipment, or will not carry out
Being operated such that cannot upload audio file, can normally play audio file.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below will be attached to what is used needed for embodiment
Figure is briefly described, it will be appreciated that the following drawings illustrate only certain embodiments of the present invention, thus be not construed as it is right
The restriction of scope, for those of ordinary skill in the art, on the premise of not paying creative work, can also be according to this
A little accompanying drawings obtain other related accompanying drawings.
Fig. 1 is the interactive schematic diagram of a kind of square illuminating lamp provided in an embodiment of the present invention, user terminal and server.
Fig. 2 is a kind of block diagram of square illuminating lamp provided in an embodiment of the present invention.
Fig. 3 is a kind of schematic flow sheet of audio file play method provided in an embodiment of the present invention.
Fig. 4 is the sub-step schematic diagram of step S105 shown in Fig. 3.
Fig. 5 is the another schematic flow sheet of audio file play method provided in an embodiment of the present invention.
Fig. 6 is the another schematic flow sheet of audio file play method provided in an embodiment of the present invention.
Fig. 7 is the another schematic flow sheet of audio file play method provided in an embodiment of the present invention.
Fig. 8 is a kind of connection block diagram of audio file playing device provided in an embodiment of the present invention.
Fig. 9 is the submodule schematic diagram of the second audio file playing module shown in Fig. 8.
Figure 10 is the another connection block diagram of audio file playing device provided in an embodiment of the present invention.
Figure 11 is the another connection block diagram of audio file playing device provided in an embodiment of the present invention.
The another connection block diagram of Figure 12 audio file playing devices provided in an embodiment of the present invention.
Icon:100- square illuminating lamps;110- memories;120- processors;130- communication units;140- display units;
150- audio units;200- user terminals;300- servers;400- audio file playing devices;410- monitoring modulars;420- sounds
Frequency file is input into detection module;430- the first audio file playing modules;440- environmental information detection modules;The audios of 450- second
File playing module;451- audio file Selecting All Parameters calculating sub modules;452- audio files play submodule;460- inputs please
Seek monitoring modular;470- verification tip modules;480- authentication modules;490- audio file receiver modules;4100- timing scan moulds
Block;4110- alarm modules;4120- file type detection modules;4130- document processing modules;500- networks.
Specific embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
A part of embodiment of the present invention, rather than whole embodiments.Present invention implementation generally described and illustrated in accompanying drawing herein
The component of example can be arranged and designed with a variety of configurations.
Therefore, the detailed description of embodiments of the invention below to providing in the accompanying drawings is not intended to limit claimed
The scope of the present invention, but be merely representative of selected embodiment of the invention.Based on the embodiment in the present invention, this area is common
The every other embodiment that technical staff is obtained under the premise of creative work is not made, belongs to the model of present invention protection
Enclose.
It should be noted that:Similar label and letter represents similar terms in following accompanying drawing, therefore, once a certain Xiang Yi
It is defined in individual accompanying drawing, then it need not be further defined and explained in subsequent accompanying drawing.
As shown in figure 1, being that the square illuminating lamp 100 that present pre-ferred embodiments are provided shows with interacting for user terminal 200
It is intended to.The square illuminating lamp 100 can be communicated by network 500 with user terminal 200 and server 300, to realize
Data communication or interaction.
In the present embodiment, the square illuminating lamp 100 is provided with audio player.
The user terminal 200 may be, but not limited to, smart mobile phone, PC (personal computer,
PC), panel computer, personal digital assistant (personal digital assistant, PDA), mobile internet surfing equipment (mobile
Internet device, MID) etc..
The server 300 may be, but not limited to, web (website) server, ftp (file transfer
Protocol, FTP) server etc..The user terminal 200 may be, but not limited to, smart mobile phone, personal electricity
Brain (personal computer, PC), panel computer, personal digital assistant (personal digital assistant,
PDA), mobile internet surfing equipment (mobile Internet device, MID) etc..
The network 500 may be, but not limited to, cable network or wireless network.
As shown in Fig. 2 being the block diagram of square illuminating lamp 100 shown in Fig. 1.The square illuminating lamp 100 includes depositing
Reservoir 110, processor 120, communication unit 130, display unit 140 and audio unit 150.
The memory 110, processor 120, communication unit 130, display unit 140 and each element of audio unit 150
Directly or indirectly it is electrically connected with each other, to realize the transmission or interaction of data.For example, these elements can lead to each other
Cross one or more communication bus or holding wire is realized being electrically connected with.The square illuminating lamp 100 can be with soft including at least one
The form of part or firmware (firmware) is stored in the memory 110 or is solidificated in the operation of the square illuminating lamp 100
Software function module in system.For example, software function module or computer program included by the square illuminating lamp 100.
The memory 110 is used for storage program, such as the function mould included by described audio file playing device 400
Block.The processor 120 is used for after execute instruction is received, and performs the executable module stored in the memory 110.
The communication unit 130 is used to set up the square illuminating lamp 100 with the user terminal by the network 500
Communication connection between 200, and for by the transceiving data of the network 500.
Wherein, the memory 110 may be, but not limited to, random access memory (Random Access
Memory, RAM), read-only storage (Read Only Memory, ROM), programmable read only memory (Programmable
Read-Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only
Memory, EPROM), electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only
Memory, EEPROM) etc..
The processor 120 can be a kind of IC chip, the disposal ability with signal.Above-mentioned processor can
Being general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network
Processor, NP) etc.;Can also be digital signal processor (DSP)), application specific integrated circuit (ASIC), field programmable gate
Array (FPGA) or other PLDs, discrete gate or transistor logic, discrete hardware components.Can be real
Disclosed each method, step and logic diagram now or in the execution embodiment of the present invention.General processor can be microprocessor
Device or the processor can also be any conventional processors etc..
The display unit 140 is used to provide an interactive interface, Huo Zheyong between user and the square illuminating lamp 100
In information such as display image, words.In the present embodiment, the display unit 140 may be, but not limited to, touch display screen or
Person's LCDs.
In the present embodiment, the audio unit 150 can be audio player.
It is appreciated that structure shown in Fig. 2 is only to illustrate.The square illuminating lamp 100 can have more more than shown in Fig. 2
Or less component, it is possible to have the configuration different from shown in Fig. 2.Each component shown in Fig. 2 can be by hardware, software
Or its combination is realized.
In the present embodiment, concrete structure and connected mode and the square of each component in the user terminal 200 are shone
The structure of corresponding each component is similar with connected mode in bright lamp 100, and here is omitted.
As shown in figure 3, being the schematic flow sheet of audio file play method provided in an embodiment of the present invention.Below will be to figure
Specific steps and flow shown in 3 are described in detail.
Step S101:Monitor whether to receive the audio play instruction that user terminal 200 sends.
In the present embodiment, user terminal 200 can provide a display interface, so that user is operated.Display circle
Face shows multiple labels, for example:" broadcasting audio ", " illuminating lamp selection " etc..During implementation, the user terminal 200 is detected
Described in user's click during " broadcasting audio " label, you can send audio play instruction to corresponding square illuminating lamp 100.
Step S102:It is pre- before detection current time when the audio play instruction of the transmission of user terminal 200 is received
If whether there is new audio file to be input into duration.There is new audio file to be input into preset duration before current time
When, step S103 is performed, otherwise perform step S104.
Step S103:Play the new audio file.
Step S104:Detect the environmental information of current environment.
Wherein, the environmental information can include, but not limited to environmental light brightness, environment temperature, ambient humidity and make an uproar
Sound size.
Step S105:Audio file corresponding with the environmental information is chosen in the multiple audio files for prestoring to be broadcast
Put.
In the present embodiment, the varying environment that is stored with the square illuminating lamp 100 information and the different audio files for prestoring
Between corresponding relation.Alternatively, Fig. 4 is referred to, the step S105 can include two sons of step S201 and step S202
Step.
Step S201:Environmental light brightness, environment temperature, ambient humidity and the noise level that will be detected respectively with each
Corresponding weighted value is multiplied, and obtains multiple products, and the multiple products summation that will be obtained, and obtains audio file Selecting All Parameters.
Wherein, be also stored with the square illuminating lamp 100 environmental light brightness, environment temperature, ambient humidity and
The corresponding weighted value of noise level.
Step S202:The audio file Selecting All Parameters scope belonging to the audio file Selecting All Parameters is found out, and pre-
Chosen in the multiple audio files deposited and played out with the audio file of the audio file Selecting All Parameters commensurate in scope.
Wherein, the different audio Selecting All Parameters scopes that are stored with the square illuminating lamp 100 and different audio files
With relation.
During implementation, user can upload audio file to be played in user terminal 200, but in order to prevent demagogy,
Can be verified in user input audio file.
Alternatively, Fig. 5 is referred to, methods described can also include step S106, step S107, step S108 and step
The sub-steps of S109 tetra-.
Step S106:Monitor whether to receive audio file input request.
Step S107:When audio file input request is received, send one to the user terminal 200 and verify the page,
The prompting checking information of user input first.
Step S108:Obtain the first checking information that user terminal 200 sends, by first checking information with prestore
Second checking information is matched.
Wherein, it is right between different first checking informations and the second checking information to be stored with the square illuminating lamp 100
Should be related to.In the present embodiment, first checking information and the second checking information can be ID card No., finger print information etc..
" first " and " second " is only used for distinguishing two kinds of storage formats of checking information, is not construed as the limitation to the information content.
Step S109:The audio file of user input is received when the match is successful, the input time of the audio file is recorded
And preserved.
In order to save the memory space of square illuminating lamp 100, storage content periodically can be reported to server 300, so as to
Relevant staff is checked, so as to delete the part audio file in the audio file of default retention phase.
Alternatively, the square illuminating lamp 100 can communicate with server 300, refer to Fig. 6, and methods described also includes
Step S1010 and step S1011.
Step S1010:Each audio file for storing is scanned at interval of preset duration, monitors each audio file
In with the presence or absence of input time be to fall back audio file before a default retention phase forward at current time.
Step S1011:If there is input time is to fall back the audio text before a default retention phase current time forward
Part, then send warning message to the server 300.
In the present embodiment, the warning message can include identity information and the audio text of the square illuminating lamp 100
The number information of part, the number information of each audio file that is stored with the square illuminating lamp 100.
Wherein, the default retention phase can be adjusted according to actual conditions, for example, a week or three days, this
Embodiment is without limitation.
In practical application, being likely to occur the situation of transmitting file not audio file, alternatively, Fig. 7 is referred to, it is described
Method can also include two steps of step S1012 and step S1013.
Step S1012:When new file is received, whether detection this document is audio file.
Step S1013:If this document is not audio file, directly this document is deleted, if this document is audio file,
Then record the input time of the audio file and preserved.
In the present embodiment, after user terminal 200 detects user's upload new file, the type of the new file can be detected.
According to actual conditions, can be by the type that detects the suffix name of the new file to detect the new file.
Fig. 8 is referred to, the embodiment of the present invention also provides a kind of audio file playing device 400, is applied to be provided with audio
The square illuminating lamp 100 of player, the square illuminating lamp 100 can communicate with user terminal 200, the square illuminating lamp
Multiple audio files are prestored in 100.
The audio file playing device 400 includes monitoring modular 410, audio file input detection module 420, the first sound
Frequency file playing module 430, the audio file playing module 450 of environmental information detection module 440 and second.
Wherein, the monitoring modular 410 is used for the audio play instruction for monitoring whether to receive the transmission of user terminal 200.
In the present embodiment, the description on the monitoring modular 410 specifically refers to the detailed of S101 the step of to shown in Fig. 3 and retouches
State, that is, the step S101 can be performed by the monitoring modular 410.
The audio file input detection module 420 is used to receive the audio play instruction of the transmission of user terminal 200
When, whether there is new audio file to be input into the preset duration before detection current time.In the present embodiment, on the audio
The description of file input detection module 420 specifically refers to the detailed description of S102 the step of to shown in Fig. 3, that is, described
Step S102 can be performed by audio file input detection module 420.
There is new audio text in the preset duration that the first audio file playing module 430 was used for before current time
When part is input into, the new audio file is played.In the present embodiment, on retouching for the first audio file playing module 430
The detailed description for specifically referring to S103 the step of to shown in Fig. 3 is stated, that is, step S103 can be by first audio text
Part playing module 430 is performed.
There is no new audio in the preset duration that the environmental information detection module 440 was used for before the current time
When file is input into, the environmental information of current environment is detected.In the present embodiment, on retouching for the environmental information detection module 440
State the detailed description for specifically referring to S104 the step of to shown in Fig. 3.That is, step S104 can be examined by the environmental information
Module 440 is surveyed to perform.
The second audio file playing module 450 is used to be chosen in the multiple audio files for prestoring to be believed with the environment
Cease corresponding audio file to play out, the varying environment that is stored with the square illuminating lamp 100 information and the not unisonance for prestoring
Corresponding relation between frequency file.
Fig. 9 is referred to, alternatively, the second audio file playing module 450 can include audio file Selecting All Parameters
Calculating sub module 451 and audio file play submodule 452.
The audio file Selecting All Parameters calculating sub module 451 is used for environmental light brightness, environment temperature, the ring that will be detected
Border humidity and noise level are multiplied with each self-corresponding weighted value respectively, obtain multiple products, and the multiple products that will be obtained
Summation, obtains audio file Selecting All Parameters.
In the present embodiment, the description on the audio file Selecting All Parameters calculating sub module 451 is specifically referred to Fig. 4
Shown in the step of S201 detailed description, that is, the step S201 can by the audio file Selecting All Parameters calculate son
Module 451 is performed.
The audio file plays submodule 452 to be used to find out the audio file belonging to the audio file Selecting All Parameters
Selecting All Parameters scope, and the audio with the audio file Selecting All Parameters commensurate in scope is chosen in the multiple audio files for prestoring
File is played out.
In the present embodiment, the description for playing submodule 452 on the audio file is specifically referred to shown in Fig. 4
The detailed description of step S202, that is, the step S202 can play submodule 452 by the audio file performing.
Wherein, the different audio Selecting All Parameters scopes that are stored with the square illuminating lamp 100 and different audio files
With relation.
Figure 10 is referred to, alternatively the audio file playing device 400 also includes input request monitoring modular 460, tests
Card reminding module 470, authentication module 480 and audio file receiver module 490.
Wherein, the input request monitoring modular 460 is used to monitor whether to receive audio file input request.
In the present embodiment, on input request monitoring modular 460 description specifically refer to in Fig. 5 step S106 it is detailed
Thin description, that is, the step S106 can be performed by input request monitoring modular 460.
The verification tip module 470 is used to, when audio file input request is received, be sent out to the user terminal 200
A checking page is sent, the checking information of user input first is pointed out.In the present embodiment, on retouching for the verification tip module 470
The detailed description for specifically referring to S107 the step of to shown in Fig. 5 is stated, that is, the step S107 can be carried by the checking
Show that module 470 is performed.
The authentication module 480 is used to obtain the first checking information of the transmission of user terminal 200, and the described first checking is believed
Cease and matched with the second checking information for prestoring, different first checking informations that are stored with the square illuminating lamp 100 and the
Corresponding relation between two checking informations.
In the present embodiment, the description on the authentication module 480 specifically refers to S108 the step of to shown in Fig. 5
Describe in detail, that is, the step S108 can be performed by the authentication module 480.
The audio file receiver module 490 is used to be received when the match is successful the audio file of user input, and record should
The input time of audio file is simultaneously preserved.In the present embodiment, the description on the audio file receiver module 490 is specific
The detailed description of S109 the step of to shown in Fig. 5 is referred to, that is, the step S109 can be received by the audio file
Module 490 is performed.
In the present embodiment, the square illuminating lamp 100 can communicate with server 300.Figure 11 is referred to, alternatively, institute
Stating audio file playing device 400 can also include timing scan module 4100 and alarm module 4110.
Wherein, the timing scan module 4100 is used to sweep each audio file for storing at interval of preset duration
Retouch, before falling back a default retention phase forward for current time with the presence or absence of input time in monitoring each audio file
Audio file.
In the present embodiment, the step of the description on the timing scan module 4100 is specifically referred to shown in Fig. 6
The detailed description of S1010, that is, the step S1010 can be performed by the timing scan module 4100.
The alarm module 4110 be used for exist input time for current time fall back forward a default retention phase it
During preceding audio file, warning message is sent to the server 300.In the present embodiment, on the alarm module 4110
Description specifically refers to the detailed description of S1011 the step of to shown in Fig. 6, that is, the step S1011 can be by the report
Alert module 4110 is performed.
Wherein, the warning message includes the identity information of the square illuminating lamp 100 and the numbering letter of the audio file
Breath, the number information of each audio file that is stored with the square illuminating lamp 100.
Figure 12 is referred to, the audio file playing device 400 can also include file type detection module 4120 and text
Part processing module 4130.
Wherein, whether the file type detection module 4120 is used for, when new file is received, detecting the audio file
It is audio file.In the present embodiment, the description on the file type detection module 4120 is specifically referred to shown in Fig. 7
The step of S1012 detailed description, that is, the step S1012 can be performed by the file type detection module 4120.
The document processing module 4130 is used to, when this document is not audio file, directly delete this document, at this
When file is audio file, records the input time of the audio file and preserved.In the present embodiment, at the file
The description for managing module 4130 specifically refers to the detailed description of S1013 the step of to shown in Fig. 7.That is, the step S1013
Can be performed by the document processing module 4130.
In sum, audio file play method provided in an embodiment of the present invention and device, having, new audio file is defeated
The fashionable audio file for playing new input, when being input into without new audio file, then in the audio file for prestoring
The audio file that selection is matched with current context information is played out.In this way, even if user leaves behind audio storage equipment, or
Person will not carry out being operated such that cannot upload audio file, can normally play audio file.Further, it is possible to according to current
Ambient intelligence ground is chosen audio file and is played out, and improves user experience.
The preferred embodiments of the present invention are the foregoing is only, is not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.It is all within the spirit and principles in the present invention, made any repair
Change, equivalent, improvement etc., should be included within the scope of the present invention.
Claims (10)
1. a kind of audio file play method, it is characterised in that be applied to be provided with the square illuminating lamp of audio player, it is described
Square illuminating lamp can prestore multiple audio files with user terminal communication in the square illuminating lamp, methods described includes:
Monitor whether to receive the audio play instruction that user terminal sends;
When the audio play instruction of user terminal transmission is received, whether there is new in the preset duration before detection current time
Audio file input;
When thering is new audio file to be input into the preset duration before current time, the new audio file is played;
When there is no new audio file to be input into the preset duration before the current time, the environment letter of current environment is detected
Breath;
Choose audio file corresponding with the environmental information in the multiple audio files for prestoring to play out, the square is shone
Corresponding relation between the varying environment that is stored with bright lamp information and the different audio files for prestoring.
2. audio file play method according to claim 1, it is characterised in that the environmental information includes environment bright
Degree, environment temperature, ambient humidity and noise level, be stored with environmental light brightness, environment temperature, ring in the square illuminating lamp
Border humidity and the corresponding weighted value of noise level;
The step of audio file corresponding with the environmental information chosen in the multiple audio files for prestoring playing out, bag
Include:
Environmental light brightness, environment temperature, ambient humidity and the noise level that will be detected respectively with each self-corresponding weighted value
It is multiplied, obtains multiple products, and the multiple products summation that will be obtained, obtains audio file Selecting All Parameters;
The audio file Selecting All Parameters scope belonging to the audio file Selecting All Parameters is found out, and in the multiple audios text for prestoring
Chosen in part and played out with the audio file of the audio file Selecting All Parameters commensurate in scope, stored in the square illuminating lamp
There is the matching relationship of different audio Selecting All Parameters scopes and different audio files.
3. audio file play method according to claim 1, it is characterised in that methods described also includes:
Monitor whether to receive audio file input request;
When audio file input request is received, send one to the user terminal and verify the page, point out user input first
Checking information;
The first checking information that user terminal sends is obtained, first checking information is carried out with the second checking information for prestoring
Matching, the corresponding relation being stored with the square illuminating lamp between different first checking informations and the second checking information;
The audio file of user input is received when the match is successful, the input time of the audio file is recorded and is preserved.
4. audio file play method according to claim 3, it is characterised in that the square illuminating lamp can be with service
Device communicates, and methods described also includes:
Each audio file for storing is scanned at interval of preset duration, with the presence or absence of input in monitoring each audio file
Time is to fall back the audio file before a default retention phase current time forward;
If there is input time for current time falls back forward the audio file before a default retention phase, to the service
Device sends warning message, and the warning message includes the identity information of the square illuminating lamp and the numbering letter of the audio file
Breath, the number information of each audio file that is stored with the square illuminating lamp.
5. audio file play method according to claim 1, it is characterised in that methods described also includes:
When new file is received, whether detection this document is audio file;
If this document is not audio file, directly this document is deleted, if this document is audio file, record audio text
The input time of part is simultaneously preserved.
6. a kind of audio file playing device, it is characterised in that be applied to be provided with the square illuminating lamp of audio player, it is described
Square illuminating lamp can prestore multiple audio files, the audio file with user terminal communication in the square illuminating lamp
Playing device includes:
Monitoring modular, for monitoring whether to receive the audio play instruction that user terminal sends;
Audio file be input into detection module, for receive user terminal transmission audio play instruction when, detect it is current when
Whether there is new audio file to be input into preset duration before quarter;
First audio file playing module, during for there is new audio file to be input into the preset duration before current time,
Play the new audio file;
Environmental information detection module, for not having new audio file to be input into the preset duration before the current time
When, detect the environmental information of current environment;
Second audio file playing module, for choosing sound corresponding with the environmental information in the multiple audio files for prestoring
Frequency file is played out, right between the varying environment that is stored with square illuminating lamp information and the different audio files for prestoring
Should be related to.
7. audio file playing device according to claim 6, it is characterised in that the environmental information includes environment bright
Degree, environment temperature, ambient humidity and noise level, be stored with environmental light brightness, environment temperature, ring in the square illuminating lamp
Border humidity and the corresponding weighted value of noise level;
The second audio file playing module includes:
Audio file Selecting All Parameters calculating sub module, for will detect environmental light brightness, environment temperature, ambient humidity and
Noise level is multiplied with each self-corresponding weighted value respectively, obtains multiple products, and the multiple products summation that will be obtained, and obtains sound
Frequency file Selecting All Parameters;And
Audio file plays submodule, for finding out the audio file Selecting All Parameters model belonging to the audio file Selecting All Parameters
Enclose, and chosen in the multiple audio files for prestoring and broadcast with the audio file of the audio file Selecting All Parameters commensurate in scope
Put, the different audio Selecting All Parameters scopes that are stored with the square illuminating lamp and the matching relationship of different audio files.
8. audio file playing device according to claim 6, it is characterised in that the audio file playing device is also wrapped
Include:
Input request monitoring modular, for monitoring whether to receive audio file input request;
Verification tip module, for when audio file input request is received, sending one to the user terminal and verifying the page,
The prompting checking information of user input first;
Authentication module, the first checking information for obtaining user terminal transmission, by first checking information and for prestoring
Two checking informations are matched, and are stored with the square illuminating lamp between different first checking informations and the second checking information
Corresponding relation;And
Audio file receiver module, the audio file for receiving user input when the match is successful, records the audio file
Input time is simultaneously preserved.
9. audio file playing device according to claim 8, it is characterised in that the square illuminating lamp can be with service
Device communicates, and the audio file playing device also includes:
Timing scan module, for being scanned to each audio file for storing at interval of preset duration, monitors each audio
In file the audio file before a default retention phase is fallen back forward for current time with the presence or absence of input time;And
Alarm module, for being to fall back the audio file before a default retention phase current time forward there is input time
When, warning message is sent to the server, the warning message includes the identity information and the audio of the square illuminating lamp
The number information of file, the number information of each audio file that is stored with the square illuminating lamp.
10. audio file playing device according to claim 6, it is characterised in that the audio file playing device is also
Including:
File type detection module, for when new file is received, detecting whether the audio file is audio file;And
Document processing module, is audio text in this document for when this document is not audio file, directly deleting this document
During part, record the input time of the audio file and preserved.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710087005.6A CN106898370B (en) | 2017-02-17 | 2017-02-17 | Audio file play method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710087005.6A CN106898370B (en) | 2017-02-17 | 2017-02-17 | Audio file play method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106898370A true CN106898370A (en) | 2017-06-27 |
CN106898370B CN106898370B (en) | 2019-10-18 |
Family
ID=59184273
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710087005.6A Expired - Fee Related CN106898370B (en) | 2017-02-17 | 2017-02-17 | Audio file play method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106898370B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201621484U (en) * | 2009-12-14 | 2010-11-03 | 张宇 | Music lighting lamp |
CN102903375A (en) * | 2011-07-25 | 2013-01-30 | 富泰华工业(深圳)有限公司 | Music player and play method |
CN203240391U (en) * | 2013-01-18 | 2013-10-16 | 卓俊介 | Landscape architecture floodlight with function of playing music |
CN204046823U (en) * | 2014-09-28 | 2014-12-24 | 厦门万安智能股份有限公司 | Be embedded in intelligent road-lamp and terminal remote control conduct square dance music player |
CN104851440A (en) * | 2015-04-27 | 2015-08-19 | 广东欧珀移动通信有限公司 | Music random playback method and intelligent loudspeaker |
CN104976559A (en) * | 2015-06-26 | 2015-10-14 | 深圳市洲明科技股份有限公司 | Music street lamp |
CN106051563A (en) * | 2016-08-19 | 2016-10-26 | 江苏达伦电子股份有限公司 | Intelligent lighting equipment and control method thereof |
EP3131293A1 (en) * | 2015-08-11 | 2017-02-15 | Samsung Electronics Co., Ltd. | Electronic device and image encoding method of electronic device |
-
2017
- 2017-02-17 CN CN201710087005.6A patent/CN106898370B/en not_active Expired - Fee Related
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201621484U (en) * | 2009-12-14 | 2010-11-03 | 张宇 | Music lighting lamp |
CN102903375A (en) * | 2011-07-25 | 2013-01-30 | 富泰华工业(深圳)有限公司 | Music player and play method |
CN203240391U (en) * | 2013-01-18 | 2013-10-16 | 卓俊介 | Landscape architecture floodlight with function of playing music |
CN204046823U (en) * | 2014-09-28 | 2014-12-24 | 厦门万安智能股份有限公司 | Be embedded in intelligent road-lamp and terminal remote control conduct square dance music player |
CN104851440A (en) * | 2015-04-27 | 2015-08-19 | 广东欧珀移动通信有限公司 | Music random playback method and intelligent loudspeaker |
CN104976559A (en) * | 2015-06-26 | 2015-10-14 | 深圳市洲明科技股份有限公司 | Music street lamp |
EP3131293A1 (en) * | 2015-08-11 | 2017-02-15 | Samsung Electronics Co., Ltd. | Electronic device and image encoding method of electronic device |
CN106051563A (en) * | 2016-08-19 | 2016-10-26 | 江苏达伦电子股份有限公司 | Intelligent lighting equipment and control method thereof |
Also Published As
Publication number | Publication date |
---|---|
CN106898370B (en) | 2019-10-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103888837B (en) | A kind of video information method for pushing and device | |
US11126394B2 (en) | Systems and methods for content delivery and management | |
CN107707828B (en) | A kind of method for processing video frequency and mobile terminal | |
CN104794396B (en) | Across standing posture script loophole detection method and device | |
CN110472145A (en) | A kind of content recommendation method and electronic equipment | |
CN106126174B (en) | A kind of control method and electronic equipment of scene audio | |
CN108509660A (en) | A kind of broadcasting object recommendation method and terminal device | |
CN102651731A (en) | Video display method and video display device | |
CN105120223A (en) | Method and system for acquiring view of scenery spot | |
CN108228882A (en) | The recommendation method and terminal device of a kind of audition for the songs segment | |
CN110278329B (en) | Notification message management method and mobile terminal | |
CN108123945A (en) | Distribution method, system and the intelligent terminal of random data | |
CN108090140A (en) | A kind of playback of songs method and mobile terminal | |
CN105959482B (en) | A kind of control method and electronic equipment of scene audio | |
CN104090884A (en) | Method and device for applying dynamic condition of media information to share | |
CN112969093B (en) | Interactive service processing method, device, equipment and storage medium | |
CN111435377B (en) | Application recommendation method, device, electronic equipment and storage medium | |
CN106713840A (en) | Virtual information display method and device | |
CN108388629A (en) | A kind of multimedia information push method, device and electronic equipment | |
CN110457888A (en) | A kind of verifying code imput method, device, electronic equipment and storage medium | |
CN109324999A (en) | A kind of method and electronic equipment executing operation based on download instruction | |
CN108184143A (en) | Obtain the method and device of resource | |
CN110278273B (en) | Multimedia file uploading method, device, terminal, server and storage medium | |
CN113010017B (en) | Multimedia information interactive display method, system and electronic equipment | |
CN106535174A (en) | Number identification control method and device in double-card mode and mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20191018 Termination date: 20220217 |