CN103730148A - Audio frequency playing method and audio frequency playing device - Google Patents
Audio frequency playing method and audio frequency playing device Download PDFInfo
- Publication number
- CN103730148A CN103730148A CN201410015995.9A CN201410015995A CN103730148A CN 103730148 A CN103730148 A CN 103730148A CN 201410015995 A CN201410015995 A CN 201410015995A CN 103730148 A CN103730148 A CN 103730148A
- Authority
- CN
- China
- Prior art keywords
- configuration information
- media file
- played
- identifier
- audio data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 42
- 238000005457 optimization Methods 0.000 claims description 12
- 230000008569 process Effects 0.000 claims description 12
- 230000004044 response Effects 0.000 claims description 12
- 238000011084 recovery Methods 0.000 claims description 10
- 230000000694 effects Effects 0.000 abstract description 19
- 230000002708 enhancing effect Effects 0.000 abstract 2
- 230000009471 action Effects 0.000 description 3
- 230000006835 compression Effects 0.000 description 2
- 238000007906 compression Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000005236 sound signal Effects 0.000 description 2
- 230000003321 amplification Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 238000003199 nucleic acid amplification method Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
Images
Landscapes
- Telephonic Communication Services (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the invention discloses an audio frequency playing method and an audio frequency playing device. The audio frequency playing method comprises the following steps of acquiring the identifier of a media file to be played, wherein the media file to be played at least comprises an audio data set divided through a time quantum; acquiring optimal configuration information which is prestored in a server and corresponds to the media file to be played according to the identifier of the media file to be played; decoding the media file to be played to obtain audio data to be output; carrying out optimal configuration on the audio data to be output according to the optimal configuration information; outputting the audio data to be output, which is subjected to the optimal configuration, by calling the audio frequency output unit of electronic equipment. The audio frequency playing method disclosed by the embodiment of the invention can achieve the purpose of enhancing the audio frequency playing effect of the media file under the influence of the property limit of the electronic equipment self and/or an installed media player, thereby enhancing the listening experience of a user.
Description
Technical Field
The present invention relates to the field of audio processing, and in particular, to an audio playing method and apparatus.
Background
With the rapid development of science and technology, various electronic devices are continuously abundant and convenient for the public life. Because the electronic equipment has the advantages of convenience, rapidness, resource saving and the like when used for processing information, the electronic equipment becomes an indispensable part in life or work of people. Among them, electronic devices such as internet televisions, smart phones, notebook computers, and tablet computers have been widely used in daily life.
The user can play the network media file and the local media file through a media player installed in the electronic equipment. However, due to performance limitations of the electronic device itself and/or the installed media player, the effects of audio playback may not fully reproduce the effects that the audio originally intended. For example: the audio decoder in the media player attenuates sound signals with different frequencies to different degrees, and the power amplifier and the loudspeaker in the electronic device also attenuate sound signals with different frequencies to different degrees, so that the tone quality of the audio cannot achieve the original effect.
Therefore, under the influence of performance limitations of the electronic device itself and/or the installed media player, how to improve the audio playing effect of the media file, so as to improve the listening experience of the user, is a problem to be solved urgently.
Disclosure of Invention
Based on the above problems, the embodiment of the present invention discloses an audio playing method and apparatus, so as to improve the audio playing effect of a media file, thereby improving the listening experience of a user. The technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides an audio playing method, which is applicable to an electronic device, and the method includes:
acquiring an identifier of a media file to be played, wherein the media file to be played at least comprises: a set of audio data divided by a time period;
acquiring optimized configuration information corresponding to the media file to be played, which is stored in a server in advance, according to the identifier of the media file to be played;
decoding the media file to be played to obtain audio data to be output;
performing optimal configuration on the audio data to be output according to the optimal configuration information;
and calling an audio output unit of the electronic equipment to output the audio data to be output after optimized configuration.
Preferably, the optimization configuration information includes:
the audio data identification, the configuration parameters of the configuration items and the corresponding relation between the audio data identification and the configuration parameters of the configuration items.
Preferably, the performing optimized configuration on the audio data to be output according to the optimized configuration information includes:
and adjusting the audio data to be output corresponding to the audio data identification according to the configuration parameters of the corresponding configuration items.
Preferably, the configuration items include:
frequency response equalization, 3D sound field reconstruction, dynamic gain, high frequency harmonic recovery.
Preferably, the obtaining, according to the identifier of the media file to be played, the optimal configuration information corresponding to the media file to be played, which is stored in the server in advance, includes:
sending a configuration information acquisition request to a server, wherein the configuration information acquisition request carries the identifier of the media file to be played;
receiving optimized configuration information fed back by the server;
after receiving the configuration information acquisition request, the server acquires the optimal configuration information corresponding to the identifier of the media file to be played from a preset configuration library and feeds the optimal configuration information back to the electronic equipment, wherein the optimal configuration information and the corresponding relation between the optimal configuration information and the identifier of the media file are stored in the preset configuration library.
Preferably, the obtaining, according to the identifier of the media file to be played, the optimal configuration information corresponding to the media file to be played, which is stored in the server in advance, includes:
acquiring optimized configuration information corresponding to the media file to be played, which is downloaded from a server in advance according to the identifier of the media file to be played;
wherein, the process of downloading the optimized configuration information corresponding to the media file to be played from the server comprises the following steps:
when downloading the media file to be played, sending a configuration information acquisition request to a server, wherein the configuration information acquisition request carries an identifier of the media file to be played;
receiving optimized configuration information fed back by the server;
after receiving the configuration information acquisition request, the server acquires the optimal configuration information corresponding to the identifier of the media file to be played from a preset configuration library and feeds the optimal configuration information back to the electronic equipment, wherein the optimal configuration information and the corresponding relation between the optimal configuration information and the identifier of the media file are stored in the preset configuration library.
Preferably, the identifier of the media file to be played includes:
the file identifier of the media file to be played;
or the file identifier of the media file to be played and the device identifier of the electronic device.
In a second aspect, an embodiment of the present invention further provides an audio playing apparatus, which is applied to an electronic device, and the apparatus includes:
an identifier obtaining module, configured to obtain an identifier of a media file to be played, where the media file to be played at least includes: a set of audio data divided by a time period;
the optimizing configuration information acquisition module is used for acquiring optimizing configuration information corresponding to the media file to be played, which is stored in the server in advance, according to the identifier of the media file to be played;
the decoding module is used for decoding the media file to be played to obtain audio data to be output;
the optimal configuration module is used for performing optimal configuration on the audio data to be output according to the optimal configuration information;
and the audio output module is used for calling an audio output unit of the electronic equipment to output the audio data to be output after optimized configuration.
Preferably, the optimization configuration information includes:
the audio data identification, the configuration parameters of the configuration items and the corresponding relation between the audio data identification and the configuration parameters of the configuration items.
Preferably, the optimal configuration module is configured to adjust the audio data to be output corresponding to the audio data identifier according to the configuration parameters of the corresponding configuration item.
Preferably, the configuration items include:
frequency response equalization, 3D sound field reconstruction, dynamic gain, high frequency harmonic recovery.
Preferably, the optimal configuration information obtaining module includes:
a request sending unit, configured to send a configuration information obtaining request to a server, where the configuration information obtaining request carries an identifier of the media file to be played;
the optimized configuration information receiving unit is used for receiving the optimized configuration information fed back by the server;
after receiving the configuration information acquisition request, the server acquires the optimal configuration information corresponding to the identifier of the media file to be played from a preset configuration library and feeds the optimal configuration information back to the electronic equipment, wherein the optimal configuration information and the corresponding relation between the optimal configuration information and the identifier of the media file are stored in the preset configuration library.
Preferably, the optimal configuration information obtaining module includes:
the device comprises an optimization configuration information acquisition unit, a playing unit and a playing unit, wherein the optimization configuration information acquisition unit is used for acquiring optimization configuration information corresponding to the media file to be played, which is downloaded from a server in advance according to the identifier of the media file to be played;
wherein, the process of downloading the optimized configuration information corresponding to the media file to be played from the server comprises the following steps:
when downloading the media file to be played, sending a configuration information acquisition request to a server, wherein the configuration information acquisition request carries an identifier of the media file to be played;
receiving optimized configuration information fed back by the server;
after receiving the configuration information acquisition request, the server acquires the optimal configuration information corresponding to the identifier of the media file to be played from a preset configuration library and feeds the optimal configuration information back to the electronic equipment, wherein the optimal configuration information and the corresponding relation between the optimal configuration information and the identifier of the media file are stored in the preset configuration library.
Preferably, the identifier of the media file to be played includes:
the file identifier of the media file to be played;
or,
the file identification of the media file to be played and the equipment identification of the electronic equipment.
In the embodiment of the invention, the identifier of the media file to be played, which at least comprises a set of audio data divided by time periods, is obtained; acquiring optimized configuration information corresponding to the media file to be played, which is stored in a server in advance, according to the identifier of the media file to be played; decoding a media file to be played to obtain audio data to be output; performing optimal configuration on the audio data to be output according to the optimal configuration information; and calling an audio output unit of the electronic equipment to output the audio data to be output after optimized configuration. Therefore, in the scheme, the audio data to be output decoded by the media file to be played is optimized and configured, and then the audio output unit of the electronic equipment is called to output the audio data, so that the audio playing effect of the media file is improved under the influence of the performance limit of the electronic equipment and/or the installed media player, and the listening experience of a user is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of an audio playing method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an audio playing device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to achieve the purpose of improving the audio playing effect of a media file under the influence of performance limitations of an electronic device and/or an installed media player, and thus improving the listening experience of a user, embodiments of the present invention provide an audio playing method and apparatus.
First, an audio playing method provided by an embodiment of the present invention is described below.
It should be noted that the audio playing method provided by the embodiment of the present invention is applicable to an electronic device. In practical application, the electronic device can be an internet television, a smart phone, a notebook computer, a tablet computer and the like, which is reasonable.
The functional software for implementing the audio playing method may be a special media player, for example: audio players, video players, etc.; or a browser with a built-in media player; of course, it is not limited thereto.
As shown in fig. 1, an audio playing method may include:
s101, acquiring an identifier of a media file to be played, wherein the media file to be played at least comprises: a set of audio data divided by a time period;
when a user indicates to play a media file online or to play a downloaded media file locally, firstly, an identifier of the media file to be played is obtained, and then, the identifier of the media file to be played is utilized to execute subsequent operations, wherein the media file to be played at least comprises: the collection of audio data divided by time periods, i.e. the media file to be played, comprises at least: several segments of audio data.
It should be noted that, the media file to be played may be an audio file (e.g., a file in MP3 format, a file in WAVE format, a file in WMA format, etc.), or a video file including audio data, etc., which is reasonable; moreover, the duration corresponding to each segment of audio data may be set according to an actual application scenario, for example: 1s, 2s, 5s, etc.
S102, acquiring optimized configuration information corresponding to the media file to be played, which is stored in a server in advance, according to the identifier of the media file to be played;
after the media file to be played is determined, acquiring the optimized configuration information corresponding to the media file to be played, which is stored in the server in advance, according to the identifier of the media file to be played, and further executing subsequent processing; the storage form of the optimized configuration information may be a file form, but is not limited to this.
The preset configuration library of the server stores the optimal configuration information in advance, and the corresponding relationship between the optimal configuration information and the identifier of the media file, specifically, the identifier of the media file to be played may include: it is reasonable to have a file identification of the media file, or a combination of a file identification of the media file and a device identification of the electronic device; in addition, for online playing of the media file and playing of the downloaded media file, the manner of acquiring the optimized configuration information corresponding to the media file to be played will be different, and the specific acquiring manner will be introduced later.
It should be further noted that both the performance of the electronic device itself and the performance of the installed media player may affect the sound effects of the media file, and different electronic devices and different media players may affect the sound effects of the media file differently. Therefore, based on the above considerations, in order to ensure the universality of the optimized configuration information in practical application, the influences of various electronic devices and various media players on the sound effects of the media files can be comprehensively analyzed in advance, so that the optimized configuration information capable of improving the sound effects in various application scenes is determined for the media files, and at this time, one media file corresponds to one set of optimized configuration information, and the optimized configuration information has wide applicability. Of course, for a media file, when different electronic devices serve as a playing platform, different optimal configuration information may be selected, so that the optimization is more targeted, and at this time, the process of constructing the optimal configuration information corresponding to one model of electronic device may include: the performance of the electronic equipment of the type and the influence of various media players on the sound effect of the media file are analyzed in advance, and then the optimal configuration information required when the media file is played on the electronic equipment of the type is determined. It can be understood by those skilled in the art that the spatial playback environment also has a certain influence on the sound effect of the media file, so that the spatial playback environment can also be used as an influencing factor when constructing the optimal configuration information, and further, it is reasonable to set the optimal configuration information for different spatial playback environments for each media file.
Specifically, the optimized configuration information may include: the audio data identification, the configuration parameters of the configuration items and the corresponding relation between the audio data identification and the configuration parameters of the configuration items. Wherein, the configuration item can comprise: at least one of frequency response equalization, 3D sound field reconstruction, dynamic gain, and high frequency harmonic recovery, although not limited thereto; and, the type of configuration parameters of the configuration item is determined by the configuration item, for example: the configuration parameter of the frequency response equalization may be a percentage value, the configuration parameter of the 3D sound field reconstruction may be "yes" or "no", the configuration parameter of the dynamic gain may be a percentage value, and the configuration parameter of the high-frequency harmonic recovery may be "yes" or "no", but is not limited thereto. It can be understood that the configuration items in the optimized configuration information and the configuration parameters of the configuration items corresponding to different media files may be different; and the configuration items and the configuration parameters of the configuration items in the optimized configuration information of the same media file for different models of electronic equipment can be different.
For clarity, frequency response equalization, 3D sound field reconstruction, dynamic gain, high frequency harmonic recovery are briefly described below.
(1) Frequency response equalization:
media players or electronic devices typically have a frequency response equalizer function; the frequency response equalizer is a software module or hardware equipment which can respectively adjust the amplification amount of electric signals with various frequency components, compensates the defects of a loudspeaker and a sound field by adjusting the electric signals with various frequencies, and compensates and modifies various sound sources and other special effects; and the frequency response equalizer can respectively adjust three sections of high-frequency, medium-frequency and low-frequency electric signals.
(2) 3D sound field reconstruction:
due to the fact that the distance of the loudspeaker is small, the environment space is small, and audio compression is caused, the spatial sense of the audio is reduced; and the 3D sound field reconstruction uses a digital signal processing method to reconstruct the sound field and restore the original spatial impression.
(3) Dynamic gain:
the key audio can be highlighted by carrying out dynamic gain enhancement processing on some scene sounds with characteristics.
(4) High-frequency harmonic recovery:
high frequency harmonics, such as those produced by a violin, are lost due to audio compression; and the high-frequency harmonic recovery utilizes a digital signal processing technology to recover the high-frequency harmonic signal so as to restore the sound effect.
It should be noted that the audio data identifier generally refers to the playing time of each piece of audio data in the whole media file playing process, for example: 10s-20s, 100s-120s, etc., although not limited thereto, such as: each piece of audio data may be named, and at this time, the audio data is identified as the name of each piece of audio data, but is not limited thereto. S103, decoding the media file to be played to obtain audio data to be output;
s104, carrying out optimal configuration on the audio data to be output according to the optimal configuration information;
after the media file to be played is decoded and the audio data to be output is obtained, the audio data to be output can be optimally configured according to the optimal configuration information, so that the audio playing effect is improved. It can be understood that the process of decoding the media file to be played and obtaining the audio data to be output can be implemented by the prior art.
Specifically, performing optimal configuration on the audio data to be output according to the optimal configuration information may include:
and adjusting the audio data to be output corresponding to the audio data identification according to the configuration parameters of the corresponding configuration items.
It should be noted that, all the audio data identifiers of the media files to be played may be recorded in the optimized configuration information, where for the audio that does not need optimized configuration, the configuration parameter of the configuration item corresponding to the audio may be set to be null or set to be other default parameter. Of course, it is reasonable that the optimal configuration information may also record only the audio data identification of certain segments of audio data that require optimal configuration. For the second case, when the audio data to be output is optimally configured according to the optimal configuration information, after the audio data to be output is obtained, whether the obtained audio data to be output is the audio data needing optimal configuration or not can be judged through the audio data identifier, and when the obtained audio data to be output is judged to be the audio data needing optimal configuration, the audio data to be output is optimally configured according to the optimal configuration information.
And S105, calling an audio output unit of the electronic equipment to output the audio data to be output after optimized configuration.
After the audio data to be output is optimally configured, the audio output unit of the electronic device can be called to output the optimally configured audio data to be output. It should be noted that, if the audio data to be output does not need to be optimally configured, the audio output unit of the electronic device is called to output the audio data to be output without being optimally configured. In practical applications, the audio output unit may be a speaker, but is not limited thereto.
It should be further noted that the execution sequence of step S102 and step S103 is not limited to the sequence described in the present embodiment. When the media file to be played is played online, the optimized configuration information corresponding to the media file to be played can be obtained from the server when the media file to be played starts to be decoded, and the optimized configuration information corresponding to the media file to be played can also be obtained from the server before the media file to be played is decoded; when playing the downloaded media file, the corresponding optimized configuration information can be downloaded and stored when the media file is downloaded, and then the stored optimized configuration information can be directly obtained when the media file is played.
It should be emphasized that the optimal configuration information corresponding to the media file may be for the entire media file or for segments in the media file, which is reasonable.
In the embodiment of the invention, the identifier of the media file to be played, which at least comprises a set of audio data divided by time periods, is obtained; acquiring optimized configuration information corresponding to the media file to be played, which is stored in a server in advance, according to the identifier of the media file to be played; decoding a media file to be played to obtain audio data to be output; performing optimal configuration on the audio data to be output according to the optimal configuration information; and calling an audio output unit of the electronic equipment to output the audio data to be output after optimized configuration. Therefore, in the scheme, the audio data to be output decoded by the media file to be played is optimized and configured, and then the audio output unit of the electronic equipment is called to output the audio data, so that the audio playing effect of the media file is improved under the influence of the performance limit of the electronic equipment and/or the installed media player, and the listening experience of a user is improved.
Specifically, for the case that the media file to be played is an online media file, obtaining the optimal configuration information corresponding to the media file to be played may include:
sending a configuration information acquisition request to a server, wherein the configuration information acquisition request carries the identifier of the media file to be played;
receiving optimized configuration information fed back by the server;
after receiving the configuration information acquisition request, the server acquires the optimized configuration information corresponding to the identifier of the media file to be played from a preset configuration library and feeds the optimized configuration information back to the electronic equipment, wherein the optimized configuration information and the corresponding relation between the optimized configuration information and the identifier of the media file are stored in the preset configuration library.
The identifier of the media file to be played may include: the file identification of the media file to be played; or the file identifier of the media file to be played and the device identifier of the electronic device.
Specifically, for a downloaded media file of a media file to be played, the obtaining of the optimal configuration information corresponding to the media file to be played may include:
acquiring optimized configuration information corresponding to the media file to be played, which is downloaded from a server in advance according to the identifier of the media file to be played;
the process of downloading the optimal configuration information corresponding to the media file to be played from the server may include:
when downloading the media file to be played, sending a configuration information acquisition request to a server, wherein the configuration information acquisition request carries an identifier of the media file to be played;
receiving optimized configuration information fed back by the server;
after receiving the configuration information acquisition request, the server acquires the optimal configuration information corresponding to the identifier of the media file to be played from a preset configuration library and feeds the optimal configuration information back to the electronic equipment, wherein the optimal configuration information and the corresponding relation between the optimal configuration information and the identifier of the media file are stored in the preset configuration library.
The identifier of the media file to be played may include: the file identification of the media file to be played; or the file identifier of the media file to be played and the device identifier of the electronic device.
Corresponding to the above method embodiment, an embodiment of the present invention further provides an audio playing apparatus, which is suitable for an electronic device, and as shown in fig. 2, the apparatus may include:
an identifier obtaining module 210, configured to obtain an identifier of a media file to be played, where the media file to be played at least includes: a set of audio data divided by a time period;
an optimal configuration information obtaining module 220, configured to obtain, according to the identifier of the media file to be played, optimal configuration information corresponding to the media file to be played, where the optimal configuration information is stored in a server in advance;
a decoding module 230, configured to decode the media file to be played, to obtain audio data to be output;
the optimal configuration module 240 is configured to perform optimal configuration on the audio data to be output according to the optimal configuration information;
and the audio output module 250 is configured to invoke an audio output unit of the electronic device to output the optimally configured audio data to be output.
In the embodiment of the invention, the identifier of the media file to be played, which at least comprises a set of audio data divided by time periods, is obtained; acquiring optimized configuration information corresponding to the media file to be played, which is stored in a server in advance, according to the identifier of the media file to be played; decoding a media file to be played to obtain audio data to be output; performing optimal configuration on the audio data to be output according to the optimal configuration information; and calling an audio output unit of the electronic equipment to output the audio data to be output after optimized configuration. Therefore, in the scheme, the audio data to be output decoded by the media file to be played is optimized and configured, and then the audio output unit of the electronic equipment is called to output the audio data, so that the audio playing effect of the media file is improved under the influence of the performance limit of the electronic equipment and/or the installed media player, and the listening experience of a user is improved.
Wherein the optimized configuration information may include: the audio data identification, the configuration parameters of the configuration items and the corresponding relation between the audio data identification and the configuration parameters of the configuration items.
The optimal configuration module 240 is configured to adjust the audio data to be output corresponding to the audio data identifier according to the configuration parameters of the corresponding configuration item.
Wherein the configuration items may include: frequency response equalization, 3D sound field reconstruction, dynamic gain, high frequency harmonic recovery.
The optimal configuration information obtaining module 220 may include:
a request sending unit, configured to send a configuration information obtaining request to a server, where the configuration information obtaining request carries an identifier of the media file to be played;
the optimized configuration information receiving unit is used for receiving the optimized configuration information fed back by the server;
after receiving the configuration information acquisition request, the server acquires the optimal configuration information corresponding to the identifier of the media file to be played from a preset configuration library and feeds the optimal configuration information back to the electronic equipment, wherein the optimal configuration information and the corresponding relation between the optimal configuration information and the identifier of the media file are stored in the preset configuration library.
The optimal configuration information obtaining module 220 may include:
the device comprises an optimization configuration information acquisition unit, a playing unit and a playing unit, wherein the optimization configuration information acquisition unit is used for acquiring optimization configuration information corresponding to the media file to be played, which is downloaded from a server in advance according to the identifier of the media file to be played;
the process of downloading the optimal configuration information corresponding to the media file to be played from the server may include:
when downloading the media file to be played, sending a configuration information acquisition request to a server, wherein the configuration information acquisition request carries an identifier of the media file to be played;
receiving optimized configuration information fed back by the server;
after receiving the configuration information acquisition request, the server acquires the optimal configuration information corresponding to the identifier of the media file to be played from a preset configuration library and feeds the optimal configuration information back to the electronic equipment, wherein the optimal configuration information and the corresponding relation between the optimal configuration information and the identifier of the media file are stored in the preset configuration library.
The identifier of the media file to be played may include: the file identifier of the media file to be played; or the file identifier of the media file to be played and the device identifier of the electronic device.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Those skilled in the art will appreciate that all or part of the steps in the above method embodiments may be implemented by a program to instruct relevant hardware to perform the steps, and the program may be stored in a computer-readable storage medium, which is referred to herein as a storage medium, such as: ROM/RAM, magnetic disk, optical disk, etc.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.
Claims (14)
1. An audio playing method, applied to an electronic device, the method comprising:
acquiring an identifier of a media file to be played, wherein the media file to be played at least comprises: a set of audio data divided by a time period;
acquiring optimized configuration information corresponding to the media file to be played, which is stored in a server in advance, according to the identifier of the media file to be played;
decoding the media file to be played to obtain audio data to be output;
performing optimal configuration on the audio data to be output according to the optimal configuration information;
and calling an audio output unit of the electronic equipment to output the audio data to be output after optimized configuration.
2. The method of claim 1, wherein the optimized configuration information comprises:
the audio data identification, the configuration parameters of the configuration items and the corresponding relation between the audio data identification and the configuration parameters of the configuration items.
3. The method of claim 2, wherein performing optimal configuration on the audio data to be output according to the optimal configuration information comprises:
and adjusting the audio data to be output corresponding to the audio data identification according to the configuration parameters of the corresponding configuration items.
4. The method of claim 2, wherein the configuration item comprises:
frequency response equalization, 3D sound field reconstruction, dynamic gain, high frequency harmonic recovery.
5. The method according to claim 1, wherein the obtaining, according to the identifier of the media file to be played, the optimal configuration information corresponding to the media file to be played, which is stored in a server in advance, comprises:
sending a configuration information acquisition request to a server, wherein the configuration information acquisition request carries the identifier of the media file to be played;
receiving optimized configuration information fed back by the server;
after receiving the configuration information acquisition request, the server acquires the optimal configuration information corresponding to the identifier of the media file to be played from a preset configuration library and feeds the optimal configuration information back to the electronic equipment, wherein the optimal configuration information and the corresponding relation between the optimal configuration information and the identifier of the media file are stored in the preset configuration library.
6. The method according to claim 1, wherein the obtaining, according to the identifier of the media file to be played, the optimal configuration information corresponding to the media file to be played, which is stored in a server in advance, comprises:
acquiring optimized configuration information corresponding to the media file to be played, which is downloaded from a server in advance according to the identifier of the media file to be played;
wherein, the process of downloading the optimized configuration information corresponding to the media file to be played from the server comprises the following steps:
when downloading the media file to be played, sending a configuration information acquisition request to a server, wherein the configuration information acquisition request carries an identifier of the media file to be played;
receiving optimized configuration information fed back by the server;
after receiving the configuration information acquisition request, the server acquires the optimal configuration information corresponding to the identifier of the media file to be played from a preset configuration library and feeds the optimal configuration information back to the electronic equipment, wherein the optimal configuration information and the corresponding relation between the optimal configuration information and the identifier of the media file are stored in the preset configuration library.
7. The method of claim 5 or 6, wherein the identification of the media file to be played comprises:
the file identifier of the media file to be played;
or the file identifier of the media file to be played and the device identifier of the electronic device.
8. An audio playing apparatus, adapted for use in an electronic device, the apparatus comprising:
an identifier obtaining module, configured to obtain an identifier of a media file to be played, where the media file to be played at least includes: a set of audio data divided by a time period;
the optimizing configuration information acquisition module is used for acquiring optimizing configuration information corresponding to the media file to be played, which is stored in the server in advance, according to the identifier of the media file to be played;
the decoding module is used for decoding the media file to be played to obtain audio data to be output;
the optimal configuration module is used for performing optimal configuration on the audio data to be output according to the optimal configuration information;
and the audio output module is used for calling an audio output unit of the electronic equipment to output the audio data to be output after optimized configuration.
9. The apparatus of claim 8, wherein the optimized configuration information comprises:
the audio data identification, the configuration parameters of the configuration items and the corresponding relation between the audio data identification and the configuration parameters of the configuration items.
10. The apparatus according to claim 9, wherein the optimal configuration module is configured to adjust the audio data to be output corresponding to the audio data identifier according to the configuration parameters of the corresponding configuration item.
11. The apparatus of claim 9, wherein the configuration item comprises:
frequency response equalization, 3D sound field reconstruction, dynamic gain, high frequency harmonic recovery.
12. The apparatus of claim 8, wherein the optimal configuration information obtaining module comprises:
a request sending unit, configured to send a configuration information obtaining request to a server, where the configuration information obtaining request carries an identifier of the media file to be played;
the optimized configuration information receiving unit is used for receiving the optimized configuration information fed back by the server;
after receiving the configuration information acquisition request, the server acquires the optimal configuration information corresponding to the identifier of the media file to be played from a preset configuration library and feeds the optimal configuration information back to the electronic equipment, wherein the optimal configuration information and the corresponding relation between the optimal configuration information and the identifier of the media file are stored in the preset configuration library.
13. The apparatus of claim 8, wherein the optimal configuration information obtaining module comprises:
the device comprises an optimization configuration information acquisition unit, a playing unit and a playing unit, wherein the optimization configuration information acquisition unit is used for acquiring optimization configuration information corresponding to the media file to be played, which is downloaded from a server in advance according to the identifier of the media file to be played;
wherein, the process of downloading the optimized configuration information corresponding to the media file to be played from the server comprises the following steps:
when downloading the media file to be played, sending a configuration information acquisition request to a server, wherein the configuration information acquisition request carries an identifier of the media file to be played;
receiving optimized configuration information fed back by the server;
after receiving the configuration information acquisition request, the server acquires the optimal configuration information corresponding to the identifier of the media file to be played from a preset configuration library and feeds the optimal configuration information back to the electronic equipment, wherein the optimal configuration information and the corresponding relation between the optimal configuration information and the identifier of the media file are stored in the preset configuration library.
14. The apparatus of claim 12 or 13, wherein the identification of the media file to be played comprises:
the file identifier of the media file to be played;
or,
the file identification of the media file to be played and the equipment identification of the electronic equipment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410015995.9A CN103730148B (en) | 2014-01-14 | 2014-01-14 | Audio frequency playing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410015995.9A CN103730148B (en) | 2014-01-14 | 2014-01-14 | Audio frequency playing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103730148A true CN103730148A (en) | 2014-04-16 |
CN103730148B CN103730148B (en) | 2016-08-17 |
Family
ID=50454190
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410015995.9A Active CN103730148B (en) | 2014-01-14 | 2014-01-14 | Audio frequency playing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103730148B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104602045A (en) * | 2015-02-12 | 2015-05-06 | 三星电子(中国)研发中心 | Automatic sound configuration method, system and device |
CN108055409A (en) * | 2017-12-29 | 2018-05-18 | 西安蜂语信息科技有限公司 | Audio frequency playing method, equipment and system |
CN110270096A (en) * | 2019-06-19 | 2019-09-24 | 杭州绝地科技股份有限公司 | Audio resource configuration method, device, equipment and storage medium in game application |
CN111356009A (en) * | 2020-02-26 | 2020-06-30 | 北京大米科技有限公司 | Audio data processing method and device, storage medium and terminal |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102696244A (en) * | 2009-10-05 | 2012-09-26 | 哈曼国际工业有限公司 | Multichannel audio system having audio channel compensation |
WO2013049125A1 (en) * | 2011-09-26 | 2013-04-04 | Actiwave Ab | Audio processing and enhancement system |
WO2013106366A1 (en) * | 2012-01-09 | 2013-07-18 | Actiwave Ab | System and method for audio enhancement of a consumer electronics device |
WO2013106369A1 (en) * | 2012-01-09 | 2013-07-18 | Actiwave Ab | Integrated loudspeaker assemblies |
-
2014
- 2014-01-14 CN CN201410015995.9A patent/CN103730148B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102696244A (en) * | 2009-10-05 | 2012-09-26 | 哈曼国际工业有限公司 | Multichannel audio system having audio channel compensation |
WO2013049125A1 (en) * | 2011-09-26 | 2013-04-04 | Actiwave Ab | Audio processing and enhancement system |
WO2013106366A1 (en) * | 2012-01-09 | 2013-07-18 | Actiwave Ab | System and method for audio enhancement of a consumer electronics device |
WO2013106369A1 (en) * | 2012-01-09 | 2013-07-18 | Actiwave Ab | Integrated loudspeaker assemblies |
Non-Patent Citations (1)
Title |
---|
刘华: "音频处理关键模块算法的研究与优化", 《中国优秀硕士学位论文全文数据库 信息科技辑》, no. 2, 15 February 2013 (2013-02-15) * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104602045A (en) * | 2015-02-12 | 2015-05-06 | 三星电子(中国)研发中心 | Automatic sound configuration method, system and device |
CN104602045B (en) * | 2015-02-12 | 2017-11-10 | 三星电子(中国)研发中心 | A kind of sound method of automatic configuration, system and device |
CN108055409A (en) * | 2017-12-29 | 2018-05-18 | 西安蜂语信息科技有限公司 | Audio frequency playing method, equipment and system |
CN110270096A (en) * | 2019-06-19 | 2019-09-24 | 杭州绝地科技股份有限公司 | Audio resource configuration method, device, equipment and storage medium in game application |
CN110270096B (en) * | 2019-06-19 | 2022-10-04 | 杭州绝地科技股份有限公司 | Audio resource allocation method, device, equipment and storage medium in game application |
CN111356009A (en) * | 2020-02-26 | 2020-06-30 | 北京大米科技有限公司 | Audio data processing method and device, storage medium and terminal |
Also Published As
Publication number | Publication date |
---|---|
CN103730148B (en) | 2016-08-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103702180B (en) | media file playing method and device | |
US10070245B2 (en) | Method and apparatus for personalized audio virtualization | |
JP6462686B2 (en) | Data processing method and system | |
US9275625B2 (en) | Content based noise suppression | |
US9154875B2 (en) | Device for and method of processing an audio data stream | |
US20160119730A1 (en) | Method for improving audio quality of online multimedia content | |
CN103730148B (en) | Audio frequency playing method and device | |
JP2016510435A (en) | Signal audio rendering information in a bitstream | |
CN104157292B (en) | Anti- utter long and high-pitched sounds acoustic signal processing method and device | |
CN104541328A (en) | Transforming audio content for subjective fidelity | |
CN109147739B (en) | Sound effect adjusting method, medium, device and computing equipment based on voice control | |
CN103702182B (en) | Video broadcasting method and device | |
CN103903625A (en) | Audio sound mixing method and device | |
US8311239B2 (en) | Method and apparatus for audio bass enhancement using stereo speakers | |
JP5737357B2 (en) | Music playback apparatus and music playback program | |
CN104038772A (en) | Ring tone file generation method and device | |
CN104242850A (en) | Audio signal processing method and electronic device | |
CN109672962B (en) | Information processing method and electronic equipment | |
CN111145793B (en) | Audio processing method and device | |
CN111048107B (en) | Audio processing method and device | |
CN111145776B (en) | Audio processing method and device | |
CN104038773A (en) | Ring tone file generation method and device | |
CN115050384A (en) | Background noise reduction method, device and system in outdoor live broadcast | |
CN116367047A (en) | Ultra-low frequency sound effect compensation system and method based on tactile feedback and storage medium | |
US9184719B2 (en) | Identifying a change to adjust audio data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |