CN108848267A - Audio frequency playing method and mobile terminal - Google Patents
Audio frequency playing method and mobile terminal Download PDFInfo
- Publication number
- CN108848267A CN108848267A CN201810678188.3A CN201810678188A CN108848267A CN 108848267 A CN108848267 A CN 108848267A CN 201810678188 A CN201810678188 A CN 201810678188A CN 108848267 A CN108848267 A CN 108848267A
- Authority
- CN
- China
- Prior art keywords
- parameter
- audio
- mobile terminal
- pneumatic
- audio frequency
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72442—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for playing music files
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
Landscapes
- Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Multimedia (AREA)
- Telephone Function (AREA)
Abstract
The present invention provides a kind of audio frequency playing method and mobile terminals, are related to audio signal processing technique field, the method includes:Pneumatic parameter is obtained, the pneumatic parameter is used to indicate mobile terminal and is currently located the corresponding air pressure of environment;From at least one set of audio frequency parameter, target audio parameter corresponding with the pneumatic parameter is obtained;Audio file is played according to the target audio parameter.By obtaining pneumatic parameter, and from least one set of audio frequency parameter, target audio parameter corresponding with pneumatic parameter is obtained, audio file is finally played according to the target audio parameter.By under different air pressure environment, the physical characteristic of each component of loudspeaker changes, audio file is played using different audio frequency parameters, it eliminates due to the influence that the physical characteristic of each component changes and generates, so that the sound played is more nearly true sound, the reducing degree for playing audio file is improved, the flexibility for playing audio file is improved.
Description
Technical field
The present embodiments relate to audio signal processing technique field more particularly to a kind of audio frequency playing methods and mobile terminal.
Background technique
With the continuous development of mobile terminal, it is logical that user not only can carry out voice by mobile terminal and other users
Words, can also play audio file by the loudspeaker of mobile terminal, such as listen song, see video etc..
In the related technology, mobile terminal can be obtained first and be deposited in advance during playing audio file by loudspeaker
The audio frequency parameter of storage, for example, EQ (Equalizer, balanced device), audio and protection algorism etc., then using opposite with audio frequency parameter
The mode answered, plays out audio file.Wherein, which debugs obtain at normal atmospheric pressure.
But when the atmospheric pressure of environment changes where user, the physical characteristic meeting of each component in loudspeaker
It changes, such as amplitude becomes larger, further according to debugging in advance and the audio frequency parameter stored plays out, then loudspeaker, which plays, issues
Sound can not restore true sound.
Summary of the invention
The embodiment of the present invention provides a kind of audio frequency playing method and mobile terminal, to solve the atmosphere of the environment where user
When pressure changes, the physical characteristic of each component can change in loudspeaker, and loudspeaker plays the sound issued can not
The problem of restoring true sound.
In order to solve the above-mentioned technical problem, the invention is realized in this way:
In a first aspect, being applied to mobile terminal, the method the embodiment of the invention also provides a kind of audio frequency playing method
Including:
Pneumatic parameter is obtained, the pneumatic parameter is used to indicate mobile terminal and is currently located the corresponding air pressure of environment;
From at least one set of audio frequency parameter, target audio parameter corresponding with the pneumatic parameter is obtained;
Audio file is played according to the target audio parameter.
Second aspect, the embodiment of the invention provides a kind of mobile terminal, the mobile terminal includes:
First obtains module, and for obtaining pneumatic parameter, the pneumatic parameter is used to indicate mobile terminal and is currently located ring
The corresponding air pressure in border;
Second obtains module, for obtaining target corresponding with the pneumatic parameter from least one set of audio frequency parameter
Audio frequency parameter;
Playing module, for playing audio file according to the target audio parameter.
The third aspect the embodiment of the invention provides a kind of mobile terminal, including processor, memory and is stored in described
It is real when the computer program is executed by the processor on memory and the computer program that can run on the processor
Now the step of audio frequency playing method as described in any one of above-mentioned first aspect.
Fourth aspect, the embodiment of the invention provides a kind of computer readable storage medium, the computer-readable storage
Computer program is stored on medium, is realized when the computer program is executed by processor such as any one of above-mentioned first aspect institute
The step of audio frequency playing method stated.
In embodiments of the present invention, it by obtaining pneumatic parameter, and from least one set of audio frequency parameter, obtains and joins with air pressure
The corresponding target audio parameter of number, finally plays audio file according to the target audio parameter.By in different air pressure environment
Under, the physical characteristic of each component of loudspeaker changes, and plays audio file using different audio frequency parameters, eliminates
Due to the physical characteristic of each component change and the influence that generates so that the sound played is more nearly true sound
Sound improves the reducing degree for playing audio file, improves the flexibility for playing audio file.
Detailed description of the invention
Fig. 1 is the schematic diagram of play system involved in a kind of audio frequency playing method provided in an embodiment of the present invention;
Fig. 2 is a kind of step flow chart of audio frequency playing method provided in an embodiment of the present invention;
Fig. 3 is a kind of step flow chart of audio frequency playing method provided in an embodiment of the present invention;
Fig. 4 is a kind of structural block diagram of mobile terminal provided in an embodiment of the present invention;
Fig. 5 is a kind of hardware structural diagram of mobile terminal provided in an embodiment 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, complete
Site 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 hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
Fig. 1 be according to exemplary partial implement a kind of audio frequency playing method for exemplifying involved in play system signal
Figure, as shown in Figure 1, the play system may include:Processor 101, memory 102, loudspeaker 103 and barometer 104.
Wherein, processor 101 is connect with memory 102, loudspeaker 103 and barometer 104 respectively.Moreover, the barometer
104 can place close to loudspeaker 103, so that the pneumatic parameter collected can be more nearly ring locating for loudspeaker 103
Border.
Specifically, after detecting broadcasting audio file, 101 available barometer 104 gas detected of processor
Parameter is pressed, processor 101 can be searched from memory 102 and be obtained and pneumatic parameter phase according to pre-set corresponding relationship
Corresponding target audio parameter, then the target audio parameter is used, audio file is played out by loudspeaker 103.
It should be noted that processor 101 can be DSP (Digital Signal Processing, at digital signal
Reason), which can be MTP (Media Transfer Protocol, media transmission protocol), can also use certainly
Other components are as processor 101 and memory 102, and it is not limited in the embodiment of the present invention.
Referring to Fig. 2, a kind of step flow chart of audio frequency playing method of the embodiment of the present invention is shown, can specifically include
Following steps:
Step 201, pneumatic parameter is obtained.
Wherein, which is used to indicate mobile terminal and is currently located the corresponding air pressure of environment.
Since mobile terminal is during playing audio file, is influenced by atmospheric pressure, play the loudspeaking of audio file
The physical characteristic of device can change.In order to avoid the sound of the audio file of broadcasting changes, need using different sounds
Frequency parameter plays out audio file.
Therefore, mobile terminal needs to obtain pneumatic parameter when playing audio file, to be determined according to the gas parameter
Mobile terminal is currently located the air pressure of environment, so that in the next steps, mobile terminal can obtain phase according to the pneumatic parameter
Corresponding audio frequency parameter.
Specifically, mobile terminal can be currently located the air pressure of environment to mobile terminal by pre-set barometer
It is acquired, obtains pneumatic parameter, and send the pneumatic parameter to the processor of mobile terminal, processor then can receive the gas
Parameter is pressed, the acquisition to pneumatic parameter is completed.
It should be noted that mobile terminal can obtain pneumatic parameter in real time, can also be obtained every preset duration primary
Pneumatic parameter, it is not limited in the embodiment of the present invention.
Step 202, from least one set of audio frequency parameter, target audio parameter corresponding with pneumatic parameter is obtained.
Mobile terminal, then can be between pneumatic parameter according to the pre-stored data and audio frequency parameter after obtaining pneumatic parameter
Corresponding relationship, lookup obtain target audio parameter corresponding with the pneumatic parameter currently acquired, in the next steps, to move
Dynamic terminal can play out audio file according to the target audio parameter.
Specifically, mobile terminal can first obtain the corresponding relationship between pneumatic parameter and audio frequency parameter, and in the correspondence
In each pneumatic parameter in relationship, the consistent target air pressure parameter of pneumatic parameter with this acquisition is searched, thus will be with
The corresponding audio frequency parameter of target air pressure parameter is as target audio parameter.
It should be noted that mobile terminal can be right previously according to barometrical detection accuracy, the scope of activities of user institute
The processing capacity of the processor of the different air pressures and mobile terminal answered determines multiple pneumatic parameters, and in each pneumatic parameter
Tested in corresponding environment, obtain audio frequency parameter corresponding with each pneumatic parameter, thus establish pneumatic parameter with
Corresponding relationship between audio frequency parameter.
Wherein, which can be 0.03, and the scope of activities of user can be distinguished for basin to plateau
Corresponding difference air pressure.
Step 203, audio file is played according to target audio parameter.
Mobile terminal can then broadcast audio file according to the target audio parameter after obtaining target audio parameter
It puts, so that the sound played will not change because of the physical characteristic of loudspeaker and be changed, obtains being more nearly original quality
Sound.
Specifically, mobile terminal can first obtain audio file, and be decoded to audio file, then decoding is obtained
Digital signal is converted to analog signal, by the parameters in target audio parameter, handles analog signal, obtains everywhere
Analog signal after reason completes the broadcasting to audio file finally by the analog signal after loudspeaker playback process.
In conclusion audio frequency playing method provided in an embodiment of the present invention, by obtaining pneumatic parameter, and from least one set
In audio frequency parameter, target audio parameter corresponding with pneumatic parameter is obtained, audio is finally played according to the target audio parameter
File.By the way that under different air pressure environment, the physical characteristic of each component of loudspeaker changes, using different audios
Parameter plays audio file, eliminates due to the influence that the physical characteristic of each component changes and generates, so that playing
Sound be more nearly true sound, improve play audio file reducing degree, improve play audio file spirit
Activity.
Referring to Fig. 3, a kind of step flow chart of audio frequency playing method of the embodiment of the present invention is shown, can specifically include
Following steps:
Step 301, whether detection mobile terminal plays audio file.
Since under different air pressure environment, the physical characteristic of each component can change in loudspeaker, cause to broadcast
The sound put is affected.In order to avoid the sound of broadcasting is affected, the actual sound of audio file is restored, mobile terminal can
It is currently located the corresponding pneumatic parameter of environment to obtain, to carry out according to different pneumatic parameters using different audio frequency parameters
It plays.
But before acquisition for mobile terminal pneumatic parameter, mobile terminal needs detect whether to be playing audio file,
When mobile terminal is playing audio file, then mobile terminal just needs to obtain pneumatic parameter.
Specifically, mobile terminal can detecte the play operation of user's triggering, and the play operation is for controlling mobile terminal
Play audio file.When mobile terminal detects the play operation of user's triggering, then illustrate that user needs to pass through mobile terminal
Play audio file;But if mobile terminal and be not detected user triggering play operation, illustrate mobile terminal not
There is broadcasting audio file, without obtaining pneumatic parameter corresponding to current environment, but needs to continue to test broadcasting for user's triggering
Operation is put, so that pneumatic parameter can be obtained according to the play operation in time when user triggers play operation, determines that audio is joined
Number completes the broadcasting to audio file.
Step 302, when mobile terminal is playing audio file, pneumatic parameter is obtained.
This step 302 is similar with step 201, and details are not described herein.
Step 303, the air pressure difference between pneumatic parameter and standard pressure parameter is determined.
Since the air pressure of environment where mobile terminal may change, lead to the physical characteristic of each component of loudspeaker
It changes, and the pre-stored safeguard measure for loudspeaker of mobile terminal loses protection then when air pressure changes
Effect.
Therefore, mobile terminal can first judge whether air pressure corresponding to current environment with standard pressure differs larger, really
Determine mobile terminal and plays whether audio file can cause to damage to each component in loudspeaker under the present circumstances.
Specifically, mobile terminal, can be according to the pneumatic parameter and pre-set Standard Gases after obtaining pneumatic parameter
Pressure parameter is calculated, and obtains the air pressure difference between pneumatic parameter and standard pressure parameter, and whether judge the air pressure difference
Greater than pre-set default secure threshold.
Wherein, which can be configured according to the physical property of each component of loudspeaker, certainly
It can also be configured using other modes, it is not limited in the embodiment of the present invention.
If the air pressure difference is not more than default secure threshold, illustrate that mobile terminal is currently located air pressure and the mark of environment
Quasi- air pressure is not much different, and audio file is played in current environment to be caused to damage to each component of loudspeaker, then
Step 304 can be executed.
But if the air pressure difference is greater than default secure threshold, illustrate that mobile terminal is currently located the air pressure of environment
Differ larger with standard pressure, if expendable damage can be caused to each component of loudspeaker by playing audio file,
Then need to be implemented step 305.
Step 304, when air pressure difference is not more than default secure threshold, from least one set of audio frequency parameter, acquisition and gas
Press the corresponding target audio parameter of parameter.
When air pressure difference is not more than default secure threshold, then mobile terminal can be according to the pneumatic parameter, from least one
It is searched in group audio frequency parameter, obtains target audio parameter corresponding with pneumatic parameter.Moreover, the target audio parameter can
To include the first audio frequency parameter and the second audio frequency parameter, first audio frequency parameter be can according to environment and/or user preferences into
The audio frequency parameter that row is adjusted, which is the audio frequency parameter debugged previously according to different pneumatic parameters.
For example, first audio frequency parameter can be audio, which can be in EQ, gain and protection algorism
At least one parameter.
Therefore, mobile terminal first can show the first audio frequency parameter to user during obtaining target audio parameter
At least one corresponding parameter value, and the corresponding parameter value of the first audio frequency parameter is determined according to the selection operation that user triggers, then
According to the corresponding relationship between pre-set pneumatic parameter and the second audio frequency parameter, determination is corresponding with current gas pressure parameter
Parameter value corresponding to second audio frequency parameter, so that it is determined that the corresponding parameter value of each audio frequency parameter in target audio parameter.
Optionally, mobile terminal can show at least one corresponding parameter value of the first audio frequency parameter to user, and respond
In user triggering selection operation, from least one parameter value, determine the parameter value that user selects for the first audio frequency parameter, then
According to the corresponding relationship of preset pneumatic parameter and the second audio frequency parameter, the second audio frequency parameter corresponding with pneumatic parameter is determined.
Specifically, mobile terminal first can show at least one corresponding parameter value of the first audio frequency parameter to user, so that
User can select the first audio frequency parameter according to personal preference.Mobile terminal can detecte the selection behaviour of user's triggering
Make, can be in response to the selection operation when detecting the selection operation of user's triggering, it will ginseng corresponding with the selection operation
Parameter value of the numerical value as the first audio frequency parameter.
Mobile terminal is corresponding between available pneumatic parameter and the second audio frequency parameter after determining the first audio frequency parameter
Relationship, and pneumatic parameter corresponding with the pneumatic parameter of current environment is searched from corresponding relationship, then obtain and join with the air pressure
The parameter value of corresponding second audio frequency parameter of number, has finally respectively obtained the first audio frequency parameter and the second audio frequency parameter is corresponding
Parameter value obtains target audio parameter.
It should be noted that in practical applications, the first audio frequency parameter may include an audio frequency parameter, it is also possible to including
Multiple audio frequency parameters, and the embodiment of the present invention is illustrated so that the first audio frequency parameter includes an audio frequency parameter as an example, this
Inventive embodiments to the number of audio frequency parameter included by the first audio frequency parameter without limitation.
Further, mobile terminal can be recommended and current gas during showing at least one parameter value to user
The parameter value to match is pressed, so that user in the audio file for listening to mobile terminal playing, can hear more melodized
Sound.
For example, corresponding parameter value may include free and natural audio, droning audio and just when the first audio frequency parameter is audio
Chang Yinxiao, if the air pressure that mobile terminal is currently located can choose free and natural audio lower than standard atmospheric pressure with recommended user;Such as
The air pressure that fruit mobile terminal is currently located is higher than standard atmospheric pressure, then can choose droning audio with recommended user.
Step 305, when air pressure difference is greater than default secure threshold, stop playing audio file.
If mobile terminal determines that air pressure difference is greater than default secure threshold, illustrate that mobile terminal is currently located environment
Air pressure differs larger with standard pressure, can be to each of loudspeaker if mobile terminal plays audio file in current environment
A component causes to damage.
Therefore, mobile terminal can stop playing audio file when determining that air pressure difference is greater than default secure threshold, and
Prompt user's current gas pressure and standard pressure excessive, playing audio file can cause to damage to loudspeaker.
Further, if the interface of mobile terminal remains in the interface for playing audio file, mobile terminal
It can recycle and execute step 302 to step 303, until air pressure difference is not more than default secure threshold, execution step 304.
Step 306, audio file is played according to target audio parameter.
This step 306 is similar with the process of step 203, and this will not be repeated here.
Step 307, when detecting the stopping play operation of user's triggering, stop obtaining pneumatic parameter.
Wherein, which is used to indicate mobile terminal and stops playing audio file.
Mobile terminal can detecte the stopping of user's triggering during playing audio file according to target audio parameter
Play operation, and while stopping playing audio file according to the stopping play operation, stop obtaining pneumatic parameter.
Optionally, mobile terminal can detecte stopping play operation, when detecting the stopping play operation of user's triggering,
Stop obtaining pneumatic parameter.Specifically, mobile terminal can detecte the stopping of user's triggering during playing audio file
Play operation, when detecting the stopping play operation, mobile terminal can stop playing audio file, also, stop obtaining
Pneumatic parameter.
It should be noted that being detected if mobile terminal is to continue to obtain pneumatic parameter in real time in step 302
After stopping play operation, mobile terminal can stop obtaining pneumatic parameter immediately.But if mobile terminal is periodically to obtain
Pneumatic parameter is taken, then mobile terminal no longer obtains pneumatic parameter in next cycle.
In conclusion audio frequency playing method provided in an embodiment of the present invention, by obtaining pneumatic parameter, and from least one set
In audio frequency parameter, target audio parameter corresponding with pneumatic parameter is obtained, audio is finally played according to the target audio parameter
File.By the way that under different air pressure environment, the physical characteristic of each component of loudspeaker changes, using different audios
Parameter plays audio file, eliminates due to the influence that the physical characteristic of each component changes and generates, so that playing
Sound be more nearly true sound, improve play audio file reducing degree, improve play audio file spirit
Activity.
Further, it by showing at least one corresponding parameter value of the first audio frequency parameter to user, and is touched according to user
The selection operation of hair determines the parameter value of the first audio frequency parameter, and corresponding with the second audio frequency parameter according to preset pneumatic parameter
Relationship determines the second audio frequency parameter corresponding with pneumatic parameter, so that it is determined that the parameters value of target audio parameter.By adopting
It differently determines parameter value corresponding to different audio frequency parameters, can be improved the accuracy of target audio parameter, thus
The audio that mobile terminal is played is advanced optimized, the reducing degree for playing audio file is improved.
Further, by checking whether mobile terminal plays audio file, when detecting that mobile terminal is playing sound
When frequency file, then pneumatic parameter is obtained, avoids the case where just obtaining pneumatic parameter when not playing audio file, improve
Obtain the validity of pneumatic parameter.
Further, by obtaining the air pressure difference between pneumatic parameter and standard pressure parameter, and judge the draught head
Whether value is greater than default secure threshold, determines the need for protecting the loudspeaker of mobile terminal further according to the judging result
Shield avoids playing audio file in the case where air pressure differs biggish situation, to make loudspeaker to stop playing audio file
At damage, the safety for playing audio file is improved.
Referring to Fig. 4, a kind of structural block diagram of mobile terminal of the embodiment of the present invention is shown, can specifically include:
First obtains module 401, and for obtaining pneumatic parameter, which is used to indicate mobile terminal and is currently located ring
The corresponding air pressure in border;
Second obtains module 402, for obtaining target corresponding with the pneumatic parameter from least one set of audio frequency parameter
Audio frequency parameter;
Playing module 403, for playing audio file according to the target audio parameter.
Optionally, which includes the first audio frequency parameter and the second audio frequency parameter;
This second acquisition module 402 include:
Submodule is shown, for showing at least one corresponding parameter value of first audio frequency parameter to user;
First determines submodule, and the selection operation for triggering in response to user is determined from least one parameter value
The parameter value that user selects is the first audio frequency parameter;
Second determines submodule, for the corresponding relationship according to preset pneumatic parameter and the second audio frequency parameter, determine and
Corresponding second audio frequency parameter of the pneumatic parameter.
Optionally, which includes:
Acquisition submodule, for obtaining the pneumatic parameter when the mobile terminal is playing the audio file.
Optionally, which further includes:
Determining module, for determining the air pressure difference between the pneumatic parameter and standard pressure parameter;
Stop playing module 403, plays audio text for stopping when the air pressure difference is greater than default secure threshold
Part;
This second acquisition module 402 include:
Acquisition submodule, for joining from at least one set audio when the air pressure difference is no more than the default secure threshold
In number, target audio parameter corresponding with the pneumatic parameter is obtained.
Optionally, which further includes:
Detection module stops play operation for detecting, which is used to indicate mobile terminal stopping and broadcasts
Playback frequency file;
Stop obtaining module, for stopping obtaining the pneumatic parameter when detecting the stopping play operation of user's triggering.
Mobile terminal provided in an embodiment of the present invention can be realized mobile terminal in the embodiment of the method for Fig. 2 to Fig. 3 and realize
Each process, to avoid repeating, which is not described herein again.
In conclusion mobile terminal provided in an embodiment of the present invention, by obtaining pneumatic parameter, and from least one set of audio
In parameter, target audio parameter corresponding with pneumatic parameter is obtained, audio file is finally played according to the target audio parameter.
By the way that under different air pressure environment, the physical characteristic of each component of loudspeaker changes, using different audio frequency parameters
Audio file is played, is eliminated due to the influence that the physical characteristic of each component changes and generates, so that the sound played
Sound is more nearly true sound, improves the reducing degree for playing audio file, improves the flexibility for playing audio file.
A kind of hardware structural diagram of Fig. 5 mobile terminal of each embodiment to realize the present invention, the mobile terminal 500
Including but not limited to:Radio frequency unit 501, audio output unit 503, input unit 504, sensor 505, is shown network module 502
Show the components such as unit 506, user input unit 507, interface unit 508, memory 509, processor 510 and power supply 511.
It will be understood by those skilled in the art that mobile terminal structure shown in Fig. 5 does not constitute the restriction to mobile terminal, it is mobile whole
End may include perhaps combining certain components or different component layouts than illustrating more or fewer components.In the present invention
In embodiment, mobile terminal includes but is not limited to mobile phone, tablet computer, laptop, palm PC, car-mounted terminal, can wear
Wear equipment and pedometer etc..
Wherein, sensor 505, for obtaining pneumatic parameter, the pneumatic parameter is used to indicate mobile terminal and is currently located
The corresponding air pressure of environment;
Processor 510, for obtaining target audio corresponding with the pneumatic parameter from least one set of audio frequency parameter
Parameter;
Audio output unit 503, for playing audio file according to the target audio parameter.
In conclusion mobile terminal provided in an embodiment of the present invention, by obtaining pneumatic parameter, and from least one set of audio
In parameter, target audio parameter corresponding with pneumatic parameter is obtained, audio file is finally played according to the target audio parameter.
By the way that under different air pressure environment, the physical characteristic of each component of loudspeaker changes, using different audio frequency parameters
Audio file is played, is eliminated due to the influence that the physical characteristic of each component changes and generates, so that the sound played
Sound is more nearly true sound, improves the reducing degree for playing audio file, improves the flexibility for playing audio file.
It should be understood that the embodiment of the present invention in, radio frequency unit 501 can be used for receiving and sending messages or communication process in, signal
Send and receive, specifically, by from base station downlink data receive after, to processor 510 handle;In addition, by uplink
Data are sent to base station.In general, radio frequency unit 501 includes but is not limited to antenna, at least one amplifier, transceiver, coupling
Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 501 can also by wireless communication system and network and other set
Standby communication.
Mobile terminal provides wireless broadband internet by network module 502 for user and accesses, and such as user is helped to receive
It sends e-mails, browse webpage and access streaming video etc..
Audio output unit 503 can be received by radio frequency unit 501 or network module 502 or in memory 509
The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 503 can also be provided and be moved
The relevant audio output of specific function that dynamic terminal 500 executes is (for example, call signal receives sound, message sink sound etc.
Deng).Audio output unit 503 includes loudspeaker, buzzer and receiver etc..
Input unit 504 is for receiving audio or video signal.Input unit 504 may include graphics processor
(Graphics Processing Unit, GPU) 5041 and microphone 5042, graphics processor 5041 is in video acquisition mode
Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out
Reason.Treated, and picture frame may be displayed on display unit 506.Through graphics processor 5041, treated that picture frame can be deposited
Storage is sent in memory 509 (or other storage mediums) or via radio frequency unit 501 or network module 502.Mike
Wind 5042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be
The format output that mobile communication base station can be sent to via radio frequency unit 501 is converted in the case where telephone calling model.
Mobile terminal 500 further includes at least one sensor 505, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 5061, and proximity sensor can close when mobile terminal 500 is moved in one's ear
Display panel 5061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify mobile terminal posture (ratio
Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);It passes
Sensor 505 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet
Meter, thermometer, infrared sensor etc. are spent, details are not described herein.
Display unit 506 is for showing information input by user or being supplied to the information of user.Display unit 506 can wrap
Display panel 5061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 5061.
User input unit 507 can be used for receiving the number or character information of input, and generate the use with mobile terminal
Family setting and the related key signals input of function control.Specifically, user input unit 507 include touch panel 5071 and
Other input equipments 5072.Touch panel 5071, also referred to as touch screen collect the touch operation of user on it or nearby
(for example user uses any suitable objects or attachment such as finger, stylus on touch panel 5071 or in touch panel 5071
Neighbouring operation).Touch panel 5071 may include both touch detecting apparatus and touch controller.Wherein, touch detection
Device detects the touch orientation of user, and detects touch operation bring signal, transmits a signal to touch controller;Touch control
Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 510, receiving area
It manages the order that device 510 is sent and is executed.Furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc.
Seed type realizes touch panel 5071.In addition to touch panel 5071, user input unit 507 can also include other input equipments
5072.Specifically, other input equipments 5072 can include but is not limited to physical keyboard, function key (such as volume control button,
Switch key etc.), trace ball, mouse, operating stick, details are not described herein.
Further, touch panel 5071 can be covered on display panel 5061, when touch panel 5071 is detected at it
On or near touch operation after, send processor 510 to determine the type of touch event, be followed by subsequent processing device 510 according to touching
The type for touching event provides corresponding visual output on display panel 5061.Although in Fig. 5, touch panel 5071 and display
Panel 5061 is the function that outputs and inputs of realizing mobile terminal as two independent components, but in some embodiments
In, can be integrated by touch panel 5071 and display panel 5061 and realize the function that outputs and inputs of mobile terminal, it is specific this
Place is without limitation.
Interface unit 508 is the interface that external device (ED) is connect with mobile terminal 500.For example, external device (ED) may include having
Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end
Mouth, port, the port audio input/output (I/O), video i/o port, earphone end for connecting the device with identification module
Mouthful etc..Interface unit 508 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and
By one or more elements that the input received is transferred in mobile terminal 500 or can be used in 500 He of mobile terminal
Data are transmitted between external device (ED).
Memory 509 can be used for storing software program and various data.Memory 509 can mainly include storing program area
The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function
Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as
Audio data, phone directory etc.) etc..In addition, memory 509 may include high-speed random access memory, it can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 510 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection
A part by running or execute the software program and/or module that are stored in memory 509, and calls and is stored in storage
Data in device 509 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place
Managing device 510 may include one or more processing units;Preferably, processor 510 can integrate application processor and modulatedemodulate is mediated
Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main
Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 510.
Mobile terminal 500 can also include the power supply 511 (such as battery) powered to all parts, it is preferred that power supply 511
Can be logically contiguous by power-supply management system and processor 510, to realize management charging by power-supply management system, put
The functions such as electricity and power managed.
In addition, mobile terminal 500 includes some unshowned functional modules, details are not described herein.
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, including processor 510, and memory 509 is stored in
On memory 509 and the computer program that can run on the processor 510, the computer program are executed by processor 510
Each process of the above-mentioned audio frequency playing method embodiment of Shi Shixian, and identical technical effect can be reached, to avoid repeating, here
It repeats no more.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium
Calculation machine program, the computer program realize each process of above-mentioned audio frequency playing method embodiment, and energy when being executed by processor
Reach identical technical effect, to avoid repeating, which is not described herein again.Wherein, the computer readable storage medium, such as only
Read memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation
RAM), magnetic or disk etc..
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service
Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form belongs within protection of the invention.
Claims (11)
1. a kind of audio frequency playing method is applied to mobile terminal, which is characterized in that the method includes:
Pneumatic parameter is obtained, the pneumatic parameter is used to indicate mobile terminal and is currently located the corresponding air pressure of environment;
From at least one set of audio frequency parameter, target audio parameter corresponding with the pneumatic parameter is obtained;
Audio file is played according to the target audio parameter.
2. the method according to claim 1, wherein the target audio parameter includes the first audio frequency parameter and the
Two audio frequency parameters;
It is described from least one set of audio frequency parameter, obtain target audio parameter corresponding with the pneumatic parameter the step of, wrap
It includes:
At least one corresponding parameter value of first audio frequency parameter is shown to user;
In response to the selection operation of user's triggering, from least one described parameter value, determine that the parameter value that user selects is the
One audio frequency parameter;
According to the corresponding relationship of preset pneumatic parameter and the second audio frequency parameter, the second sound corresponding with the pneumatic parameter is determined
Frequency parameter.
3. the method according to claim 1, wherein the step of acquisition pneumatic parameter, including:
When the mobile terminal is playing the audio file, the pneumatic parameter is obtained.
4. according to the method described in claim 3, it is characterized in that, being obtained from least one set of audio frequency parameter described
Before the step of target audio parameter corresponding with the air pressure, the method also includes:
Determine the air pressure difference between the pneumatic parameter and standard pressure parameter;
When the air pressure difference is greater than default secure threshold, stop playing the audio file;
It is described from least one set of audio frequency parameter, obtain target audio parameter corresponding with the pneumatic parameter the step of, wrap
It includes:
When the air pressure difference is not more than the default secure threshold, from least one set of audio frequency parameter, acquisition and institute
State the corresponding target audio parameter of pneumatic parameter.
5. method according to any one of claims 1 to 4, which is characterized in that broadcast described according to the target audio parameter
After the step of playback frequency file, the method also includes:
Detection stops play operation, and the stopping play operation being used to indicate the mobile terminal and stops playing audio file;
When detecting the stopping play operation of user's triggering, stop obtaining the pneumatic parameter.
6. a kind of mobile terminal, which is characterized in that the mobile terminal includes:
First obtains module, and for obtaining pneumatic parameter, the pneumatic parameter is used to indicate mobile terminal and is currently located environment pair
The air pressure answered;
Second obtains module, for obtaining target audio corresponding with the pneumatic parameter from least one set of audio frequency parameter
Parameter;
Playing module, for playing audio file according to the target audio parameter.
7. mobile terminal according to claim 6, which is characterized in that the target audio parameter includes the first audio frequency parameter
With the second audio frequency parameter;
Described second, which obtains module, includes:
Submodule is shown, for showing at least one corresponding parameter value of first audio frequency parameter to user;
First determines submodule, and the selection operation for triggering in response to user is determined and used from least one described parameter value
The parameter value that family selects is the first audio frequency parameter;
Second determines submodule, for the corresponding relationship according to preset pneumatic parameter and the second audio frequency parameter, determine with it is described
Corresponding second audio frequency parameter of pneumatic parameter.
8. mobile terminal according to claim 6, which is characterized in that described first, which obtains module, includes:
Acquisition submodule, for obtaining the pneumatic parameter when the mobile terminal is playing the audio file.
9. mobile terminal according to claim 8, which is characterized in that the mobile terminal further includes:
Determining module, for determining the air pressure difference between the pneumatic parameter and standard pressure parameter;
Stop playing module, for stopping playing the audio file when the air pressure difference is greater than default secure threshold;
Described second, which obtains module, includes:
Acquisition submodule is used for when the air pressure difference is not more than the default secure threshold, from least one set of audio
In parameter, target audio parameter corresponding with the pneumatic parameter is obtained.
10. according to any mobile terminal of claim 6 to 9, which is characterized in that the mobile terminal further includes:
Detection module stops play operation for detecting, and the stopping play operation being used to indicate the mobile terminal stopping and broadcasts
Playback frequency file;
Stop obtaining module, for stopping obtaining the pneumatic parameter when detecting the stopping play operation of user's triggering.
11. a kind of mobile terminal, which is characterized in that including processor, memory and be stored on the memory and can be in institute
The computer program run on processor is stated, such as claim 1 to 5 is realized when the computer program is executed by the processor
Any one of described in audio frequency playing method the step of.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810678188.3A CN108848267B (en) | 2018-06-27 | 2018-06-27 | Audio playing method and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810678188.3A CN108848267B (en) | 2018-06-27 | 2018-06-27 | Audio playing method and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108848267A true CN108848267A (en) | 2018-11-20 |
CN108848267B CN108848267B (en) | 2020-11-13 |
Family
ID=64202755
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810678188.3A Active CN108848267B (en) | 2018-06-27 | 2018-06-27 | Audio playing method and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108848267B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111930990A (en) * | 2019-05-13 | 2020-11-13 | 阿里巴巴集团控股有限公司 | Method, system and terminal equipment for determining voice playing setting of electronic book |
CN112616108A (en) * | 2020-12-14 | 2021-04-06 | Oppo广东移动通信有限公司 | Audio output method, device, system, storage medium and electronic equipment |
CN113655983A (en) * | 2021-07-27 | 2021-11-16 | 深圳市冠旭电子股份有限公司 | Audio playing method and device, audio playing equipment and readable storage medium |
WO2022227793A1 (en) * | 2021-04-28 | 2022-11-03 | Oppo广东移动通信有限公司 | Loudspeaker parameter configuration method and related apparatus |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104281432A (en) * | 2014-09-18 | 2015-01-14 | 小米科技有限责任公司 | Method and device for regulating sound effect |
CN104714648A (en) * | 2015-03-25 | 2015-06-17 | 广东欧珀移动通信有限公司 | Method and device for switching music playing scenes |
CN104954949A (en) * | 2015-06-18 | 2015-09-30 | 张尚国 | Smart headphones capable of automatically adjusting output signal according to acquired signal and control method |
CN104956688A (en) * | 2013-02-12 | 2015-09-30 | 高通股份有限公司 | Speaker equalization for mobile devices |
CN105100469A (en) * | 2015-07-21 | 2015-11-25 | 京东方科技集团股份有限公司 | Mobile device |
CN204859528U (en) * | 2015-06-18 | 2015-12-09 | 张尚国 | Intelligence earphone with baroceptor |
CN105792079A (en) * | 2016-03-28 | 2016-07-20 | 歌尔声学股份有限公司 | Loudspeaker module, loudspeaker system and diaphragm balance adjusting method |
CN106095386A (en) * | 2016-06-16 | 2016-11-09 | 广东欧珀移动通信有限公司 | The method to set up of a kind of sound effect parameters and mobile terminal |
US9769568B2 (en) * | 2014-12-22 | 2017-09-19 | 2236008 Ontario Inc. | System and method for speech reinforcement |
US20170293396A1 (en) * | 2016-04-07 | 2017-10-12 | Sony Mobile Communications Inc. | Information processing apparatus |
US20170325043A1 (en) * | 2016-05-06 | 2017-11-09 | Jean-Marc Jot | Immersive audio reproduction systems |
CN107750036A (en) * | 2017-10-31 | 2018-03-02 | 北京酷我科技有限公司 | A kind of method for the simulation panorama audio that can customize |
CN107948822A (en) * | 2017-12-23 | 2018-04-20 | 广州市尊浪电器有限公司 | A kind of intelligent-induction sound equipment |
-
2018
- 2018-06-27 CN CN201810678188.3A patent/CN108848267B/en active Active
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104956688A (en) * | 2013-02-12 | 2015-09-30 | 高通股份有限公司 | Speaker equalization for mobile devices |
CN104281432A (en) * | 2014-09-18 | 2015-01-14 | 小米科技有限责任公司 | Method and device for regulating sound effect |
US9769568B2 (en) * | 2014-12-22 | 2017-09-19 | 2236008 Ontario Inc. | System and method for speech reinforcement |
CN104714648A (en) * | 2015-03-25 | 2015-06-17 | 广东欧珀移动通信有限公司 | Method and device for switching music playing scenes |
CN104954949A (en) * | 2015-06-18 | 2015-09-30 | 张尚国 | Smart headphones capable of automatically adjusting output signal according to acquired signal and control method |
CN204859528U (en) * | 2015-06-18 | 2015-12-09 | 张尚国 | Intelligence earphone with baroceptor |
CN105100469A (en) * | 2015-07-21 | 2015-11-25 | 京东方科技集团股份有限公司 | Mobile device |
CN105792079A (en) * | 2016-03-28 | 2016-07-20 | 歌尔声学股份有限公司 | Loudspeaker module, loudspeaker system and diaphragm balance adjusting method |
US20170293396A1 (en) * | 2016-04-07 | 2017-10-12 | Sony Mobile Communications Inc. | Information processing apparatus |
US20170325043A1 (en) * | 2016-05-06 | 2017-11-09 | Jean-Marc Jot | Immersive audio reproduction systems |
CN106095386A (en) * | 2016-06-16 | 2016-11-09 | 广东欧珀移动通信有限公司 | The method to set up of a kind of sound effect parameters and mobile terminal |
CN107750036A (en) * | 2017-10-31 | 2018-03-02 | 北京酷我科技有限公司 | A kind of method for the simulation panorama audio that can customize |
CN107948822A (en) * | 2017-12-23 | 2018-04-20 | 广州市尊浪电器有限公司 | A kind of intelligent-induction sound equipment |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111930990A (en) * | 2019-05-13 | 2020-11-13 | 阿里巴巴集团控股有限公司 | Method, system and terminal equipment for determining voice playing setting of electronic book |
CN111930990B (en) * | 2019-05-13 | 2024-05-10 | 阿里巴巴集团控股有限公司 | Method, system and terminal equipment for determining voice playing setting of electronic book |
CN112616108A (en) * | 2020-12-14 | 2021-04-06 | Oppo广东移动通信有限公司 | Audio output method, device, system, storage medium and electronic equipment |
CN112616108B (en) * | 2020-12-14 | 2023-12-22 | Oppo广东移动通信有限公司 | Audio output method, device, system, storage medium and electronic equipment |
WO2022227793A1 (en) * | 2021-04-28 | 2022-11-03 | Oppo广东移动通信有限公司 | Loudspeaker parameter configuration method and related apparatus |
CN113655983A (en) * | 2021-07-27 | 2021-11-16 | 深圳市冠旭电子股份有限公司 | Audio playing method and device, audio playing equipment and readable storage medium |
CN113655983B (en) * | 2021-07-27 | 2023-09-08 | 深圳市冠旭电子股份有限公司 | Audio playing method and device, audio playing equipment and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108848267B (en) | 2020-11-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108874357A (en) | A kind of reminding method and mobile terminal | |
CN108848267A (en) | Audio frequency playing method and mobile terminal | |
CN107911445A (en) | A kind of information push method, mobile terminal and storage medium | |
CN110177296A (en) | A kind of video broadcasting method and mobile terminal | |
CN108540655A (en) | A kind of caller identification processing method and mobile terminal | |
CN107743178A (en) | A kind of message player method and mobile terminal | |
CN108762869A (en) | A kind of information processing method and mobile terminal | |
CN110062104A (en) | Application program launching method, device and mobile terminal | |
CN109194899A (en) | A kind of method and terminal of audio-visual synchronization | |
CN108063999A (en) | A kind of dust-proof network detecting method, mobile terminal | |
CN114077414A (en) | Audio playing control method and device, electronic equipment and storage medium | |
CN108881617A (en) | A kind of display changeover method and mobile terminal | |
CN109361797A (en) | A kind of vocal technique and mobile terminal | |
CN108469968A (en) | A kind of applied program processing method and mobile terminal | |
CN108196815A (en) | A kind of adjusting method and mobile terminal of sound of conversing | |
CN109144703A (en) | A kind of processing method and its terminal device of multitask | |
CN109981904A (en) | A kind of method for controlling volume and terminal device | |
CN108495349A (en) | A kind of switching method and mobile terminal of carrier network | |
CN107835495A (en) | A kind of message prompt method, device and mobile terminal | |
CN107911777B (en) | Processing method and device for return-to-ear function and mobile terminal | |
CN108009031A (en) | The control method and mobile terminal of a kind of application program | |
CN110058837A (en) | A kind of audio-frequency inputting method and terminal | |
CN108319440B (en) | Audio output method and mobile terminal | |
CN109743454A (en) | A kind of call handling method and mobile terminal | |
CN108307048A (en) | A kind of message output method and device and mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |