CN106126170B - Sound effect setting method of terminal and terminal - Google Patents

Sound effect setting method of terminal and terminal Download PDF

Info

Publication number
CN106126170B
CN106126170B CN201610438951.6A CN201610438951A CN106126170B CN 106126170 B CN106126170 B CN 106126170B CN 201610438951 A CN201610438951 A CN 201610438951A CN 106126170 B CN106126170 B CN 106126170B
Authority
CN
China
Prior art keywords
volume
terminal
source file
played
sound effect
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610438951.6A
Other languages
Chinese (zh)
Other versions
CN106126170A (en
Inventor
李亚军
杨海
甘高亭
涂广
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610438951.6A priority Critical patent/CN106126170B/en
Publication of CN106126170A publication Critical patent/CN106126170A/en
Application granted granted Critical
Publication of CN106126170B publication Critical patent/CN106126170B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/16Sound input; Sound output
    • G06F3/162Interface to dedicated audio devices, e.g. audio drivers, interface to CODECs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path

Abstract

The embodiment of the invention discloses a sound effect setting method of a terminal and the terminal. Through the volume size of the audio stream of the volume of the source file that adjusts and treat to play according to terminal itself, carry out the audio setting that corresponds, solved the problem that global audio setting can not carry out the audio setting of adaptability according to the volume size, brought more comfortable sense of hearing for the user.

Description

Sound effect setting method of terminal and terminal
Technical Field
The invention relates to the technical field of information processing, in particular to a sound effect setting method of a terminal and the terminal.
Background
The audio/video file that transmits and broadcast on present terminal is various, for the user can obtain more comfortable sense of hearing enjoyment when listening to audio frequency, development engineer can set up the output audio of system, but this kind of setting is to global, generally all carries out intensive processing to the sound source, and in the time of the output, sound is generally obvious than original big, if sound amplitude itself is higher, perhaps current volume is great, carries out intensive processing again, and effect experience probably is just not so good.
Disclosure of Invention
The embodiment of the invention provides a sound effect setting method of a terminal and the terminal, which are used for solving the problem that the overall sound effect setting cannot be carried out with adaptive sound effect setting according to the volume.
In a first aspect, a sound effect setting method for a terminal is provided, where the method includes:
acquiring the volume adjusted by the terminal;
detecting the volume of an audio stream of a source file to be played;
and carrying out corresponding sound effect setting according to the volume adjusted by the terminal and the volume of the audio stream of the source file to be played.
In the embodiment, according to the volume adjusted by the terminal and the volume of the audio stream of the source file to be played, corresponding sound effect setting is carried out, the problem that the overall sound effect setting cannot be carried out according to the volume is solved, and more comfortable auditory perception is brought to a user.
With reference to the first aspect, in a first possible implementation manner, the obtaining a volume level adjusted by the terminal itself includes:
acquiring the volume level adjusted by the terminal;
and determining the volume level corresponding to the volume level.
With reference to the first aspect or the first possible implementation manner of the first aspect, in a second possible implementation manner, the performing, according to the volume adjusted by the terminal itself and the volume of the audio stream of the source file to be played, corresponding sound effect setting includes:
if the sum of the volume adjusted by the terminal and the volume of the audio stream of the source file to be played is greater than or equal to a set threshold, closing the sound effect setting of the source file to be played;
and if the sum of the volume adjusted by the terminal and the volume of the audio stream of the source file to be played is less than the set threshold, starting sound effect setting on the source file to be played.
In this embodiment, for the case that the sum of the volume adjusted by the terminal itself and the volume of the audio stream of the source file to be played is relatively large, the sound effect setting of the source file is turned off, so that the global sound effect setting of the audio stream is not performed, and rather, uncomfortable auditory sensation is brought to the user.
With reference to the first aspect, or the first possible implementation manner of the first aspect, or the second possible implementation manner of the first aspect, in a third possible implementation manner, if a sum of a volume level adjusted by the terminal itself and a volume level of an audio stream of the source file to be played is smaller than the set threshold, the starting of sound effect setting on the source file to be played includes:
and selecting a sound effect algorithm corresponding to the volume level to carry out sound effect setting on the source file to be played according to the volume level corresponding to the sum of the volume adjusted by the terminal and the volume of the audio stream of the source file to be played.
In the embodiment, for the condition that the sum of the volume adjusted by the terminal and the volume of the audio stream of the source file to be played is small, different sound effect algorithms are selected according to different actual volume levels to set the sound effect, so that the accuracy and the comfort of the sound effect setting can be improved.
With reference to the first aspect, the first possible implementation manner of the first aspect, the second possible implementation manner of the first aspect, or the third possible implementation manner of the first aspect, in a fourth possible implementation manner, the source file to be played includes at least one of the following files: audio files, video files.
In a second aspect, a terminal is provided, which includes:
the acquisition module is used for acquiring the volume adjusted by the terminal;
the detection module is used for detecting the volume of the audio stream of the source file to be played;
and the setting module is used for carrying out corresponding sound effect setting according to the volume adjusted by the terminal and detected by the detection module, and the volume of the audio stream of the source file to be played.
Based on the same inventive concept, as the principle and the beneficial effects of the terminal for solving the problems can refer to the possible embodiments and the beneficial effects of the first aspect and the first aspect, the implementation of the terminal can refer to the implementation of the method, and repeated details are omitted.
In a third aspect, a terminal is provided, where the terminal includes: an input device, an output device, a memory, and a processor;
the memory is to store instructions;
the processor is to execute the instructions to implement:
acquiring the volume adjusted by the terminal;
detecting the volume of an audio stream of a source file to be played;
and carrying out corresponding sound effect setting according to the volume adjusted by the terminal and the volume of the audio stream of the source file to be played.
The processor calls the instructions stored in the memory to implement the scheme in the method design of the first aspect, and as the implementation and the beneficial effects of the terminal for solving the problem may refer to various possible implementations and beneficial effects of the first aspect and the first aspect, the implementation of the terminal may refer to the implementation of the method, and repeated details are not repeated.
Therefore, the sound effect setting method of the terminal and the terminal provided by the embodiment of the invention have the following beneficial effects:
the corresponding sound effect setting is carried out according to the volume adjusted by the terminal and the volume of the audio stream of the source file to be played, so that the problem that the overall sound effect setting cannot be carried out adaptively according to the volume is solved, and more comfortable auditory feeling is brought to a user;
for the condition that the sum of the volume adjusted by the terminal and the volume of the audio stream of the source file to be played is large, the sound effect setting of the source file is closed, so that the overall sound effect setting of the audio stream cannot be performed, and uncomfortable auditory feeling is brought to a user;
for the condition that the sum of the volume adjusted by the terminal and the volume of the audio stream of the source file to be played is small, different sound effect algorithms are selected for sound effect setting according to different actual volume levels, and the accuracy and the comfort of sound effect setting can be improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a sound effect setting method of a terminal according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating a further detailed process of the sound effect setting method of the terminal according to the embodiment of the present invention shown in FIG. 1;
fig. 3 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a further refinement of the terminal provided in the embodiment of the present invention shown in fig. 3;
fig. 5 is a schematic structural diagram of another terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic flow chart of a sound effect setting method of a terminal according to an embodiment of the present invention, where the method includes the following steps:
s101, obtaining the volume adjusted by the terminal.
In this embodiment, the terminal may include any terminal such as a mobile phone, a tablet computer, a PDA (Personal digital assistant), a POS (Point of Sales), and a vehicle-mounted computer. The user can adjust the volume of the terminal, for example, the user can adjust a volume button on the side of the mobile phone to adjust the volume of the mobile phone.
S102, detecting the volume of the audio stream of the source file to be played.
The audio/video source file needs to be played on the terminal, and audio and/or video streams are output. When a source file is manufactured, a certain volume is set, for example, when the source file is manufactured/recorded, some scenes have a large volume, and some scenes have a small volume. Therefore, it is necessary to detect the volume level of the audio stream of the source file to be played.
S103, carrying out corresponding sound effect setting according to the volume adjusted by the terminal and the volume of the audio stream of the source file to be played.
If sound amplitude itself is higher, the volume that terminal itself adjusted is great, or the audio stream volume of the source file of treating the broadcast is great, rethread audio setting is strengthened the processing, the effect is experienced probably not so good, therefore, according to the volume size that terminal itself adjusted and the volume size of the audio stream of the source file of treating the broadcast, carry out corresponding audio setting, can make the volume size that audio setting and terminal itself adjusted and the volume size phase-match of the audio stream of the source file of treating the broadcast, be unlikely to because carry out the setting of global audio and bring uncomfortable auditory sensation for the user on the contrary.
According to the sound effect setting method of the terminal provided by the embodiment of the invention, the corresponding sound effect setting is carried out according to the volume adjusted by the terminal and the volume of the audio stream of the source file to be played, so that the problem that the overall sound effect setting cannot be carried out according to the volume is solved, and more comfortable auditory feeling is brought to a user.
Fig. 2 is a schematic flow chart illustrating a further refinement of the sound effect setting method of the terminal according to the embodiment of the present invention shown in fig. 1, the method including the following steps:
s201, acquiring the volume level adjusted by the terminal.
And S202, determining the volume corresponding to the volume level.
The volume adjusted by the terminal can be obtained, the volume level adjusted by the terminal can be obtained firstly, and the volume corresponding to the volume level is determined according to the obtained volume level. For example, when a volume button on the side of the mobile phone is adjusted, the volume is increased or decreased by one volume level each time the button is pressed, and each volume level corresponds to a fixed volume level, so that the volume level corresponding to the volume level can be determined according to the adjusted volume level which is the second level.
S203, detecting the volume of the audio stream of the source file to be played.
The audio/video source file needs to be played on the terminal, and audio and/or video streams are output. When a source file is manufactured, a certain volume is set, for example, when the source file is manufactured/recorded, some scenes have a large volume, and some scenes have a small volume. Therefore, it is necessary to detect the volume level of the audio stream of the source file to be played.
S204, judging whether the sum of the volume adjusted by the terminal and the volume of the audio stream of the source file to be played is greater than or equal to a set threshold value, if so, executing the step S205; otherwise, it proceeds to step S206.
S205, closing the sound effect setting of the source file to be played.
S206, sound effect setting of the source file to be played is started.
If sound amplitude itself is higher, the volume that terminal itself adjusted is great, or the audio stream volume of the source file of treating the broadcast is great, rethread audio setting is strengthened the processing, the effect is experienced probably not so good, therefore, according to the volume size that terminal itself adjusted and the volume size of the audio stream of the source file of treating the broadcast, carry out corresponding audio setting, can make the volume size that audio setting and terminal itself adjusted and the volume size phase-match of the audio stream of the source file of treating the broadcast, be unlikely to because carry out the setting of global audio and bring uncomfortable auditory sensation for the user on the contrary.
Specifically, if the sum of the volume adjusted by the terminal itself and the volume of the audio stream of the source file to be played is greater than or equal to a set threshold, the sound setting for the source file to be played is turned off, that is, for the case that the sum of the volume adjusted by the terminal itself and the volume of the audio stream of the source file to be played is relatively large, the sound setting for the source file is turned off, so that the global sound setting for the audio stream is not performed, and rather, uncomfortable auditory sensation is brought to the user; if the sum of the volume adjusted by the terminal and the volume of the audio stream of the source file to be played is less than the set threshold, starting sound effect setting on the source file to be played, namely: for the condition that the sum of the volume adjusted by the terminal and the volume of the audio stream of the source file to be played is small, different sound effect algorithms are selected for sound effect setting according to different actual volume levels, and the accuracy and the comfort of sound effect setting can be improved.
The method comprises the following steps of starting sound effect setting of a source file to be played, and specifically comprises the following steps: and selecting a sound effect algorithm corresponding to the volume level to carry out sound effect setting on the source file to be played according to the volume level corresponding to the sum of the volume adjusted by the terminal and the volume of the audio stream of the source file to be played. One volume size range corresponds to one volume level, and for different volume levels, a corresponding sound effect algorithm is preset, so that the volume level is determined according to the volume size range corresponding to the sum of the volume size adjusted by the terminal and the volume size of the audio stream of the source file to be played, and then the corresponding sound effect algorithm is selected according to the volume level to perform sound effect setting. Different sound effect algorithms are selected according to different actual volume levels to set the sound effect, so that the accuracy and the comfort of sound effect setting can be improved.
According to the sound effect setting method of the terminal provided by the embodiment of the invention, the corresponding sound effect setting is carried out according to the volume adjusted by the terminal and the volume of the audio stream of the source file to be played, so that the problem that the overall sound effect setting cannot be carried out according to the volume is solved, and more comfortable auditory feeling is brought to a user; and for the condition that the sum of the volume adjusted by the terminal and the volume of the audio stream of the source file to be played is large, the sound effect setting of the source file is closed, so that the overall sound effect setting of the audio stream cannot be performed, and uncomfortable auditory feeling is brought to a user; and for the condition that the sum of the volume adjusted by the terminal and the volume of the audio stream of the source file to be played is small, different sound effect algorithms are selected for sound effect setting according to different actual volume levels, so that the accuracy and the comfort of sound effect setting can be improved.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
Fig. 3 is a schematic structural diagram of a terminal according to an embodiment of the present invention, where the terminal 1000 includes: the device comprises an acquisition module 11, a detection module 12 and a setting module 13. Specifically, the method comprises the following steps:
and the obtaining module 11 is configured to obtain the volume adjusted by the terminal itself.
The user can adjust the volume of the terminal, for example, the user can adjust a volume button on the side of the mobile phone to adjust the volume of the mobile phone.
The detecting module 12 is configured to detect a volume of an audio stream of a source file to be played.
The audio/video source file needs to be played on the terminal, and audio and/or video streams are output. When a source file is manufactured, a certain volume is set, for example, when the source file is manufactured/recorded, some scenes have a large volume, and some scenes have a small volume. Therefore, it is necessary to detect the volume level of the audio stream of the source file to be played.
And the setting module 13 is configured to perform corresponding sound effect setting according to the volume adjusted by the terminal itself acquired by the acquisition module and the volume of the audio stream of the source file to be played detected by the detection module.
If sound amplitude itself is higher, the volume that terminal itself adjusted is great, or the audio stream volume of the source file of treating the broadcast is great, rethread audio setting is strengthened the processing, the effect is experienced probably not so good, therefore, according to the volume size that terminal itself adjusted and the volume size of the audio stream of the source file of treating the broadcast, carry out corresponding audio setting, can make the volume size that audio setting and terminal itself adjusted and the volume size phase-match of the audio stream of the source file of treating the broadcast, be unlikely to because carry out the setting of global audio and bring uncomfortable auditory sensation for the user on the contrary.
According to the terminal provided by the embodiment of the invention, the corresponding sound effect setting is carried out according to the volume adjusted by the terminal and the volume of the audio stream of the source file to be played, so that the problem that the overall sound effect setting cannot be carried out according to the volume is solved, and more comfortable auditory feeling is brought to a user.
Fig. 4 is a schematic structural diagram of further refining the terminal provided in the embodiment of the present invention shown in fig. 3, where the terminal 2000 includes: the acquisition module 21, the detection module 22 and the setting module 23 specifically:
and the obtaining module 21 is configured to obtain the volume adjusted by the terminal itself.
In the present embodiment, the acquisition module 21 includes an acquisition unit 211 and a determination unit 212.
An obtaining unit 211, configured to obtain the volume level adjusted by the terminal itself.
A determining unit 212, configured to determine a volume level corresponding to the volume level acquired by the acquiring unit.
The volume adjusted by the terminal can be obtained, the volume level adjusted by the terminal can be obtained firstly, and the volume corresponding to the volume level is determined according to the obtained volume level. For example, when a volume button on the side of the mobile phone is adjusted, the volume is increased or decreased by one volume level each time the button is pressed, and each volume level corresponds to a fixed volume level, so that the volume level corresponding to the volume level can be determined according to the adjusted volume level which is the second level.
The detecting module 22 is configured to detect a volume of an audio stream of a source file to be played.
The audio/video source file needs to be played on the terminal, and audio and/or video streams are output. When a source file is manufactured, a certain volume is set, for example, when the source file is manufactured/recorded, some scenes have a large volume, and some scenes have a small volume. Therefore, it is necessary to detect the volume level of the audio stream of the source file to be played.
The setting module 23 is configured to perform corresponding sound setting according to the volume adjusted by the terminal itself acquired by the acquisition module and the volume of the audio stream of the source file to be played detected by the detection module.
In the present embodiment, the setting module 23 includes a closing unit 231 and an activating unit 232.
A closing unit 231, configured to close a sound effect setting on the source file to be played if a sum of a volume adjusted by the terminal itself and a volume of the audio stream of the source file to be played is greater than or equal to a set threshold.
The starting unit 232 is configured to start sound setting on the source file to be played if the sum of the volume adjusted by the terminal itself and the volume of the audio stream of the source file to be played is smaller than the set threshold.
If sound amplitude itself is higher, the volume that terminal itself adjusted is great, or the audio stream volume of the source file of treating the broadcast is great, rethread audio setting is strengthened the processing, the effect is experienced probably not so good, therefore, according to the volume size that terminal itself adjusted and the volume size of the audio stream of the source file of treating the broadcast, carry out corresponding audio setting, can make the volume size that audio setting and terminal itself adjusted and the volume size phase-match of the audio stream of the source file of treating the broadcast, be unlikely to because carry out the setting of global audio and bring uncomfortable auditory sensation for the user on the contrary.
Specifically, if the sum of the volume adjusted by the terminal itself and the volume of the audio stream of the source file to be played is greater than or equal to a set threshold, the sound setting for the source file to be played is turned off, that is, for the case that the sum of the volume adjusted by the terminal itself and the volume of the audio stream of the source file to be played is relatively large, the sound setting for the source file is turned off, so that the global sound setting for the audio stream is not performed, and rather, uncomfortable auditory sensation is brought to the user; if the sum of the volume adjusted by the terminal and the volume of the audio stream of the source file to be played is less than the set threshold, starting sound effect setting on the source file to be played, namely: for the condition that the sum of the volume adjusted by the terminal and the volume of the audio stream of the source file to be played is small, different sound effect algorithms are selected for sound effect setting according to different actual volume levels, and the accuracy and the comfort of sound effect setting can be improved.
As an implementation manner, the starting unit 232 is specifically configured to: and selecting a sound effect algorithm corresponding to the volume level to carry out sound effect setting on the source file to be played according to the volume level corresponding to the sum of the volume adjusted by the terminal and the volume of the audio stream of the source file to be played. One volume size range corresponds to one volume level, and for different volume levels, a corresponding sound effect algorithm is preset, so that the volume level is determined according to the volume size range corresponding to the sum of the volume size adjusted by the terminal and the volume size of the audio stream of the source file to be played, and then the corresponding sound effect algorithm is selected according to the volume level to perform sound effect setting. Different sound effect algorithms are selected according to different actual volume levels to set the sound effect, so that the accuracy and the comfort of sound effect setting can be improved.
According to the terminal provided by the embodiment of the invention, the corresponding sound effect setting is carried out according to the volume adjusted by the terminal and the volume of the audio stream of the source file to be played, so that the problem that the overall sound effect setting cannot be carried out according to the volume is solved, and more comfortable auditory feeling is brought to a user; and for the condition that the sum of the volume adjusted by the terminal and the volume of the audio stream of the source file to be played is large, the sound effect setting of the source file is closed, so that the overall sound effect setting of the audio stream cannot be performed, and uncomfortable auditory feeling is brought to a user; and for the condition that the sum of the volume adjusted by the terminal and the volume of the audio stream of the source file to be played is small, different sound effect algorithms are selected for sound effect setting according to different actual volume levels, so that the accuracy and the comfort of sound effect setting can be improved.
Another terminal is provided in the embodiment of the present invention, as shown in fig. 5, for convenience of description, only a part related to the embodiment of the present invention is shown, and details of the specific technology are not disclosed, please refer to the method part in the embodiment of the present invention. The terminal device may include any terminal device such as a mobile phone, a tablet computer, a PDA, a sales terminal, a vehicle-mounted computer, etc., taking the terminal device as the mobile phone as an example:
fig. 5 is a block diagram illustrating a partial structure of a mobile phone related to a terminal device provided in an embodiment of the present invention. Referring to fig. 5, the handset includes: radio Frequency (RF) circuitry 1110, memory 1120, input unit 1130, display unit 1140, sensors 1150, audio circuitry 1160, Wireless Fidelity (WiFi) module 1170, processor 1180, and power supply 1190. Those skilled in the art will appreciate that the handset configuration shown in fig. 5 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 5:
RF circuit 1110 may be used for receiving and transmitting signals during a message transmission or call, and in particular, for receiving downlink messages from a base station and then processing the received downlink messages to processor 1180; in addition, the data for designing uplink is transmitted to the base station. In general, RF circuit 1110 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 1110 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to global system for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The memory 1120 may be used to store software programs and modules, and the processor 1180 may execute various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 1120. The memory 1120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 1120 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 1130 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 1130 may include a touch panel 1131 and other input devices 1132. Touch panel 1131, also referred to as a touch screen, can collect touch operations of a user on or near the touch panel 1131 (for example, operations of the user on or near touch panel 1131 by using any suitable object or accessory such as a finger or a stylus pen), and drive corresponding connection devices according to a preset program. Alternatively, the touch panel 1131 may include two parts, namely, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 1180, and can receive and execute commands sent by the processor 1180. In addition, the touch panel 1131 can be implemented by using various types, such as resistive, capacitive, infrared, and surface acoustic wave. The input unit 1130 may include other input devices 1132 in addition to the touch panel 1131. In particular, other input devices 1132 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 1140 may be used to display information input by the user or information provided to the user and various menus of the cellular phone. The Display unit 1140 may include a Display panel 1141, and optionally, the Display panel 1141 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 1131 can cover the display panel 1141, and when the touch panel 1131 detects a touch operation on or near the touch panel, the touch panel is transmitted to the processor 1180 to determine the type of the touch event, and then the processor 1180 provides a corresponding visual output on the display panel 1141 according to the type of the touch event. Although in fig. 5, the touch panel 1131 and the display panel 1141 are two independent components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 1131 and the display panel 1141 may be integrated to implement the input and output functions of the mobile phone.
The handset may also include at least one sensor 1150, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1141 according to the brightness of ambient light, and the proximity sensor may turn off the display panel 1141 and/or the backlight when the mobile phone moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuitry 1160, speakers 1161, and microphone 1162 may provide an audio interface between a user and a cell phone. The audio circuit 1160 may transmit the electrical signal converted from the received audio data to the speaker 1161, and convert the electrical signal into a sound signal for output by the speaker 1161; on the other hand, the microphone 1162 converts the collected sound signals into electrical signals, which are received by the audio circuit 1160 and converted into audio data, which are then processed by the audio data output processor 1180, and then transmitted to, for example, another cellular phone via the RF circuit 1110, or output to the memory 1120 for further processing.
WiFi belongs to short-distance wireless transmission technology, and the cell phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 1170, and provides wireless broadband internet access for the user. Although fig. 5 shows the WiFi module 1170, it is understood that it does not belong to the essential constitution of the handset, and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 1180 is a control center of the mobile phone, and is connected to various parts of the whole mobile phone through various interfaces and lines, and executes various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 1120 and calling data stored in the memory 1120, thereby performing overall monitoring of the mobile phone. Optionally, processor 1180 may include one or more processing units; preferably, the processor 1180 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated within processor 1180.
The phone also includes a power supply 1190 (e.g., a battery) for powering the various components, and preferably, the power supply may be logically connected to the processor 1180 via a power management system, so that the power management system may manage charging, discharging, and power consumption management functions.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which are not described herein.
In this embodiment of the present invention, the processor 1180 included in the terminal device further has the following functions:
acquiring the volume adjusted by the terminal;
detecting the volume of an audio stream of a source file to be played;
and carrying out corresponding sound effect setting according to the volume adjusted by the terminal and the volume of the audio stream of the source file to be played.
In one embodiment, the processor 1180 is specifically configured to:
acquiring the volume level adjusted by the terminal;
and determining the volume level corresponding to the volume level.
In another embodiment, the processor 1180 is specifically configured to:
if the sum of the volume adjusted by the terminal and the volume of the audio stream of the source file to be played is greater than or equal to a set threshold, closing the sound effect setting of the source file to be played;
and if the sum of the volume adjusted by the terminal and the volume of the audio stream of the source file to be played is less than the set threshold, starting sound effect setting on the source file to be played.
In yet another embodiment, the processor 1180 is specifically configured to:
and selecting a sound effect algorithm corresponding to the volume level to carry out sound effect setting on the source file to be played according to the volume level corresponding to the sum of the volume adjusted by the terminal and the volume of the audio stream of the source file to be played.
Preferably, the source file to be played includes an audio file and a video file.
According to the terminal provided by the embodiment of the invention, the corresponding sound effect setting is carried out according to the volume adjusted by the terminal and the volume of the audio stream of the source file to be played, so that the problem that the overall sound effect setting cannot be carried out according to the volume is solved, and more comfortable auditory feeling is brought to a user; and for the condition that the sum of the volume adjusted by the terminal and the volume of the audio stream of the source file to be played is large, the sound effect setting of the source file is closed, so that the overall sound effect setting of the audio stream cannot be performed, and uncomfortable auditory feeling is brought to a user; and for the condition that the sum of the volume adjusted by the terminal and the volume of the audio stream of the source file to be played is small, different sound effect algorithms are selected for sound effect setting according to different actual volume levels, so that the accuracy and the comfort of sound effect setting can be improved.
The embodiment of the invention also provides a computer storage medium, wherein the computer storage medium can store a program, and the program comprises part or all of the steps of the sound effect setting method of any terminal recorded in the method embodiment when being executed.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
From the above description of the embodiments, it is clear to those skilled in the art that the present invention can be implemented by hardware, firmware, or a combination thereof. When implemented in software, the functions described above may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a computer. Taking this as an example but not limiting: the computer-readable medium may include Random Access Memory (RAM), Read-Only Memory (ROM), electrically erasable Programmable Read-Only Memory (EEPROM), Compact Disc Read-on Memory (CD-ROM) or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. Furthermore, the method is simple. Any connection is properly termed a computer-readable medium. For example, if software is transmitted from a website, a server, or other remote source using a coaxial cable, a fiber optic cable, a twisted pair, a Digital Subscriber Line (DSL), or wireless technologies such as infrared, radio, and microwave, the coaxial cable, the fiber optic cable, the twisted pair, the DSL, or the wireless technologies such as infrared, radio, and microwave are included in the fixation of the medium. Disk and disc, as used herein, includes Compact Disc (CD), laser disc, optical disc, Digital Versatile Disc (DVD), floppy Disk and blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
In short, the above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (4)

1. A sound effect setting method of a terminal is characterized by comprising the following steps:
acquiring the volume level adjusted by the terminal; determining a volume level corresponding to the volume level; the volume level adjusted by the terminal is adjusted by a volume button of the terminal;
detecting the volume of an audio stream of a source file to be played; the volume of the audio stream of the source file is generated during production or recording;
if the sum of the volume adjusted by the terminal and the volume of the audio stream of the source file to be played is greater than or equal to a set threshold, closing the sound effect setting of the source file to be played; the sound effect is set as the output sound effect of the source file;
if the sum of the volume adjusted by the terminal and the volume of the audio stream of the source file to be played is smaller than the set threshold, selecting a sound effect algorithm corresponding to the volume level to perform sound effect setting on the source file to be played according to the volume level corresponding to the sum of the volume adjusted by the terminal and the volume of the audio stream of the source file to be played.
2. The method of claim 1, wherein the source file to be played comprises at least one of: audio files, video files.
3. A terminal, characterized in that the terminal comprises:
the acquiring unit is used for acquiring the volume level adjusted by the terminal; the volume level adjusted by the terminal is adjusted by a volume button of the terminal;
a determining unit configured to determine a volume level corresponding to the volume level acquired by the acquiring unit;
the detection module is used for detecting the volume of the audio stream of the source file to be played; the volume of the audio stream of the source file is generated during production or recording;
a closing unit, configured to close a sound effect setting on the source file to be played if a sum of a volume adjusted by the terminal itself and a volume of an audio stream of the source file to be played is greater than or equal to a set threshold; the sound effect is set as the output sound effect of the source file;
and the starting unit is used for selecting a sound effect algorithm corresponding to the volume level to carry out sound effect setting on the source file to be played according to the volume level corresponding to the sum of the volume size adjusted by the terminal and the volume size of the audio stream of the source file to be played if the sum of the volume size adjusted by the terminal and the volume size of the audio stream of the source file to be played is smaller than the set threshold value.
4. The terminal of claim 3, wherein the source file to be played comprises at least one of: audio files, video files.
CN201610438951.6A 2016-06-16 2016-06-16 Sound effect setting method of terminal and terminal Active CN106126170B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610438951.6A CN106126170B (en) 2016-06-16 2016-06-16 Sound effect setting method of terminal and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610438951.6A CN106126170B (en) 2016-06-16 2016-06-16 Sound effect setting method of terminal and terminal

Publications (2)

Publication Number Publication Date
CN106126170A CN106126170A (en) 2016-11-16
CN106126170B true CN106126170B (en) 2020-01-14

Family

ID=57469896

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610438951.6A Active CN106126170B (en) 2016-06-16 2016-06-16 Sound effect setting method of terminal and terminal

Country Status (1)

Country Link
CN (1) CN106126170B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107506168B (en) * 2017-08-18 2022-06-14 Oppo广东移动通信有限公司 Volume adjusting method and device, terminal equipment and storage medium
CN108540904B (en) * 2018-04-24 2020-10-09 深圳市战音科技有限公司 Method and device for improving sound effect of sound box
CN108762715B (en) * 2018-06-21 2021-04-02 Oppo广东移动通信有限公司 Electronic equipment sound control method, device and equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102892058A (en) * 2011-07-18 2013-01-23 中兴通讯股份有限公司 Method and device for automatically regulating volume
CN102999492A (en) * 2011-09-08 2013-03-27 百度在线网络技术(北京)有限公司 Method and device for adjusting volume of media file
CN103618514A (en) * 2013-10-31 2014-03-05 小米科技有限责任公司 Volume adjustment method, device and electronic equipment
CN103701419A (en) * 2013-12-06 2014-04-02 乐视致新电子科技(天津)有限公司 Volume regulating method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110087964A1 (en) * 2009-10-08 2011-04-14 Research In Motion Limited Method for indicating a volume of an audio sink of a portable electronic device
CN104978166A (en) * 2015-06-30 2015-10-14 北京奇艺世纪科技有限公司 Volume adjusting method and device
CN105260161A (en) * 2015-10-29 2016-01-20 维沃移动通信有限公司 Method for application software volume control and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102892058A (en) * 2011-07-18 2013-01-23 中兴通讯股份有限公司 Method and device for automatically regulating volume
CN102999492A (en) * 2011-09-08 2013-03-27 百度在线网络技术(北京)有限公司 Method and device for adjusting volume of media file
CN103618514A (en) * 2013-10-31 2014-03-05 小米科技有限责任公司 Volume adjustment method, device and electronic equipment
CN103701419A (en) * 2013-12-06 2014-04-02 乐视致新电子科技(天津)有限公司 Volume regulating method and device

Also Published As

Publication number Publication date
CN106126170A (en) 2016-11-16

Similar Documents

Publication Publication Date Title
US10069818B2 (en) Method, system, device, and terminal for network initialization of multimedia playback device
CN108668009B (en) Input operation control method, device, terminal, earphone and readable storage medium
CN110633067B (en) Sound effect parameter adjusting method and mobile terminal
CN106528545B (en) Voice information processing method and device
CN104427083A (en) Volume adjusting method and device
CN108377290B (en) Audio stream processing method, mobile terminal and medium product
CN106911848B (en) Method for outputting prompt message and terminal equipment
CN106506437B (en) Audio data processing method and device
CN108834132B (en) Data transmission method and equipment and related medium product
CN107219951B (en) Touch screen control method and device, storage medium and terminal equipment
WO2017215654A1 (en) Method for preventing abrupt change of sound effect, and terminal
WO2017215661A1 (en) Scenario-based sound effect control method and electronic device
CN107317918B (en) Parameter setting method and related product
CN108881778B (en) Video output method based on wearable device and wearable device
CN108833683B (en) Dynamic antenna adjustment implementation method and related product
CN106126170B (en) Sound effect setting method of terminal and terminal
CN108834013B (en) Wearable equipment electric quantity balancing method and related product
CN112997471B (en) Audio channel switching method and device, readable storage medium and electronic equipment
CN108600906B (en) Playing control method and device for multiple sound boxes
CN116994596A (en) Howling suppression method and device, storage medium and electronic equipment
CN113039518B (en) Playing control method and device, computer readable storage medium and electronic equipment
CN105159655B (en) Behavior event playing method and device
CN108391208B (en) Signal switching method, device, terminal, earphone and computer readable storage medium
CN107894958B (en) Junk information cleaning method, terminal, server and computer readable storage medium
CN107391732B (en) Function guiding method and device of application program and terminal equipment

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: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: Guangdong Opel Mobile Communications Co., Ltd.

GR01 Patent grant
GR01 Patent grant