CN105404642A - Audio playing method and user terminal - Google Patents

Audio playing method and user terminal Download PDF

Info

Publication number
CN105404642A
CN105404642A CN201510702788.5A CN201510702788A CN105404642A CN 105404642 A CN105404642 A CN 105404642A CN 201510702788 A CN201510702788 A CN 201510702788A CN 105404642 A CN105404642 A CN 105404642A
Authority
CN
China
Prior art keywords
audio file
frequency
play parameter
described audio
frequency range
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
Application number
CN201510702788.5A
Other languages
Chinese (zh)
Other versions
CN105404642B (en
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510702788.5A priority Critical patent/CN105404642B/en
Publication of CN105404642A publication Critical patent/CN105404642A/en
Application granted granted Critical
Publication of CN105404642B publication Critical patent/CN105404642B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/68Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/683Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content

Landscapes

  • Engineering & Computer Science (AREA)
  • Library & Information Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Reverberation, Karaoke And Other Acoustics (AREA)

Abstract

Embodiments of the invention disclose an audio playing method and a user terminal. The method comprises: obtaining a to-be-played audio file; performing spectral analysis on the audio file to obtain spectral distribution information of the audio file; determining playing parameters used for playing the audio file according to the spectral distribution information; and playing the audio file according to the playing parameters. By implanting the embodiments of the invention, the playing parameters of playing the audio file can be adaptively adjusted to effectively improve the audio playing effect.

Description

A kind of audio frequency playing method and user terminal
Technical field
The present invention relates to electronic technology field, particularly relate to a kind of audio frequency playing method and user terminal.
Background technology
Along with the development of user terminal is with universal, the user terminals such as such as mobile phone have become ingredient indispensable in people's life.Mobile phone can not only meet the daily communication of people, can also be used for carrying out the broadcasting of audio frequency and video, plays games, browse the recreations such as webpage.Find in practice, when playing music, in order to farthest improve hearing enjoying, result of broadcast can be improved by regulating in music player play parameter, as conditioning equaliser changes play mode (as rock and roll, allusion etc.), or fader is regulated to change broadcast sound volume etc.But different music has different styles, when adopting identical play parameter to play the music of different-style, sometimes not only good result of broadcast can not be obtained, reduction result of broadcast of running counter to desire on the contrary.At present, for the music of different-style, generally need user manually to go to reset play parameter, this operating process is time-consuming and loaded down with trivial details, and intelligent not.
Summary of the invention
The embodiment of the invention discloses a kind of audio frequency playing method and user terminal, can the play parameter of Automatic adjusument displaying audio file, thus effectively improve the result of broadcast of audio frequency.
Embodiment of the present invention first aspect discloses a kind of audio frequency playing method, comprising:
Obtain audio file to be played;
Spectrum analysis is carried out to described audio file, to obtain the spectrum distribution information of described audio file;
The play parameter playing described audio file is determined according to described spectrum distribution information;
Described audio file is play according to described play parameter.
In conjunction with embodiment of the present invention first aspect, in the first possible embodiment of embodiment of the present invention first aspect, described spectrum analysis is carried out to described audio file, to obtain the spectrum distribution information of described audio file, comprising:
Spectrum analysis is carried out to described audio file, obtains the frequency distribution of described audio file;
The frequency number calculating the described audio file that each default frequency range comprises according to the distribution of described frequency accounts for the rate of specific gravity of all frequency point data of described audio file.
In conjunction with the first possible embodiment of embodiment of the present invention first aspect, in the embodiment that the second of embodiment of the present invention first aspect is possible, describedly determine according to described spectrum distribution information the play parameter playing described audio file, comprising:
Obtain the frequency number of described audio file comprised and account for the maximum default frequency range of the rate of specific gravity of all frequency point data of described audio file;
From the frequency range set up in advance with obtain the play parameter corresponding with described default frequency range the corresponding relation of play parameter;
The play parameter of described acquisition is defined as the play parameter for playing described audio file.
In conjunction with embodiment of the present invention first aspect, in the third possible embodiment of embodiment of the present invention first aspect, described spectrum analysis is carried out to described audio file, to obtain the spectrum distribution information of described audio file, comprising:
Described audio file is divided into several audio fragments;
For audio fragment described in each, spectrum analysis is carried out to described audio fragment, obtain the frequency distribution of described audio fragment;
The frequency number calculating the described audio fragment that each default frequency range comprises according to the distribution of described frequency accounts for the rate of specific gravity of all frequency point data of described audio fragment.
In conjunction with the third possible embodiment of embodiment of the present invention first aspect, in the 4th kind of possible embodiment of embodiment of the present invention first aspect, describedly determine according to described spectrum distribution information the play parameter playing described audio file, comprising:
For audio fragment described in each, obtain the frequency number of described audio fragment comprised and account for the maximum default frequency range of the rate of specific gravity of all frequency point data of described audio fragment;
From the frequency range set up in advance with obtain the play parameter corresponding with described default frequency range the corresponding relation of play parameter;
The play parameter of described acquisition is defined as the play parameter for playing described audio fragment;
Wherein, describedly play described audio file according to described play parameter, comprising:
By described audio file each described in audio fragment play according to the play parameter corresponding with described audio fragment.
Embodiment of the present invention second aspect discloses a kind of user terminal, comprising:
Acquiring unit, for obtaining audio file to be played;
Analytic unit, for carrying out spectrum analysis to described audio file, to obtain the spectrum distribution information of described audio file;
Determining unit, for determining according to described spectrum distribution information the play parameter playing described audio file;
Broadcast unit, for playing described audio file according to described play parameter.
In conjunction with embodiment of the present invention second aspect, in the first possible embodiment of embodiment of the present invention second aspect, described analytic unit comprises:
First analyzes subelement, for carrying out spectrum analysis to described audio file, obtains the frequency distribution of described audio file;
First computation subunit, the frequency number for calculating according to described frequency distribution the described audio file that each default frequency range comprises accounts for the rate of specific gravity of all frequency point data of described audio file.
In conjunction with the first possible embodiment of embodiment of the present invention second aspect, in the embodiment that the second of embodiment of the present invention second aspect is possible, described determining unit comprises:
First obtains subelement, and the frequency number for obtaining the described audio file comprised accounts for the maximum default frequency range of the rate of specific gravity of all frequency point data of described audio file;
Second obtain subelement, for from the frequency range set up in advance with obtain the play parameter corresponding with described default frequency range in the corresponding relation of play parameter;
First determines subelement, for the play parameter of described acquisition being defined as the play parameter for playing described audio file.
In conjunction with embodiment of the present invention second aspect, in the third possible embodiment of embodiment of the present invention second aspect, described analytic unit comprises:
Segmentation subelement, for being divided into several audio fragments by described audio file;
Second analyzes subelement, for for audio fragment described in each, carries out spectrum analysis to described audio fragment, obtains the frequency distribution of described audio fragment;
Second computation subunit, the frequency number for calculating according to described frequency distribution the described audio fragment that each default frequency range comprises accounts for the rate of specific gravity of all frequency point data of described audio fragment.
In conjunction with the third possible embodiment of embodiment of the present invention second aspect, in the 4th kind of possible embodiment of embodiment of the present invention second aspect, described determining unit comprises:
3rd obtains subelement, and for for audio fragment described in each, the frequency number obtaining the described audio fragment comprised accounts for the maximum default frequency range of the rate of specific gravity of all frequency point data of described audio fragment;
4th obtain subelement, for from the frequency range set up in advance with obtain the play parameter corresponding with described default frequency range in the corresponding relation of play parameter;
Second determines subelement, for the play parameter of described acquisition being defined as the play parameter for playing described audio fragment;
Described broadcast unit specifically for by described audio file each described in audio fragment play according to the play parameter corresponding with described audio fragment.
In the embodiment of the present invention, can first obtain audio file to be played, and spectrum analysis is carried out to this audio file, to obtain the spectrum distribution information of this audio file, can determine according to this spectrum distribution information the play parameter playing this audio file, and play this audio file according to this play parameter.Visible, implement the embodiment of the present invention, Automatic adjusument play parameter can be carried out by carrying out spectrum analysis to audio file to be played, thus can play with different play parameter for different audio file, effectively improve result of broadcast.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, be briefly described to the accompanying drawing used required in embodiment below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of a kind of audio frequency playing method disclosed in the embodiment of the present invention;
Fig. 2 is the schematic flow sheet of another kind of audio frequency playing method disclosed in the embodiment of the present invention;
Fig. 3 is the schematic flow sheet of the embodiment of the present invention another audio frequency playing method disclosed;
Fig. 4 is the structural representation of a kind of user terminal disclosed in the embodiment of the present invention;
Fig. 5 is the structural representation of another kind of user terminal disclosed in the embodiment of the present invention;
Fig. 6 is the structural representation of the embodiment of the present invention another user terminal disclosed.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the invention discloses a kind of audio frequency playing method and user terminal, Automatic adjusument play parameter can be carried out by carrying out spectrum analysis to audio file to be played, thus can play with different play parameter for different audio file, effectively improve result of broadcast.Below be described in detail respectively.
Refer to Fig. 1, Fig. 1 is the schematic flow sheet of a kind of audio frequency playing method disclosed in the embodiment of the present invention.As shown in Figure 1, this audio frequency playing method can comprise the following steps:
S101, obtain audio file to be played.
In the embodiment of the present invention, user terminal can obtain audio file to be played, wherein, user terminal can comprise cell phone, panel computer, palm PC, personal digital assistant (PersonalDigitalAssistant, PDA), intelligent sound box, mobile internet device (MobileInternetDevice, MID), each Terminal Type such as multimedia player (as MP3, CD player etc.), Intelligent worn device (as intelligent watch, Intelligent bracelet etc.), the embodiment of the present invention is not construed as limiting.
In the embodiment of the present invention, user terminal can obtain the audio file to be played prestored in audio player, wherein, audio player can be the playout software (as the WindowsMediaPlayer of Microsoft, the iTunes etc. of apple) for displaying audio file, it can be the default player carried in user terminal, also can be the third party's player downloaded and installed in user terminal, the embodiment of the present invention be not construed as limiting; User terminal also can obtain audio file to be played from server, and now, user terminal can establish a communications link with server, and from server, obtain one or more audio file to be played.
S102, spectrum analysis is carried out to this audio file, to obtain the spectrum distribution information of this audio file.
In the embodiment of the present invention, carrying out spectrum analysis to the audio file got can be that the time-domain signal of this audio file is converted into frequency-region signal analyzed, and the object of spectrum analysis to be the amplitude of sound signal, phase place or energy through Fourier transform as to represent with frequency coordinate axle.Frequency spectrum is the distribution curve of frequency, and horizontal ordinate represents frequency (Hz), and ordinate represents level value (dBmV) or performance number (dBm).Carry out to audio file the spectrum distribution information that spectrum analysis can obtain this audio file, i.e. each effective frequency composition of this audio file and the scope of effective frequency distribution, wherein, effective frequency can refer to that amplitude is not the frequency of 0.
In the embodiment of the present invention, carrying out spectrum analysis to audio file can be come in the mode of the mode of software or hardware.When realizing spectrum analysis in the mode of software, the application program for performing spectrum analysis in the storer of user terminal, can be stored in advance; When realizing spectrum analysis in the mode of hardware, can by integrated audio process chip in the user terminal, and in audio processing chip integrated frequency analysis of spectrum function.The implementation of spectrum analysis can with reference to existing multiple frequency spectrum analysis method, and the embodiment of the present invention is not construed as limiting.
S103, determine according to spectrum distribution information the play parameter playing this audio file.
In the embodiment of the present invention, can learn according to the spectrum distribution information of this audio file the band limits that each effective frequency in this audio file and each effective frequency distribute.The corresponding relation of frequency range and play parameter can be pre-set, the play parameter that different frequency ranges can be corresponding different.The number that each frequency range comprises the effective frequency of this audio file can being added up, and obtain and comprise the maximum frequency range of the number of effective frequency, play parameter corresponding for this frequency range can being defined as the play parameter for playing this audio file.
In the embodiment of the present invention, play parameter for playing this audio file can include but not limited to broadcast sound volume size, parametric equalizer and play mode etc., wherein, balanced device may be used for the amplification quantity regulating various frequency content electric signal respectively, compensated the defect of loudspeaker and sound field by the adjustment of the electric signal to various different frequency, the parameter of balanced device can be amplification or the damping capacity of different frequency composition electric signal.Play mode can include but not limited to mode standard, classic pattern, rock and roll pattern, bass patterns, high pitch pattern etc., and the change of play mode can make that the amplification quantity of different frequency composition electric signal is also corresponding to change.
S104, play this audio file according to the play parameter determined.
In the embodiment of the present invention, after determining the play parameter for playing this audio file, when playing this audio file, can play according to this play parameter.
In the embodiment of the present invention, this audio file can be play in user terminal self according to the play parameter determined, also this audio file can be associated with this play parameter, send it on the external unit that is connected with user terminal and play, play this audio file to make external unit according to this play parameter.Wherein, external unit can include but not limited to cell phone, panel computer, palm PC, PDA, intelligent sound box, MID, MP3, CD player, intelligent watch, Intelligent bracelet etc.
In the method described by Fig. 1, can first obtain audio file to be played, and spectrum analysis is carried out to this audio file, to obtain the spectrum distribution information of this audio file, can determine according to this spectrum distribution information the play parameter playing this audio file, and play this audio file according to this play parameter.By implementing the method described by Fig. 1, Automatic adjusument play parameter can be carried out by carrying out spectrum analysis to audio file to be played, thus can play with different play parameter for different audio file, effectively improving result of broadcast.
Refer to Fig. 2, Fig. 2 is the schematic flow sheet of another kind of audio frequency playing method disclosed in the embodiment of the present invention.As shown in Figure 2, this audio frequency playing method can comprise the following steps:
S201, obtain audio file to be played.
S202, spectrum analysis is carried out to this audio file, obtain the frequency distribution of this audio file.
In the embodiment of the present invention, the time-domain signal of this audio file is converted to frequency-region signal, and then the distribution situation of each frequency in the frequency spectrum that can obtain this audio file, can show that frequency distributes according to the distribution situation of frequency.Here frequency can be regarded as the numbering of frequency, also can be regarded as the number of frequency.Such as, according to 10Hz frequency interval from 810Hz, 820Hz, 830Hz ... 900MHz is divided into 10 frequencies, and is numbered each frequency, from 1,2,3,4 ... 10, namely the numbering of these frequencies can be regarded as frequency.
S203, to calculate the rate of specific gravity that the frequency number of this audio file that each default frequency range comprises accounts for all frequency point data of this audio file according to frequency distribution.
In the embodiment of the present invention, several default frequency ranges can be set in advance, and add up according to the frequency distribution obtained the rate of specific gravity that frequency number that each default frequency range comprises this audio file accounts for all frequency numbers of this audio file.Such as, the frequency number that default frequency range comprises this audio file is 200, and total frequency number of this audio file is 1000, then the rate of specific gravity of this default frequency range is 20%.
S204, obtain the frequency number of this audio file comprised and account for the maximum default frequency range of the rate of specific gravity of all frequency point data of this audio file.
S205, obtain with the corresponding relation of play parameter the play parameter that default frequency range is corresponding with this from the frequency range set up in advance.
S206, the play parameter play parameter of acquisition being defined as playing this audio file.
In the embodiment of the present invention, can set up the corresponding relation of frequency range and play parameter in advance in the user terminal, the play parameter that different frequency range is corresponding can be different, such as, and the corresponding play parameter 1 of frequency range 1, the corresponding play parameter 2 of frequency range 2.That maximum default frequency range of rate of specific gravity can be obtained from each default frequency range, obtain with the corresponding relation of play parameter the play parameter that default frequency range is corresponding with this from the frequency range set up in advance, this play parameter can be determined it is used for playing the play parameter of this audio file.
S207, play this audio file according to the play parameter determined.
For example, when establishing frequency range 1 and play parameter 1 in advance, frequency range 2 and play parameter 2, the corresponding relation of frequency range 3 and play parameter 3, spectrum analysis is carried out to audio file to be played, to obtain the frequency distribution of this audio file, when frequency range 1, frequency range 2, the rate of specific gravity that the frequency number of this audio file that frequency range 3 comprises respectively accounts for all frequency numbers of this audio file is 20%, 30%, 50%, rate of specific gravity then shared by frequency range 3 is maximum, then play parameter 3 is defined as the play parameter for playing this audio file, and play this audio file according to play parameter 3.
Visible, by implementing the method described by Fig. 2, Automatic adjusument play parameter can be carried out by carrying out spectrum analysis to audio file to be played, thus can play with different play parameter for different audio file, effectively improving result of broadcast.
Refer to Fig. 3, Fig. 3 is the schematic flow sheet of the embodiment of the present invention another audio frequency playing method disclosed.As shown in Figure 3, this audio frequency playing method can comprise the following steps:
S301, obtain audio file to be played.
S302, this audio file is divided into several audio fragments.
In the embodiment of the present invention, this audio file can be split according to total duration, can be divided into several audio fragments that duration is identical, also can be divided into several audio fragments that duration does not wait, the embodiment of the present invention is not construed as limiting.
S303, for each audio fragment, spectrum analysis is carried out to this audio fragment, obtain the frequency distribution of this audio fragment.
In the embodiment of the present invention, spectrum analysis can be carried out to each audio fragment that this audio file is split respectively, to obtain the frequency distribution of each audio fragment respectively.
S304, to calculate the rate of specific gravity that the frequency number of this audio fragment that each default frequency range comprises accounts for all frequency point data of this audio fragment according to frequency distribution.
The embodiment of the present invention, can arrange several default frequency ranges in advance, for an audio fragment, after having carried out spectrum analysis, can add up the rate of specific gravity that frequency number that each default frequency range comprises this audio fragment accounts for the total frequency number of this audio fragment.
S305, obtain the frequency number of this audio fragment comprised and account for the maximum default frequency range of the rate of specific gravity of all frequency point data of this audio fragment.
S306, obtain with the corresponding relation of play parameter the play parameter that default frequency range is corresponding with this from the frequency range set up in advance.
S307, the play parameter play parameter of acquisition being defined as playing this audio fragment.
In the embodiment of the present invention, can set up the corresponding relation of frequency range and play parameter in advance in the user terminal, the play parameter that different frequency range is corresponding can be different.For an audio fragment, that maximum default frequency range of proportion value in this audio fragment can be obtained from each default frequency range, obtain with the corresponding relation of play parameter the play parameter that default frequency range is corresponding with this from the frequency range set up in advance, this play parameter can be determined it is used for playing the play parameter of this audio fragment.Thus make different audio fragments can have different play parameter.
S308, each audio fragment of this audio file to be play according to the play parameter corresponding with this audio fragment.
In the embodiment of the present invention, each audio fragment of this audio file can be play according to play parameter corresponding with it, the play parameter that namely different audio fragments is corresponding can be different.
For example, when establishing frequency range 1 and play parameter 1 in advance, frequency range 2 and play parameter 2, the corresponding relation of frequency range 3 and play parameter 3, dividing processing is carried out to audio file to be played, to obtain audio fragment 1 ~ audio fragment 4, respectively spectrum analysis is carried out to each audio fragment, to obtain corresponding frequency distribution respectively.For audio fragment 1, the rate of specific gravity that the frequency number of the audio fragment 1 comprised respectively when frequency range 1, frequency range 2, frequency range 3 accounts for all frequency numbers of audio fragment 1 is 20%, 30%, 50%, rate of specific gravity then shared by frequency range 3 is maximum, then play parameter 3 is defined as the play parameter for audio plays fragment 1; For audio fragment 2, the rate of specific gravity that the frequency number of the audio fragment 2 comprised respectively when frequency range 1, frequency range 2, frequency range 3 accounts for all frequency numbers of audio fragment 2 is 60%, 30%, 10%, rate of specific gravity then shared by frequency range 1 is maximum, then play parameter 1 is defined as the play parameter for audio plays fragment 2; For audio fragment 3, the rate of specific gravity that the frequency number of the audio fragment 3 comprised respectively when frequency range 1, frequency range 2, frequency range 3 accounts for all frequency numbers of audio fragment 3 is 30%, 30%, 40%, rate of specific gravity then shared by frequency range 3 is maximum, then play parameter 3 is defined as the play parameter for audio plays fragment 3; For audio fragment 4, the rate of specific gravity that the frequency number of the audio fragment 4 comprised respectively when frequency range 1, frequency range 2, frequency range 3 accounts for all frequency numbers of audio fragment 4 is 20%, 60%, 20%, rate of specific gravity then shared by frequency range 2 is maximum, then play parameter 2 is defined as the play parameter for audio plays fragment 4; Then when playing this audio file, with play parameter 3 audio plays fragment 1, with play parameter 1 audio plays fragment 2, with play parameter 3 audio plays fragment 3, with play parameter 2 audio plays fragment 4.
Visible, by implementing the method described by Fig. 3, can by carrying out segmentation to audio file to be played, and segmentation is carried out spectrum analysis and is carried out Automatic adjusument play parameter, thus same audio file can be play with different play parameter, effectively improve result of broadcast.
Refer to Fig. 4, Fig. 4 is the structural representation of a kind of user terminal disclosed in the embodiment of the present invention, may be used for performing audio frequency playing method disclosed in the embodiment of the present invention.As shown in Figure 4, this user terminal can comprise:
Acquiring unit 401, for obtaining audio file to be played.
In the embodiment of the present invention, acquiring unit 401 can obtain in the audio player of user terminal the audio file to be played prestored, wherein, audio player can be the playout software (as the WindowsMediaPlayer of Microsoft, the iTunes etc. of apple) for displaying audio file, it can be the default player carried in user terminal, also can be the third party's player downloaded and installed in user terminal, the embodiment of the present invention be not construed as limiting; Acquiring unit 401 also can obtain audio file to be played from server, and now, user terminal can establish a communications link with server, and acquiring unit 401 obtains one or more audio file to be played from server.
Analytic unit 402, for carrying out spectrum analysis to this audio file, to obtain the spectrum distribution information of this audio file.
In the embodiment of the present invention, it can be that the time-domain signal of this audio file is converted into frequency-region signal analyzed that the audio file that analytic unit 402 pairs of acquiring units 401 get carries out spectrum analysis, and the object of spectrum analysis to be the amplitude of sound signal, phase place or energy through Fourier transform as to represent with frequency coordinate axle.Frequency spectrum is the distribution curve of frequency, and horizontal ordinate represents frequency (Hz), and ordinate represents level value (dBmV) or performance number (dBm).Analytic unit 402 pairs of audio files carry out the spectrum distribution information that spectrum analysis can obtain this audio file, i.e. each effective frequency composition of this audio file and the scope of effective frequency distribution, and wherein, effective frequency can refer to that amplitude is not the frequency of 0.
In the embodiment of the present invention, it can be come in the mode of the mode of software or hardware that analytic unit 402 pairs of audio files carry out spectrum analysis.When realizing spectrum analysis in the mode of software, the application program for performing spectrum analysis in the storer of user terminal, can be stored in advance; When realizing spectrum analysis in the mode of hardware, can integrated audio process chip in the user terminal, and in audio processing chip integrated frequency analysis of spectrum function, now can regard analytic unit 402 as audio processing chip.The implementation of spectrum analysis can with reference to existing multiple frequency spectrum analysis method, and the embodiment of the present invention is not construed as limiting.
Determining unit 403, for determining according to spectrum distribution information the play parameter playing this audio file.
In the embodiment of the present invention, can learn according to the spectrum distribution information of this audio file the band limits that each effective frequency in this audio file and each effective frequency distribute.The corresponding relation of frequency range and play parameter can be pre-set, the play parameter that different frequency ranges can be corresponding different.Determining unit 403 can add up the number that each frequency range comprises the effective frequency of this audio file, and obtains and comprise the maximum frequency range of the number of effective frequency, play parameter corresponding for this frequency range can be defined as the play parameter for playing this audio file.
In the embodiment of the present invention, play parameter for playing this audio file can include but not limited to broadcast sound volume size, parametric equalizer and play mode etc., wherein, balanced device may be used for the amplification quantity regulating various frequency content electric signal respectively, compensated the defect of loudspeaker and sound field by the adjustment of the electric signal to various different frequency, the parameter of balanced device can be amplification or the damping capacity of different frequency composition electric signal.Play mode can include but not limited to mode standard, classic pattern, rock and roll pattern, bass patterns, high pitch pattern etc., and the change of play mode can make that the amplification quantity of different frequency composition electric signal is also corresponding to change.
Broadcast unit 404, the play parameter for determining according to determining unit 403 plays this audio file.
In the embodiment of the present invention, when after the play parameter that determining unit 403 determines for playing this audio file, broadcast unit 404, when playing this audio file, can be play according to this play parameter.
As the optional embodiment of one, see also Fig. 5, Fig. 5 is the structural representation of another kind of user terminal disclosed in the embodiment of the present invention, may be used for performing audio frequency playing method disclosed in the embodiment of the present invention.Wherein, the user terminal shown in Fig. 5 is that the enterprising one-step optimization in basis of user terminal shown in Fig. 4 obtains.As shown in Figure 5, analytic unit 402 may further include:
First analyzes subelement 4021, for carrying out spectrum analysis to this audio file, obtains the frequency distribution of this audio file;
First computation subunit 4022, the frequency number for calculating this audio file that each default frequency range comprises according to frequency distribution accounts for the rate of specific gravity of all frequency point data of this audio file.
Correspondingly, determining unit 403 may further include:
First obtains subelement 4031, and the frequency number for obtaining this audio file comprised accounts for the maximum default frequency range of the rate of specific gravity of all frequency point data of this audio file;
Second obtains subelement 4032, for obtaining with the corresponding relation of play parameter the play parameter that default frequency range is corresponding with this from the frequency range set up in advance;
First determines subelement 4033, for the play parameter of acquisition being defined as the play parameter for playing this audio file.
As the optional embodiment of one, see also Fig. 6, Fig. 6 is the structural representation of the embodiment of the present invention another user terminal disclosed, may be used for performing audio frequency playing method disclosed in the embodiment of the present invention.Wherein, the user terminal shown in Fig. 6 is that the enterprising one-step optimization in basis of user terminal shown in Fig. 4 obtains.As shown in Figure 6, analytic unit 402 may further include:
Segmentation subelement 4023, for being divided into several audio fragments by this audio file;
Second analyzes subelement 4024, for for each audio fragment, carries out spectrum analysis to this audio fragment, obtains the frequency distribution of this audio fragment;
Second computation subunit 4025, the frequency number for calculating this audio fragment that each default frequency range comprises according to frequency distribution accounts for the rate of specific gravity of all frequency point data of this audio fragment.
Correspondingly, determining unit 403 may further include:
3rd obtains subelement 4034, and the frequency number for obtaining this audio fragment comprised accounts for the maximum default frequency range of the rate of specific gravity of all frequency point data of this audio fragment;
4th obtains subelement 4035, for obtaining with the corresponding relation of play parameter the play parameter that default frequency range is corresponding with this from the frequency range set up in advance;
Second determines subelement 4036, for the play parameter of acquisition being defined as the play parameter for playing this audio fragment;
Wherein, broadcast unit 404 specifically may be used for each audio fragment of this audio file to play according to the play parameter corresponding with this audio fragment.
Visible, implement the user terminal shown in Fig. 4 to Fig. 6, Automatic adjusument play parameter can be carried out by carrying out spectrum analysis to audio file to be played, thus can play with different play parameter for different audio file, effectively improve result of broadcast.In addition, segmentation can also be carried out to audio file to be played, and segmentation is carried out spectrum analysis and carried out Automatic adjusument play parameter, thus same audio file can be play with different play parameter, improve result of broadcast further.
Particularly, the part or all of flow process in the audio frequency playing method embodiment that the user terminal introduced in the embodiment of the present invention can implement composition graphs 1 of the present invention, Fig. 2 or Fig. 3 introduces.
Module in all embodiments of the present invention or submodule, can pass through universal integrated circuit, such as CPU, or realized by ASIC (ApplicationSpecificIntegratedCircuit, special IC).
It should be noted that, for each embodiment of the method aforesaid, in order to simple description, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not by the restriction of described sequence of movement, because according to the application, certain some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in instructions all belongs to preferred embodiment, and involved action and module might not be that the application is necessary.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, in certain embodiment, there is no the part described in detail, can see the associated description of other embodiments.
Step in embodiment of the present invention method can be carried out order according to actual needs and be adjusted, merges and delete.
Unit in embodiment of the present invention user terminal or subelement can carry out merging, divide and deleting according to actual needs.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-OnlyMemory, ROM) or random access memory (RandomAccessMemory is called for short RAM) etc.
Above a kind of audio frequency playing method disclosed in the embodiment of the present invention and user terminal are described in detail, apply specific case herein to set forth principle of the present invention and embodiment, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (10)

1. an audio frequency playing method, is characterized in that, comprising:
Obtain audio file to be played;
Spectrum analysis is carried out to described audio file, to obtain the spectrum distribution information of described audio file;
The play parameter playing described audio file is determined according to described spectrum distribution information;
Described audio file is play according to described play parameter.
2. method according to claim 1, is characterized in that, describedly carries out spectrum analysis to described audio file, to obtain the spectrum distribution information of described audio file, comprising:
Spectrum analysis is carried out to described audio file, obtains the frequency distribution of described audio file;
The frequency number calculating the described audio file that each default frequency range comprises according to the distribution of described frequency accounts for the rate of specific gravity of all frequency point data of described audio file.
3. method according to claim 2, is characterized in that, describedly determines according to described spectrum distribution information the play parameter playing described audio file, comprising:
Obtain the frequency number of described audio file comprised and account for the maximum default frequency range of the rate of specific gravity of all frequency point data of described audio file;
From the frequency range set up in advance with obtain the play parameter corresponding with described default frequency range the corresponding relation of play parameter;
The play parameter of described acquisition is defined as the play parameter for playing described audio file.
4. method according to claim 1, is characterized in that, describedly carries out spectrum analysis to described audio file, to obtain the spectrum distribution information of described audio file, comprising:
Described audio file is divided into several audio fragments;
For audio fragment described in each, spectrum analysis is carried out to described audio fragment, obtain the frequency distribution of described audio fragment;
The frequency number calculating the described audio fragment that each default frequency range comprises according to the distribution of described frequency accounts for the rate of specific gravity of all frequency point data of described audio fragment.
5. method according to claim 4, is characterized in that, describedly determines according to described spectrum distribution information the play parameter playing described audio file, comprising:
For audio fragment described in each, obtain the frequency number of described audio fragment comprised and account for the maximum default frequency range of the rate of specific gravity of all frequency point data of described audio fragment;
From the frequency range set up in advance with obtain the play parameter corresponding with described default frequency range the corresponding relation of play parameter;
The play parameter of described acquisition is defined as the play parameter for playing described audio fragment;
Wherein, describedly play described audio file according to described play parameter, comprising:
By described audio file each described in audio fragment play according to the play parameter corresponding with described audio fragment.
6. a user terminal, is characterized in that, comprising:
Acquiring unit, for obtaining audio file to be played;
Analytic unit, for carrying out spectrum analysis to described audio file, to obtain the spectrum distribution information of described audio file;
Determining unit, for determining according to described spectrum distribution information the play parameter playing described audio file;
Broadcast unit, for playing described audio file according to described play parameter.
7. user terminal according to claim 6, is characterized in that, described analytic unit comprises:
First analyzes subelement, for carrying out spectrum analysis to described audio file, obtains the frequency distribution of described audio file;
First computation subunit, the frequency number for calculating according to described frequency distribution the described audio file that each default frequency range comprises accounts for the rate of specific gravity of all frequency point data of described audio file.
8. user terminal according to claim 7, is characterized in that, described determining unit comprises:
First obtains subelement, and the frequency number for obtaining the described audio file comprised accounts for the maximum default frequency range of the rate of specific gravity of all frequency point data of described audio file;
Second obtain subelement, for from the frequency range set up in advance with obtain the play parameter corresponding with described default frequency range in the corresponding relation of play parameter;
First determines subelement, for the play parameter of described acquisition being defined as the play parameter for playing described audio file.
9. user terminal according to claim 6, is characterized in that, described analytic unit comprises:
Segmentation subelement, for being divided into several audio fragments by described audio file;
Second analyzes subelement, for for audio fragment described in each, carries out spectrum analysis to described audio fragment, obtains the frequency distribution of described audio fragment;
Second computation subunit, the frequency number for calculating according to described frequency distribution the described audio fragment that each default frequency range comprises accounts for the rate of specific gravity of all frequency point data of described audio fragment.
10. user terminal according to claim 9, is characterized in that, described determining unit comprises:
3rd obtains subelement, and for for audio fragment described in each, the frequency number obtaining the described audio fragment comprised accounts for the maximum default frequency range of the rate of specific gravity of all frequency point data of described audio fragment;
4th obtain subelement, for from the frequency range set up in advance with obtain the play parameter corresponding with described default frequency range in the corresponding relation of play parameter;
Second determines subelement, for the play parameter of described acquisition being defined as the play parameter for playing described audio fragment;
Described broadcast unit specifically for by described audio file each described in audio fragment play according to the play parameter corresponding with described audio fragment.
CN201510702788.5A 2015-10-23 2015-10-23 A kind of audio frequency playing method and user terminal Active CN105404642B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510702788.5A CN105404642B (en) 2015-10-23 2015-10-23 A kind of audio frequency playing method and user terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510702788.5A CN105404642B (en) 2015-10-23 2015-10-23 A kind of audio frequency playing method and user terminal

Publications (2)

Publication Number Publication Date
CN105404642A true CN105404642A (en) 2016-03-16
CN105404642B CN105404642B (en) 2019-03-15

Family

ID=55470132

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510702788.5A Active CN105404642B (en) 2015-10-23 2015-10-23 A kind of audio frequency playing method and user terminal

Country Status (1)

Country Link
CN (1) CN105404642B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106384603A (en) * 2016-09-30 2017-02-08 四川九洲电器集团有限责任公司 Music play method and music play device
CN106601268A (en) * 2016-12-26 2017-04-26 腾讯音乐娱乐(深圳)有限公司 Multimedia data processing method and device
CN107249080A (en) * 2017-06-26 2017-10-13 维沃移动通信有限公司 A kind of method, device and mobile terminal for adjusting audio
CN107506681A (en) * 2016-06-14 2017-12-22 智财咨询(北京)有限公司 A kind of bar code system based on sound wave
CN107878369A (en) * 2016-09-30 2018-04-06 法乐第(北京)网络科技有限公司 A kind of effect adjusting method, system and automobile
CN108418961A (en) * 2018-02-13 2018-08-17 维沃移动通信有限公司 A kind of audio frequency playing method and mobile terminal
CN110992739A (en) * 2019-12-26 2020-04-10 上海乂学教育科技有限公司 Student on-line dictation system
CN111782859A (en) * 2020-06-16 2020-10-16 腾讯音乐娱乐科技(深圳)有限公司 Audio visualization method and device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3623820B2 (en) * 1995-04-24 2005-02-23 株式会社ジャストシステム Audio processing device
CN101635160A (en) * 2009-06-17 2010-01-27 深圳市美赛达科技有限公司 Music frequency spectrum analyzing method, music frequency spectrum display device and music playing device
CN101667814A (en) * 2009-09-24 2010-03-10 深圳华为通信技术有限公司 Audio playing method and audio player
CN103177743A (en) * 2013-01-30 2013-06-26 东莞宇龙通信科技有限公司 Song playing method and device
CN103927146A (en) * 2014-04-30 2014-07-16 深圳市中兴移动通信有限公司 Sound effect self-adapting method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3623820B2 (en) * 1995-04-24 2005-02-23 株式会社ジャストシステム Audio processing device
CN101635160A (en) * 2009-06-17 2010-01-27 深圳市美赛达科技有限公司 Music frequency spectrum analyzing method, music frequency spectrum display device and music playing device
CN101667814A (en) * 2009-09-24 2010-03-10 深圳华为通信技术有限公司 Audio playing method and audio player
CN103177743A (en) * 2013-01-30 2013-06-26 东莞宇龙通信科技有限公司 Song playing method and device
CN103927146A (en) * 2014-04-30 2014-07-16 深圳市中兴移动通信有限公司 Sound effect self-adapting method and device

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107506681A (en) * 2016-06-14 2017-12-22 智财咨询(北京)有限公司 A kind of bar code system based on sound wave
CN106384603A (en) * 2016-09-30 2017-02-08 四川九洲电器集团有限责任公司 Music play method and music play device
CN107878369A (en) * 2016-09-30 2018-04-06 法乐第(北京)网络科技有限公司 A kind of effect adjusting method, system and automobile
CN106601268A (en) * 2016-12-26 2017-04-26 腾讯音乐娱乐(深圳)有限公司 Multimedia data processing method and device
CN107249080A (en) * 2017-06-26 2017-10-13 维沃移动通信有限公司 A kind of method, device and mobile terminal for adjusting audio
CN108418961A (en) * 2018-02-13 2018-08-17 维沃移动通信有限公司 A kind of audio frequency playing method and mobile terminal
CN108418961B (en) * 2018-02-13 2021-07-30 维沃移动通信有限公司 Audio playing method and mobile terminal
CN110992739A (en) * 2019-12-26 2020-04-10 上海乂学教育科技有限公司 Student on-line dictation system
CN110992739B (en) * 2019-12-26 2021-06-01 上海松鼠课堂人工智能科技有限公司 Student on-line dictation system
CN111782859A (en) * 2020-06-16 2020-10-16 腾讯音乐娱乐科技(深圳)有限公司 Audio visualization method and device and storage medium

Also Published As

Publication number Publication date
CN105404642B (en) 2019-03-15

Similar Documents

Publication Publication Date Title
CN105404642A (en) Audio playing method and user terminal
CN110809214B (en) Audio playing method, audio playing device and terminal equipment
CN109348274B (en) Live broadcast interaction method and device and storage medium
CN106550141A (en) A kind of terminal and terminal audio frequency control method for playing back and device
CN105280203A (en) Audio playing method and user equipment
CN110799936B (en) Volume adjusting method, volume adjusting device, terminal equipment and storage medium
CN107566618A (en) volume adjusting method, device, terminal device and storage medium
JP2020202549A (en) Method and apparatus for audio processing, electronic apparatus and storage medium
CN106775568A (en) Sound effect adjusting method and device and mobile terminal
CN107465824A (en) volume adjusting method, device, mobile terminal and storage medium
US11822854B2 (en) Automatic volume adjustment method and apparatus, medium, and device
CN106095384A (en) A kind of effect adjusting method and user terminal
CN111312281B (en) Touch vibration implementation method
CN103916702A (en) Method and terminal for intercepting advertisements
CN107799113A (en) Audio-frequency processing method, device, storage medium and mobile terminal
CN106886387A (en) A kind of audio data processing method and its equipment
CN107436751A (en) volume adjusting method, device, terminal device and storage medium
CN106601268B (en) Multimedia data processing method and device
CN105812919A (en) Audio multi-power-amplifier processing method and device
CN107483734A (en) volume adjusting method, device, terminal device and storage medium
CN103780214A (en) Method and device for adjusting audio equalizer
CN103390403B (en) The extracting method of MFCC feature and device
CN103295611B (en) Music Automatic Optimal system and method
CN111857473B (en) Audio playing method and device and electronic equipment
CN105005612A (en) Music file acquisition method and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

GR01 Patent grant
GR01 Patent grant