CN104538047A - Audio control method of portable electronic device - Google Patents

Audio control method of portable electronic device Download PDF

Info

Publication number
CN104538047A
CN104538047A CN201510054288.5A CN201510054288A CN104538047A CN 104538047 A CN104538047 A CN 104538047A CN 201510054288 A CN201510054288 A CN 201510054288A CN 104538047 A CN104538047 A CN 104538047A
Authority
CN
China
Prior art keywords
audio
audio frequency
control program
output unit
portable electronic
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510054288.5A
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.)
HUANXU ELECTRONICS CO Ltd
Universal Scientific Industrial Co Ltd
Original Assignee
HUANXU ELECTRONICS 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 HUANXU ELECTRONICS CO Ltd filed Critical HUANXU ELECTRONICS CO Ltd
Priority to CN201510054288.5A priority Critical patent/CN104538047A/en
Publication of CN104538047A publication Critical patent/CN104538047A/en
Pending legal-status Critical Current

Links

Abstract

The invention relates to an audio control method of a portable electronic device. According to the audio control method, an audio instruction is determined by use of the multimedia player of the portable electronic device, and then an audio control program controls an audio output unit to carry out volume fade-in or volume fade-out according to the audio instruction, and therefore, the acoustical discomfort caused when the audio output unit performs pause, audio stopping or audio data playing is relieved.

Description

The audio control method of portable electronic equipment
Technical field
The present invention relates to a kind of audio control method of portable electronic equipment, refer in particular to a kind of method that volume that can control audio output unit is faded in and faded out.
Background technology
Because portable electronic equipment has built-in loudspeaker, add it to be convenient for carrying, thus user extensively utilizes portable electronic equipment to listen to the music, and user can suspend audio plays by input, stops audio plays or start the state that the instructions such as audio plays switch audio frequency broadcasting.
But; when the audio instructions of user's input is for suspending audio plays or stopping audio plays; often by the state of current volume vanishing at once volume, under this situation, the problem that user can not feel well because audio frequency interrupts suddenly can be there is in the audio frequency that loudspeaker is play.
In addition, when suspending audio plays or stop audio plays, also often there is the pulse because of electric current to cause loudspeaker to produce the noise of distorsion, causing user to be frightened by the noise having no early warning.And then, tired person and oxyacoia person high for the acuity of sound, therefore above-mentioned situation more easily makes tired person and oxyacoia person not feel well.
In addition, when user plays the audio frequency of previous pause for continuity, then play from the stage casing of audio frequency, therefore the volume that this audio frequency stage casing is broadcasted at the beginning may be excessive, and user also can not give special heed to the current volume of loudspeaker when audio plays, thus easily frighten by the large volume that plays out suddenly.
Summary of the invention
In view of this, the audio control method of a kind of portable electronic equipment provided by the present invention, its fundamental purpose is to improve following problem: namely, when the audio instructions that portable electronic equipment performs is for suspending audio frequency or stopping audio frequency playing, the distorsion scaring that user can interrupt suddenly because of audio frequency and/or be produced by loudspeaker and not feel well and broadcasting can the excessive problem of volume from audio frequency stage casing.
To achieve these goals, in the audio control method of portable electronic equipment provided by the present invention, portable electronic equipment includes memory buffer and is connected to the multimedia player of memory buffer, this audio control method comprises the following steps: a) voice data transmission to be played is stored to this memory buffer by multimedia player, then this voice data is sent to audio output unit; B), after this multimedia player audio reception instruction, current volume value and this audio instructions are sent to audio frequency control program; And c) this audio frequency control journey controls this audio output unit according to this audio instructions and carries out fading out of fading in of volume or volume.
Thus, multimedia player can carry out fading out of volume by audio frequency control programmed control audio output unit, thus avoid because audio frequency interrupts suddenly and/or audio output unit distorsion and cause user to produce sense of discomfort, also can carry out fading in of volume by audio frequency control programmed control audio output unit, volume when exporting from the stage casing of audio frequency to avoid audio output unit is excessive and frighten to user.
In order to tackle various service condition, when in step b) in when judging received audio instructions for stopping audio frequency or suspending audio frequency, audio frequency control program is in step c) middle control audio output unit carries out fading out of volume; Otherwise, when in step b) in the audio instructions that judges to receive when being audio plays, audio frequency control program is in step c) in control audio output unit and carry out fading in of volume.
Preferably judge that this audio instructions is as after stopping audio frequency, suspending audio frequency or audio plays when the instruction of multimedia player audio reception, then perform audio frequency control program, audio frequency control program is in step c) in obtain current volume value and audio instructions.
Specifically, when in step b) in when judging received audio instructions for stopping audio frequency or time-out audio frequency, before execution audio frequency control program first storing audio output unit volume and as current volume value; Otherwise, when in step b) in the audio instructions that judges to receive when being audio plays, before execution audio frequency control program, first judge whether current volume value exists, and when current volume value does not exist storing audio output unit volume and as current volume value.
Preferred volume mode of fading in is as follows: audio frequency control program is in step c) in control audio output unit when carrying out fading in of volume, this audio frequency control program in the given time the volume of audio output unit is increased to current volume value gradually from zero.Wherein, audio frequency control program can to increase the volume of audio output unit to current volume value in equally spaced mode gradually.
Preferred volume mode of fading out is as follows: audio frequency control program is in step c) in control audio output unit when carrying out fading out of volume, audio frequency control program is that current volume value is gradually reduced to zero in the given time.Wherein, audio frequency control program can to reduce this current volume value to zero in equally spaced mode gradually.
In addition, preferred audio output unit is built in portable electronic equipment.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of preferred embodiment provided by the present invention.
Fig. 2 is the calcspar of the portable electronic equipment for implementing audio control method provided by the present invention.
(symbol description)
S10 ~ S13, S20 ~ S24, S30 ~ S34 step
10 portable electronic equipments
12 multimedia players
14 memory buffer
16 audio frequency control programs
18 audio output units
Embodiment
Below, enumerate preferred embodiment and coordinate accompanying drawing to be described in detail technical characteristic of the present invention.
The audio control method of the portable electronic equipment that a preferred embodiment of the present invention provides is applied to portable electronic equipment 10.As shown in Figure 2, this portable electronic equipment 10 can be smart mobile phone or panel computer, this portable electronic equipment 10 includes memory buffer 14 and the multimedia player 12 that is connected with this memory buffer 14 and audio output unit 18, and can perform audio frequency control program 16.
This audio control method comprises the following steps:
First, refer to Fig. 2, first perform step S10.Multimedia player 12 is by voice data transmission to be played and be stored to memory buffer 14, then this voice data is sent to audio output unit 18 (i.e. step S11) by memory buffer 14.This memory buffer 14 is the memory buffer (Audio FIFO Buffer) of audio frequency crossfire, and this audio output unit 18 is for being built in the loudspeaker of portable electronic equipment 10, or be the circumscribed earphone or circumscribed loudspeaker that are electrically connected with portable electronic equipment 10.
Refer to Fig. 1, when after multimedia player 12 audio reception instruction (i.e. step S20), perform step S21 immediately and judge whether this audio instructions is stop audio frequency or suspend audio frequency.
When judging audio instructions that multimedia player 12 receives as stopping audio frequency or suspending audio frequency, the volume of the first storing audio output unit 18 of this multimedia player 12 also as current volume value (i.e. step S22), then performs audio frequency control program 16 in step S23.
When this audio frequency control program 16 obtain current volume value with stop audio frequency or suspend audio frequency audio instructions after, audio frequency control program 16 controls fade out (i.e. the step S24) that audio output unit 18 carries out volume, its step S13 sound intermediate frequency control program 16 being equal to Fig. 2 downgrades the volume of audio output unit 18, then gets back to step S20 and waits for audio instructions.Wherein, the instruction of this audio instructions for being inputted according to the demand of itself by user.
Further illustrate audio frequency control program 16 to control audio output unit 18 in step s 24 which and carry out the mode that volume fades out.
Audio frequency control program 16 is current volume value is gradually reduced to zero in the given time in equally spaced mode.This audio frequency control program 16 first sets and performs time numerical value, and this execution time numeric representation in the given time audio frequency control program 16 need downgrade the number of times of volume.Current volume value is obtained unit volume value divided by execution number of times by this audio frequency control program 16 again.This unit volume value represents that audio frequency control program 16 downgrades the value of the volume of audio output unit 18 at every turn.Thus, audio frequency control program 16 downgrades volume gradually in the given time thus realizes fading out of volume.
So, when user inputs the instruction suspending audio frequency or stop audio frequency, audio frequency control program 16 starts the output volume of audio output unit 18 to downgrade zero gradually from current volume value, to provide smooth degree on auditory perception and continuity, and do not have the lofty sense and sense of discomfort that volume stops suddenly, and reduce the distorsion that audio output unit 18 produces because of pulse.
In addition, when multimedia player 12 judges that audio instructions not stops audio frequency or suspends audio frequency in the step s 21, perform step S30 and judge whether audio instructions is audio plays, when judged result is "Yes", performs step S31 and judge whether current volume value exists.When judging that current volume value does not exist, multimedia player 12 immediately storing audio output unit 18 volume and as current volume value (i.e. step S32); Then perform step S33 and perform audio frequency control program 16, this audio frequency control program 16 controls fade in (i.e. the step S34) that this audio output unit 18 carries out volume.As shown in the step S13 of Fig. 2, this audio frequency control program 16 increases the volume of audio output unit 18.After the volume completing audio output unit 18 controls, return step S20 and wait for audio instructions.
Otherwise, when being judged as that current volume value exists, performing step S33 and performing audio frequency control program 16, then controlling fade in (i.e. the step S34) that this audio output unit 18 carries out volume, getting back to step 20 after having controlled and wait for audio instructions.
Further illustrate audio frequency control program 16 in step S34, to control audio output unit 18 carry out the mode that volume fades in.
Audio frequency control program 16 is in the given time the volume of audio output unit 18 is increased to current volume value gradually from zero in equally spaced mode.Wherein, audio frequency control program 16 in advance setting performs time numerical value, this execution time numeric representation audio frequency control program 16 needs the number of times increasing audio output unit 18 volume in the given time, again the schedule time is obtained the unit interval divided by execution number of times, this unit interval represents that audio frequency control program 16 increases the interval time of the volume of audio output unit 18 at every turn, again current volume value is obtained unit volume value divided by execution number of times value, this unit volume value represents that audio frequency control program 16 increases the value of the volume of audio output unit 18 at every turn.
Therefore, when user inputs audio plays instruction, the volume being controlled audio output unit 18 by audio frequency control program 16 increases as current volume value in the mode of fading in by zero volume gradually, to reduce initial volume during automatic playing audio-fequency data, audio output unit 18 is avoided just to start exported volume excessive and frighten user.

Claims (9)

1. an audio control method for portable electronic equipment, this portable electronic equipment includes memory buffer and is connected to the multimedia player of this memory buffer, and the feature of the audio control method of this portable electronic equipment is to comprise the following steps:
A) voice data transmission to be played is stored to described memory buffer by described multimedia player, then described voice data is sent to audio output unit by described memory buffer;
B) when after the instruction of described multimedia player audio reception, current volume value and described audio instructions are sent to audio frequency control program; And
C) described audio frequency control program controls described audio output unit according to described audio instructions and carries out fading out of fading in of volume or volume.
2. the audio control method of portable electronic equipment as claimed in claim 1, is characterized in that,
When at described step b) in when judging received described audio instructions for stopping audio frequency or suspending audio frequency, described audio frequency control program is at described step c) the described audio output unit of middle control carries out fading out of volume; Otherwise, when at described step b) in the described audio instructions that judges to receive when being audio plays, described audio frequency control program is at described step c) in control described audio output unit and carry out fading in of volume.
3. the audio control method of portable electronic equipment as claimed in claim 2, is characterized in that,
Judge that this audio instructions is as after stopping audio frequency, suspending audio frequency or audio plays when the instruction of described multimedia player audio reception, then perform described audio frequency control program, described audio frequency control program is at described step c) in obtain described current volume value and described audio instructions.
4. the audio control method of portable electronic equipment as claimed in claim 3, it is characterized in that, when at described step b) in when judging received described audio instructions for stopping audio frequency or time-out audio frequency, first stored before the described audio frequency control program of execution described audio output unit volume and as described current volume value; Otherwise, when at described step b) in the described audio instructions that judges to receive when being audio plays, execution described audio frequency control program before first judge whether current volume value exists, and store when volume value does not exist in this prior described audio output unit volume and as described current volume value.
5. the audio control method of the portable electronic equipment according to any one of Claims 1-4, is characterized in that,
Described audio frequency control program is at described step c) in control described audio output unit when carrying out fading in of volume, described audio frequency control program in the given time the volume of described audio output unit is increased to current volume value gradually from zero.
6. the audio control method of portable electronic equipment as claimed in claim 5, is characterized in that,
Described audio frequency control program is to increase the volume of described audio output unit gradually in equally spaced mode to described current volume value.
7. the audio control method of the portable electronic equipment according to any one of Claims 1-4, is characterized in that,
Described audio frequency control program is at described step c) in control described audio output unit when carrying out fading out of volume, described audio frequency control program is that described current volume value is gradually reduced to zero in the given time.
8. the audio control method of portable electronic equipment as claimed in claim 7, it is characterized in that, described audio frequency control program reduces described current volume value to zero gradually in equally spaced mode.
9. the audio control method of portable electronic equipment as claimed in claim 1, it is characterized in that, described audio output unit is built in described portable electronic equipment.
CN201510054288.5A 2015-02-03 2015-02-03 Audio control method of portable electronic device Pending CN104538047A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510054288.5A CN104538047A (en) 2015-02-03 2015-02-03 Audio control method of portable electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510054288.5A CN104538047A (en) 2015-02-03 2015-02-03 Audio control method of portable electronic device

Publications (1)

Publication Number Publication Date
CN104538047A true CN104538047A (en) 2015-04-22

Family

ID=52853562

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510054288.5A Pending CN104538047A (en) 2015-02-03 2015-02-03 Audio control method of portable electronic device

Country Status (1)

Country Link
CN (1) CN104538047A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105096977A (en) * 2015-08-24 2015-11-25 来安县新元机电设备设计有限公司 Control method for multimedia playing and mobile terminal
CN109951729A (en) * 2019-03-22 2019-06-28 百度在线网络技术(北京)有限公司 Method and apparatus for handling data
CN116684521A (en) * 2022-10-14 2023-09-01 荣耀终端有限公司 Audio processing method, device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1963937A (en) * 2006-11-30 2007-05-16 北京中星微电子有限公司 Method for eliminating random switching noise in audio playing and audio playing apparatus
CN101039397A (en) * 2006-03-13 2007-09-19 神基科技股份有限公司 Volume control method and media playing device using the same
WO2011069357A1 (en) * 2009-12-10 2011-06-16 腾讯科技(深圳)有限公司 Method and apparatus for dynamically adjusting volume

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101039397A (en) * 2006-03-13 2007-09-19 神基科技股份有限公司 Volume control method and media playing device using the same
CN1963937A (en) * 2006-11-30 2007-05-16 北京中星微电子有限公司 Method for eliminating random switching noise in audio playing and audio playing apparatus
WO2011069357A1 (en) * 2009-12-10 2011-06-16 腾讯科技(深圳)有限公司 Method and apparatus for dynamically adjusting volume

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105096977A (en) * 2015-08-24 2015-11-25 来安县新元机电设备设计有限公司 Control method for multimedia playing and mobile terminal
CN105096977B (en) * 2015-08-24 2017-06-13 北京泽桥传媒科技股份有限公司 The control method and mobile terminal of a kind of multimedia
CN109951729A (en) * 2019-03-22 2019-06-28 百度在线网络技术(北京)有限公司 Method and apparatus for handling data
CN116684521A (en) * 2022-10-14 2023-09-01 荣耀终端有限公司 Audio processing method, device and storage medium
CN116684521B (en) * 2022-10-14 2024-04-12 荣耀终端有限公司 Audio processing method, device and storage medium

Similar Documents

Publication Publication Date Title
CN106126167B (en) A kind of sound effect treatment method and terminal device
WO2019127112A1 (en) Voice interaction method and device and intelligent terminal
CN103714836A (en) Method for playing audio information and electronic equipment
CN107977185A (en) Audio output control method and device
CN109360567A (en) The customizable method and apparatus waken up
US11068230B2 (en) Bluetooth speaker, and intelligent control method for playing audio
CN104538047A (en) Audio control method of portable electronic device
CN106303840A (en) The method of accommodation loudspeaker result of broadcast and portable electronic devices
CN104796642A (en) A dual-mode Bluetooth sound-box television system and a dual-mode Bluetooth audio playing control method thereof
JP2019505944A (en) Audio file re-recording method, apparatus and storage medium
CN104867296B (en) A kind of volume adjusting method and device
CN103984518A (en) Intelligent mobile terminal
WO2017148270A1 (en) Volume control method and device, and terminal
CN104683920A (en) Method and device for realizing smooth rise and fall of sound volume
CN104967913A (en) Audio file playing control method and apparatus thereof
US20130073295A1 (en) Audio codec with vibrator support
CN203313386U (en) Wireless audio processing equipment, wireless audio player, household karaoke system
CN109686372B (en) Resource playing control method and device
CN104349244B (en) A kind of information processing method and electronic equipment
CN103928037B (en) A kind of audio switching method and terminal device
CN107145328A (en) A kind of audio switching method, device and smart machine
CN103985400A (en) Audio file playing system
CN110347365A (en) The method and apparatus and sound of automatic adjustment casting volume broadcast equipment
CN106446152A (en) Audio file recommendation method and device
CN106648540B (en) Music switching method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150422

WD01 Invention patent application deemed withdrawn after publication