Embodiment
In order to make object of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
In embodiments of the present invention, audio amplifier audio reception information, described audio-frequency information comprises audio file mark and audio file; Generate playlist according to the described audio file mark receiving; Determine the playing sequence of each audio file in playlist according to the repetition frequency of audio file mark; Play described audio file according to described playing sequence and identify corresponding audio file, with the music of determining that most personnel of attending a party like, without the music that receives user and again add, avoid again adding the situation of music, save the time, improved the service efficiency of audio amplifier.
embodiment 1:
A kind of audio file that Fig. 1 shows the embodiment of the present invention to be provided is shared the realization flow of method, and details are as follows:
In step S101, audio reception information, described audio-frequency information comprises audio file mark and audio file.
In the present embodiment, audio file mark includes but not limited to audio file name.
In the present embodiment, audio amplifier audio reception information, extracts audio file mark and audio file, sets up corresponding relation the record storage of audio file mark and audio file, is identified and is called audio file and play by audio file so that follow-up.
As a preferred embodiment of the present invention, the audio-frequency information receiving is write to specific storage area, described storage area comprises at least one carrying in the region of storage hardware and the region of outside access storage hardware, thereby solve existing audio amplifier itself and be not with jumbo storage hardware, the audio file receiving is play and can not be left backup at audio amplifier, the problem that also cannot operate again these audio files later.
In the present embodiment, the device of transmission audio-frequency information is one or more mobile terminals with communication function.
In the present embodiment, in the system of mobile terminal, obtain the audio-frequency information that needs transmission, specifically can be by obtaining the store path of audio frequency, read again the audio-frequency information of storage by store path, to complete the obtaining of audio-frequency information of mobile terminal stores, audio-frequency information comprises audio file name and voice data.Because each audio file name and voice data have existed corresponding relation when the storage, therefore can directly call voice data according to audio file name.
At the present embodiment, mobile terminal and audio amplifier are by the signal procedure sending and receiving associated person information of specifying, and signal procedure comprises in Bluetooth communication program, wireless LAN communication program, infrared communication program one or more.
For ease of explanation, taking practical application as example, in the time that the distance of audio amplifier and mobile terminal is less than 10 meters, near bluetooth equipment can searching with the built-in bluetooth equipment of mobile terminal, by the device name of bluetooth equipment, as the information of specifying audio amplifier, and on the screen of mobile terminal, show the device name of all bluetooth equipments, in the time that user chooses the device name of bluetooth equipment, by the device name of the bluetooth equipment of choosing, as the audio amplifier of specifying, so that the audio amplifier that mobile terminal is specified to user sends audio-frequency information, thereby audio amplifier can receive audio-frequency information.
In step S102, generate playlist according to the described audio file mark receiving.
In the present embodiment, generate playlist according to the audio file mark receiving, be specially, the playlist showing on default interface, playlist comprise receive in all audio file marks so that user checks.
In step S103, determine the playing sequence of each audio file in playlist according to the repetition frequency of audio file mark.
In embodiments of the present invention, determine the playing sequence of each audio file in playlist according to the repetition frequency of audio file mark, can sort to the repetition frequency of audio file mark, extract the audio-frequency information of rank top N, described N is more than or equal to 1 integer.The number N of rank can user establish certainly, also can pass through system default, does not limit at this.
Due to the limited time of playing, therefore the quantity of audio-frequency information is generally few, therefore sets the numerical value of N by empirical value, and preferably, the numerical value of N is 15.Thereby can extract several audio-frequency informations that welcome by everybody, complete the audio file that in follow-up play party, most people likes.
In step S104, identify corresponding audio file according to playing sequence displaying audio file.
In embodiments of the present invention, play described audio file according to playing sequence and identify corresponding audio file, because the audio file of playing is the personnel that attend a party, upload by mobile terminal, and playing sequence is to be also that to upload the repetition frequency of audio file mark according to the personnel that attend a party determined, therefore, most personnel's that the music of playing in audio amplifier can be applicable to attending a party style, can build a kind of good party atmosphere, the music of again adding without reception user, avoid again adding the situation of music, save the time, improve the service efficiency of audio amplifier.
embodiment 2:
Fig. 2 shows the concrete implementing procedure of step S101, and details are as follows:
In step S201, whether the audio file mark in real-time judge audio reception information repeats with the audio file mark in audio information.
In the present embodiment, when audio amplifier receives audio-frequency information, in the audio file mark of audio amplifier in audio information, whether inquiry there is the audio file mark in the audio-frequency information in accepting state, to judge fast whether audio file mark repeats.
In step S202, in the time repeating, judge whether data volume that audio file in audio reception information identifies corresponding audio file is greater than audio file in audio information and identifies the data volume of corresponding audio file.
In the present embodiment, in the time repeating, obtain the data volume that audio file in audio reception information identifies corresponding audio file, judge whether data volume that audio file in audio reception information identifies corresponding audio file is greater than audio file in audio information and identifies the data volume of corresponding audio file.
In step S203, in the time being greater than, the audio file in audio reception information identifies corresponding audio file.
In the present embodiment, in the time being greater than, audio file in audio reception information identifies corresponding audio file, thereby the data volume of having avoided identifying corresponding audio file when the audio file in audio reception information hour, the low data bulk audio file of same audio file mark, the audio file of having replaced the high data volume of the audio file mark correspondence in former audio information, there is the situation of larger distortion in the broadcasting that produces subsequent sound frequency file.
In the time being less than, the audio file in audio reception information does not identify corresponding audio file, thereby reduce audio file to audio amplifier storage space repeat take, met as the not situation with jumbo storage hardware of audio amplifier itself, improved the effective rate of utilization of the storage space to audio amplifier.
embodiment 3:
Fig. 3 shows the concrete implementing procedure of S103, and details are as follows:
In step S301, according to the multiplicity of the audio file mark in the audio-frequency information receiving, generate the repetition frequency of audio file mark.
In the present embodiment, the repetition frequency of audio file mark is that the audio file in audio-frequency information is identified at the multiplicity in Preset Time, and Preset Time can user be established certainly, also can arrange voluntarily based on experience value by system, does not limit at this.
In the present embodiment, obtain multiplicity, can be in local data base, the initial value of the multiplicity of audio file mark is set to 0, each audio file mark is associated with its multiplicity simultaneously, be stored in local configuration file, whenever receiving audio file mark one time, its multiplicity adds 1, counts thus audio file and identifies current multiplicity, according to the ratio of multiplicity and Preset Time, generate repetition frequency.
Can show that audio file is identified at the repetition frequency of nearest a period of time or certain section of special time, follow-up according to repetition frequency generation playlist.
In step S302, according to the repetition frequency of audio file mark is sorted, determine the playing sequence of each audio file in playlist.
In embodiments of the present invention, by ranking functions, the repetition frequency of audio file mark is sorted, according to the height of ranking results, determine the priority of the playing sequence of each audio file in playlist.
embodiment 4:
The present embodiment had mainly been described before audio reception information, the process of the time period that reading system time and user specify, and details are as follows:
The time period that reading system time and user specify;
In the time that the time period arrives, carry out the step of audio reception information.
Specifically can pass through a display list, this display list comprises the time period, the zoned format of time period comprises the morning, noon, afternoon, evening, morning, user can specify one or more time periods in display list, system, according to the specified time period of user, is carried out the step of audio reception information.
For ease of explanation, taking practical application as example, it is evening when the user-selected time period, namely at 6 in evening is to point in evenings 12, within this time period, carry out the step of audio reception information, within other time period, do not carry out the step of audio reception information, reduce the active thread of audio amplifier, to reduce the kwh loss of mobile terminal.
embodiment 5:
Fig. 4 shows the better implementing procedure of embodiments of the invention in practical application, and details are as follows:
In step S401, Baffle Box of Bluetooth and mobile phone establish the link;
In step S402, start default timer timing;
In step S403, transfer audio files;
In step S404, Baffle Box of Bluetooth is resolved audio file name, judge that whether Already in audio file name in ranking list, is, carries out 405, otherwise, execution 406;
In step S405, audio file name adds 1, upgrades ranking list;
In step S406, the audio file of receiving is stored into specific storage space, upgrade ranking list;
In step S407, whether the default timer of judgement arrives Preset Time, is to carry out 401, otherwise carries out 408;
In step S408, Baffle Box of Bluetooth, according to the playing sequence of last ranking list, sequentially reads audio file from specific storage space and plays.
embodiment 6:
Fig. 5 shows the structured flowchart of a kind of audio file sharing means that the embodiment of the present invention provides, this device can run on the various terminals that possess communication function, include but not limited to Baffle Box of Bluetooth, mobile phone, pocket computing machine (Pocket Personal Computer, PPC), palm PC, computing machine, notebook computer etc.For convenience of explanation, only show the part relevant to the present embodiment.
With reference to Fig. 5, this audio file sharing means, comprising:
Receiving element 51, for audio reception information, described audio-frequency information comprises audio file mark and audio file;
Generation unit 52, for generating playlist according to the described audio file mark receiving;
Determining unit 53, for determining the playing sequence of the each audio file of playlist according to the repetition frequency of audio file mark;
Broadcast unit 54, identifies corresponding audio file for playing described audio file according to described playing sequence.
Further, in this device, receiving element, also comprises:
Whether the first judgment sub-unit, repeat for the audio file name in audio file name and the audio information of real-time judge audio reception information;
The second judgment sub-unit, in the time repeating, whether the data volume that judges the audio file that audio file name in audio reception information is corresponding is greater than the data volume of the audio file that audio file name in audio information is corresponding;
Receive subelement, in the time being greater than, the audio file in audio reception information identifies corresponding audio file, and replaces original audio file with receiving the audio file obtaining.
Further, in this device, also comprise:
Storage unit, for the audio-frequency information receiving is write to specific storage area, described storage area comprises at least one carrying in the region of storage hardware and the region of outside access storage hardware.
Further, in this device, determining unit, also comprises:
Generate subelement, for according to the multiplicity of the audio file mark of the audio-frequency information receiving, generate the repetition frequency of audio file mark;
Determine subelement, according to the repetition frequency of audio file mark is sorted, determine the playing sequence of each audio file in playlist.
In embodiments of the present invention, audio amplifier audio reception information, described audio-frequency information comprises audio file mark and audio file; Generate playlist according to the described audio file mark receiving; Determine the playing sequence of each audio file in playlist according to the repetition frequency of audio file mark; Play described audio file according to described playing sequence and identify corresponding audio file, with the music of determining that most personnel of attending a party like, without the music that receives user and again add, avoid again adding the situation of music, save the time, improved the service efficiency of audio amplifier.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in protection scope of the present invention.