A kind of audio file sharing method, device and audio amplifier
Technical field
The invention belongs to technical field of mobile terminals, more particularly to a kind of audio file sharing method, device and audio amplifier.
Background technology
With the popularization of Baffle Box of Bluetooth, various functions are complete and different modeling Baffle Box of Bluetooth is provided sufficiently for people
Space is selected, increasing user plays music whenever and wherever possible by Baffle Box of Bluetooth, preferably to enjoy music, enjoy and give birth to
It is living.
However, when Baffle Box of Bluetooth is applied to hold the party such as classmate or friend, because Baffle Box of Bluetooth can not be determined in real time
The music that the most personnel attended a party like, therefore the music played in Baffle Box of Bluetooth is likely to unsuitable most people
Style, so as to not build a kind of good party atmosphere, is not liked when Baffle Box of Bluetooth is played to most personnel for attending a party
During joyous music, Baffle Box of Bluetooth needs to receive the music that user adds again, replays, the process of addition is cumbersome, consumes
Time, it have impact on the service efficiency of Baffle Box of Bluetooth.
The content of the invention
The purpose of the embodiment of the present invention is to provide a kind of audio file sharing method, it is intended to solve existing Baffle Box of Bluetooth
The music that the most personnel attended a party like can not be determined in real time, and Baffle Box of Bluetooth needs to receive the sound that user adds again
It is happy, cause the problem of service efficiency of Baffle Box of Bluetooth is low.
The embodiment of the present invention is achieved in that a kind of audio file sharing method, including:
Audio-frequency information is received, the audio-frequency information includes audio file and identified and audio file;
According to the audio file mark generation playlist received;
The repetition rate identified according to audio file determines the playing sequence of each audio file in playlist;
The audio file is played according to the playing sequence and identifies corresponding audio file.
The another object of the embodiment of the present invention is to provide a kind of audio file sharing means, including:
Receiving unit, for receiving audio-frequency information, the audio-frequency information includes audio file and identified and audio file;
Generation unit, for according to the audio file mark generation playlist received;
Determining unit, the repetition rate for being identified according to audio file determines the broadcasting of each audio file in playlist
Sequentially;
Broadcast unit, corresponding audio file is identified for playing the audio file according to the playing sequence.
The another object of the embodiment of the present invention is to provide a kind of audio amplifier for including audio file sharing means.
In embodiments of the present invention, audio amplifier receives audio-frequency information, and the audio-frequency information includes audio file and identified and audio
File;According to the audio file mark generation playlist received;The repetition rate identified according to audio file is determined
The playing sequence of each audio file in playlist;The audio file is played according to the playing sequence and identifies corresponding audio
File, to determine music that most personnel for attending a party like, without receiving the music that user adds again, it is to avoid weight
The situation of new addition music, saves the time, improves the service efficiency of audio amplifier.
Brief description of the drawings
Fig. 1 is the implementation process figure of audio file sharing method provided in an embodiment of the present invention;
Fig. 2 is that audio file sharing method step S101 provided in an embodiment of the present invention implements flow chart;
Fig. 3 is that audio file sharing method step S103 provided in an embodiment of the present invention implements flow chart;
Fig. 4 is the preferably implementation process figure of audio file sharing method provided in an embodiment of the present invention;
Fig. 5 is the structured flowchart of audio file sharing means provided in an embodiment of the present invention.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
In embodiments of the present invention, audio amplifier receives audio-frequency information, and the audio-frequency information includes audio file and identified and audio
File;According to the audio file mark generation playlist received;The repetition rate identified according to audio file is determined
The playing sequence of each audio file in playlist;The audio file is played according to the playing sequence and identifies corresponding audio
File, to determine music that most personnel for attending a party like, without receiving the music that user adds again, it is to avoid weight
The situation of new addition music, saves the time, improves the service efficiency of audio amplifier.
Embodiment 1:
Fig. 1 shows a kind of implementation process of audio file sharing method provided in an embodiment of the present invention, and details are as follows:
In step S101, audio-frequency information is received, the audio-frequency information includes audio file and identified and audio file.
In the present embodiment, audio file mark includes but is not limited to audio file name.
In the present embodiment, audio amplifier receives audio-frequency information, extracts audio file mark and audio file, sets up audio file
The corresponding relation and record storage of mark and audio file, in order to call audio file subsequently through audio file mark and broadcast
Put.
As a preferred embodiment of the present invention, the audio-frequency information received is write into specific storage region, it is described
Storage region includes carrying at least one of the region of storage hardware and the region of outside access storage hardware, so as to solve
The storage hardware of existing audio amplifier without Large Copacity, the audio file received in itself can not leave in audio amplifier standby after playing
Part, the problem of also these audio files can not again being operated.
In the present embodiment, the device for sending audio-frequency information is one or more mobile terminals with communication function.
In the present embodiment, in the system of mobile terminal, the audio-frequency information for needing to send is obtained, specifically can be by obtaining
The store path of audio, then the audio-frequency information stored is read by store path, to complete the audio-frequency information of mobile terminal storage
Acquisition, audio-frequency information include audio file name and voice data.Because each audio file name and voice data are in storage
Existing corresponding relation, therefore voice data can be directly invoked according to audio file name.
In the present embodiment, mobile terminal and audio amplifier send and receive associated person information by specified signal procedure, communication
Program includes one or more in Bluetooth communication program, wireless LAN communication program, infrared communication program.
, can be with when the distance of both audio amplifier and mobile terminal is less than 10 meters for purposes of illustration only, by taking practical application as an example
Bluetooth equipment built in mobile terminal searches neighbouring bluetooth equipment, by the device name of bluetooth equipment, is used as specified audio amplifier
Information, and the device name of all bluetooth equipments of display is carried out on the screen of the mobile terminal, when user chooses bluetooth equipment
During device name, by the device name for the bluetooth equipment chosen, as specified audio amplifier, so that what mobile terminal was specified to user
Audio amplifier sends audio-frequency information, so that audio amplifier can receive audio-frequency information.
In step s 102, according to the audio file mark generation playlist received.
In the present embodiment, according to the audio file mark generation playlist received, specifically, on default interface
The playlist of display, playlist includes audio file marks all in receiving, in order to which user is checked.
In step s 103, the repetition rate identified according to audio file determines the broadcasting of each audio file in playlist
Sequentially.
In embodiments of the present invention, the repetition rate identified according to audio file determines each audio file in playlist
Playing sequence, can be ranked up to the repetition rate that audio file is identified, extract the audio-frequency information of ranking top N, the N is big
In the integer equal to 1.The number N of ranking can also can be limited herein with user from setting by system default.
Due to the limited time of broadcasting, therefore the quantity of audio-frequency information is typically few, therefore passes through empirical value setting N number
Value, it is preferable that N numerical value is 15.So as to extract several audio-frequency informations most welcome by everybody, follow-up play is completed
The audio file that most people likes in party.
In step S104, audio file is played according to playing sequence and identifies corresponding audio file.
In embodiments of the present invention, the audio file is played according to playing sequence and identifies corresponding audio file, due to
The audio file of broadcasting is the personnel attended a party, is uploaded by mobile terminal, and it is also poly- according to participating in that playing sequence, which is,
The personnel of meeting are uploaded determined by the repetition rate of audio file mark, therefore, and the music played in audio amplifier can be adapted to ginseng
The style of most personnel of addition polymerization meeting, can build a kind of good party atmosphere, be added again without receiving user
Music, it is to avoid add the situation of music again, save the time, improve the service efficiency of audio amplifier.
Embodiment 2:
Fig. 2 shows step S101 specific implementation flow, and details are as follows:
In step s 201, real-time judge receives the audio file mark in audio-frequency information and the sound in audio information
Frequency file identifies whether to repeat.
In the present embodiment, when audio amplifier receives audio-frequency information, audio file mark of the audio amplifier in audio information
In knowledge, inquiry whether there is the audio file mark in the audio-frequency information in reception state, quickly to judge audio file mark
Whether knowledge repeats.
In step S202, when repeating, judge to receive the audio file in audio-frequency information and identify corresponding audio file
The audio file that whether is more than in audio information of data volume identify the data volume of corresponding audio file.
In the present embodiment, when repeating, obtain the audio file received in audio-frequency information and identify corresponding audio file
Data volume, judge to receive the audio file in audio-frequency information and identify the data volume of corresponding audio file whether be more than storage sound
Audio file in frequency information identifies the data volume of corresponding audio file.
In step S203, when more than when, the audio file received in audio-frequency information identifies corresponding audio file.
In the present embodiment, when more than when, the audio file received in audio-frequency information identifies corresponding audio file so that
Avoid when the data volume for receiving the corresponding audio file of the mark of the audio file in audio-frequency information is smaller, same audio file
The low data bulk audio file of mark, substituted for the sound that the audio file in former audio information identifies corresponding high data volume
There is larger distortion in frequency file, the broadcasting for producing follow audio file.
When less than when, audio file in audio-frequency information is not received and identifies corresponding audio file, so as to reduce audio text
Part takes to the repetition of audio amplifier memory space, met as audio amplifier in itself without Large Copacity storage hardware situation, improve
To the effective rate of utilization of the memory space of audio amplifier.
Embodiment 3:
Fig. 3 shows S103 specific implementation flow, and details are as follows:
In step S301, the number of repetition of the audio file mark in the audio-frequency information received generates audio
The repetition rate of file identification.
In the present embodiment, the repetition rate of audio file mark is audio file mark in audio-frequency information when default
Interior number of repetition, preset time can also can voluntarily be set, not do herein with user from set based on experience value by system
Limitation.
In the present embodiment, number of repetition is obtained, can in the local database, the number of repetition that audio file is identified
Initial value be set to 0, while by each audio file identify it is associated with its number of repetition, be stored in local configuration file
In, whenever receiving an audio file mark, its number of repetition is Jia 1, thus counts audio file and identifies current weight
Again count, according to the ratio of number of repetition and preset time, generate repetition rate.
Audio file mark can be drawn in nearest a period of time or the repetition rate of certain section of special time, follow-up basis
Repetition rate generates playlist.
In step s 302, it is ranked up according to the repetition rate that audio file is identified, determines each sound in playlist
The playing sequence of frequency file.
In embodiments of the present invention, the repetition rate identified by ranking functions to audio file is ranked up, according to row
The height of sequence result, determines the priority of the playing sequence of each audio file in playlist.
Embodiment 4:
The present embodiment is essentially described before audio-frequency information is received, and reads the period that system time and user specify
Process, details are as follows:
Read the period that system time and user specify;
When reaching the period, the step of receiving audio-frequency information is performed.
Specifically can be by a display list, the display list includes the period, the zoned format of period include the morning,
Noon, afternoon, evening, morning, user can specify one or more periods in display list, and system is according to specified by user
Period, perform receive audio-frequency information the step of.
For purposes of illustration only, by taking practical application as an example, when user's selected period is evening, that is, at 6 points in evening arrives
In at 12 points in evening, carry out performing the step of receiving audio-frequency information within the period, do not perform reception sound within other periods
The step of frequency information, the active thread of audio amplifier is reduced, to reduce the kwh loss of mobile terminal.
Embodiment 5:
Fig. 4 shows preferable implementing procedure of the embodiments of the invention in practical application, and details are as follows:
In step S401, Baffle Box of Bluetooth is established the link with mobile phone;
In step S402, start preset timer timing;
In step S403, transfer audio files;
In step s 404, Baffle Box of Bluetooth parsing audio file name, judges whether audio file name is already present on seniority among brothers and sisters
In list, it is then, to perform 405, otherwise, performs 406;
In step S405, audio file name adds 1, updates ranking list;
In step S406, the audio file received is stored into specific memory space, ranking list is updated;
In step S 407, judge whether preset timer reaches preset time, be, perform 401, otherwise perform 408;
In step S408, Baffle Box of Bluetooth is according to the playing sequence of last ranking list, sequentially from specific memory space
Audio file is read to play out.
Embodiment 6:
Fig. 5 shows a kind of structured flowchart of audio file sharing means provided in an embodiment of the present invention, and the device can be with
Run on the various terminals for possessing communication function, including but not limited to Baffle Box of Bluetooth, mobile phone, pocket computer(Pocket
Personal Computer, PPC), palm PC, computer, notebook computer etc..For convenience of description, it illustrate only and this
The related part of embodiment.
Reference picture 5, the audio file sharing means, including:
Receiving unit 51, for receiving audio-frequency information, the audio-frequency information includes audio file and identified and audio file;
Generation unit 52, for according to the audio file mark generation playlist received;
Determining unit 53, the repetition rate for being identified according to audio file determines broadcasting for each audio file in playlist
Put forward sequence;
Broadcast unit 54, corresponding audio file is identified for playing the audio file according to the playing sequence.
Further, in the apparatus, receiving unit, in addition to:
First judgment sub-unit, is received for real-time judge in the audio file name and audio information in audio-frequency information
Audio file name whether repeat;
Second judgment sub-unit, for when repeating, judging to receive the corresponding audio of audio file name in audio-frequency information
Whether the data volume of file is more than the data volume of the corresponding audio file of audio file name in audio information;
Receiving subelement, for when more than when, receive the audio file in audio-frequency information and identify corresponding audio file, and
The audio file obtained with receiving replaces original audio file.
Further, in the apparatus, in addition to:
Memory cell, for the audio-frequency information received to be write into specific storage region, the storage region is included certainly
At least one of region with storage hardware and the region of outside access storage hardware.
Further, in the apparatus, determining unit, in addition to:
Subelement is generated, for the number of repetition of the audio file mark in the audio-frequency information received, sound is generated
The repetition rate of frequency file mark;
Determination subelement, is ranked up according to the repetition rate that audio file is identified, and determines each audio in playlist
The playing sequence of file.
In embodiments of the present invention, audio amplifier receives audio-frequency information, and the audio-frequency information includes audio file and identified and audio
File;According to the audio file mark generation playlist received;The repetition rate identified according to audio file is determined
The playing sequence of each audio file in playlist;The audio file is played according to the playing sequence and identifies corresponding audio
File, to determine music that most personnel for attending a party like, without receiving the music that user adds again, it is to avoid weight
The situation of new addition music, saves the time, improves the service efficiency of audio amplifier.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
Any modifications, equivalent substitutions and improvements made within refreshing and principle etc., should be included in the scope of the protection.