CN108491473A - Audio file playing method and device, electronic equipment and medium - Google Patents

Audio file playing method and device, electronic equipment and medium Download PDF

Info

Publication number
CN108491473A
CN108491473A CN201810190634.6A CN201810190634A CN108491473A CN 108491473 A CN108491473 A CN 108491473A CN 201810190634 A CN201810190634 A CN 201810190634A CN 108491473 A CN108491473 A CN 108491473A
Authority
CN
China
Prior art keywords
audio file
file
audio
broadcasting
play
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.)
Pending
Application number
CN201810190634.6A
Other languages
Chinese (zh)
Inventor
褚长森
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201810190634.6A priority Critical patent/CN108491473A/en
Publication of CN108491473A publication Critical patent/CN108491473A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output

Abstract

The invention discloses a method and a device for playing an audio file, electronic equipment and a medium, wherein the method comprises the following steps: receiving an audio file sent by a user terminal; matching the identification information of the audio file with a preset information list, and determining whether the audio file is an audio file allowed to be played; and when the audio file is the audio file allowed to be played, playing the audio file. By adopting the embodiment of the invention, the interference of the audio file which is not allowed to be played by the user can be eliminated in the process of playing the audio file, and the playing continuity is improved.

Description

A kind of playback method of audio file, device, electronic equipment and medium
Technical field
The present invention relates to electronic technology field more particularly to a kind of playback method of audio file, device, electronic equipment and Medium.
Background technology
With the development of communication era, intelligent sound box, Baffle Box of Bluetooth are more universal in daily life.User Can select by oneself terminal (such as mobile phone and tablet computer) and intelligent sound box and same WLAN (such as WIFI) into Row connects to establish the connection of terminal and intelligent sound box, or by the way that user terminal and Baffle Box of Bluetooth are carried out Bluetooth pairing, from And establish the connection of the two.Then the audio file in terminal intelligent sound box is sent to play out.By taking mobile phone as an example, having There is the speaker of Bluetooth function with after user mobile phone successful matching, the music file in mobile phone can be sent to bluetooth sound by user Case, and then music is played by the speaker.However, existing during user plays music using intelligent sound box at present as follows Problem:The non-user in mobile phone can it is expected that the audio file played plays back simultaneously when speaker plays music, such as:It is short Believe the tinkle of bells, touch screen prompt tone or wechat speech message etc., seriously affects the continuity of broadcasting.
Invention content
The embodiment of the present invention provides a kind of playback method of audio file, device, electronic equipment and medium.It can play Non-user is eliminated during audio file allows the interference of the audio file played, promotes the continuity of broadcasting.
First aspect present invention provides a kind of playback method of audio file, including:
Receive the audio file that user terminal is sent;
The identification information of the audio file is matched with presupposed information list, determine the audio file whether be Allow the audio file played;
When the audio file is the audio file for allowing broadcasting, the audio file is played.
Wherein, the identification information by the audio file is matched with presupposed information list, determines the audio File whether be allow play audio file include:
It determines and whether there is file identical with the identification information of the audio file in the presupposed information list Information;
If being not present, it is determined that the audio file is the audio file for allowing to play.
Wherein, the identification information by the audio file is matched with presupposed information list, determines the audio Before whether file is the audio file for allowing to play, further include:
Obtain the size of data of the audio file;
If the size of data of the audio file is more than predetermined threshold value, the mark by the audio file is executed Know information matched with presupposed information list, determine the audio file whether be allow broadcasting audio file operation.
Wherein, described when the audio file is the audio file for allowing to play, playing the audio file includes:
When it is described to allow the audio file played include multiple audio files when, determine the broadcasting of each audio file Priority;
According to the broadcasting priority of each audio file, the multiple audio file is played.
Wherein, the priority of each audio file of the determination includes:
The broadcasting priority of each audio file is obtained from preset broadcasting priority list, wherein institute It includes that the identification information of the audio file and the mapping for playing priority are closed to state preset broadcasting priority list System.
Wherein, before the audio file that the reception user terminal is sent, further include:
Network connection is established with the user terminal, the network connection includes bluetooth connection, Wireless Fidelity WIFI connections At least one of with infrared connection.
Wherein, the identification information includes at least one of file name and file format.
Correspondingly, second aspect of the present invention provides a kind of playing device of audio file, including:
Receiving module, the audio file for receiving user terminal transmission;
Screening module, for matching the identification information of the audio file with presupposed information list, described in determination Whether audio file is the audio file for allowing to play;
Playing module, for when the audio file is the audio file for allowing broadcasting, playing the audio text Part.
Wherein, the screening module is additionally operable to:
It determines and whether there is file identical with the identification information of the audio file in the presupposed information list Information;
If being not present, it is determined that the audio file is the audio file for allowing to play.
Wherein, the screening module is additionally operable to:
Obtain the size of data of the audio file;
If the size of data of the audio file is more than predetermined threshold value, the mark by the audio file is executed Know information matched with presupposed information list, determine the audio file whether be allow broadcasting audio file operation.
Wherein, the playing module is additionally operable to:
When it is described to allow the audio file played include multiple audio files when, determine the broadcasting of each audio file Priority;
According to the broadcasting priority of each audio file, the multiple audio file is played.
Wherein, the playing module is additionally operable to:
The broadcasting priority of each audio file is obtained from preset broadcasting priority list, wherein institute It includes that the identification information of the audio file and the mapping for playing priority are closed to state preset broadcasting priority list System.
Wherein, the receiving module is additionally operable to:
Network connection is established with the user terminal, the network connection includes bluetooth connection, Wireless Fidelity WIFI connections At least one of with infrared connection.
Correspondingly, an embodiment of the present invention provides a kind of storage mediums, wherein the storage medium is for storing computer Program, the computer program for executing a kind of broadcasting for audio file disclosed in first aspect of the embodiment of the present invention at runtime Put method.
Correspondingly, an embodiment of the present invention provides a kind of application programs, wherein the application program for holding at runtime A kind of playback method of audio file disclosed in row first aspect of the embodiment of the present invention.
Implement the embodiment of the present invention, receives the audio file that user terminal is sent first;Then by the audio file Identification information is matched with presupposed information list, determines whether the audio file is the audio file for allowing to play;Then When the audio file is the audio file for allowing to play, the audio file is played.Using the embodiment of the present invention, Ke Yi Eliminating non-user during playing audio file allows the interference of the audio file played, promotes the continuity of broadcasting.
Description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, required use in being described below to embodiment Attached drawing be briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, for this field For those of ordinary skill, without creative efforts, other drawings may also be obtained based on these drawings.
Fig. 1 is a kind of schematic diagram of application scenarios provided in an embodiment of the present invention;
Fig. 2 is a kind of flow diagram of the playback method of audio file provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of the playback method of another audio file provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of the playing device of audio file provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained without creative efforts Example, shall fall within the protection scope of the present invention.
Referring to FIG. 1, Fig. 1 is a kind of schematic diagram of application scenarios provided in an embodiment of the present invention.As shown, of the invention Application scenarios in embodiment include user terminal 101 and electronic equipment 102.Wherein, user terminal 101 can be mobile phone, Can be smartwatch, MP3, MP4 or tablet computer, electronic equipment 102 can have bluetooth connection, Wireless Fidelity WIFI companies It connects or the intelligent sound box of infrared connection function or other voice frequency electronics.In the application scenarios, user terminal 101 can be with Electronic equipment 102 establishes bluetooth connection, Wireless Fidelity WIFI connections or infrared connection, then will be stored in local audio file It is sent to electronic equipment 102.Electronic equipment 102 receives the audio file of the transmission of user terminal 101 first;Then by audio file Identification information matched with presupposed information list, determine audio file whether be allow play audio file;Finally when When audio file is the audio file for allowing to play, audio file is played.Based on above application scene, the embodiment of the present invention provides Following solution.
Referring to FIG. 2, Fig. 2 is a kind of flow diagram of the playback method of audio file provided in an embodiment of the present invention. As shown, the method in the embodiment of the present invention includes:
S201 receives the audio file that user terminal is sent.
In a kind of realization of the present invention, it can establish and connect with user terminal first, wherein the network connection includes Bluetooth connection is connected with Wireless Fidelity WIFI and at least one of infrared connection.After the network connection established, use can be received One or more audio files that family terminal is sent.
Such as:Intelligent sound box establishes bluetooth connection with mobile phone by pairing, and then intelligent sound box receives the sound that mobile phone is sent Music file.
The identification information of the audio file is matched with presupposed information list, determines the audio file by S202 Whether it is the audio file for allowing to play.
In a kind of realization of the present invention, the file in the identification information of audio file and presupposed information list can be believed Breath is matched one by one, is determined in the presupposed information list with the presence or absence of identical as the identification information of the audio file Fileinfo.If being not present, it is determined that the audio file is the audio file for allowing to play, if being not present, really The fixed audio file is not the audio file for allowing to play.Wherein, the fileinfo that presupposed information list includes can be not Allow the identification information of the audio file played, the identification information includes in the file name and file format of audio file It is at least one.
For example, the identification information of music file is ringsong.mp3, wherein ringsong is the file of the music file Title, mp3 are the file formats of the music file.The fileinfo that presupposed information list includes is the mark of multiple music files Information, as shown in table 1, presupposed information list include 4 identification informations for not allowing the music file played, respectively Skyline.wav, hello.mmf, letter.mp3 and whisper.midi.It will be in ringsong.mp3 and presupposed information list This 4 file identification informations matched one by one, find in presupposed information list there is no identical with ringsong.mp3 Identification information.It is thus determined that music file ringsong.mp3 is the music file for allowing to play.
1. presupposed information list of table
Fileinfo
skyline.wav
hello.mmf
letter.mp3
whisper.midi
Optionally, the fileinfo in presupposed information list can also be the identification information for the audio file for allowing to play. When the fileinfo in presupposed information list is the identification information for the audio file for allowing to play, described preset can be being determined When there is fileinfo identical with the identification information of the audio file in information list, determine that the audio file is The audio file for allowing to play.
S203 plays the audio file when the audio file is the audio file for allowing broadcasting.
In a kind of realization of the present invention, it can be counted since when having received all audio files that user terminal is sent When.When timing duration reaches prepared reproduction time, the audio file is played.Wherein, preparation reproduction time is to play sound Reserved a period of time before frequency file determines whether the audio file having received is fair within the reserved a period of time Perhaps the audio file played, to ensure the audio file for thering is the sufficient time to exclude non-permitted broadcasting.Wherein, when preparation plays Between can be, but not limited to as 0.5 second (s).When it is described allow play audio file include multiple audio files when, it is first determined The broadcasting priority of each audio file;Then according to the broadcasting priority of each audio file, institute is played State multiple audio files.It is broadcast described in each audio file wherein it is possible to be obtained from preset broadcasting priority list Priority is put, the preset broadcasting priority list includes that the identification information of the audio file plays preferentially with described The mapping relations of grade.
Such as:In music file ringsong.mp3, loving.flac and the sunshine.mp4 for receiving mobile phone transmission Afterwards, determine that ringsong.mp3, loving.flac and sunshine.mp4 are the music file for allowing to play respectively, and Their broadcasting priority can be searched from preset broadcasting priority list, as shown in table 2, preset broadcasting priority list In contain audio file formats mp3, mp4, wma and flac and corresponding broadcasting priority.Wherein, the broadcasting of mp3 The broadcasting priority of highest priority, priority rank 1, wma is minimum, priority rank 4.Accordingly, it is determined that The broadcasting priority of ringsong.mp3, loving.flac and sunshine.mp4 be followed successively by from high to low ringsong.mp3, sunshine.mp4、loving.flac.Therefore ringsong.mp3 is played first, then play sunshine.mp4, finally broadcast Put loving.flac.
2. preset broadcasting priority list of table
File format Play priority
mp3 1
mp4 2
flac 3
wma 4
Optionally, can according to the size of data and receiving time of the audio file or the initial of file name and Receiving time determines the broadcasting priority of the multiple audio file.Such as:Allow play music file have cake.mp3, Wall.mp3 and eve.mp3.The size of data of cake.mp3, wall.mp3 and eve.mp3 are respectively 4.9M, 3.8M and 3.8M, The sequencing of their receiving time is cake.mp3, eve.mp3, wall.mp3.First according to the bigger broadcasting of size of data The higher rule of priority, it may be determined that the broadcasting priority of cake.mp3 is higher than wall.mp3 and eve.mp3.Then basis connects Sequencing between time receiving determines the broadcasting priority of the identical music file of size of data.For example, wall.mp3 and eve.mp3 Size of data it is identical because the receiving time of eve.mp3 prior to wall.mp3, determines the broadcasting priority of eve.mp3 Higher than wall.mp3.
Optionally, when user terminal to playback equipment send multiple audio files when, can from start receive user terminal Start timing when first audio file sent or is counted since when having received first audio file that user terminal is sent When.When timing duration reaches prepared reproduction time, from received and be determined as allowing choosing in the audio file played and broadcast The audio file for putting highest priority plays out, and other audios text can be received during playing audio file Part.If it is determined that when other audio files are not the audio file for allowing to play, can reject or directly abandon it is described other Audio file.
For example, speaker starts timing when having received first music file cake.mp3, reach prepared in timing duration When reproduction time, speaker receives three audio files cake.mp3, eve.mp3 and skyline.wav in total, and determines Cake.mp3 and eve.mp3 is that the audio file for allowing to play and cake.mp3 play priority and be higher than eve.mp3, therefore When timing duration reaches scheduled timing, cake.mp3 is played.Use will be also received simultaneously playing cake.mp3 speakers Other music files that family terminal is sent, such as:When playing cake.mp3, user terminal has sent music file Letter.mp3, it is the music file for allowing to play to determine letter.mp3 not through overmatching, then speaker can be rejected letter.mp3。
In embodiments of the present invention, the audio file that user terminal is sent is received first;Then by the audio file Identification information is matched with presupposed information list, determines whether the audio file is the audio file for allowing to play;Then When the audio file is the audio file for allowing to play, the audio file is played.Using the embodiment of the present invention, Ke Yi Eliminating non-user during playing audio file allows the interference of the audio file played, promotes the continuity of broadcasting.
Referring to FIG. 3, Fig. 3 is the flow signal of the playback method of another audio file provided in an embodiment of the present invention Figure.As shown, the method in the embodiment of the present invention includes:
S301 receives the audio file that user terminal is sent.This step is identical as the upper S201 of an embodiment, this step is not It repeats again.
S302, determines whether the size of data of the audio file is more than predetermined threshold value.
In a kind of realization of the present invention, the size of data of the audio file can be obtained first;Then data are big It is small to be compared with predetermined threshold value (such as 200K), determine whether the size of data of the audio file is more than predetermined threshold value.If institute It states size of data and is not more than predetermined threshold value, then execute S303.If the size of data is more than predetermined threshold value, S304 is executed.
When receiving multiple audio files, this step, which can improve to filter out from multiple audio files, allows broadcasting The efficiency of audio file.For example, the size of data of SMS the tinkle of bells and the corresponding music file of touch screen prompt tone is relative to just It is smaller for normal music file, generally between tens to hundreds of K.Therefore, speaker receives the music file of mobile phone transmission It afterwards, can be in such a way that the size of data of music file be compared with predetermined threshold value quickly by SMS bell therein Sound and touch screen prompt tone are determined as not allowing the audio file played, to reduce further by by the mark of the audio file Know information matched with presupposed information list, determine the audio file whether be allow broadcasting audio file work Amount.
S303, it is the audio file for allowing to play to determine the audio file not.
The identification information of the audio file is matched with presupposed information list, determines the audio file by S304 Whether it is the audio file for allowing to play.
This step is identical as the upper S202 of an embodiment, this step repeats no more.
S305 plays the audio file when the audio file is the audio file for allowing broadcasting.
This step is identical as the upper S203 of an embodiment, this step repeats no more.
For example, intelligent sound box received user terminal transmission music file apple.mp3, pear.mp4 and The size of data for starting timer when lemen.midi, and obtaining this 4 music files obtain apple.mp3, pear.mp3 and The size of data of lemen.midi is respectively 4.2M, 3.6M and 100K;Then by the size of data of this 4 music files with it is default Threshold value is compared, if predetermined threshold value is 200K, the size of data 100K that can obtain lemen.midi is less than predetermined threshold value 200K, it is thus determined that lemen.midi is not the music file for allowing to play.Simultaneously, it is known that apple.mp3's and pear.mp4 Size of data is all higher than predetermined threshold value.Therefore, further by apple.mp3 and pear.mp4 and presupposed information as shown in Table 1 Fileinfo in list is matched, it is found that there is no identical with apple.mp3 and pear.mp4 in presupposed information list Identification information, so that it is determined that apple.mp3 and pear.mp4 are the music file for allowing to play;Then it presets shown in the table 2 It plays and searches sound of the broadcasting priority for the music file apple.mp3 for obtaining mp3 formats higher than mp4 formats in priority list Music file pear.mp4, therefore when the timing duration of timer reaches prepared reproduction time, speaker according to apple.mp3, The sequence of pear.mp4 starts playing music.
In embodiments of the present invention, the audio file that user terminal is sent first is received;Then by the mark of the audio file Know information to be matched with presupposed information list, determines whether the audio file is the audio file for allowing to play;Then when When the audio file is the audio file for allowing to play, the audio file is played.Using the embodiment of the present invention, can broadcast Non-user is eliminated during playback frequency file allows the interference of the audio file played, promotes the continuity of broadcasting.
Referring to FIG. 4, Fig. 4 is a kind of structural schematic diagram of the playing device for audio file that the embodiment of the present invention proposes. As shown, the device in the embodiment of the present invention includes:
Receiving module 401, the audio file for receiving user terminal transmission.
In a kind of realization of the present invention, network connection can be established with user terminal, wherein the network connection first It is connected with Wireless Fidelity WIFI including bluetooth connection and at least one of infrared connection.After the network connection established, Ke Yijie Receive one or more audio files that user terminal is sent.
Such as:Intelligent sound box establishes bluetooth connection with mobile phone by pairing, and then intelligent sound box receives the sound that mobile phone is sent Music file.
Screening module 402 determines institute for matching the identification information of the audio file with presupposed information list State whether audio file is the audio file for allowing to play.
In a kind of realization of the present invention, the file in the identification information of audio file and presupposed information list can be believed Breath is matched one by one, is determined in the presupposed information list with the presence or absence of identical as the identification information of the audio file Fileinfo.If being not present, it is determined that the audio file is the audio file for allowing to play, if being not present, really The fixed audio file is not the audio file for allowing to play.Wherein, the fileinfo that presupposed information list includes can be not Allow the identification information of the audio file played, the identification information includes in the file name and file format of audio file It is at least one.
For example, the identification information of music file is ringsong.mp3, wherein ringsong is the file of the music file Title, mp3 are the file formats of the music file.The fileinfo that presupposed information list includes is the mark of multiple music files Information, as shown in table 1, presupposed information list include 4 identification informations for not allowing the music file played, respectively Skyline.wav, hello.mmf, letter.mp3 and whisper.midi.It will be in ringsong.mp3 and presupposed information list This 4 file identification informations matched one by one, find in presupposed information list there is no identical with ringsong.mp3 Identification information.It is thus determined that music file ringsong.mp3 is the audio file for allowing to play.
Optionally, the fileinfo in presupposed information list can be the identification information for the audio file for allowing to play.When When fileinfo in presupposed information list is the identification information for the audio file for allowing to play, the default letter can be being determined When ceasing in list in the presence of fileinfo identical with the identification information of the audio file, determine the audio file for institute State the audio file for allowing to play.
Optionally, screening module 402 is additionally operable to obtain the size of data of the audio file, and determines the audio file Size of data whether be more than predetermined threshold value (such as 200K).If the size of data of the audio file is not more than predetermined threshold value, It is the audio file for allowing to play to determine the audio file not.If the size of data of the audio file is more than default threshold Value then executes and matches the identification information of the audio file with presupposed information list, whether determines the audio file For the operation of the audio file for allowing to play.
Playing module 403, for when the audio file is the audio file for allowing broadcasting, playing the audio File.
In a kind of realization of the present invention, it can be counted since when having received all audio files that user terminal is sent When.When timing duration reaches prepared reproduction time, the audio file is played.Wherein, preparation reproduction time is to play sound Reserved a period of time before frequency file determines whether the audio file having received is fair within the reserved a period of time Perhaps the audio file played, to ensure the audio file for thering is the sufficient time to exclude non-permitted broadcasting.Wherein, when preparation plays Between can be, but not limited to as 0.5 second (s).When it is described allow play audio file include multiple audio files when, it is first determined The broadcasting priority of each audio file;Then according to the broadcasting priority of each audio file, institute is played State multiple audio files.It is broadcast described in each audio file wherein it is possible to be obtained from preset broadcasting priority list Priority is put, the preset broadcasting priority list includes that the identification information of the audio file plays preferentially with described The mapping relations of grade.
Such as:In music file ringsong.mp3, loving.flac and the sunshine.mp4 for having received mobile phone transmission Later.Determine that ringsong.mp3, loving.flac and sunshine.mp4 are the music file for allowing to play respectively, and And their broadcasting priority can be searched from preset broadcasting priority list, and as shown in table 2, preset broadcasting priority row Audio file formats mp3, mp4, wma and flac and corresponding broadcasting priority are contained in table, wherein mp3's broadcasts Highest priority is put, the broadcasting priority of priority rank 1, wma is minimum, priority rank 4.Accordingly, it is determined that The broadcasting priority of ringsong.mp3, loving.flac and sunshine.mp4 be followed successively by from high to low ringsong.mp3, sunshine.mp4、loving.flac.Therefore ringsong.mp3 is played first, then play sunshine.mp4, finally broadcast Put loving.flac.
Optionally, can according to the size of data and receiving time of the audio file or the initial of file name and Receiving time determines the broadcasting priority of the multiple audio file.Such as:Allow play music file have cake.mp3, Wall.mp3 and eve.mp3.The size of data of cake.mp3, wall.mp3 and eve.mp3 are respectively 4.9M, 3.8M and 3.8M, The sequencing of their receiving time is cake.mp3, eve.mp3, wall.mp3.It is played preferentially according to data are bigger first The bigger rule of grade, it may be determined that the broadcasting priority of cake.mp3 is higher than wall.mp3 and eve.mp3.When then according to receiving Between sequencing determine the broadcasting priority of the equal music file of size of data.For example, the data of wall.mp3 and eve.mp3 Size is identical, because the receiving time of eve.mp3 prior to wall.mp3, determines that the broadcasting priority of eve.mp3 is higher than wall.mp3。
Optionally, when user terminal to playback equipment send multiple audio files when, can from start receive user terminal Start timing when first audio file sent or is counted since when having received first audio file that user terminal is sent When, when timing duration reaches prepared reproduction time, from received and be determined as allowing choosing in the audio file played and broadcast The audio file for putting highest priority plays out, and other audios text can be received during playing audio file Part, however, it is determined that when other audio files are not the audio file for allowing to play, can reject or directly abandon it is described other Audio file.
For example, speaker starts timing when having received first music file cake.mp3, reach prepared in timing duration When reproduction time, speaker receives three audio files cake.mp3, eve.mp3 and skyline.wav in total, and determines Cake.mp3 and eve.mp3 is that the audio file for allowing to play and cake.mp3 play priority and be higher than eve.mp3, therefore When timing duration reaches scheduled timing, cake.mp3 is played.Use will be also received simultaneously playing cake.mp3 speakers Other music files that family terminal is sent, such as:When playing cake.mp3, user terminal has sent music file Letter.mp3, it is the audio file for allowing to play to determine letter.mp3 not through overmatching, then speaker can be rejected letter.mp3。
In embodiments of the present invention, the audio file that user terminal is sent is received first;Then by the audio file Identification information is matched with presupposed information list, determines whether the audio file is the audio file for allowing to play;Then When the audio file is the audio file for allowing to play, the audio file is played.Using the embodiment of the present invention, Ke Yi Eliminating non-user during playing audio file allows the interference of the audio file played, promotes the continuity of broadcasting.
Referring to FIG. 5, Fig. 5 is the structural schematic diagram for a kind of electronic equipment that the embodiment of the present invention proposes.Wherein, electronics is set Standby can be playback equipment as shown in Figure 1.As shown, the electronic equipment may include:At least one processor 501, example Such as CPU, at least one communication interface 502, at least one processor 503, at least one bus 504.Wherein, bus 504 is used for Realize the connection communication between these components.Wherein, the communication interface 502 of electronic equipment is wired transmission in the embodiment of the present invention Port, or wireless device, such as including antenna assembly, for carrying out the logical of signaling or data with other node devices Letter.Memory 503 can be high-speed RAM memory, can also be non-labile memory (non-volatile Memory), a for example, at least magnetic disk storage.Memory 503 optionally can also be at least one and be located remotely from aforementioned place Manage the storage device of device 501.Batch processing code is stored in memory 503, and processor 501 is stored for calling in memory Program code, for performing the following operations:
Receive the audio file that user terminal is sent;
The identification information of the audio file is matched with presupposed information list, determine the audio file whether be Allow the audio file played;
When the audio file is the audio file for allowing broadcasting, the audio file is played.
Wherein, processor 501 is additionally operable to execute following operating procedure:
It determines and whether there is file identical with the identification information of the audio file in the presupposed information list Information;
If being not present, it is determined that the audio file is the audio file for allowing to play.
Wherein, processor 501 is additionally operable to execute following operating procedure:
Obtain the size of data of the audio file;
If the size of data of the audio file be more than predetermined threshold value, execute by the identification information of the audio file with Presupposed information list is matched, determine the audio file whether be allow play audio file operation.
Wherein, processor 501 is additionally operable to execute following operating procedure:
When it is described to allow the audio file played include multiple audio files when, determine the broadcasting of each audio file Priority;
According to the broadcasting priority of each audio file, the multiple audio file is played.
Wherein, processor 501 is additionally operable to execute following operating procedure:
The broadcasting priority of each audio file is obtained from preset broadcasting priority list, wherein described pre- If broadcasting priority level table include the audio file identification information with it is described play priority mapping relations.
Wherein, processor 501 is additionally operable to execute following operating procedure:
Network connection is established with the user terminal, the network connection includes bluetooth connection, Wireless Fidelity WIFI connections At least one of with infrared connection.
It should be noted that the embodiment of the present invention also provides a kind of storage medium simultaneously, the storage medium is for storing Computer program, the computer program execute the broadcasting of Fig. 2 and a kind of audio file shown in Fig. 3 for processor at runtime The operation of method.
It should be noted that the embodiment of the present invention also provides a kind of application program simultaneously, the application program is in computer It is run on equal electronic equipments, the operation of the playback method for executing Fig. 2 and a kind of audio file shown in Fig. 3 at runtime.
It should be noted that for each embodiment of the method above-mentioned, for simple description, therefore it is all expressed as to a system The combination of actions of row, but those skilled in the art should understand that, the present invention is not limited by the described action sequence, because For according to the present invention, certain some step can be performed in other orders or simultaneously.Secondly, those skilled in the art also should Know, embodiment described in this description belongs to preferred embodiment, involved action and module not necessarily this hair Necessary to bright.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in some embodiment Part, may refer to the associated description of other embodiment.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage Medium may include:Flash disk, read-only memory (English:Read-Only Memory, referred to as:ROM), random access device (English Text:Random Access Memory, referred to as:RAM), disk or CD etc..
It is provided for the embodiments of the invention content download method above and relevant device, system are described in detail, Principle and implementation of the present invention are described for specific case used herein, and the explanation of above example is only used In facilitating the understanding of the method and its core concept of the invention;Meanwhile for those of ordinary skill in the art, according to the present invention Thought, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not be construed as Limitation of the present invention.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office It can be combined in any suitable manner in one or more embodiments or example.In addition, without conflicting with each other, the skill of this field Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples It closes and combines.
In addition, term " first ", " second " are used for description purposes only, it is not understood to indicate or imply relative importance Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or Implicitly include at least one this feature.In the description of the present invention, the meaning of " plurality " is at least two, such as two, three It is a etc., unless otherwise specifically defined.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discuss suitable Sequence, include according to involved function by it is basic simultaneously in the way of or in the opposite order, to execute function, this should be of the invention Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (system of such as computer based system including processor or other can be held from instruction The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicating, propagating or passing Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment It sets.The more specific example (non-exhaustive list) of computer-readable medium includes following:Electricity with one or more wiring Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable Medium, because can be for example by carrying out optical scanner to paper or other media, then into edlin, interpretation or when necessary with it His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the present invention can be realized with hardware, software, firmware or combination thereof.Above-mentioned In embodiment, software that multiple steps or method can in memory and by suitable instruction execution system be executed with storage Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware Any one of row technology or their combination are realized:With the logic gates for realizing logic function to data-signal Discrete logic, with suitable combinational logic gate circuit application-specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
Those skilled in the art are appreciated that realize all or part of step that above-described embodiment method carries Suddenly it is that relevant hardware can be instructed to complete by program, the program can be stored in a kind of computer-readable storage medium In matter, which includes the steps that one or a combination set of embodiment of the method when being executed.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, it can also That each unit physically exists alone, can also two or more units be integrated in a module.Above-mentioned integrated mould The form that hardware had both may be used in block is realized, can also be realized in the form of software function module.The integrated module is such as Fruit is realized in the form of software function module and when sold or used as an independent product, can also be stored in a computer In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above The embodiment of the present invention is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as the limit to the present invention System, those skilled in the art can be changed above-described embodiment, change, replace and become within the scope of the invention Type.

Claims (10)

1. a kind of playback method of audio file, which is characterized in that the method is applied to electronic equipment, the method includes:
Receive the audio file that user terminal is sent;
The identification information of the audio file is matched with presupposed information list, determines whether the audio file is permission The audio file of broadcasting;
When the audio file is the audio file for allowing broadcasting, the audio file is played.
2. the method as described in claim 1, which is characterized in that the identification information and presupposed information by the audio file List is matched, determine the audio file whether be allow play audio file include:
It determines and whether there is fileinfo identical with the identification information of the audio file in the presupposed information list;
If being not present, it is determined that the audio file is the audio file for allowing to play.
3. the method as described in claim 1, which is characterized in that the identification information and presupposed information by the audio file List is matched, and before determining whether the audio file is the audio file for allowing to play, further includes:
Obtain the size of data of the audio file;
If the size of data of the audio file is more than predetermined threshold value, executes the mark by the audio file and believe Breath matched with presupposed information list, determine the audio file whether be allow broadcasting audio file operation.
4. the method as described in claim 1, which is characterized in that described when the audio file is the audio for allowing to play When file, playing the audio file includes:
When it is described to allow the audio file played include multiple audio files when, determine that the broadcasting of each audio file is preferential Grade;
According to the broadcasting priority of each audio file, the multiple audio file is played.
5. method as claimed in claim 4, which is characterized in that the broadcasting priority packet of each audio file of the determination It includes:
The broadcasting priority of each audio file is obtained from preset broadcasting priority list, wherein described pre- If broadcasting priority list include the audio file the identification information with it is described play priority mapping relations.
6. the method as described in right wants 1, which is characterized in that before the audio file that the reception user terminal is sent, also Including:
Network connection is established with the user terminal, and the network connection includes bluetooth connection, Wireless Fidelity WIFI connections and red At least one of outer connection.
7. method as claimed in any one of claims 1 to 6, which is characterized in that the identification information includes file name and file At least one of format.
8. a kind of playing device of audio file, which is characterized in that described device includes:
Receiving module, the audio file for receiving user terminal transmission;
Screening module determines the audio for matching the identification information of the audio file with presupposed information list Whether file is the audio file for allowing to play;
Playing module, for when the audio file is the audio file for allowing broadcasting, playing the audio file.
9. a kind of electronic equipment, which is characterized in that including:Processor, memory, communication interface and bus;
The processor, the memory are connected by the bus with the communication interface and complete mutual communication;
The memory stores executable program code;
The processor is run and the executable program by reading the executable program code stored in the memory The corresponding program of code, for executing the playback method of the audio file as described in claim 1-7 any one.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has a plurality of finger It enables, described instruction is suitable for being loaded by processor and being executed the playback method such as claim 1-7 any one of them audio files.
CN201810190634.6A 2018-03-08 2018-03-08 Audio file playing method and device, electronic equipment and medium Pending CN108491473A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810190634.6A CN108491473A (en) 2018-03-08 2018-03-08 Audio file playing method and device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810190634.6A CN108491473A (en) 2018-03-08 2018-03-08 Audio file playing method and device, electronic equipment and medium

Publications (1)

Publication Number Publication Date
CN108491473A true CN108491473A (en) 2018-09-04

Family

ID=63338116

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810190634.6A Pending CN108491473A (en) 2018-03-08 2018-03-08 Audio file playing method and device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN108491473A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113050912A (en) * 2020-09-30 2021-06-29 惠州华阳通用电子有限公司 Audio file output method and device
CN113791887A (en) * 2021-09-28 2021-12-14 杭州中河电子器材有限公司 Audio task priority management method, device and system

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101517528A (en) * 2005-10-20 2009-08-26 雅虎公司 A system and method for creating a playlist
CN102857511A (en) * 2006-01-03 2013-01-02 苹果公司 Remote content updates for portable media devices
CN103136348A (en) * 2013-02-22 2013-06-05 北京小米科技有限责任公司 File display method and device
US20140040739A1 (en) * 2010-04-06 2014-02-06 Sony Corporation Information processing device, client device, server device, list generation method, list acquisition method, list providing method and program
CN103853747A (en) * 2012-11-30 2014-06-11 腾讯科技(深圳)有限公司 Method and device for controlling sound source webpage
US20140215544A1 (en) * 2012-09-28 2014-07-31 Google Inc. Music on video site
CN104424968A (en) * 2013-08-30 2015-03-18 联想(北京)有限公司 Information processing method and electronic equipment
CN105306869A (en) * 2014-06-25 2016-02-03 三亚中兴软件有限责任公司 Method, equipment and system for controlling multimedia playing in multimedia conference system
CN106506597A (en) * 2016-10-09 2017-03-15 腾讯科技(北京)有限公司 Object control method and apparatus

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101517528A (en) * 2005-10-20 2009-08-26 雅虎公司 A system and method for creating a playlist
CN102857511A (en) * 2006-01-03 2013-01-02 苹果公司 Remote content updates for portable media devices
US20140040739A1 (en) * 2010-04-06 2014-02-06 Sony Corporation Information processing device, client device, server device, list generation method, list acquisition method, list providing method and program
US20140215544A1 (en) * 2012-09-28 2014-07-31 Google Inc. Music on video site
CN103853747A (en) * 2012-11-30 2014-06-11 腾讯科技(深圳)有限公司 Method and device for controlling sound source webpage
CN103136348A (en) * 2013-02-22 2013-06-05 北京小米科技有限责任公司 File display method and device
CN104424968A (en) * 2013-08-30 2015-03-18 联想(北京)有限公司 Information processing method and electronic equipment
CN105306869A (en) * 2014-06-25 2016-02-03 三亚中兴软件有限责任公司 Method, equipment and system for controlling multimedia playing in multimedia conference system
CN106506597A (en) * 2016-10-09 2017-03-15 腾讯科技(北京)有限公司 Object control method and apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113050912A (en) * 2020-09-30 2021-06-29 惠州华阳通用电子有限公司 Audio file output method and device
CN113791887A (en) * 2021-09-28 2021-12-14 杭州中河电子器材有限公司 Audio task priority management method, device and system

Similar Documents

Publication Publication Date Title
US10482903B2 (en) Method, device and apparatus for selectively interacting with multi-devices, and computer-readable medium
CN105630586B (en) Information processing method and electronic equipment
CN106302997B (en) Output control method, electronic equipment and system
CN109151566B (en) Audio playing method and device, electronic equipment and computer readable medium
US11587560B2 (en) Voice interaction method, device, apparatus and server
CN106024035B (en) A kind of method and terminal of audio processing
JP2008294516A (en) Playback device and method
JP2019505944A (en) Audio file re-recording method, apparatus and storage medium
KR100783113B1 (en) Method for shortened storing of music file in mobile communication terminal
CN110289024A (en) A kind of audio editing method, apparatus, electronic equipment and storage medium
CN108289232B (en) Control method of playing device, terminal device and storage medium
CN108491473A (en) Audio file playing method and device, electronic equipment and medium
CN112286481A (en) Audio output method and electronic equipment
CN107656770A (en) Application program operation method and device, terminal and computer-readable recording medium
TW202020652A (en) Voice processing method and apparatus
CN109889644A (en) A kind of tone information listens to method and apparatus and storage medium
CN106941646A (en) Play method, device, mobile terminal and the audio-frequence player device of voice
CN105654932B (en) System and method for realizing karaoke application
CN105635916A (en) Audio processing method and apparatus
CN105261384A (en) Recording apparatus
CN108492826A (en) Audio processing method and device, intelligent equipment and medium
CN105072534B (en) A kind of control method and terminal of wireless sound box system
CN111161734A (en) Voice interaction method and device based on designated scene
CN105959466A (en) Method and device for processing audio data
CN113760219A (en) Information processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180904

RJ01 Rejection of invention patent application after publication