CN105208439B - Audio file play method and device - Google Patents
Audio file play method and device Download PDFInfo
- Publication number
- CN105208439B CN105208439B CN201510580330.7A CN201510580330A CN105208439B CN 105208439 B CN105208439 B CN 105208439B CN 201510580330 A CN201510580330 A CN 201510580330A CN 105208439 B CN105208439 B CN 105208439B
- Authority
- CN
- China
- Prior art keywords
- audio
- picture
- file
- audio file
- obtaining
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/439—Processing of audio elementary streams
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/81—Monomedia components thereof
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Television Signal Processing For Recording (AREA)
Abstract
The invention discloses a kind of audio file play method, the audio file play method includes the following steps:When receiving play instruction, the corresponding audio file of described instruction is obtained;The unit interval that every audio picture is shown is determined according to the audio file, and the corresponding audio picture of the audio file is obtained from picture library;The audio file is played, and the audio picture is shown one by one according to the unit interval.The invention also discloses a kind of audio file playing devices.The present invention realizes and obtains audio picture in audio playing process automatically, and automatically switches to show in real time according to the broadcasting of audio file so that music is no longer dull, improves user experience.
Description
Technical field
The present invention relates to intelligent television field more particularly to a kind of audio file play methods and device.
Background technology
Currently, with the fast development of smart television and terminal technology, the interaction of mobile terminal and smart television is also more next
It is more.In particular, mobile phone terminal, which plays music, is pushed to television broadcasting, television can see the music subtitle of bigger, bigger
Sing first poster, more interesting to listen to music.However, within the time to play a song, the image that smart television is shown is not appointed
What variation allows user to feel very boring, and not only user experience is bad, moreover, feeling that playing music process seems dull, does not have
New meaning.
Such as:Xiao Liu is delithted with to be listened to music in television, he picks up mobile phone and music is pushed to television, likes Wang Feng's
Song also likes the poster of Wang Feng, and within 5 minutes that play song, television image does not have any variation, dull display one
Pictures allow user to feel very dull on TV screen.
Therefore, in existing smart television carries out audio playing process, corresponding picture can not be obtained automatically and is shown
The problem of showing, in this respect the problem of urgently inventor solve.
The above is only used to facilitate the understanding of the technical scheme, and is not represented and is recognized that the above is existing skill
Art.
Invention content
It is a primary object of the present invention to solve in existing smart television carries out audio playing process, can not obtain automatically
The problem of taking relevant picture and carrying out automatically switching display.
To achieve the above object, the present invention provides a kind of audio file play method, the audio file play method
Include the following steps:
When receiving play instruction, the corresponding audio file of described instruction is obtained;
The unit interval that every audio picture is shown is determined according to the audio file, and the sound is obtained from picture library
The corresponding audio picture of frequency file;
The audio file is played, and the audio picture is shown one by one according to the unit interval.
Preferably, the unit interval for determining that every audio picture is shown according to the audio file, and from picture library
Middle the step of obtaining the audio file corresponding audio picture includes:
The file type of the audio file is obtained, and determines what the corresponding every audio picture of the file type was shown
Unit interval;
The total play time of the audio file is obtained, and the total play time divided by the unit interval are calculated
The number n of the audio picture;
The file name for obtaining the audio file searches the corresponding picture of the file name from the picture library,
And n pictures are filtered out as the audio picture.
Preferably, the file type for obtaining the audio file, and determine the corresponding every sound of the file type
The step of unit interval that frequency picture is shown includes:
Obtain the file type of the audio file;
Corresponding audio sampling frequency and the sample number of every frame audio are determined according to the file type;
By the sample number per frame audio divided by the sample frequency, the reproduction time of every frame audio is calculated;
The unit interval that every audio picture is shown is determined according to the reproduction time per frame audio.
Preferably, the file name for obtaining the audio file, searches the file name from the picture library
Corresponding picture, and filter out n pictures and include as the step of audio picture:
The file name for obtaining the audio file searches the corresponding picture of the file name from the picture library;
The picture found is ranked up by resolution ratio;
The resolution ratio for obtaining audio picture display area, is sieved from the picture less than or equal to the display area resolution ratio
N pictures are as the audio picture before selecting.
Preferably, described when receiving play instruction, before the step of obtaining described instruction corresponding audio file, also
Including:
Server configures the picture library containing audio picture beyond the clouds.
In addition, to achieve the above object, the present invention also provides a kind of audio file playing device, the audio file is broadcast
Putting device includes:
Receiving module, for when receiving play instruction, obtaining the corresponding audio file of described instruction;
Processing module, for determining unit interval that every audio picture is shown according to the audio file, and from picture
The corresponding audio picture of the audio file is obtained in library;
Playing module shows the audio picture one by one for playing the audio file, and according to the unit interval
Preferably, the processing module includes audio treatment unit and picture processing unit;
The audio treatment unit, the file type for obtaining the audio file, and determine the file type pair
The unit interval that the every audio picture answered is shown;
The audio treatment unit, is additionally operable to obtain the total play time of the audio file, and when by total broadcasting
Between divided by the unit interval calculate the number n of the audio picture;
The picture processing unit, the file name for obtaining the audio file search institute from the picture library
The corresponding picture of file name is stated, and filters out n pictures as the audio picture.
Preferably, the audio treatment unit includes obtaining subelement, determination subelement and computation subunit;
The acquisition subelement, the file type for obtaining the audio file;
The determination subelement, for determining corresponding audio sampling frequency according to the file type and per frame audio
Sample number;
The computation subunit, for by the sample number per frame audio divided by the sample frequency, calculating
Per the reproduction time of frame audio;
The determination subelement, for determining list that every audio picture is shown according to the reproduction time per frame audio
The position time.
Preferably, the picture processing unit includes searching subelement, sorting subunit and screening subelement;
The lookup subelement, the file name for obtaining the audio file, from the picture library described in lookup
The corresponding picture of file name;
The sorting subunit, for the picture found to be ranked up by resolution ratio;
The screening subelement, the resolution ratio for obtaining audio picture display area, from less than or equal to the display
N pictures are as the audio picture before being filtered out in the picture of regional resolution.
Preferably, the audio file playing device further includes configuration module;
The configuration module configures the picture library containing audio picture for server beyond the clouds.
The present invention obtains corresponding audio picture, and calculate every sound from picture library automatically when playing audio file
The unit interval that frequency picture is shown shows audio picture one by one during playing audio file according to the unit interval, real
Show and obtained audio picture in audio playing process automatically, and has automatically switched to show in real time according to the broadcasting of audio file so that
Music is no longer dull, improves user experience.
Description of the drawings
Fig. 1 is the flow diagram of the first embodiment of audio file play method of the present invention;
Fig. 2 is the flow diagram of the second embodiment of audio file play method of the present invention;
Fig. 3 is the flow diagram of the 3rd embodiment of audio file play method of the present invention;
Fig. 4 is the flow diagram of the fourth embodiment of audio file play method of the present invention;
Fig. 5 is the high-level schematic functional block diagram of the first embodiment of audio file playing device of the present invention;
Fig. 6 is the high-level schematic functional block diagram of the second embodiment of audio file playing device of the present invention;
Fig. 7 is the high-level schematic functional block diagram of the 3rd embodiment of audio file playing device of the present invention;
Fig. 8 is the high-level schematic functional block diagram of the fourth embodiment of audio file playing device of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific implementation mode
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The primary solutions of the embodiment of the present invention are:When receiving play instruction, the corresponding sound of described instruction is obtained
Frequency file;The unit interval that every audio picture is shown is determined according to the audio file, and the sound is obtained from picture library
The corresponding audio picture of frequency file;The audio file is played, and the audio picture is shown one by one according to the unit interval.
In existing smart television carries out audio playing process, relevant picture can not be obtained automatically and is cut automatically
The problem of changing display.
Based on the above issues, the present invention provides a kind of audio file play method.
Referring to Fig.1, Fig. 1 is the flow diagram of the first embodiment of audio file play method of the present invention.
In the present embodiment, the audio file play method includes:
Step S10 obtains the corresponding audio file of described instruction when receiving play instruction;
When smart television receives audio play instruction, the corresponding audio file of described instruction is obtained, with according to
Audio file obtains corresponding audio picture from picture library automatically, and calculates the unit interval that every audio picture is shown,
It plays audio file and shows audio picture one by one according to the unit interval in the process.
Preferably, in intelligent television system, the communication connection of smart television and mobile terminal can be established, and passes through institute
Mobile terminal triggering audio play instruction is stated, when smart television receives the audio play instruction from the mobile terminal,
By the communication connection from the corresponding audio file of the acquisition for mobile terminal described instruction, and the audio file is preserved
In the caching of the smart television.The mobile terminal can be such as mobile phone, smart phone, laptop, number
Word radio receiver, PDA (personal digital assistant), PAD (tablet computer), PMP (portable media player), navigation device
Etc. terminal.
Step S20 determines the unit interval that every audio picture is shown according to the audio file, and is obtained from picture library
Take the corresponding audio picture of the audio file;
The smart television determines the unit interval that every audio picture is shown according to acquired audio file.It is described every
The unit interval that audio picture is shown is opened, for when playing the audio file, institute to be shown one by one according to the unit interval
State audio picture.The unit interval that every audio picture is shown can be pre-set time parameter, such as:It can set
It is set to every audio picture to show 2 seconds, obtains 10 seconds broadcasting total times of the audio file, it is determined that the audio picture of display
Number be 5, obtain 5 corresponding audio pictures from picture library, and show 2 seconds speed one by one according to every audio picture
Show 5 audio pictures.
Alternatively, the file type of the audio file can also be obtained, and determine the corresponding every sound of the file type
The unit interval that frequency picture is shown.Such as:The unit interval that the audio picture of the audio file of MP3 format is shown is set as 2.6
Second, i.e., every audio picture switches to next audio picture after showing 2.6 seconds;The audio picture of the audio file of AAC formats
The unit interval of display is set as 2.2 seconds, i.e. every audio picture switches to next audio picture after showing 2.2 seconds.
The smart television obtains the corresponding audio picture of the audio file from picture library.The audio file corresponds to
Audio picture, be the relevant picture of the audio file content, such as:The audio picture can be the audio file pair
The picture etc. of the poster or the corresponding singer of the audio file answered.
The picture library can be the picture library containing audio picture being pre-configured in the smart television, alternatively,
The picture library can also be in the server for being pre-configured in and being communicated to connect with the smart television containing audio picture
Picture library.
Further, can also be before the step S10, server configures the picture containing audio picture beyond the clouds
Library.To obtain the corresponding audio image of the audio file from the picture library.
Step S30 plays the audio file, and shows the audio picture one by one according to the unit interval.
The smart television when playing the audio file, while show according to every audio picture unit when
Between in display area show that the audio picture, every audio picture unit of display time then switch to next audio picture,
Until audio file broadcasting terminates.
The present embodiment obtains corresponding audio picture, and calculate every from picture library automatically when playing audio file
The unit interval that audio picture is shown shows audio picture one by one during playing audio file according to the unit interval,
It realizes and obtains audio picture in audio playing process automatically, and automatically switch to show in real time according to the broadcasting of audio file, make
It is no longer dull to obtain music, improves user experience.
It is the flow diagram of the second embodiment of audio file play method of the present invention with reference to Fig. 2, Fig. 2.Based on above-mentioned
The first embodiment of audio file play method, the step S20 include:
Step S21 obtains the file type of the audio file, and determines the corresponding every sonagram of the file type
The unit interval that piece is shown;
The smart television can be by the file type of the acquisition audio file, according to file type determination pair
The unit interval that the every audio picture answered is shown.The sound is calculated with the unit interval shown according to every audio picture
The number of frequency picture, and audio picture is shown according to the unit interval that every audio picture is shown one by one.
Step S22, obtains the total play time of the audio file, and when by the total play time divided by the unit
Between calculate the number n of the audio picture;
The smart television can obtain the total play time of the audio file, and by the total play time divided by institute
The number n that the unit interval calculates the audio picture is stated, to obtain the sound of corresponding number according to the number of the audio picture
Frequency picture.
Step S23 obtains the file name of the audio file, and the file name is searched from the picture library and is corresponded to
Picture, and filter out n pictures as the audio picture.
The smart television obtains the file name of the audio file, and the file name is searched from the picture library
Corresponding picture, and n pictures are filtered out as the audio picture.
The present embodiment determines that every audio picture is aobvious when playing audio file, according to the file type of the audio file
The unit interval shown, to carry out the display of audio picture according to the unit interval.And according to total broadcasting of the audio file
Time calculates the number of audio picture, to obtain the audio picture of corresponding number.And according to the filename of the audio file
Claim to obtain audio picture from picture library, realizes and obtain audio picture in audio playing process automatically, and according to audio file
It plays and automatically switches display in real time so that music is no longer dull, improves user experience.
It is the flow diagram of the 3rd embodiment of audio file play method of the present invention with reference to Fig. 3, Fig. 3.Based on above-mentioned
The first embodiment of audio file play method, the step S21 include:
Step S210 obtains the file type of the audio file;
Step S211 determines corresponding audio sampling frequency and the sample of every frame audio according to the file type
Number;
The sample number per frame audio divided by the sample frequency are calculated every frame audio by step S212
Reproduction time;
Step S213 determines the unit interval that every audio picture is shown according to the reproduction time per frame audio.
The smart television obtains the file type of the audio file;Corresponding audio is determined according to the file type
The sample number of decoded sample frequency and every frame audio;By the sample number per frame audio divided by sampling frequency
Rate calculates the reproduction time of every frame audio;Determine what every audio picture was shown according to the reproduction time per frame audio
Unit interval.The sample frequency when for simulated sound waveform being digitized, extracts time of wave amplitude sample each second
Number, and per sample number/sample frequency of frame audio=per the reproduction time of frame audio.
Such as:If the file type of the audio file is MP3 format, it is determined that the sample frequency of corresponding audio decoder
For 44.1kHz (sample number i.e. per second is 44100), determine that the corresponding sample number per frame audio is 1152, root
According to:The reproduction time of sample number/sample frequency=every frame audio per frame audio, calculates the reproduction time of every frame audio
It it is 0.026 second, by 100 times of unit interval shown as every audio picture of the reproduction time of every frame audio, i.e. every sound
Frequency picture is shown 2.6 seconds.
If alternatively, the file type of the audio file is AAC formats, it is determined that the sample frequency of corresponding audio decoder
For 44.1kHz (sample number i.e. per second is 44100), determine that the corresponding sample number per frame audio is 1024, root
According to:The reproduction time of sample number/sample frequency=every frame audio per frame audio, calculates the reproduction time of every frame audio
It it is 0.022 second, by 100 times of unit interval shown as every audio picture of the reproduction time of every frame audio, i.e. every sound
Frequency picture is shown 2.2 seconds.
The present embodiment determines corresponding audio sampling frequency when playing audio file, according to the file type of audio file
And the sample number per frame audio, and the reproduction time of every frame audio is calculated, it is determined according to the reproduction time of every frame audio
The unit interval that every audio picture is shown.So that audio picture can be according to the broadcasting speed of audio file in playing process
Automatically switch audio picture so that music is no longer dull, improves user experience.
It is the flow diagram of the fourth embodiment of audio file play method of the present invention with reference to Fig. 4, Fig. 4.Based on above-mentioned
The first embodiment of audio file play method, the step S23 include:
Step S230 obtains the file name of the audio file, and the file name pair is searched from the picture library
The picture answered;
The picture found is ranked up by step S231 by resolution ratio;
Step S232 obtains the resolution ratio of audio picture display area, from less than or equal to the display area resolution ratio
Picture in filter out before n pictures as the audio picture.
The smart television obtains the file name of the audio file, and the file name is searched from the picture library
Corresponding picture;The picture found is ranked up by resolution ratio;The resolution ratio for obtaining audio picture display area, from institute
The picture less than or equal to the display area resolution ratio is obtained in the picture found, and filters out the maximum preceding n of resolution ratio
Pictures are as the audio picture.Preferably, the picture found can be ranked up from big to small according to resolution ratio.
The present embodiment searches corresponding figure when playing audio file, according to the file name of audio file from picture library
Piece, and the picture found is screened according to the resolution ratio of audio picture display area, it filters out optimum and currently shows
The audio picture that region plays so that audio picture was shown is more clear, and improves user experience.
The executive agent of the audio file play method of above-mentioned first to fourth embodiment smart television or all can be set
Set the audio-frequence player device in smart television.Further, the audio file play method can be by being mounted on intelligence
TV or the audio file playing program being arranged on the audio-frequence player device in smart television are realized.
The present invention further provides a kind of audio file playing devices.
It is the high-level schematic functional block diagram of the first embodiment of audio file playing device of the present invention with reference to Fig. 5, Fig. 5.
In the present embodiment, the audio file playing device includes:Receiving module 10, processing module 20 and playing module
30。
Receiving module 10, for when receiving play instruction, obtaining the corresponding audio file of described instruction;
When smart television receives audio play instruction, the corresponding audio file of described instruction is obtained, with according to
Audio file obtains corresponding audio picture from picture library automatically, and calculates the unit interval that every audio picture is shown,
It plays audio file and shows audio picture one by one according to the unit interval in the process.
Preferably, in intelligent television system, the communication connection of smart television and mobile terminal can be established, and passes through institute
Mobile terminal triggering audio play instruction is stated, when smart television receives the audio play instruction from the mobile terminal,
By the communication connection from the corresponding audio file of the acquisition for mobile terminal described instruction, and the audio file is preserved
In the caching of the smart television.The mobile terminal can be such as mobile phone, smart phone, laptop, number
Word radio receiver, PDA (personal digital assistant), PAD (tablet computer), PMP (portable media player), navigation device
Etc. terminal.
Processing module 20, for determining unit interval that every audio picture is shown according to the audio file, and from figure
The corresponding audio picture of the audio file is obtained in valut;
The smart television determines the unit interval that every audio picture is shown according to acquired audio file.It is described every
The unit interval that audio picture is shown is opened, for when playing the audio file, institute to be shown one by one according to the unit interval
State audio picture.The unit interval that every audio picture is shown can be pre-set time parameter, such as:It can set
It is set to every audio picture to show 2 seconds, obtains 10 seconds broadcasting total times of the audio file, it is determined that the audio picture of display
Number be 5, obtain 5 corresponding audio pictures from picture library, and show 2 seconds speed one by one according to every audio picture
Show 5 audio pictures.
Alternatively, the file type of the audio file can also be obtained, and determine the corresponding every sound of the file type
The unit interval that frequency picture is shown.Such as:The unit interval that the audio picture of the audio file of MP3 format is shown is set as 2.6
Second, i.e., every audio picture switches to next audio picture after showing 2.6 seconds;The audio picture of the audio file of AAC formats
The unit interval of display is set as 2.2 seconds, i.e. every audio picture switches to next audio picture after showing 2.2 seconds.
The smart television obtains the corresponding audio picture of the audio file from picture library.The audio file corresponds to
Audio picture, be the relevant picture of the audio file content, such as:The audio picture can be the audio file pair
The picture etc. of the poster or the corresponding singer of the audio file answered.
The picture library can be the picture library containing audio picture being pre-configured in the smart television, alternatively,
The picture library can also be in the server for being pre-configured in and being communicated to connect with the smart television containing audio picture
Picture library.
Further, the audio file playing device further includes configuration module;The configuration module, for taking beyond the clouds
Business device configures the picture library containing audio picture.To obtain the corresponding audio image of the audio file from the picture library.
Playing module 30 shows the sonagram one by one for playing the audio file, and according to the unit interval
Piece
The smart television when playing the audio file, while show according to every audio picture unit when
Between in display area show that the audio picture, every audio picture unit of display time then switch to next audio picture,
Until audio file broadcasting terminates.
The present embodiment obtains corresponding audio picture, and calculate every from picture library automatically when playing audio file
The unit interval that audio picture is shown shows audio picture one by one during playing audio file according to the unit interval,
It realizes and obtains audio picture in audio playing process automatically, and automatically switch to show in real time according to the broadcasting of audio file, make
It is no longer dull to obtain music, improves user experience.
It is the high-level schematic functional block diagram of the second embodiment of apparatus of the present invention with reference to Fig. 6, Fig. 6.Based on above-mentioned audio file
The first embodiment of playing device, the processing module 20 include audio treatment unit 21 and picture processing unit 22;
The audio treatment unit 21, the file type for obtaining the audio file, and determine the file type
The unit interval that corresponding every audio picture is shown;
The smart television can be by the file type of the acquisition audio file, according to file type determination pair
The unit interval that the every audio picture answered is shown.The sound is calculated with the unit interval shown according to every audio picture
The number of frequency picture, and audio picture is shown according to the unit interval that every audio picture is shown one by one.
The audio treatment unit 21, is additionally operable to obtain the total play time of the audio file, and by total broadcasting
Time divided by the unit interval calculate the number n of the audio picture;
The smart television can obtain the total play time of the audio file, and by the total play time divided by institute
The number n that the unit interval calculates the audio picture is stated, to obtain the sound of corresponding number according to the number of the audio picture
Frequency picture.
The picture processing unit 22, the file name for obtaining the audio file are searched from the picture library
The corresponding picture of the file name, and n pictures are filtered out as the audio picture.
The smart television obtains the file name of the audio file, and the file name is searched from the picture library
Corresponding picture, and n pictures are filtered out as the audio picture.
The present embodiment determines that every audio picture is aobvious when playing audio file, according to the file type of the audio file
The unit interval shown, to carry out the display of audio picture according to the unit interval.And according to total broadcasting of the audio file
Time calculates the number of audio picture, to obtain the audio picture of corresponding number.And according to the filename of the audio file
Claim to obtain audio picture from picture library, realizes and obtain audio picture in audio playing process automatically, and according to audio file
It plays and automatically switches display in real time so that music is no longer dull, improves user experience.
It is the high-level schematic functional block diagram of the 3rd embodiment of apparatus of the present invention with reference to Fig. 7, Fig. 7.Based on above-mentioned audio file
The first embodiment of playing device, the audio treatment unit 21 include obtaining subelement 210, determination subelement 211 and calculating
Subelement 212;
The acquisition subelement 210, the file type for obtaining the audio file;
The determination subelement 211, for determining corresponding audio sampling frequency according to the file type and per frame sound
The sample number of frequency;
The computation subunit 212, for by the sample number per frame audio divided by the sample frequency, calculating
Go out the reproduction time of every frame audio;
The determination subelement 211, for determining that every audio picture is shown according to the reproduction time per frame audio
Unit interval.
The smart television obtains the file type of the audio file;Corresponding audio is determined according to the file type
The sample number of decoded sample frequency and every frame audio;By the sample number per frame audio divided by sampling frequency
Rate calculates the reproduction time of every frame audio;Determine what every audio picture was shown according to the reproduction time per frame audio
Unit interval.The sample frequency when for simulated sound waveform being digitized, extracts time of wave amplitude sample each second
Number, and per sample number/sample frequency of frame audio=per the reproduction time of frame audio.
Such as:If the file type of the audio file is MP3 format, it is determined that the sample frequency of corresponding audio decoder
For 44.1kHz (sample number i.e. per second is 44100), determine that the corresponding sample number per frame audio is 1152, root
According to:The reproduction time of sample number/sample frequency=every frame audio per frame audio, calculates the reproduction time of every frame audio
It it is 0.026 second, by 100 times of unit interval shown as every audio picture of the reproduction time of every frame audio, i.e. every sound
Frequency picture is shown 2.6 seconds.
If alternatively, the file type of the audio file is AAC formats, it is determined that the sample frequency of corresponding audio decoder
For 44.1kHz (sample number i.e. per second is 44100), determine that the corresponding sample number per frame audio is 1024, root
According to:The reproduction time of sample number/sample frequency=every frame audio per frame audio, calculates the reproduction time of every frame audio
It it is 0.022 second, by 100 times of unit interval shown as every audio picture of the reproduction time of every frame audio, i.e. every sound
Frequency picture is shown 2.2 seconds.
The present embodiment determines corresponding audio sampling frequency when playing audio file, according to the file type of audio file
And the sample number per frame audio, and the reproduction time of every frame audio is calculated, it is determined according to the reproduction time of every frame audio
The unit interval that every audio picture is shown.So that audio picture can be according to the broadcasting speed of audio file in playing process
Automatically switch audio picture so that music is no longer dull, improves user experience.
It is the high-level schematic functional block diagram of the fourth embodiment of apparatus of the present invention with reference to Fig. 8, Fig. 8.Based on above-mentioned audio file
The first embodiment of playing device, the picture processing unit 22 include searching subelement 220, sorting subunit 221 and screening
Subelement 222;
The lookup subelement 220, the file name for obtaining the audio file search institute from the picture library
State the corresponding picture of file name;
The sorting subunit 221, for the picture found to be ranked up by resolution ratio;
The screening subelement 222, the resolution ratio for obtaining audio picture display area are shown from less than or equal to described
Show that n pictures are as the audio picture before being filtered out in the picture of regional resolution.
The smart television obtains the file name of the audio file, and the file name is searched from the picture library
Corresponding picture;The picture found is ranked up by resolution ratio;The resolution ratio for obtaining audio picture display area, from institute
The picture less than or equal to the display area resolution ratio is obtained in the picture found, and filters out the maximum preceding n of resolution ratio
Pictures are as the audio picture.Preferably, the picture found can be ranked up from big to small according to resolution ratio.
The present embodiment searches corresponding figure when playing audio file, according to the file name of audio file from picture library
Piece, and the picture found is screened according to the resolution ratio of audio picture display area, it filters out optimum and currently shows
The audio picture that region plays so that audio picture was shown is more clear, and improves user experience.
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that process, method, article or device including a series of elements include not only those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this
There is also other identical elements in the process of element, method, article or device.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art
Going out the part of contribution can be expressed in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal equipment (can be mobile phone, computer, clothes
Be engaged in device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (8)
1. a kind of audio file play method, which is characterized in that the audio file play method includes the following steps:
When receiving play instruction, the corresponding audio file of described instruction is obtained;
Obtain the file type of the audio file;
Corresponding audio sampling frequency and the sample number of every frame audio are determined according to the file type;
By the sample number per frame audio divided by the sample frequency, the reproduction time of every frame audio is calculated;
The unit interval that every audio picture is shown is determined according to the reproduction time per frame audio, and is obtained from picture library
The corresponding audio picture of the audio file;
The audio file is played, and the audio picture is shown one by one according to the unit interval.
2. audio file play method as described in claim 1, which is characterized in that described to be determined often according to the audio file
The unit interval that audio picture is shown, and the step of obtaining from picture library the audio file corresponding audio picture is wrapped
It includes:
The file type of the audio file is obtained, and determines the unit that the corresponding every audio picture of the file type is shown
Time;
It obtains the total play time of the audio file, and the total play time divided by the unit interval is calculated described
The number n of audio picture;
The file name for obtaining the audio file is searched the corresponding picture of the file name from the picture library, and is sieved
N pictures are selected as the audio picture.
3. audio file play method as claimed in claim 2, which is characterized in that the file for obtaining the audio file
Title searches the corresponding picture of the file name from the picture library, and filters out n pictures as the audio picture
The step of include:
The file name for obtaining the audio file searches the corresponding picture of the file name from the picture library;
The picture found is ranked up by resolution ratio;
The resolution ratio for obtaining audio picture display area, filters out from the picture less than or equal to the display area resolution ratio
Preceding n pictures are as the audio picture.
4. audio file play method as described in any one of claims 1 to 3, which is characterized in that described to receive broadcasting
When instruction, before the step of obtaining described instruction corresponding audio file, further include:
Server configures the picture library containing audio picture beyond the clouds.
5. a kind of audio file playing device, which is characterized in that the audio file playing device includes:
Receiving module, for when receiving play instruction, obtaining the corresponding audio file of described instruction;
Processing module, for determining unit interval that every audio picture is shown according to the audio file, and from picture library
Obtain the corresponding audio picture of the audio file;
Playing module shows the audio picture one by one for playing the audio file, and according to the unit interval;
Wherein, the processing module includes audio treatment unit, and the audio treatment unit includes obtaining subelement, determining that son is single
Member and computation subunit;
The acquisition subelement, the file type for obtaining the audio file;
The determination subelement, the sampling for determining corresponding audio sampling frequency and every frame audio according to the file type
Sample number;
The computation subunit, for by the sample number per frame audio divided by the sample frequency, calculating every frame
The reproduction time of audio;
The determination subelement, when for determining the unit that every audio picture is shown according to the reproduction time per frame audio
Between.
6. audio file playing device as claimed in claim 5, which is characterized in that the processing module includes that picture processing is single
Member;
The audio treatment unit is additionally operable to obtain the total play time of the audio file, and the total play time is removed
The number n of the audio picture is calculated with the unit interval;
The picture processing unit, the file name for obtaining the audio file search the text from the picture library
The corresponding picture of part title, and n pictures are filtered out as the audio picture.
7. audio file playing device as claimed in claim 6, which is characterized in that the picture processing unit includes searching son
Unit, sorting subunit and screening subelement;
The lookup subelement, the file name for obtaining the audio file search the file from the picture library
The corresponding picture of title;
The sorting subunit, for the picture found to be ranked up by resolution ratio;
The screening subelement, the resolution ratio for obtaining audio picture display area, from less than or equal to the display area
N pictures are as the audio picture before being filtered out in the picture of resolution ratio.
8. such as claim 5 to 7 any one of them audio file playing device, which is characterized in that the audio file plays
Device further includes configuration module;
The configuration module configures the picture library containing audio picture for server beyond the clouds.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510580330.7A CN105208439B (en) | 2015-09-11 | 2015-09-11 | Audio file play method and device |
PCT/CN2016/084422 WO2017041543A1 (en) | 2015-09-11 | 2016-06-02 | Audio file playing method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510580330.7A CN105208439B (en) | 2015-09-11 | 2015-09-11 | Audio file play method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105208439A CN105208439A (en) | 2015-12-30 |
CN105208439B true CN105208439B (en) | 2018-09-04 |
Family
ID=54955818
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510580330.7A Active CN105208439B (en) | 2015-09-11 | 2015-09-11 | Audio file play method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105208439B (en) |
WO (1) | WO2017041543A1 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105208439B (en) * | 2015-09-11 | 2018-09-04 | 深圳Tcl数字技术有限公司 | Audio file play method and device |
CN109166165A (en) * | 2018-06-25 | 2019-01-08 | 网宿科技股份有限公司 | A kind of playback method of dynamic picture, terminal and can storage medium |
CN114154003A (en) * | 2021-11-11 | 2022-03-08 | 北京达佳互联信息技术有限公司 | Picture acquisition method and device and electronic equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101322396A (en) * | 2005-12-05 | 2008-12-10 | 微软公司 | Playback of digital images |
CN102055845A (en) * | 2010-11-30 | 2011-05-11 | 深圳市五巨科技有限公司 | Mobile communication terminal and picture switching method of music player thereof |
CN102831912A (en) * | 2012-08-10 | 2012-12-19 | 上海量明科技发展有限公司 | Method, client and system for displaying playing progress of audio information |
CN104021152A (en) * | 2014-05-19 | 2014-09-03 | 广州酷狗计算机科技有限公司 | Picture display method and device based on audio file playing |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101971262A (en) * | 2007-12-21 | 2011-02-09 | 皇家飞利浦电子股份有限公司 | Method and apparatus for playing pictures |
CN101930446A (en) * | 2009-06-26 | 2010-12-29 | 鸿富锦精密工业(深圳)有限公司 | Electronic device and method for playing music in embedded electronic device |
US8909531B2 (en) * | 2009-10-02 | 2014-12-09 | Mediatek Inc. | Methods and devices for displaying multimedia data emulating emotions based on image shuttering speed |
US9542488B2 (en) * | 2013-08-02 | 2017-01-10 | Google Inc. | Associating audio tracks with video content |
CN105208439B (en) * | 2015-09-11 | 2018-09-04 | 深圳Tcl数字技术有限公司 | Audio file play method and device |
-
2015
- 2015-09-11 CN CN201510580330.7A patent/CN105208439B/en active Active
-
2016
- 2016-06-02 WO PCT/CN2016/084422 patent/WO2017041543A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101322396A (en) * | 2005-12-05 | 2008-12-10 | 微软公司 | Playback of digital images |
CN102055845A (en) * | 2010-11-30 | 2011-05-11 | 深圳市五巨科技有限公司 | Mobile communication terminal and picture switching method of music player thereof |
CN102831912A (en) * | 2012-08-10 | 2012-12-19 | 上海量明科技发展有限公司 | Method, client and system for displaying playing progress of audio information |
CN104021152A (en) * | 2014-05-19 | 2014-09-03 | 广州酷狗计算机科技有限公司 | Picture display method and device based on audio file playing |
Also Published As
Publication number | Publication date |
---|---|
CN105208439A (en) | 2015-12-30 |
WO2017041543A1 (en) | 2017-03-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7499630B2 (en) | Method for playing back multimedia data using an entertainment device | |
US9735903B2 (en) | Apparatus, method and computer program product for generating a personalized visualization of broadcasting stations | |
EP3698856A1 (en) | Adaptive audio and video channels in a group exercise class | |
US20090100093A1 (en) | Apparatus, system, method and computer program product for previewing media files | |
CN105208439B (en) | Audio file play method and device | |
US20110085682A1 (en) | Apparatus and method for reproducing music in a portable terminal | |
JP2008187576A (en) | Information processor and method, and program | |
US20120308014A1 (en) | Audio playback device and method | |
US20100325683A1 (en) | Media broadcast emulator | |
US8611810B2 (en) | Method and system for integrated FM recording | |
CN104468840A (en) | Audio pushing method, device and system | |
US11272136B2 (en) | Method and device for processing multimedia information, electronic equipment and computer-readable storage medium | |
CN105243093A (en) | Singer recommendation method and apparatus | |
WO2017024895A1 (en) | Channel operation, playing method and corresponding apparatus for smart television | |
CN105939489A (en) | Multimedia data carousel method and device | |
CN104575545B (en) | A kind of generation method of list to be played | |
CN106202421B (en) | method and device for obtaining video and method and device for playing video | |
CN103854682A (en) | Method and device for controlling audio file playing | |
CN105005612B (en) | A kind of acquisition methods and mobile terminal of music file | |
KR101260941B1 (en) | Receiving apparatus and method for providing sound effect based on genre information of content in digital multimedia broadcasting system | |
CN104866477B (en) | Information processing method and electronic equipment | |
CN108184145A (en) | Television channel commending method, equipment and computer readable storage medium | |
CN104598229B (en) | A kind of terminal | |
CN105487788B (en) | A kind of music information real time acquiring method and device | |
CN109586828A (en) | Broadcast station information acquisition methods, device and radio |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |