CN106095387B - A kind of the audio setting method and terminal of terminal - Google Patents
A kind of the audio setting method and terminal of terminal Download PDFInfo
- Publication number
- CN106095387B CN106095387B CN201610440003.6A CN201610440003A CN106095387B CN 106095387 B CN106095387 B CN 106095387B CN 201610440003 A CN201610440003 A CN 201610440003A CN 106095387 B CN106095387 B CN 106095387B
- Authority
- CN
- China
- Prior art keywords
- audio
- audio stream
- type
- track
- terminal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/16—Sound input; Sound output
- G06F3/165—Management of the audio stream, e.g. setting of volume, audio stream path
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- General Health & Medical Sciences (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the invention discloses the audio setting methods and terminal of a kind of terminal.Method therein includes: the request to create monitored audio and play access;After creating the audio broadcasting access, obtains and pass through the audio stream that the audio plays access output;Identify the type of the audio stream;According to the type of the audio stream identified, the audio setting opened or closed for the audio stream is determined.Also disclose corresponding terminal.The type of the audio stream of access output is played by the audio created under identification current scene, audio setting is carried out according to the type of the audio stream identified, it can solve the problem of global audio is not suitable with certain scenes and leads to noise or desired hearing enjoying is not achieved, guarantee that adaptable audio effect can be obtained under different application scene.
Description
Technical field
The present invention relates to technical field of information processing more particularly to the audio setting methods and terminal of a kind of terminal.
Background technique
The audio stream for transmitting and playing in current terminal is varied, and source is also varied, for example comes from voice
Call, music player, system plugin, game application etc..It is enjoyed in order to which user can obtain the more comfortable sense of hearing when listening to audio
By, Developmental Engineer can the output audio to system be configured, but this set is for the overall situation, can not be because of audio
Stream is to belong to call audio or the different froms such as music or prompt tone.But in actual use, user is often to inhomogeneity
The audio of type has different audio expectations, such as the audio in communication process needs to guarantee its clarity and fidelity;Game sound
Frequency is often desirable to that acoustic background is strong and powerful, and timing is strong;Then wish to enhance telepresenc when music.To system audio audio
The mode for carrying out unified setting is not able to satisfy these requirements.
Summary of the invention
The embodiment of the present invention provides the audio setting method and terminal of a kind of terminal, is not suitable with the global audio of solution certain
Scene and the problem of lead to noise or desired hearing enjoying be not achieved, guarantee to obtain under different application scene adaptable
Audio effect.
On the one hand, a kind of audio setting method of terminal is provided, which comprises
Monitor the request to create that audio plays access;
After creating the audio broadcasting access, obtains and pass through the audio stream that the audio plays access output;
Identify the type of the audio stream;
According to the type of the audio stream identified, the audio setting opened or closed for the audio stream is determined.
Preferably, the type of different audio streams corresponds to different broadcasting scenes.
Preferably, at least one audio is created in the terminal simultaneously and plays access, the audio stream includes multiple broadcasts
Put journey into, multiple broadcasting processes that the same audio plays the audio stream in access have same mark;
The type of the identification audio stream, comprising:
According to the mark of the broadcasting process, identify that the audio of the audio stream plays access;
Access is played according to the audio identified, identifies the type of the audio stream.
Preferably, the type for the audio stream that the basis identifies, determination are opened or closed for the audio stream
Audio setting, comprising:
When the type of the audio stream is the first Audio Stream type, determine that opening the audio for being directed to the audio stream sets
It sets, first Audio Stream type includes: musical sound;
When the type of the audio stream is the second Audio Stream type, determine that closing the audio for being directed to the audio stream sets
It sets, second Audio Stream type comprises at least one of the following: warning, system sounds, the tinkle of bells and telephone speech.
Preferably, the method also includes:
Monitor the release request that the audio plays access;
It has been discharged when the audio plays access, the audio closed for the audio stream is arranged.
On the other hand, a kind of terminal is provided, the terminal includes:
Module is monitored, the request to create of access is played for monitoring audio;
Module is obtained, for after the monitoring module listens to and creates the audio broadcasting access, acquisition to pass through institute
State the audio stream that audio plays access output;
Identification module, the type for the audio stream that the acquisition module obtains for identification;
Setup module, the type of the audio stream for being identified according to the identification module, determination open or close
For the audio setting of the audio stream.
Preferably, the type of different audio streams corresponds to different broadcasting scenes.
Preferably, at least one audio is created in the terminal simultaneously and plays access, the audio stream includes multiple broadcasts
Put journey into, multiple broadcasting processes that the same audio plays the audio stream in access have same mark;
The identification module includes:
First recognition unit identifies that the audio of the audio stream plays access for the mark according to the broadcasting process;
Second recognition unit, the audio for being identified according to first recognition unit play access, identify institute
State the type of audio stream.
Preferably, the setup module includes:
Opening unit, the type of the audio stream for identifying when the identification module are the first Audio Stream type
When, determine the audio setting opened for the audio stream, first Audio Stream type includes: musical sound;
Closing unit, the type of the audio stream for identifying when the identification module are the second Audio Stream type
When, determine the audio setting closed for the audio stream, second Audio Stream type comprises at least one of the following: warning
Sound, system sounds, the tinkle of bells and telephone speech.
Preferably, the module of monitoring is also used to monitor the release request that the audio plays access;
The setup module is also used to discharge when the monitoring module listens to the audio broadcasting access, and closing is directed to
The audio of the audio stream is arranged.
Another aspect, provides a kind of terminal, and the terminal includes input unit, output device, memory and processor;
The memory is for storing instruction;
The processor is for executing described instruction to realize:
Monitor the request to create that audio plays access;
After creating the audio broadcasting access, obtains and pass through the audio stream that the audio plays access output;
Identify the type of the audio stream;
According to the type of the audio stream identified, the audio setting opened or closed for the audio stream is determined.
Preferably, the type of different audio streams corresponds to different broadcasting scenes.
Preferably, at least one audio is created in the terminal simultaneously and plays access, the audio stream includes multiple broadcasts
Put journey into, multiple broadcasting processes that the same audio plays the audio stream in access have same mark;
The processor is specifically used for:
According to the mark of the broadcasting process, identify that the audio of the audio stream plays access;
Access is played according to the audio identified, identifies the type of the audio stream.
Preferably, the processor is specifically used for:
When the type of the audio stream is the first Audio Stream type, determine that opening the audio for being directed to the audio stream sets
It sets, first Audio Stream type includes: musical sound;
When the type of the audio stream is the second Audio Stream type, determine that closing the audio for being directed to the audio stream sets
It sets, second Audio Stream type comprises at least one of the following: warning, system sounds, the tinkle of bells and telephone speech.
Preferably, the processor is also used to:
Monitor the release request that the audio plays access;
It has been discharged when the audio plays access, the audio closed for the audio stream is arranged.
The audio setting method and terminal for implementing a kind of terminal provided in an embodiment of the present invention, have the following beneficial effects:
The type that the audio stream of access output is played by the audio created under identification current scene, according to the sound identified
The type of frequency stream carries out audio setting, can solve global audio and is not suitable with certain scenes and leads to noise or be not achieved desired
The problem of hearing enjoying, guarantees that adaptable audio effect can be obtained under different application scene.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of the audio setting method of terminal provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of the audio setting method of another terminal provided in an embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of terminal provided in an embodiment of the present invention;
Fig. 4 is the structural schematic diagram of another terminal provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of another 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 only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Fig. 1 is a kind of flow diagram of the audio setting method of terminal provided in an embodiment of the present invention, and this method includes
Following steps:
S101 monitors the request to create that audio plays access.
In the application of one audio management service of terminal running background, all audios in terminal plays must be through audio management
Service carries out unified audio setting.When playing audio, it is necessary first to client where creating an audio-source to audio pipe
The audio of reason service plays access, exports audio stream to audio management service by the access.Before exporting audio stream, monitor
The request to create of audio broadcasting access.It is the creation for monitoring AudioTrack specifically in Google decoder.
S102 is obtained after creating the audio broadcasting access and is passed through the audio stream that the audio plays access output.
After creating audio and playing access, client where audio-source can be defeated to audio management service by the access
Audio stream out, the audio frequency controller service acquisition audio stream.
S103 identifies the type of the audio stream.
Audio Stream type (Stream Type) construction AudioTrack first parameter in use, this parameter and
AudioManager in Android has relationship, the audio frequency controller strategy being related in terminal.
The sound of system or audio are divided into the common type of following a few classes by Android:
STREAM_ALARM: warning;
STREAM_MUSIC: musical sound, such as music etc.;
STREAM_RING: the tinkle of bells;
STREAM_SYSTEM: system sounds;
STREAM_VOCIE_CALL: telephone speech.
The above is only example, the present embodiment does not limit the type of audio stream.
After obtaining audio stream, the type of audio stream can be identified, which can be used prior art means, herein not
It repeats again.
S104 determines the audio opened or closed for the audio stream according to the type of the audio stream identified
Setting.
The type of different audio streams corresponds to different broadcasting scenes, for example, Audio Stream type is the tinkle of bells, corresponding broadcasting
Scene or client may be quarter-bell, and Audio Stream type is musical sound, then corresponding broadcasting scene or client may be music
Or video player, audio can greatly improve user experience really in some scenes, for example play music, video, but certain
Scene effect is on the contrary, such as quarter-bell, warning tone etc., and therefore, according to the type of the audio stream identified, on or off is played in determination
The audio closed for the audio stream is arranged, and is adapted audio setting with scene particularly significant, and otherwise, audio setting plays phase
Anti- effect.In the above example, when Audio Stream type is musical sound, audio setting can be opened, and Audio Stream type is
When the tinkle of bells, then suggest closing audio setting.
For the type of some audio streams, need to open audio setting, and for the type of other audio stream, it needs
Audio setting is closed, the type of audio stream and the corresponding relationship for opening or closing audio setting can be stored, in the terminal with certainly
It is dynamic to realize that audio setting matches with scene.
A kind of audio setting method of the terminal provided according to embodiments of the present invention passes through what is created under identification current scene
Audio plays the type of the audio stream of access output, carries out audio setting according to the type of the audio stream identified, can solve
The problem of global audio is not suitable with certain scenes and leads to noise or desired hearing enjoying is not achieved, guarantees in different application field
Adaptable audio effect can be obtained under scape.
Fig. 2 is the flow diagram of the audio setting method of another terminal provided in an embodiment of the present invention, this method packet
Include following steps:
S201 monitors the request to create that audio plays access.
S202 is obtained after creating the audio broadcasting access and is passed through the audio stream that the audio plays access output.
Step S201, the realization of S202 is identical as step S101, S102 of embodiment illustrated in fig. 1 respectively, no longer superfluous herein
It states.
S203 identifies that the audio of the audio stream plays access according to the mark of the broadcasting process of the audio stream.
S204 plays access according to the audio identified, identifies the type of the audio stream.
One or more audios can be created in the present embodiment, in terminal simultaneously and play access, an audio stream includes more again
A broadcasting process, and multiple broadcasting processes that the same audio plays the audio stream in access have same mark, therefore, according to
The mark of broadcasting process can identify that the audio of audio stream plays access, and an audio plays and only plays a seed type in access
Audio stream, therefore access is played according to the audio that identifies, can determine the type of audio stream.The type of audio stream include with
Lower at least one: musical sound, warning, system sounds, the tinkle of bells and telephone speech.
S205 determines the sound opened and be directed to the audio stream when the type of the audio stream is the first Audio Stream type
Effect setting, first Audio Stream type includes: musical sound;Or when the type of the audio stream is the second Audio Stream type,
Determine the audio setting closed for the audio stream, second Audio Stream type comprises at least one of the following: warning is
System sound, the tinkle of bells and telephone speech.
The type of different audio streams corresponds to different broadcasting scenes, for example, Audio Stream type is the tinkle of bells, corresponding broadcasting
Scene or client may be quarter-bell, and Audio Stream type is musical sound, then corresponding broadcasting scene or client may be music
Or video player, audio can greatly improve user experience really in some scenes, for example play music, video, but certain
Scene effect is on the contrary, such as quarter-bell, warning tone etc., and therefore, according to the type of the audio stream identified, on or off is played in determination
The audio closed for the audio stream is arranged, and is adapted audio setting with scene particularly significant, and otherwise, audio setting plays phase
Anti- effect.In the above example, when Audio Stream type is musical sound, audio setting can be opened, and Audio Stream type is
When the tinkle of bells, then suggest closing audio setting.
For the first Audio Stream type, need to open audio setting, and for the second Audio Stream type, it needs to close audio
Setting can store the first, second Audio Stream type in the terminal and open or close the corresponding relationship of audio setting, Yi Jicun
It stores up which kind Audio Stream type the first, second Audio Stream type respectively includes, is matched with realizing that audio is arranged automatically with scene.
Here, the first, second Audio Stream type refers to the classification of Audio Stream type.
S206 monitors the release request that the audio plays access.
After the audio that the audio plays access finishes or stops playing, needs to discharge audio and play access, with section
System resource is saved, the present embodiment can monitor the release that audio plays access, be to monitor specifically in Google decoder
The release of AudioTrack.
S207 has been discharged when the audio plays access, and the audio closed for the audio stream is arranged.
If the audio setting for playing the audio stream of access for the audio discharged is open, closing is directed to should
The audio of audio stream is arranged.
A kind of audio setting method of the terminal provided according to embodiments of the present invention passes through what is created under identification current scene
Audio plays the type of the audio stream of access output, carries out audio setting according to the type of the audio stream identified, can solve
The problem of global audio is not suitable with certain scenes and leads to noise or desired hearing enjoying is not achieved, guarantees in different application field
Adaptable audio effect can be obtained under scape.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of
Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because
According to the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know
It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules is not necessarily of the invention
It is necessary.
Fig. 3 is a kind of structural schematic diagram of terminal provided in an embodiment of the present invention, which includes:
Module 11 is monitored, the request to create of access is played for monitoring audio.
In the application of one audio management service of terminal running background, all audios in terminal plays must be through audio management
Service carries out unified audio setting.When playing audio, it is necessary first to client where creating an audio-source to audio pipe
The audio of reason service plays access, exports audio stream to audio management service by the access.Before exporting audio stream, monitor
The request to create of audio broadcasting access.It is the creation for monitoring AudioTrack specifically in Google decoder.
Module 12 is obtained, for after the monitoring module listens to and creates the audio broadcasting access, acquisition to pass through
The audio plays the audio stream of access output.
After creating audio and playing access, client where audio-source can be defeated to audio management service by the access
Audio stream out, the audio frequency controller service acquisition audio stream.
Identification module 13, the type for the audio stream that the acquisition module obtains for identification.
Audio Stream type (Stream Type) construction AudioTrack first parameter in use, this parameter and
AudioManager in Android has relationship, the audio frequency controller strategy being related in terminal.
The sound of system or audio are divided into the common type of following a few classes by Android:
STREAM_ALARM: warning;
STREAM_MUSIC: musical sound, such as music etc.;
STREAM_RING: the tinkle of bells;
STREAM_SYSTEM: system sounds;
STREAM_VOCIE_CALL: telephone speech.
The above is only example, the present embodiment does not limit the type of audio stream.
After obtaining audio stream, the type of audio stream can be identified, which can be used prior art means, herein not
It repeats again.
On or off is played in setup module 14, the type of the audio stream for being identified according to the identification module, determination
The audio closed for the audio stream is arranged.
The type of different audio streams corresponds to different broadcasting scenes, for example, Audio Stream type is the tinkle of bells, corresponding broadcasting
Scene or client may be quarter-bell, and Audio Stream type is musical sound, then corresponding broadcasting scene or client may be music
Or video player, audio can greatly improve user experience really in some scenes, for example play music, video, but certain
Scene effect is on the contrary, such as quarter-bell, warning tone etc., and therefore, according to the type of the audio stream identified, on or off is played in determination
The audio closed for the audio stream is arranged, and is adapted audio setting with scene particularly significant, and otherwise, audio setting plays phase
Anti- effect.In the above example, when Audio Stream type is musical sound, audio setting can be opened, and Audio Stream type is
When the tinkle of bells, then suggest closing audio setting.
For the type of some audio streams, need to open audio setting, and for the type of other audio stream, it needs
Audio setting is closed, the type of audio stream and the corresponding relationship for opening or closing audio setting can be stored, in the terminal with certainly
It is dynamic to realize that audio setting matches with scene.
It is defeated to play access by the audio created under identification current scene for a kind of terminal provided according to embodiments of the present invention
The type of audio stream out carries out audio setting according to the type of the audio stream identified, it is inadaptable to can solve global audio
Certain scenes and the problem of lead to noise or desired hearing enjoying be not achieved, guarantee that phase can be obtained under different application scene
The audio effect of adaptation.
Fig. 4 is the structural schematic diagram of another terminal provided in an embodiment of the present invention, which includes:
Module 21 is monitored, the request to create of access is played for monitoring audio.
Module 22 is obtained, for after the monitoring module listens to and creates the audio broadcasting access, acquisition to pass through
The audio plays the audio stream of access output.
Monitor module 21, obtain module 22 function realize respectively with the monitoring module 11 of embodiment illustrated in fig. 3, obtain mould
Block 12 is identical, and details are not described herein.
Identification module 23, the type for the audio stream that the acquisition module obtains for identification.
In the present embodiment, identification module 23 includes the first recognition unit 231 and the second recognition unit 232.
First recognition unit 231 identifies the sound of the audio stream for the mark according to the broadcasting process of the audio stream
Frequency plays access.
Second recognition unit 232, the audio for being identified according to first recognition unit play access, identification
The type of the audio stream.
One or more audios can be created in the present embodiment, in terminal simultaneously and play access, an audio stream includes more again
A broadcasting process, and multiple broadcasting processes that the same audio plays the audio stream in access have same mark, therefore, according to
The mark of broadcasting process can identify that the audio of audio stream plays access, and an audio plays and only plays a seed type in access
Audio stream, therefore access is played according to the audio that identifies, can determine the type of audio stream.The type of audio stream include with
Lower at least one: musical sound, warning, system sounds, the tinkle of bells and telephone speech.
On or off is played in setup module 24, the type of the audio stream for being identified according to the identification module, determination
The audio closed for the audio stream is arranged.
In the present embodiment, setup module 24 includes opening unit 241 and closing unit 242.
Opening unit 241, the type of the audio stream for identifying when the identification module are the first audio stream class
When type, the audio setting opened for the audio stream is determined, first Audio Stream type includes: musical sound.
Closing unit 242, the type of the audio stream for identifying when the identification module are the second audio stream class
When type, the audio setting closed for the audio stream is determined, second Audio Stream type comprises at least one of the following: warning
Sound, system sounds, the tinkle of bells and telephone speech.
The type of different audio streams corresponds to different broadcasting scenes, for example, Audio Stream type is the tinkle of bells, corresponding broadcasting
Scene or client may be quarter-bell, and Audio Stream type is musical sound, then corresponding broadcasting scene or client may be music
Or video player, audio can greatly improve user experience really in some scenes, for example play music, video, but certain
Scene effect is on the contrary, such as quarter-bell, warning tone etc., and therefore, according to the type of the audio stream identified, on or off is played in determination
The audio closed for the audio stream is arranged, and is adapted audio setting with scene particularly significant, and otherwise, audio setting plays phase
Anti- effect.In the above example, when Audio Stream type is musical sound, audio setting can be opened, and Audio Stream type is
When the tinkle of bells, then suggest closing audio setting.
For the first Audio Stream type, need to open audio setting, and for the second Audio Stream type, it needs to close audio
Setting can store the first, second Audio Stream type in the terminal and open or close the corresponding relationship of audio setting, Yi Jicun
It stores up which kind Audio Stream type the first, second Audio Stream type respectively includes, is matched with realizing that audio is arranged automatically with scene.
Here, the first, second Audio Stream type refers to the classification of Audio Stream type.
It monitors module 21 and is also used to monitor the release request that the audio plays access.
After the audio that the audio plays access finishes or stops playing, needs to discharge audio and play access, with section
System resource is saved, the present embodiment can monitor the release that audio plays access, be to monitor specifically in Google decoder
The release of AudioTrack.
Setup module 24 is also used to discharge when the monitoring module listens to the audio broadcasting access, closes and is directed to institute
State the audio setting of audio stream.
If the audio setting for playing the audio stream of access for the audio discharged is open, closing is directed to should
The audio of audio stream is arranged.
It is defeated to play access by the audio created under identification current scene for a kind of terminal provided according to embodiments of the present invention
The type of audio stream out carries out audio setting according to the type of the audio stream identified, it is inadaptable to can solve global audio
Certain scenes and the problem of lead to noise or desired hearing enjoying be not achieved, guarantee that phase can be obtained under different application scene
The audio effect of adaptation.
The embodiment of the invention also provides another terminals, as shown in figure 5, for ease of description, illustrating only and this hair
The relevant part of bright embodiment, it is disclosed by specific technical details, please refer to present invention method part.The terminal device
Can be includes mobile phone, tablet computer, PDA (Personal Digital Assistant, personal digital assistant), POS
Any terminal device such as (Point of Sales, point-of-sale terminal), vehicle-mounted computer, by taking terminal device is mobile phone as an example:
Fig. 5 shows the block diagram of the part-structure of mobile phone relevant to terminal device provided in an embodiment of the present invention.Ginseng
Fig. 5 is examined, mobile phone includes: radio frequency (Radio Frequency, RF) circuit 1110, memory 1120, input unit 1130, display
Unit 1140, sensor 1150, voicefrequency circuit 1160, Wireless Fidelity (WirelessFidelity, WiFi) module 1170, processing
The components such as device 1180 and power supply 1190.It will be understood by those skilled in the art that handset structure shown in Fig. 5 is not constituted
Restriction to mobile phone may include perhaps combining certain components or different component cloth than illustrating more or fewer components
It sets.
It is specifically introduced below with reference to each component parts of the Fig. 5 to mobile phone:
RF circuit 1110 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station
After downlink information receives, handled to processor 1180;In addition, the data for designing uplink are sent to base station.In general, RF circuit
1110 include but is not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise
Amplifier, LNA), duplexer etc..In addition, RF circuit 1110 can also be logical with network and other equipment by wireless communication
Letter.Any communication standard or agreement, including but not limited to global system for mobile communications (Global can be used in above-mentioned wireless communication
System of Mobile communication, GSM), general packet radio service (General Packet Radio
Service, GPRS), CDMA (Code Division Multiple Access, CDMA), wideband code division multiple access
(Wideband Code Division Multiple Access, WCDMA), long term evolution (Long Term Evolution,
LTE), Email, short message service (Short Messaging Service, SMS) etc..
Memory 1120 can be used for storing software program and module, and processor 1180 is stored in memory by operation
1120 software program and module, thereby executing the various function application and data processing of mobile phone.Memory 1120 can be led
It to include storing program area and storage data area, wherein storing program area can be needed for storage program area, at least one function
Application program (such as sound-playing function, image player function etc.) etc.;Storage data area, which can be stored, uses institute according to mobile phone
Data (such as audio data, phone directory etc.) of creation etc..In addition, memory 1120 may include high random access storage
Device, can also include nonvolatile memory, and a for example, at least disk memory, flush memory device or other volatibility are solid
State memory device.
Input unit 1130 can be used for receiving the number or character information of input, and generate with the user setting of mobile phone with
And the related key signals input of function control.Specifically, input unit 1130 may include touch panel 1131 and other inputs
Equipment 1132.Touch panel 1131, also referred to as touch screen collect touch operation (such as the user of user on it or nearby
Use the behaviour of any suitable object or attachment such as finger, stylus on touch panel 1131 or near touch panel 1131
Make), and corresponding attachment device is driven according to preset formula.Optionally, touch panel 1131 may include touch detection
Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band
The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it
It is converted into contact coordinate, then gives processor 1180, and order that processor 1180 is sent can be received and executed.In addition,
Touch panel 1131 can be realized using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch surface
Plate 1131, input unit 1130 can also include other input equipments 1132.Specifically, other input equipments 1132 may include
But in being not limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc.
It is one or more.
Display unit 1140 can be used for showing information input by user or be supplied to user information and mobile phone it is each
Kind menu.Display unit 1140 may include display panel 1141, optionally, can use liquid crystal display (Liquid
Crystal Display, LCD), the forms such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED)
To configure display panel 1141.Further, touch panel 1131 can cover display panel 1141, when touch panel 1131 detects
After arriving touch operation on it or nearby, processor 1180 is sent to determine the type of touch event, is followed by subsequent processing device
1180 provide corresponding visual output according to the type of touch event on display panel 1141.Although in Fig. 5, touch panel
1131 and display panel 1141 are the input and input function for realizing mobile phone as two independent components, but in certain realities
Apply in example, can be integrated by touch panel 1131 and display panel 1141 and that realizes mobile phone output and input function.
Mobile phone may also include at least one sensor 1150, such as optical sensor, motion sensor and other sensors.
Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ambient light
Light and shade adjust the brightness of display panel 1141, proximity sensor can close display panel when mobile phone is moved in one's ear
1141 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (generally three axis) and add
The size of speed can detect that size and the direction of gravity when static, can be used to identify application (such as the horizontal/vertical screen of mobile phone posture
Switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Also as mobile phone
The other sensors such as configurable gyroscope, barometer, hygrometer, thermometer, infrared sensor, details are not described herein.
Voicefrequency circuit 1160, loudspeaker 1161, microphone 1162 can provide the audio interface between user and mobile phone.Audio
Electric signal after the audio data received conversion can be transferred to loudspeaker 1161, be converted by loudspeaker 1161 by circuit 1160
For voice signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 1162, by voicefrequency circuit 1160
Audio data is converted to after reception, then by after the processing of audio data output processor 1180, through RF circuit 1110 to be sent to ratio
Such as another mobile phone, or audio data is exported to memory 1120 to be further processed.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronics postal by WiFi module 1170
Part, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 5 is shown
WiFi module 1170, but it is understood that, and it is not belonging to must be configured into for mobile phone, it can according to need do not changing completely
Become in the range of the essence of invention and omits.
Processor 1180 is the control centre of mobile phone, using the various pieces of various interfaces and connection whole mobile phone,
By running or execute the software program and/or module that are stored in memory 1120, and calls and be stored in memory 1120
Interior data execute the various functions and processing data of mobile phone, to carry out integral monitoring to mobile phone.Optionally, processor
1180 may include one or more processing units;Preferably, processor 1180 can integrate application processor and modulation /demodulation processing
Device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is mainly located
Reason wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 1180.
Mobile phone further includes the power supply 1190 (such as battery) powered to all parts, it is preferred that power supply can pass through power supply
Management system and processor 1180 are logically contiguous, to realize management charging, electric discharge and power consumption pipe by power-supply management system
The functions such as reason.
Although being not shown, mobile phone can also include camera, bluetooth module etc., and details are not described herein.
In embodiments of the present invention, processor 1180 included by the terminal device is also with the following functions:
Monitor the request to create that audio plays access;
After creating the audio broadcasting access, obtains and pass through the audio stream that the audio plays access output;
Identify the type of the audio stream;
According to the type of the audio stream identified, the audio setting opened or closed for the audio stream is determined.
In one implementation, the type of different audio streams corresponds to different broadcasting scenes.
In another implementation, at least one audio is created in the terminal simultaneously and plays access, the audio
Stream includes multiple broadcasting processes, and multiple broadcasting processes that the same audio plays the audio stream in access have same mark;
The processor 1180 is specifically used for:
According to the mark of the broadcasting process, identify that the audio of the audio stream plays access;
Access is played according to the audio identified, identifies the type of the audio stream.
In another implementation, the processor 1180 is specifically used for:
When the type of the audio stream is the first Audio Stream type, determine that opening the audio for being directed to the audio stream sets
It sets, first Audio Stream type includes: musical sound;
When the type of the audio stream is the second Audio Stream type, determine that closing the audio for being directed to the audio stream sets
It sets, second Audio Stream type comprises at least one of the following: warning, system sounds, the tinkle of bells and telephone speech.
In another implementation, the processor 1180 is also used to:
Monitor the release request that the audio plays access;
It has been discharged when the audio plays access, the audio closed for the audio stream is arranged.
It is defeated to play access by the audio created under identification current scene for a kind of terminal provided according to embodiments of the present invention
The type of audio stream out carries out audio setting according to the type of the audio stream identified, it is inadaptable to can solve global audio
Certain scenes and the problem of lead to noise or desired hearing enjoying be not achieved, guarantee that phase can be obtained under different application scene
The audio effect of adaptation.
The embodiment of the present invention also provides a kind of computer storage medium, wherein the computer storage medium can be stored with journey
Sequence, the program include the part or complete of the audio setting method for any terminal recorded in above method embodiment when executing
Portion's step.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, reference can be made to the related descriptions of other embodiments.
Through the above description of the embodiments, it is apparent to those skilled in the art that the present invention can be with
It is realized with hardware realization or firmware realization or their combination mode.It when implemented in software, can be by above-mentioned function
Storage in computer-readable medium or as on computer-readable medium one or more instructions or code transmitted.Meter
Calculation machine readable medium includes computer storage media and communication media, and wherein communication media includes convenient for from a place to another
Any medium of a place transmission computer program.Storage medium can be any usable medium that computer can access.With
For this but be not limited to: computer-readable medium may include random access memory (Random Access Memory,
RAM), read-only memory (Read-Only Memory, ROM), Electrically Erasable Programmable Read-Only Memory (Electrically
Erasable Programmable Read-Only Memory, EEPROM), CD-ROM (Compact Disc Read-
Only Memory, CD-ROM) or other optical disc storages, magnetic disk storage medium or other magnetic storage apparatus or can be used in
Carry or storage have instruction or data structure form desired program code and can by computer access any other
Medium.Furthermore.Any connection appropriate can become computer-readable medium.For example, if software is using coaxial cable, light
Fine optical cable, twisted pair, Digital Subscriber Line (Digital Subscriber Line, DSL) or such as infrared ray, radio and
The wireless technology of microwave etc is transmitted from website, server or other remote sources, then coaxial cable, optical fiber cable, double
The wireless technology of twisted wire, DSL or such as infrared ray, wireless and microwave etc includes in the fixing of affiliated medium.Such as this hair
Used in bright, disk (Disk) and dish (disc) include compress optical disc (CD), laser disc, optical disc, Digital Versatile Disc (DVD),
Floppy disk and Blu-ray Disc, the usually magnetic replicate data of which disk, and dish is then with laser come optical replicate data.Group above
Conjunction should also be as including within the protection scope of computer-readable medium.
In short, being not intended to limit of the invention the foregoing is merely the preferred embodiment of technical solution of the present invention
Protection scope.All within the spirits and principles of the present invention, any modification, equivalent replacement, improvement and so on should be included in
Within protection scope of the present invention.
Claims (10)
1. a kind of audio setting method of terminal, which is characterized in that the described method includes:
The request to create for monitoring track, creates between the audio-source and audio management service of audio stream according to the request to create
Track;
After creating the track, the audio stream exported by the track is obtained;
The type of the audio stream is identified according to first parameter for creating the track;First parameter of the track is used for
Identify the type for the audio stream that the track can only play;The Audio Stream type that first parameter of the track is identified is by grasping
Make default;
According to the type of the audio stream identified, the audio setting opened or closed for the audio stream is determined.
2. the method as described in claim 1, which is characterized in that the type of different audio streams corresponds to different broadcasting scenes.
3. method according to claim 1 or 2, which is characterized in that create at least one track, institute in the terminal simultaneously
Stating audio stream includes multiple broadcasting processes, and multiple broadcasting processes of the audio stream in the same track have same mark;
The type of the identification audio stream, comprising:
According to the mark of the broadcasting process, the track of the audio stream is identified;
According to the track identified, the type of the audio stream is identified.
4. method according to claim 1 or 2, which is characterized in that the type for the audio stream that the basis identifies, really
Surely the audio setting for the audio stream is opened or closed, comprising:
When the type of the audio stream is the first Audio Stream type, the audio setting opened for the audio stream, institute are determined
Stating the first Audio Stream type includes: musical sound;
When the type of the audio stream is the second Audio Stream type, the audio setting closed for the audio stream, institute are determined
It states the second Audio Stream type to comprise at least one of the following: warning, system sounds, the tinkle of bells and telephone speech.
5. the method as described in claim 1, which is characterized in that the method also includes:
Monitor the release request of the track;
When the track has discharged, the audio closed for the audio stream is arranged.
6. a kind of terminal, which is characterized in that the terminal includes:
Module is monitored, for monitoring the request to create of track;
The module of track is created between the audio-source and audio management service of audio stream according to the request to create;
Module is obtained, for when the monitoring module listens to and creates the track after, what acquisition was exported by the track
Audio stream;
Identification module, the audio stream obtained for identifying the acquisition module according to first parameter for creating the track
Type;First parameter of the track is used to identify the type for the audio stream that the track can only play;The track
The Audio Stream type that first parameter is identified is set by operating system;
Setup module, the type of the audio stream for being identified according to the identification module, determining open or close are directed to
The audio of the audio stream is arranged.
7. terminal as claimed in claim 6, which is characterized in that the type of different audio streams corresponds to different broadcasting scenes.
8. terminal as claimed in claims 6 or 7, which is characterized in that create at least one track, institute in the terminal simultaneously
Stating audio stream includes multiple broadcasting processes, and multiple broadcasting processes of the audio stream in the same track have same mark;
The identification module includes:
First recognition unit identifies the track of the audio stream for the mark according to the broadcasting process;
Second recognition unit, the track for being identified according to first recognition unit, identifies the class of the audio stream
Type.
9. terminal as claimed in claims 6 or 7, which is characterized in that the setup module includes:
Opening unit, when the type of the audio stream for identifying when the identification module is the first Audio Stream type, really
The fixed audio setting opened for the audio stream, first Audio Stream type includes: musical sound;
Closing unit, when the type of the audio stream for identifying when the identification module is the second Audio Stream type, really
The fixed audio setting closed for the audio stream, second Audio Stream type comprise at least one of the following: warning, system
Sound, the tinkle of bells and telephone speech.
10. terminal as claimed in claim 6, it is characterised in that:
The release request monitored module and be also used to monitor the track;
The setup module is also used to discharge when the monitoring module listens to the track, closes for the audio stream
Audio setting.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610440003.6A CN106095387B (en) | 2016-06-16 | 2016-06-16 | A kind of the audio setting method and terminal of terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610440003.6A CN106095387B (en) | 2016-06-16 | 2016-06-16 | A kind of the audio setting method and terminal of terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106095387A CN106095387A (en) | 2016-11-09 |
CN106095387B true CN106095387B (en) | 2019-06-25 |
Family
ID=57237038
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610440003.6A Active CN106095387B (en) | 2016-06-16 | 2016-06-16 | A kind of the audio setting method and terminal of terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106095387B (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106658300A (en) * | 2017-03-01 | 2017-05-10 | 深圳市麦思美汽车电子有限公司 | Sound effect control method for vehicle-mounted audio/video system |
CN107885855B (en) * | 2017-11-15 | 2021-07-13 | 福州掌易通信息技术有限公司 | Dynamic cartoon generation method and system based on intelligent terminal |
CN109218528B (en) * | 2018-09-04 | 2021-03-02 | Oppo广东移动通信有限公司 | Sound effect processing method and device and electronic equipment |
CN109165005B (en) * | 2018-09-04 | 2020-08-25 | Oppo广东移动通信有限公司 | Sound effect enhancement method and device, electronic equipment and storage medium |
CN109107158B (en) * | 2018-09-04 | 2020-09-22 | Oppo广东移动通信有限公司 | Sound effect processing method and device, electronic equipment and computer readable storage medium |
CN111124351B (en) * | 2019-12-24 | 2021-11-16 | RealMe重庆移动通信有限公司 | Audio output method, audio output device, electronic equipment and storage medium |
CN112420078B (en) * | 2020-11-18 | 2022-12-30 | 青岛海尔科技有限公司 | Monitoring method, device, storage medium and electronic equipment |
CN113190404B (en) * | 2021-04-23 | 2023-01-03 | Oppo广东移动通信有限公司 | Scene recognition method and device, electronic equipment and computer-readable storage medium |
CN116684523A (en) * | 2023-05-29 | 2023-09-01 | 成都中科创达软件有限公司 | Terminal mode adjusting method, device, equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103051794A (en) * | 2012-12-18 | 2013-04-17 | 广东欧珀移动通信有限公司 | Method and device for dynamically setting sound effect of mobile terminal |
CN103927146A (en) * | 2014-04-30 | 2014-07-16 | 深圳市中兴移动通信有限公司 | Sound effect self-adapting method and device |
CN104090766A (en) * | 2014-07-17 | 2014-10-08 | 广东欧珀移动通信有限公司 | Sound effect switching method and system for mobile terminal |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103782342B (en) * | 2011-07-26 | 2016-08-31 | 布克查克控股有限公司 | The sound channel of e-text |
-
2016
- 2016-06-16 CN CN201610440003.6A patent/CN106095387B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103051794A (en) * | 2012-12-18 | 2013-04-17 | 广东欧珀移动通信有限公司 | Method and device for dynamically setting sound effect of mobile terminal |
CN103927146A (en) * | 2014-04-30 | 2014-07-16 | 深圳市中兴移动通信有限公司 | Sound effect self-adapting method and device |
CN104090766A (en) * | 2014-07-17 | 2014-10-08 | 广东欧珀移动通信有限公司 | Sound effect switching method and system for mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN106095387A (en) | 2016-11-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106095387B (en) | A kind of the audio setting method and terminal of terminal | |
CN106210755B (en) | A kind of methods, devices and systems playing live video | |
CN106126174B (en) | A kind of control method and electronic equipment of scene audio | |
CN106775562A (en) | The method and device of audio frequency parameter treatment | |
CN108605073A (en) | Method, terminal and the earphone of sound signal processing | |
CN106528545B (en) | Voice information processing method and device | |
CN106126172B (en) | A kind of sound effect treatment method and mobile terminal | |
CN106155623A (en) | A kind of audio collocation method, system and relevant device | |
CN106371964B (en) | Method and device for prompting message | |
CN108803859A (en) | Information processing method, device, terminal, earphone and readable storage medium storing program for executing | |
CN106126159A (en) | A kind of audio stream processing method and mobile terminal | |
CN108781236A (en) | Audio frequency playing method and electronic equipment | |
CN106653068B (en) | A kind of playback method of audio data, device and terminal | |
CN106506437B (en) | Audio data processing method and device | |
CN105959482B (en) | A kind of control method and electronic equipment of scene audio | |
CN106126162B (en) | A kind of method and terminal for preventing audio to be mutated | |
CN108712566A (en) | A kind of voice assistant awakening method and mobile terminal | |
CN108574778A (en) | Throw screen brightness adjusting method and Related product | |
CN103491240B (en) | A kind of alarm clock ringing method, device and mobile terminal | |
CN107741812B (en) | A kind of method and terminal handling media file | |
CN108377290A (en) | A kind of audio stream processing method and mobile terminal and medium product | |
CN103744574A (en) | Method and device for turning off alarm clock of mobile terminal and mobile terminal | |
CN106126170B (en) | Sound effect setting method of terminal and terminal | |
CN113793625B (en) | Audio playing method and device | |
CN109240486B (en) | Pop-up message processing method, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant before: Guangdong OPPO Mobile Communications Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |