CN103338305A - Mobile phone and method for processing playing of audio file adopting same - Google Patents

Mobile phone and method for processing playing of audio file adopting same Download PDF

Info

Publication number
CN103338305A
CN103338305A CN 201310245481 CN201310245481A CN103338305A CN 103338305 A CN103338305 A CN 103338305A CN 201310245481 CN201310245481 CN 201310245481 CN 201310245481 A CN201310245481 A CN 201310245481A CN 103338305 A CN103338305 A CN 103338305A
Authority
CN
China
Prior art keywords
audio file
voice output
power
output power
power spectrum
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.)
Withdrawn
Application number
CN 201310245481
Other languages
Chinese (zh)
Inventor
黄家旺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhangjiagang Free Trade Zone Runtong Electronic Technology R & D Co Ltd
Original Assignee
Zhangjiagang Free Trade Zone Runtong Electronic Technology R & D Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhangjiagang Free Trade Zone Runtong Electronic Technology R & D Co Ltd filed Critical Zhangjiagang Free Trade Zone Runtong Electronic Technology R & D Co Ltd
Priority to CN 201310245481 priority Critical patent/CN103338305A/en
Publication of CN103338305A publication Critical patent/CN103338305A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Auxiliary Devices For Music (AREA)

Abstract

A method for processing playing of an audio file by a mobile phone comprises a step of plying the audio file, and as well as the following steps: step A: setting a graphing rule; step B, acquiring a voice output power or a voice output power spectrum of the audio file according to pulse-code modulation waveform at the present moment of the audio file output by an audio decoder; step C, drawing an output pattern at the present moment according to the set graphing rule and the voice output power or the voice output power spectrum; and step D, forming a pattern corresponding to the present moment according to voice output information by a central processor, and displaying the pattern on an liquid crystal display screen, wherein a plurality of levels are divided according to the size of power, and as for the power or the power spectrum in each level, the pattern has different colors.

Description

The method that a kind of mobile phone and audio file thereof are play
Technical field
The present invention relates to the multimedia processing technology field of mobile phone, particularly the method for a kind of mobile phone and audio file thereof broadcast.
Background technology
At present, communication terminal has become people's routine work, and requisite common tool in the life.Simultaneously, along with the progress of microelectric technique and software engineering, the volume of mobile communication product is more and more littler, and function also from strength to strength.The communication terminal of market possesses multimedia function mostly at present, and simultaneously, the multimedia function of communication terminal also presents the trend that becomes increasingly abundant, and has almost become the standard configuration of present mobile phone as the playing function of video file, audio file.
Yet, in the existing mobile phone, when its displaying audio file (as the audio file of MP3 format, the audio file of Wav form, the audio file of Midi form etc.), the user can only listen to the output of sound monotonously by the voice output unit (as earphone, loud speaker etc.) of mobile phone, and can't experience the broadcast of audio files the while in conjunction with the sense of hearing and vision.
Summary of the invention
The purpose of this invention is to provide the method that a kind of mobile phone and audio file thereof are play, when mobile phone carries out the broadcast of audio file, simultaneously the decoded spectrum information of audio file is shown to liquid crystal display screen with graphics mode, enrich user's audiovisual experience.To achieve these goals, the invention provides a kind of mobile phone, comprise audio decoder, central processing unit and LCD screen, wherein, also comprise: voice output information acquisition module is used for obtaining according to the pulse code modulation waveform of the audio file of current time audio decoder output the voice output information of audio file; Described central processing unit is used for forming according to this voice output information the output pattern of current time correspondence, and described output pattern is shown to LCD screen.
Above-mentioned mobile phone, wherein, described voice output information is voice output power spectrum or voice output power.
Above-mentioned mobile phone, wherein, when described voice output information was the voice output power spectrum, described voice output information acquisition module specifically carried out the voice output power spectrum that the current time correspondence is obtained in fast Fourier transform by the pulse code modulation waveform to audio file.
In order to realize that better above-mentioned purpose, the present invention also provide a kind of method of handset processes audio file broadcast, comprise the step of displaying audio file, wherein, also comprise:
Steps A is obtained the voice output information of audio file according to the pulse code modulation waveform of the current time of the audio file of audio decoder output;
Step B, central processing unit are shown to LCD screen with this figure after forming the current time graph of a correspondence according to this voice output information.
Above-mentioned method, wherein, described voice output information is voice output power spectrum or voice output power.
Above-mentioned method, wherein, among the described step B, described central processing unit specifically forms the current time graph of a correspondence according to described voice output information and output pattern drawing rule.
Above-mentioned method, wherein, when described voice output information was the voice output power spectrum, described steps A was specifically carried out the voice output power spectrum that the current time correspondence is obtained in fast Fourier transform by the pulse code modulation waveform to audio file.
Above-mentioned method wherein, is divided a plurality of levels according to the size of power, makes that for the power in each level or power spectrum described figure has different colors.
The method that mobile phone of the present invention and audio file thereof are play, in the playing process of audio file, by the voice output information of audio file is shown to LCD screen in the mode of figure, the effect of visualization that provides audio files to play enriches user's audiovisual experience.
Description of drawings
Fig. 1 is the schematic flow sheet of the method for handset processes audio file broadcast of the present invention.
Embodiment
When the mobile phone displaying audio file, the method that mobile phone of the present invention and audio file thereof are play is at first obtained the voice output information of decoded audio file, then this voice output information is shown to LCD screen with graphics mode, enriches user's audiovisual experience.
Mobile phone of the present invention comprises audio decoder, central processing unit and LCD screen, also comprises voice output information acquisition module, wherein:
This voice output information acquisition module is used for obtaining the voice output information of audio file according to PCM (Pulse Code Modulation, the pulse code modulation) waveform of the audio file of current time audio decoder output;
This central processing unit is shown to LCD screen for after forming the output pattern of current time correspondence according to this voice output information with this figure.
At this, this current moment is a relative concept, and when audio file was play, decoder output PCM waveform was a continuous process, suppose the processing that voice output information acquisition module obtains voice output information constantly at t1, then this current time of handling correspondence is the t1 moment.
Suppose the processing that voice output information acquisition module once obtains voice output information every 0.01s, the current time of this processing is t1 constantly the time, and then the current time of next time handling is t1+0.01s.
The method that handset processes audio file of the present invention is play comprises as shown in Figure 1:
Step 21, displaying audio file;
Step 22 is obtained the voice output information of audio file according to the PCM waveform of the current time of the audio file of audio decoder output;
Step 23, central processing unit are shown to LCD screen with this figure after forming the current time graph of a correspondence according to this voice output information.
At this, this voice output information can be voice output power spectrum, power etc.
<the first embodiment 〉
In the first embodiment of the present invention, be that voice output power spectrum power is that example is elaborated with voice output information.
When voice output information was voice output power spectrum (power output of each frequency range in the whole frequency range of sound in its correspondence of exporting after being the audio file decoding), this voice output information acquisition module specifically carried out the voice output power spectrum that fast Fourier transform obtains the current time correspondence by the PCM waveform to audio file.Comprise these 4 frequency ranges of A1, A2, A3 and A4 in this hypothesis, the voice output power spectrum that repeatedly obtains is as follows:
T1 constantly is respectively 5 unit powers, 4 unit powers, 3 unit powers and 2 unit powers corresponding to the power of A1, A2, A3 and A4 frequency range;
T2 constantly is respectively 2 unit powers, 3 unit powers, 4 unit powers and 5 unit powers corresponding to the power of A1, A2, A3 and A4 frequency range;
T3 constantly is respectively 1 unit power, 3 unit powers, 4 unit powers and 2 unit powers corresponding to the power of A1, A2, A3 and A4 frequency range;
……
Tn constantly is respectively 3 unit powers, 4 unit powers, 5 unit powers and 6 unit powers corresponding to the power of A1, A2, A3 and A4 frequency range.
At this, this time interval can arrange according to demand, as is set to less than 0.4 second, and then according to the persistence of vision, the figure of follow-up output is continuous In the view of the user.
The step 23 of method of the present invention specifically comprises:
Step 231 arranges the drawing rule of figure, and at this, the drawing rule of this figure comprises two parts content: the outgoing position of the figure of corresponding frequency band and how to represent the different capacity of frequency range;
Step 232 is obtained the voice output power spectrum of current time,
Step 233 is according to the output pattern of graphic plotting rule and sound output power spectrum drafting current time;
Step 234 outputs to LCDs with figure;
Step 235, finish the output of this figure after, return step 232, play until audio file and finish.
In the step 232, suppose that current time is the t1 moment, then obtain t1 and be respectively 5 unit powers, 4 unit powers, 3 unit powers and 1 unit power corresponding to the power of A1, A2, A3 and A4 frequency range constantly, in step 233, then according to output t1 moment graph of a correspondence behind graphic plotting rule and the t1 voice output power spectrum graphing constantly;
After finishing t1 figure output constantly, can return step 232, can obtain the t2 moment this moment corresponding to the power of A1, A2, A3 and A4 frequency range, and then according to exporting t2 graph of a correspondence constantly behind graphic plotting rule and the t2 voice output power spectrum graphing constantly;
The above-mentioned process that circulates is play until audio file and to be finished.
Further combined with concrete graphic plotting rule above-mentioned step is elaborated below.
The drawing rule of supposing figure is as follows:
The outgoing position of the figure of corresponding frequency band is the rectangular area of arranging in regular turn;
Use the rectangle number to represent the different capacity of frequency range.
Then according to above-mentioned rule, the concrete drawing process of described step 233 is as described below:
Because in the A1 frequency range, the power of output sound is 5 unit powers, then vertically draw 5 rectangles at the outgoing position of A1 frequency range correspondence;
Because in the A2 frequency range, the power of output sound is 4 unit powers, then vertically draw 4 rectangles at the outgoing position of A2 frequency range correspondence;
The rest may be inferred, in the t1 corresponding output pattern of the moment that obtains at last:
The outgoing position of A1, A2, A3 and A4 frequency range is from left to right arranged in regular turn;
Comprise 5,4,3,2 little rectangles in the outgoing position of A1, A2, A3 and A4 frequency range respectively, in the expression t1 moment, corresponding to A1, A2, A3 and A4 frequency range, the power of output sound is respectively 5 unit powers, 4 unit powers, 3 unit powers and 1 unit power.
Certainly, can also further characterize different power by color, namely to the different colors of filling correspondence of the rectangle in the outgoing position of A1, A2, A3 and A4 frequency range according to the power of output sound, at this moment, graphic change not only height rises and falls, and color also changes simultaneously.
Certainly, also color can be represented the difference of power separately, perhaps other modes (as utilizing the height of single rectangular) are represented the difference of power, owing to only be the different of the form of expression with the difference of aforesaid way, do not repeat them here.
<the second embodiment 〉
In the second embodiment of the present invention, be that power output is that example is elaborated with voice output information.
When voice output information was voice output power, this voice output information acquisition module specifically obtained the voice output power of current time correspondence by the PCM waveform to audio file.As follows at each voice output power that constantly obtains of this hypothesis:
In the t1 moment, voice output power is 5 unit powers;
In the t2 moment, voice output power is 4 unit powers;
In the t3 moment, voice output power is 5 unit powers;
In the t4 moment, voice output power is 3 unit powers;
In the tn moment, voice output power is 1 unit power.
……
At this, this time interval can arrange according to demand, as is set to less than 0.4 second, and then according to the persistence of vision, the figure of follow-up output is continuous In the view of the user.
The step of method of the present invention specifically comprises:
Step 231 ', the drawing rule of figure is set, at this, the drawing rule of this figure comprises two parts content: the outgoing position of figure with how to represent different voice output power;
Step 232 ', obtain the voice output power of current time, be 5 unit powers;
Step 233 ', according to the output pattern of graphic plotting rule and sound power output drafting current time;
Step 234 ', figure is outputed to LCDs;
Step 235 ', finish the output of this figure after, return step 232 ' is play until audio file and to be finished.
Step 232 ' in, supposing that current time is the t1 moment, then obtain the t1 voice output power of correspondence constantly, is 5 unit powers, in step 233 ' in, then according to output t1 moment graph of a correspondence behind graphic plotting rule and the t1 voice output power graphing constantly;
After finishing t1 figure output constantly, can return step 232 ', can obtain t2 corresponding voice output power of the moment this moment, and then according to output t2 moment graph of a correspondence behind graphic plotting rule and the t2 voice output power graphing constantly;
The above-mentioned process that circulates is play until audio file and to be finished.
Further combined with concrete graphic plotting rule above-mentioned step is elaborated below.
The drawing rule of supposing figure is as follows:
The outgoing position of figure is the rectangular area;
Utilize the difference of rectangle number to represent different voice output power.
Above-mentioned is to utilize whole output sound in power output and the processing that carry out of the whole frequency range of its correspondence, certainly, also can form corresponding output pattern in the power output of a certain frequency range of the whole frequency range of its correspondence according to output sound.
Certainly, can also further characterize different power by color, at difference constantly namely, rectangle in outgoing position is filled corresponding color according to the difference of the power of output sound, at this moment, graphic change not only height rises and falls, and color also changes simultaneously.
Can divide a plurality of levels according to the size of power, make that for the power in each level or power spectrum described figure has different colors.
Certainly, also color can be represented the difference of power separately, perhaps be represented the different of power with other modes combinations, owing to only be the different of the form of expression with the difference of aforesaid way, not repeat them here.
Certainly, in the step of invention, if when finding operation such as stopping to appear in the broadcast of audio file, time-out, F.F., rewind down, can stop the drafting of output pattern, play the drafting that then restarts output pattern when continuing.
Simultaneously, when the broadcast of audio file starts, can judge whether to support the obtaining of voice output information of the audio file of this kind audio format according to the form of audio file, if support then corresponding flag bit be set, otherwise whether the clear flag position is carried out the output of figure and is judged according to flag bit by central processing unit.
The above only is preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (8)

1. the method play of a handset processes audio file comprises also comprising the step of displaying audio file:
Steps A arranges the graphic plotting rule;
Step B obtains voice output power or the voice output power spectrum of audio file according to the pulse code modulation waveform of the current time of the audio file of audio decoder output;
Step C is according to the output pattern of the graphic plotting rule that sets and sound power output or voice output power spectrum drafting current time;
Step D, central processing unit are shown to LCD screen with this figure after forming the current time graph of a correspondence according to this voice output information,
Wherein, divide a plurality of levels according to the size of power, for the power in each level or power spectrum, described figure has different colors.
2. the method for claim 1, wherein, when described voice output information was the voice output power spectrum, described step B specifically carried out the voice output power spectrum that the current time correspondence is obtained in fast Fourier transform by the pulse code modulation waveform to audio file.
3. the method for claim 1, wherein the outgoing position of figure is the rectangular area.
4. method as claimed in claim 3 wherein, for different voice output power, adopts different rectangle numbers to represent.
5. the method for claim 1, wherein when operations such as stopping to appear in the broadcast of audio file, time-out, F.F., rewind down, can stop the drafting of output pattern.
6. method as claimed in claim 5, wherein, when audio file is stopping, when continuing to play after the time-out, F.F., rewind down, restart the drafting of output pattern.
7. the method for claim 1, wherein when the power output of audio file or output power spectrum are sampled, its sampling interval can artificially be set.
8. method as claimed in claim 7, wherein, the described sampling interval was less than 0.4 second.
CN 201310245481 2013-06-20 2013-06-20 Mobile phone and method for processing playing of audio file adopting same Withdrawn CN103338305A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201310245481 CN103338305A (en) 2013-06-20 2013-06-20 Mobile phone and method for processing playing of audio file adopting same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201310245481 CN103338305A (en) 2013-06-20 2013-06-20 Mobile phone and method for processing playing of audio file adopting same

Publications (1)

Publication Number Publication Date
CN103338305A true CN103338305A (en) 2013-10-02

Family

ID=49246396

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201310245481 Withdrawn CN103338305A (en) 2013-06-20 2013-06-20 Mobile phone and method for processing playing of audio file adopting same

Country Status (1)

Country Link
CN (1) CN103338305A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105868400A (en) * 2016-04-19 2016-08-17 乐视控股(北京)有限公司 Recorded sound information processing method and recorded sound information processing device
CN106887240A (en) * 2015-12-15 2017-06-23 卓望数码技术(深圳)有限公司 A kind of audio-frequency processing method based on iOS platforms, system and iOS device
CN111782866A (en) * 2019-04-04 2020-10-16 阿里巴巴集团控股有限公司 Drawing method, drawing device, terminal equipment and computer storage medium
CN114005469A (en) * 2021-10-20 2022-02-01 广州市网星信息技术有限公司 Audio playing method and system capable of automatically skipping mute segment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106887240A (en) * 2015-12-15 2017-06-23 卓望数码技术(深圳)有限公司 A kind of audio-frequency processing method based on iOS platforms, system and iOS device
CN105868400A (en) * 2016-04-19 2016-08-17 乐视控股(北京)有限公司 Recorded sound information processing method and recorded sound information processing device
CN111782866A (en) * 2019-04-04 2020-10-16 阿里巴巴集团控股有限公司 Drawing method, drawing device, terminal equipment and computer storage medium
CN114005469A (en) * 2021-10-20 2022-02-01 广州市网星信息技术有限公司 Audio playing method and system capable of automatically skipping mute segment

Similar Documents

Publication Publication Date Title
CN105872253B (en) Live broadcast sound processing method and mobile terminal
CN103558916A (en) Man-machine interaction system, method and device
CN107864410B (en) Multimedia data processing method and device, electronic equipment and storage medium
CN103338305A (en) Mobile phone and method for processing playing of audio file adopting same
CN103139338A (en) Screen sounding control system, method and mobile terminal
CN102624970A (en) Apparatus for expanding shortcut application on desktop of mobile phone and method thereof
CN104144260A (en) Control method and device for avoiding disturbing from mobile terminal incoming calls
CN102081501A (en) Method and device for providing shortcut operation application programs for user and mobile terminal
CN105679345A (en) Audio processing method and electronic equipment
CN202907129U (en) Bluetooth sound box capable of answering telephone
CN104078038A (en) Page content aloud-reading method and device
CN105529025B (en) Voice operation input method and electronic equipment
CN104836916A (en) Chat information voice broadcasting method, system and mobile terminal
CN104092809A (en) Communication sound recording method and recorded communication sound playing method and device
CN105227783A (en) Alarm clock ringing method and device
CN101119558A (en) Handset and method for processing audio document broadcast
CN102780811A (en) Self-adaption adjustment method for contextual model and terminal
CN112286481A (en) Audio output method and electronic equipment
JP2011253389A (en) Terminal and reply information creation program for pseudo conversation
CN112333336B (en) Audio editing method and device, electronic equipment and storage medium
CN110660376B (en) Audio processing method, device and storage medium
CN202334677U (en) Circulated prompt mobile phone
CN104219481A (en) Information processing method and electronic device
CN101345927A (en) Information sending method and user terminal
CN108282717B (en) Method and device for adjusting and inducing output volume of microphone, microphone and medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C04 Withdrawal of patent application after publication (patent law 2001)
WW01 Invention patent application withdrawn after publication

Application publication date: 20131002