Movatterモバイル変換


[0]ホーム

URL:


CN105404642B - Audio playing method and user terminal - Google Patents

Audio playing method and user terminal
Download PDF

Info

Publication number
CN105404642B
CN105404642BCN201510702788.5ACN201510702788ACN105404642BCN 105404642 BCN105404642 BCN 105404642BCN 201510702788 ACN201510702788 ACN 201510702788ACN 105404642 BCN105404642 BCN 105404642B
Authority
CN
China
Prior art keywords
audio
audio fragment
play parameter
frequency
audio file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510702788.5A
Other languages
Chinese (zh)
Other versions
CN105404642A (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 LtdfiledCriticalGuangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510702788.5ApriorityCriticalpatent/CN105404642B/en
Publication of CN105404642ApublicationCriticalpatent/CN105404642A/en
Application grantedgrantedCritical
Publication of CN105404642BpublicationCriticalpatent/CN105404642B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本发明实施例公开了一种音频播放方法及用户终端,其中,该方法包括:获取待播放的音频文件;对所述音频文件进行频谱分析,以获得所述音频文件的频谱分布信息;根据所述频谱分布信息确定用于播放所述音频文件的播放参数;按照所述播放参数播放所述音频文件。实施本发明实施例,能够自适应调节播放音频文件的播放参数,从而有效提高音频的播放效果。

The embodiment of the present invention discloses an audio playback method and a user terminal, wherein the method comprises: obtaining an audio file to be played; performing spectrum analysis on the audio file to obtain spectrum distribution information of the audio file; determining playback parameters for playing the audio file according to the spectrum distribution information; and playing the audio file according to the playback parameters. By implementing the embodiment of the present invention, the playback parameters of the audio file can be adaptively adjusted, thereby effectively improving the audio playback effect.

Description

A kind of audio frequency playing method and user terminal
Technical field
The present invention relates to electronic technology field more particularly to a kind of audio frequency playing methods and user terminal.
Background technique
With the continuous development of user terminal and universal, the user terminals such as mobile phone have become in for people's lives can not orScarce component part.Mobile phone is not only able to satisfy the daily communication of people, additionally it is possible to for carry out audio-video broadcasting, play game,Browse the recreations such as webpage.In practice, it has been found that when playing music, in order to farthest improve hearing enjoying, Ke YitongCross and adjust play parameter in music player and improve result of broadcast, such as adjust balanced device change play mode (such as rock and roll,Allusion etc.), or volume controller is adjusted to change broadcast sound volume etc..However, different music has different styles, when using phaseWhen same play parameter plays the music of different-style, good result of broadcast cannot be not only obtained sometimes, can fit to obtain it insteadIt is anti-to reduce result of broadcast.Currently, being directed to the music of different-style, generally requires user's manual duplicate removal and play parameter is newly set, thisOne operating process is time-consuming and cumbersome, and not smart enoughization.
Summary of the invention
The embodiment of the invention discloses a kind of audio frequency playing method and user terminals, being capable of automatic adjusument broadcasting audio textThe play parameter of part, to effectively improve the result of broadcast of audio.
First aspect of the embodiment of the present invention discloses a kind of audio frequency playing method, comprising:
Obtain audio file to be played;
Spectrum analysis is carried out to the audio file, to obtain the spectrum distribution information of the audio file;
The play parameter for playing the audio file is determined according to the spectrum distribution information;
The audio file is played according to the play parameter.
In conjunction with the embodiment of the present invention in a first aspect, first aspect of the embodiment of the present invention the first possible embodimentIn, it is described that spectrum analysis is carried out to the audio file, to obtain the spectrum distribution information of the audio file, comprising:
Spectrum analysis is carried out to the audio file, obtains the frequency point distribution of the audio file;
The audio is accounted for according to the frequency point number that frequency point distribution calculates the audio file that each default frequency range includesThe rate of specific gravity of all frequency point datas of file.
In conjunction with the first possible embodiment of first aspect of the embodiment of the present invention, in first aspect of the embodiment of the present inventionSecond of possible embodiment in, it is described according to the spectrum distribution information determine for playing broadcasting for the audio filePut parameter, comprising:
The rate of specific gravity that the frequency point number for the audio file that acquisition includes accounts for all frequency point datas of the audio file is maximumDefault frequency range;
Broadcasting ginseng corresponding with the default frequency range is obtained from the corresponding relationship of the frequency range and play parameter that pre-establishNumber;
The play parameter of the acquisition is determined as to be used to play the play parameter of the audio file.
In conjunction with the embodiment of the present invention in a first aspect, first aspect of the embodiment of the present invention the third possible embodimentIn, it is described that spectrum analysis is carried out to the audio file, to obtain the spectrum distribution information of the audio file, comprising:
The audio file is divided into several audio fragments;
For audio fragment described in each, spectrum analysis is carried out to the audio fragment, obtains the audio fragmentFrequency point distribution;
The audio is accounted for according to the frequency point number that frequency point distribution calculates the audio fragment that each default frequency range includesThe rate of specific gravity of all frequency point datas of segment.
In conjunction with the third possible embodiment of first aspect of the embodiment of the present invention, in first aspect of the embodiment of the present inventionThe 4th kind of possible embodiment in, it is described according to the spectrum distribution information determine for playing broadcasting for the audio filePut parameter, comprising:
For audio fragment described in each, the frequency point number for obtaining the audio fragment for including accounts for the audio fragment instituteThere is the maximum default frequency range of the rate of specific gravity of frequency point data;
Broadcasting ginseng corresponding with the default frequency range is obtained from the corresponding relationship of the frequency range and play parameter that pre-establishNumber;
The play parameter of the acquisition is determined as to be used to play the play parameter of the audio fragment;
It is wherein, described to play the audio file according to the play parameter, comprising:
By each described audio fragment of the audio file according to play parameter corresponding with the audio fragment intoRow plays.
Second aspect of the embodiment of the present invention discloses a kind of user terminal, comprising:
Acquiring unit, for obtaining audio file to be played;
Analytical unit, for carrying out spectrum analysis to the audio file, to obtain the spectrum distribution of the audio fileInformation;
Determination unit, for determining the play parameter for playing the audio file according to the spectrum distribution information;
Broadcast unit, for playing the audio file according to the play parameter.
In conjunction with second aspect of the embodiment of the present invention, in the first possible embodiment of second aspect of the embodiment of the present inventionIn, the analytical unit includes:
First analysis subelement obtains the frequency point of the audio file for carrying out spectrum analysis to the audio fileDistribution;
First computation subunit, for calculating the audio file that each default frequency range includes according to frequency point distributionFrequency point number account for the rates of specific gravity of all frequency point datas of the audio file.
In conjunction with the first possible embodiment of second aspect of the embodiment of the present invention, in second aspect of the embodiment of the present inventionSecond of possible embodiment in, the determination unit includes:
First obtains subelement, and the frequency point number for obtaining the audio file for including accounts for all frequencies of the audio fileThe maximum default frequency range of the rate of specific gravity of point data;
Second obtain subelement, for from the corresponding relationship of the frequency range and play parameter that pre-establish obtain with it is described pre-If the corresponding play parameter of frequency range;
First determines subelement, is used to play broadcasting for the audio file for the play parameter of the acquisition to be determined asPut parameter.
In conjunction with second aspect of the embodiment of the present invention, in the third possible embodiment of second aspect of the embodiment of the present inventionIn, the analytical unit includes:
Divide subelement, for the audio file to be divided into several audio fragments;
Second analysis subelement carries out spectrum analysis to the audio fragment for being directed to each described audio fragment,Obtain the frequency point distribution of the audio fragment;
Second computation subunit, for calculating the audio fragment that each default frequency range includes according to frequency point distributionFrequency point number account for the rates of specific gravity of all frequency point datas of the audio fragment.
In conjunction with the third possible embodiment of second aspect of the embodiment of the present invention, in second aspect of the embodiment of the present inventionThe 4th kind of possible embodiment in, the determination unit includes:
Third obtains subelement, for being directed to each described audio fragment, obtains the frequency for the audio fragment for includingPoints account for the maximum default frequency range of rate of specific gravity of all frequency point datas of the audio fragment;
4th obtain subelement, for from the corresponding relationship of the frequency range and play parameter that pre-establish obtain with it is described pre-If the corresponding play parameter of frequency range;
Second determines subelement, is used to play broadcasting for the audio fragment for the play parameter of the acquisition to be determined asPut parameter;
The broadcast unit be specifically used for by each described audio fragment of the audio file according to the audioThe corresponding play parameter of segment plays out.
In the embodiment of the present invention, audio file to be played can be first obtained, and spectrum analysis is carried out to the audio file,To obtain the spectrum distribution information of the audio file, can be determined according to the spectrum distribution information for playing the audio filePlay parameter, and the audio file is played according to the play parameter.As it can be seen that implementing the embodiment of the present invention, can be broadcast by treatingThe audio file put carries out spectrum analysis and carrys out automatic adjusument play parameter, so as to be directed to different audio files with differentPlay parameter plays out, and effectively improves result of broadcast.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to needed in the embodimentAttached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, general for this fieldFor logical technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of audio frequency playing method disclosed by the embodiments of the present invention;
Fig. 2 is the flow diagram of another audio frequency playing method disclosed by the embodiments of the present invention;
Fig. 3 is the flow diagram of another audio frequency playing method disclosed by the embodiments of the present invention;
Fig. 4 is a kind of structural schematic diagram of user terminal disclosed by the embodiments of the present invention;
Fig. 5 is the structural schematic diagram of another user terminal disclosed by the embodiments of the present invention;
Fig. 6 is the structural schematic diagram of another user terminal disclosed by the embodiments of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, completeSite preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hairEmbodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative effortsExample, shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a kind of audio frequency playing method and user terminals, can be by audio text to be playedPart carry out spectrum analysis carry out automatic adjusument play parameter, so as to for different audio files with different play parameter intoRow plays, and effectively improves result of broadcast.It is described in detail separately below.
Referring to Fig. 1, Fig. 1 is a kind of flow diagram of audio frequency playing method disclosed by the embodiments of the present invention.Such as Fig. 1 instituteShow, which may comprise steps of:
S101, audio file to be played is obtained.
In the embodiment of the present invention, the available audio file to be played of user terminal, wherein user terminal may includeCell phone, tablet computer, palm PC, personal digital assistant (Personal Digital Assistant, PDA), intelligenceSpeaker, mobile internet device (Mobile Internet Device, MID), multimedia player (such as MP3, CD player), intelligenceEach Terminal Type, the embodiment of the present invention such as energy wearable device (such as smartwatch, Intelligent bracelet) are not construed as limiting.
In the embodiment of the present invention, pre-stored audio text to be played in the available audio player of user terminalPart, wherein audio player can be playout software (the Windows Media of such as Microsoft for playing audio filePlayer, iTunes of apple etc.), it can be the default player carried in user terminal, under being also possible in user terminalThird party's player of installation is carried, the embodiment of the present invention is not construed as limiting;User terminal can also obtain to be played from serverAudio file, communicated to connect at this point, user terminal can be established with server, and obtain from server it is one or more toThe audio file of broadcasting.
S102, spectrum analysis is carried out to the audio file, to obtain the spectrum distribution information of the audio file.
In the embodiment of the present invention, carrying out spectrum analysis to the audio file got be can be the time domain of the audio fileSignal is converted into frequency-region signal and is analyzed, and the purpose of spectrum analysis is the amplitude, phase or energy of audio signal to pass throughFourier transformation is to be indicated with frequency coordinate axis.Frequency spectrum is the distribution curve of frequency, and abscissa indicates frequency (Hz), ordinateIndicate level value (dBmV) or performance number (dBm).The frequency spectrum of the audio file can be obtained by carrying out spectrum analysis to audio fileThe range of distributed intelligence, i.e. each effective frequency ingredient of the audio file and effective frequency distribution, wherein effective frequency canWith the frequency that refer to amplitude not be 0.
In the embodiment of the present invention, audio file progress spectrum analysis can be in the form of software or the mode of hardware is comeIt completes.When in the form of software to realize spectrum analysis, it can be stored in advance in the memory of user terminal for executingThe application program of spectrum analysis;It, can be by collecting audio in the user terminal when in a manner of hardware to realize spectrum analysisFrequency processing chip, and spectrum analysis function is integrated in audio processing chip.The implementation of spectrum analysis can refer to existingA variety of frequency spectrum analysis methods, the embodiment of the present invention is not construed as limiting.
S103, the play parameter for playing the audio file is determined according to spectrum distribution information.
In the embodiment of the present invention, it can be learnt according to the spectrum distribution information of the audio file each in the audio fileThe band limits that effective frequency and each effective frequency are distributed.Frequency range pass corresponding with play parameter can be presetSystem, different frequency ranges can correspond to different play parameter.The effective frequency that each frequency range includes the audio file can be countedNumber, and obtain include effective frequency the largest number of frequency ranges, the corresponding play parameter of the frequency range can be determined as usingIn the play parameter for playing the audio file.
In the embodiment of the present invention, it is big that the play parameter for playing the audio file can include but is not limited to broadcast sound volumeSmall, parametric equalizer and play mode etc., wherein balanced device can be used for adjusting putting for various frequency content electric signals respectivelyLargely, the defect of loudspeaker and sound field is compensated by the adjusting of the electric signal to various different frequencies, the parameter of balanced device canTo be the amplification or attenuation of different frequency ingredient electric signal.Play mode can include but is not limited to mode standard, classic mouldThe variation of formula, rock and roll mode, bass patterns, high pitch mode etc., play mode can make different frequency ingredient electric signalAmplification quantity also accordingly changes.
S104, the audio file is played according to determining play parameter.
In the embodiment of the present invention, after the play parameter for playing the audio file has been determined, audio text is being playedWhen part, it can be played out according to the play parameter.
In the embodiment of the present invention, the audio file can be played in user terminal itself according to determining play parameter,The audio file and the play parameter can also be associated, be sent it on the external equipment being connected with user terminalIt plays out, so that external equipment plays the audio file according to the play parameter.Wherein, external equipment may include but unlimitedIn cell phone, tablet computer, palm PC, PDA, intelligent sound box, MID, MP3, CD player, smartwatch, Intelligent bracelet etc..
In the method depicted in fig. 1, audio file to be played can be first obtained, and frequency spectrum is carried out to the audio fileAnalysis can be determined according to the spectrum distribution information for playing the audio with obtaining the spectrum distribution information of the audio fileThe play parameter of file, and the audio file is played according to the play parameter.By implementing method described in Fig. 1, Neng GoutongIt crosses and automatic adjusument play parameter is come to audio file progress spectrum analysis to be played, so as to be directed to different audio filesIt is played out with different play parameter, effectively improves result of broadcast.
Referring to Fig. 2, Fig. 2 is the flow diagram of another audio frequency playing method disclosed by the embodiments of the present invention.Such as Fig. 2Shown, which may comprise steps of:
S201, audio file to be played is obtained.
S202, spectrum analysis is carried out to the audio file, obtains the frequency point distribution of the audio file.
In the embodiment of the present invention, the time-domain signal of the audio file is converted into frequency-region signal, and then the sound can be obtainedThe distribution situation of each frequency in the frequency spectrum of frequency file, according to the distribution situation of frequency it can be concluded that frequency point is distributed.Here frequency pointIt can be regarded as the number of frequency, also can be regarded as the number of frequency.For example, according to 10Hz frequency interval from 810Hz,820Hz, 830Hz ... 900MHz point is 10 frequencies, and each frequency is numbered, from 1,2,3,4 ... 10, theseThe number of frequency can regard frequency point as.
S203, the audio file is accounted for according to the frequency point number that frequency point distribution calculates the audio file that each default frequency range includesThe rate of specific gravity of all frequency point datas.
In the embodiment of the present invention, several default frequency ranges can be set in advance, and be distributed according to the frequency point of acquisition to countEach default frequency range includes that the frequency point number of the audio file accounts for the rate of specific gravity of all frequency point numbers of the audio file.For example, one pre-If the frequency point number in frequency range including the audio file is 200, total frequency point number of the audio file is 1000, then this presets frequency rangeRate of specific gravity is 20%.
The rate of specific gravity that the frequency point number for the audio file that S204, acquisition include accounts for all frequency point datas of the audio file is maximumDefault frequency range.
S205, it is obtained from the corresponding relationship of the frequency range and play parameter that pre-establish and presets the corresponding broadcasting of frequency range with thisParameter.
S206, the play parameter that will acquire are determined as the play parameter for playing the audio file.
In the embodiment of the present invention, the corresponding relationship of frequency range and play parameter can be established in the user terminal in advance, it is differentThe corresponding play parameter of frequency range can be different, for example, frequency range 1 corresponds to play parameter 1, the corresponding play parameter 2 of frequency range 2.It can be fromThat maximum default frequency range of rate of specific gravity is obtained in each default frequency range, is closed from the frequency range pre-established is corresponding with play parameterIt is obtained in system and presets the corresponding play parameter of frequency range with this, which can be determined that it is used to play the audio filePlay parameter.
S207, the audio file is played according to determining play parameter.
For example, when having pre-established frequency range 1 and play parameter 1, frequency range 2 and play parameter 2, frequency range 3 and broadcasting are joinedThe corresponding relationship of number 3 carries out spectrum analysis to audio file to be played, to obtain the frequency point distribution of the audio file, when frequencyThe rate of specific gravity that the frequency point number for the audio file that section 1, frequency range 2, frequency range 3 respectively include accounts for all frequency point numbers of the audio file is20%, 30%, 50%, then rate of specific gravity shared by frequency range 3 is maximum, then is determined as play parameter 3 being used to play the audio filePlay parameter, and the audio file is played according to play parameter 3.
As it can be seen that by implementing method described in Fig. 2, can by audio file to be played carry out spectrum analysis comeAutomatic adjusument play parameter effectively improves so as to be played out for different audio files with different play parameterResult of broadcast.
Referring to Fig. 3, Fig. 3 is the flow diagram of another audio frequency playing method disclosed by the embodiments of the present invention.Such as Fig. 3Shown, which may comprise steps of:
S301, audio file to be played is obtained.
S302, the audio file is divided into several audio fragments.
In the embodiment of the present invention, which can be split according to total duration, appearance when can be divided intoSeveral same audio fragments, can also being divided into duration, several equal audio fragments, the embodiment of the present invention are not construed as limiting.
S303, it is directed to each audio fragment, spectrum analysis is carried out to the audio fragment, obtains the frequency point of the audio fragmentDistribution.
In the embodiment of the present invention, each audio fragment that can be divided respectively to the audio file carries out spectrum analysis,To obtain the frequency point distribution of each audio fragment respectively.
S304, the audio fragment is accounted for according to the frequency point number that frequency point distribution calculates the audio fragment that each default frequency range includesThe rate of specific gravity of all frequency point datas.
Several default frequency ranges can be arranged in advance and carrying out frequency spectrum for an audio fragment for the embodiment of the present inventionAfter analysis, the specific gravity that the frequency point number that each default frequency range includes the audio fragment accounts for the total frequency point number of the audio fragment can be countedValue.
The rate of specific gravity that the frequency point number for the audio fragment that S305, acquisition include accounts for all frequency point datas of the audio fragment is maximumDefault frequency range.
S306, it is obtained from the corresponding relationship of the frequency range and play parameter that pre-establish and presets the corresponding broadcasting of frequency range with thisParameter.
S307, the play parameter that will acquire are determined as the play parameter for playing the audio fragment.
In the embodiment of the present invention, the corresponding relationship of frequency range and play parameter can be established in the user terminal in advance, it is differentThe corresponding play parameter of frequency range can be different.For an audio fragment, can obtain from each default frequency range in the audioThat maximum default frequency range of proportion value, obtains from the corresponding relationship of the frequency range and play parameter that pre-establish in segmentThe corresponding play parameter of frequency range is preset with this, which capable of being determined to, it is used to play the broadcasting of audio fragment ginsengNumber.So that different audio fragments can have different play parameter.
S308, each audio fragment of the audio file is broadcast according to play parameter corresponding with the audio fragmentIt puts.
It, can be by each audio fragment of the audio file according to corresponding play parameter in the embodiment of the present inventionIt plays out, i.e., different audio fragments corresponding play parameter can be different.
For example, when having pre-established frequency range 1 and play parameter 1, frequency range 2 and play parameter 2, frequency range 3 and broadcasting are joinedThe corresponding relationship of number 3 is split processing to audio file to be played, to obtain 1~audio fragment of audio fragment 4, respectivelySpectrum analysis is carried out to each audio fragment, to obtain corresponding frequency point distribution respectively.For audio fragment 1, when frequency range 1, frequencyThe frequency point number of audio fragment 1 that section 2, frequency range 3 respectively include account for the rate of specific gravity of all frequency point numbers of audio fragment 1 be 20%, 30%,50%, then rate of specific gravity shared by frequency range 3 is maximum, then is determined as play parameter 3 being used to play the play parameter of audio fragment 1;For audio fragment 2, when the frequency point number for the audio fragment 2 that frequency range 1, frequency range 2, frequency range 3 respectively include accounts for all frequencies of audio fragment 2The rate of specific gravity of points is 60%, 30%, 10%, then rate of specific gravity shared by frequency range 1 is maximum, then is determined as being used for by play parameter 1Play the play parameter of audio fragment 2;For audio fragment 3, when the audio fragment 3 that frequency range 1, frequency range 2, frequency range 3 respectively includeFrequency point number to account for the rate of specific gravity of all frequency point numbers of audio fragment 3 be 30%, 30%, 40%, then rate of specific gravity shared by frequency range 3 is mostGreatly, then play parameter 3 is determined as being used to play the play parameter of audio fragment 3;For audio fragment 4, when frequency range 1, frequency range2, the frequency point number for the audio fragment 4 that frequency range 3 respectively includes account for all frequency point numbers of audio fragment 4 rate of specific gravity be 20%, 60%,20%, then rate of specific gravity shared by frequency range 2 is maximum, then is determined as play parameter 2 being used to play the play parameter of audio fragment 4;Then when playing the audio file, audio fragment 1 is played with play parameter 3, audio fragment 2 is played with play parameter 1, to playParameter 3 plays audio fragment 3, plays audio fragment 4 with play parameter 2.
As it can be seen that by method described in implementing Fig. 3, it can be by being segmented to audio file to be played, and divideDuan Jinhang spectrum analysis carrys out automatic adjusument play parameter, so as to carry out same audio file with different play parameterIt plays, effectively improves result of broadcast.
Referring to Fig. 4, Fig. 4 is a kind of structural schematic diagram of user terminal disclosed by the embodiments of the present invention, can be used for holdingRow audio frequency playing method disclosed by the embodiments of the present invention.As shown in figure 4, the user terminal may include:
Acquiring unit 401, for obtaining audio file to be played.
In the embodiment of the present invention, in the audio player of the available user terminal of acquiring unit 401 it is pre-stored toThe audio file of broadcasting, wherein audio player can be the playout software for playing audio file (such as MicrosoftWindows Media Player, iTunes of apple etc.), it can be the default player carried in user terminal, it can also be withIt is third party's player that installation is downloaded in user terminal, the embodiment of the present invention is not construed as limiting;Acquiring unit 401 can also be from clothesAudio file to be played is obtained in business device, is communicated to connect at this point, user terminal can be established with server, acquiring unit 401One or more audio files to be played are obtained from server.
Analytical unit 402, for carrying out spectrum analysis to the audio file, to obtain the spectrum distribution letter of the audio fileBreath.
In the embodiment of the present invention, analytical unit 402 carries out spectrum analysis to the audio file that acquiring unit 401 is got canTo be that the time-domain signal of the audio file is converted into frequency-region signal to be analyzed, the purpose of spectrum analysis is audio signalAmplitude, phase or energy by Fourier transformation be to be indicated with frequency coordinate axis.Frequency spectrum is the distribution curve of frequency, horizontal seatMark indicates frequency (Hz), and ordinate indicates level value (dBmV) or performance number (dBm).Analytical unit 402 carries out audio fileSpectrum analysis can obtain the spectrum distribution information of the audio file, i.e., each effective frequency ingredient of the audio file and haveImitate the range of frequency distribution, wherein the frequency that it is 0 that effective frequency, which can be fingerbreadth value not,.
In the embodiment of the present invention, analytical unit 402 to audio file carry out spectrum analysis can be in the form of software orThe mode of hardware is completed.When in the form of software to realize spectrum analysis, it can be deposited in advance in the memory of user terminalContain the application program for executing spectrum analysis;It, can be in user terminal when in a manner of hardware to realize spectrum analysisMiddle integrated audio handles chip, and spectrum analysis function is integrated in audio processing chip, can see analytical unit 402 at this timeWork is audio processing chip.The implementation of spectrum analysis can refer to existing a variety of frequency spectrum analysis methods, and the present invention is implementedExample is not construed as limiting.
Determination unit 403, for determining the play parameter for playing the audio file according to spectrum distribution information.
In the embodiment of the present invention, it can be learnt according to the spectrum distribution information of the audio file each in the audio fileThe band limits that effective frequency and each effective frequency are distributed.Frequency range pass corresponding with play parameter can be presetSystem, different frequency ranges can correspond to different play parameter.It includes the audio file that determination unit 403, which can count each frequency range,Effective frequency number, and obtain include effective frequency the largest number of frequency ranges, can be by the frequency range corresponding broadcastings ginsengNumber is determined as the play parameter for playing the audio file.
In the embodiment of the present invention, it is big that the play parameter for playing the audio file can include but is not limited to broadcast sound volumeSmall, parametric equalizer and play mode etc., wherein balanced device can be used for adjusting putting for various frequency content electric signals respectivelyLargely, the defect of loudspeaker and sound field is compensated by the adjusting of the electric signal to various different frequencies, the parameter of balanced device canTo be the amplification or attenuation of different frequency ingredient electric signal.Play mode can include but is not limited to mode standard, classic mouldThe variation of formula, rock and roll mode, bass patterns, high pitch mode etc., play mode can make different frequency ingredient electric signalAmplification quantity also accordingly changes.
Broadcast unit 404, the play parameter for determining according to determination unit 403 play the audio file.
In the embodiment of the present invention, after determination unit 403 has determined the play parameter for playing the audio file, playUnit 404 can be played out when playing the audio file according to the play parameter.
As an alternative embodiment, please refer to fig. 5, Fig. 5 is another use disclosed by the embodiments of the present inventionThe structural schematic diagram of family terminal can be used for executing audio frequency playing method disclosed by the embodiments of the present invention.Wherein, shown in fig. 5User terminal is to advanced optimize to obtain on the basis of user terminal shown in Fig. 4.As shown in figure 5, analytical unit 402 canTo further comprise:
First analysis subelement 4021 obtains the frequency point of the audio file for carrying out spectrum analysis to the audio fileDistribution;
First computation subunit 4022, for calculating the audio file that each default frequency range includes according to frequency point distributionFrequency point number accounts for the rate of specific gravity of all frequency point datas of the audio file.
Correspondingly, determination unit 403 may further include:
First obtains subelement 4031, and the frequency point number for obtaining the audio file for including accounts for all frequencies of the audio fileThe maximum default frequency range of the rate of specific gravity of point data;
Second obtains subelement 4032, for obtaining and being somebody's turn to do from the corresponding relationship of the frequency range and play parameter that pre-establishThe default corresponding play parameter of frequency range;
First determines subelement 4033, and the play parameter for will acquire is determined as the broadcasting for playing the audio fileParameter.
As an alternative embodiment, referring to Figure 6 together, Fig. 6 is another use disclosed by the embodiments of the present inventionThe structural schematic diagram of family terminal can be used for executing audio frequency playing method disclosed by the embodiments of the present invention.Wherein, shown in fig. 6User terminal is to advanced optimize to obtain on the basis of user terminal shown in Fig. 4.As shown in fig. 6, analytical unit 402 canTo further comprise:
Divide subelement 4023, for the audio file to be divided into several audio fragments;
Second analysis subelement 4024 carries out spectrum analysis to the audio fragment, obtains for being directed to each audio fragmentObtain the frequency point distribution of the audio fragment;
Second computation subunit 4025, for calculating the audio fragment that each default frequency range includes according to frequency point distributionFrequency point number accounts for the rate of specific gravity of all frequency point datas of the audio fragment.
Correspondingly, determination unit 403 may further include:
Third obtains subelement 4034, and the frequency point number for obtaining the audio fragment for including accounts for all frequencies of the audio fragmentThe maximum default frequency range of the rate of specific gravity of point data;
4th obtains subelement 4035, for obtaining and being somebody's turn to do from the corresponding relationship of the frequency range and play parameter that pre-establishThe default corresponding play parameter of frequency range;
Second determines subelement 4036, and the play parameter for will acquire is determined as the broadcasting for playing the audio fragmentParameter;
Wherein, broadcast unit 404 specifically can be used for by each audio fragment of the audio file according to the audioThe corresponding play parameter of segment plays out.
As it can be seen that implement user terminal shown in fig. 4 to fig. 6, it can be by carrying out frequency spectrum point to audio file to be playedAnalysis carrys out automatic adjusument play parameter, so as to be played out for different audio files with different play parameter, effectivelyImprove result of broadcast.Further, it is also possible to be segmented to audio file to be played, and it is segmented progress spectrum analysis and comes adaptivelyPlay parameter is adjusted, so as to play out same audio file with different play parameter, further increases broadcasting effectFruit.
Specifically, the user terminal introduced in the embodiment of the present invention can be implemented the present invention and combine Fig. 1, Fig. 2 or Fig. 3 introductionAudio frequency playing method embodiment in some or all of process.
Module or submodule in all embodiments of the invention, can be by universal integrated circuit, such as CPU, or passes throughASIC (Application Specific Integrated Circuit, specific integrated circuit) Lai Shixian.
It should be noted that for simple description, therefore, it is stated as a systems for each embodiment of the method above-mentionedThe combination of actions of column, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described, becauseFor according to the application, certain some step be can be performed in other orders or simultaneously.Secondly, those skilled in the art also shouldKnow, the embodiments described in the specification are all preferred embodiments, related actions and modules not necessarily this ShenIt please be necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in some embodimentPart, reference can be made to the related descriptions of other embodiments.
The steps in the embodiment of the present invention can be sequentially adjusted, merged and deleted according to actual needs.
Unit or sub-unit in user terminal of the embodiment of the present invention can be merged according to actual needs, divides and be deletedSubtract.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be withRelevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage mediumIn, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magneticDish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random AccessMemory, abbreviation RAM) etc..
A kind of audio frequency playing method disclosed by the embodiments of the present invention and user terminal are described in detail above, hereinIn apply that a specific example illustrates the principle and implementation of the invention, the explanation of above example is only intended to sidesAssistant solves method and its core concept of the invention;At the same time, for those skilled in the art, think of according to the present inventionThink, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not be construed as pairLimitation of the invention.

Claims (6)

CN201510702788.5A2015-10-232015-10-23Audio playing method and user terminalActiveCN105404642B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201510702788.5ACN105404642B (en)2015-10-232015-10-23Audio playing method and user terminal

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201510702788.5ACN105404642B (en)2015-10-232015-10-23Audio playing method and user terminal

Publications (2)

Publication NumberPublication Date
CN105404642A CN105404642A (en)2016-03-16
CN105404642Btrue CN105404642B (en)2019-03-15

Family

ID=55470132

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201510702788.5AActiveCN105404642B (en)2015-10-232015-10-23Audio playing method and user terminal

Country Status (1)

CountryLink
CN (1)CN105404642B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN107506681A (en)*2016-06-142017-12-22智财咨询(北京)有限公司A kind of bar code system based on sound wave
CN107878369A (en)*2016-09-302018-04-06法乐第(北京)网络科技有限公司A kind of effect adjusting method, system and automobile
CN106384603A (en)*2016-09-302017-02-08四川九洲电器集团有限责任公司Music play method and music play device
CN106601268B (en)*2016-12-262020-11-27腾讯音乐娱乐(深圳)有限公司Multimedia data processing method and device
CN107249080A (en)*2017-06-262017-10-13维沃移动通信有限公司A kind of method, device and mobile terminal for adjusting audio
CN108418961B (en)*2018-02-132021-07-30维沃移动通信有限公司 A kind of audio playback method and mobile terminal
CN110992739B (en)*2019-12-262021-06-01上海松鼠课堂人工智能科技有限公司Student on-line dictation system
CN111782859B (en)*2020-06-162024-10-11腾讯音乐娱乐科技(深圳)有限公司Audio visualization method, device and storage medium

Citations (5)

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

Patent Citations (5)

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

Also Published As

Publication numberPublication date
CN105404642A (en)2016-03-16

Similar Documents

PublicationPublication DateTitle
CN105404642B (en)Audio playing method and user terminal
CN108899044B (en) Voice signal processing method and device
CN101667814B (en)Audio playing method and audio player
CN106020765B (en)A kind of effect adjusting method and device
CN109767777A (en) A kind of mixing method of live broadcast software
WO2020052665A1 (en)Live broadcast interaction method and apparatus, and storage medium
CN106775568A (en)Sound effect adjusting method and device and mobile terminal
CN103456334B (en)Audio file play method and playing device
CN106161724A (en)Audio output control method and device
CN112866770B (en)Equipment control method and device, electronic equipment and storage medium
CN103347070B (en)Push method, terminal, server and the system of speech data
CN101783656A (en)Loudness control method, module and device of stereo system
CN110517708B (en)Audio processing method and device and computer storage medium
CN103915086A (en)Information processing method, device and system
CN106601268B (en)Multimedia data processing method and device
CN105280203B (en)A kind of audio frequency playing method and user equipment
CN106909360A (en)A kind of electronic installation, sound play device and balanced device method of adjustment
CN113192524B (en)Audio signal processing method and device
CN111354335A (en) A speech recognition test method, device, storage medium and terminal equipment
CN101516055B (en)Method and device capable of simulating three-dimensional echo sound effect in different acoustic environments
CN112017622A (en)Audio data alignment method, device, equipment and storage medium
CN109743658A (en)A kind of information processing method and electronic equipment
CN111314553B (en) Volume adjustment method, device, terminal and storage medium
CN109243472A (en)A kind of audio-frequency processing method and audio processing system
CN104750868A (en)Method and device for establishing multi-media file playlist

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
CB02Change of applicant information
CB02Change 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.

GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp