CN108521521B - Volume adjusting method, mobile terminal and computer readable storage medium - Google Patents

Volume adjusting method, mobile terminal and computer readable storage medium Download PDF

Info

Publication number
CN108521521B
CN108521521B CN201810354796.9A CN201810354796A CN108521521B CN 108521521 B CN108521521 B CN 108521521B CN 201810354796 A CN201810354796 A CN 201810354796A CN 108521521 B CN108521521 B CN 108521521B
Authority
CN
China
Prior art keywords
mobile terminal
volume
loudspeaker
scene
audio
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
CN201810354796.9A
Other languages
Chinese (zh)
Other versions
CN108521521A (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 CN201810354796.9A priority Critical patent/CN108521521B/en
Publication of CN108521521A publication Critical patent/CN108521521A/en
Application granted granted Critical
Publication of CN108521521B publication Critical patent/CN108521521B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/10Details of telephonic subscriber devices including a GPS signal receiver
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion

Abstract

The application is applicable to the technical field of mobile terminals, and provides a volume adjusting method, a mobile terminal and a computer readable storage medium, which comprise the following steps: acquiring a current use scene of the mobile terminal; if the current use scene of the mobile terminal is a preset scene, detecting whether the mobile terminal uses a loudspeaker to play audio currently, wherein the preset scene is a scene in which the volume of the loudspeaker is required to be equal to or lower than a preset value; and if the mobile terminal plays audio by using a loudspeaker currently, adjusting the volume of the loudspeaker to the preset value. Through the method and the device, the volume of the loudspeaker of the mobile terminal can be automatically adjusted according to the use scene, and other users are prevented from being influenced by overlarge volume.

Description

Volume adjusting method, mobile terminal and computer readable storage medium
Technical Field
The present application belongs to the technical field of mobile terminals, and in particular, to a volume adjustment method, a mobile terminal, and a computer-readable storage medium.
Background
With the development of communication technology, mobile terminals such as mobile phones and tablet computers are increasingly popularized, and the functions of the mobile terminals are also increasingly powerful. Mobile terminal users often use mobile terminals to play audio such as music, video, etc. For example, when a user takes a vehicle with a large traffic volume such as a subway, a train, a high-speed rail, etc., the user uses a mobile phone to play a video, and at this time, if the user uses a speaker of the mobile phone to play the video, the volume of the played video may be relatively large, which may easily affect other users.
Therefore, a new technical solution is needed to solve the above technical problems.
Disclosure of Invention
In view of this, the present application provides a volume adjusting method, a mobile terminal and a computer readable storage medium, so as to automatically adjust the volume of a speaker of the mobile terminal according to a usage scenario, thereby preventing the volume from being too large and affecting other users.
A first aspect of the present application provides a volume adjustment method, including:
acquiring a current use scene of the mobile terminal;
if the current use scene of the mobile terminal is a preset scene, detecting whether the mobile terminal uses a loudspeaker to play audio currently, wherein the preset scene is a scene in which the volume of the loudspeaker is required to be equal to or lower than a preset value;
and if the mobile terminal plays audio by using a loudspeaker at present, adjusting the volume of the loudspeaker to a preset value.
A second aspect of the present application provides a mobile terminal, comprising:
the scene acquisition module is used for acquiring the current use scene of the mobile terminal;
the playing detection module is used for detecting whether the mobile terminal plays audio by using a loudspeaker currently if the current using scene of the mobile terminal is a preset scene, wherein the preset scene is a scene that the volume of the loudspeaker is required to be equal to or lower than a preset value;
and the volume adjusting module is used for adjusting the volume of the loudspeaker to a preset value if the mobile terminal plays audio by using the loudspeaker currently.
A third aspect of the present application provides a mobile terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the volume adjustment method according to the first aspect when executing the computer program.
A fourth aspect of the present application provides a computer-readable storage medium, having a computer program stored thereon, which, when executed by a processor, implements the steps of the volume adjustment method as described in the first aspect above.
A fifth aspect of the present application provides a computer program product comprising a computer program which, when executed by one or more processors, performs the steps of the volume adjustment method as described in the first aspect above.
Therefore, according to the scheme of the application, the current use scene of the mobile terminal is firstly obtained, whether the use scene is the preset scene is judged, whether the mobile terminal uses the loudspeaker to play the audio currently is detected when the use scene is the preset scene, and the volume of the loudspeaker is adjusted to the preset value when the mobile terminal uses the loudspeaker to play the audio currently. According to the scheme, when the mobile terminal is in a preset scene, whether the mobile terminal is currently using the loudspeaker to play audio is detected, and when the mobile terminal is currently using the loudspeaker to play audio, the volume of the loudspeaker is automatically adjusted to a preset value, so that other users are prevented from being influenced by the overlarge volume of the loudspeaker.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flow chart illustrating an implementation of a volume adjustment method according to an embodiment of the present application;
fig. 2 is a schematic flow chart illustrating an implementation of a volume adjustment method according to a second embodiment of the present application;
fig. 3 is a schematic flow chart illustrating an implementation of a volume adjustment method according to a third embodiment of the present application;
fig. 4 is a schematic diagram of a mobile terminal according to a fourth embodiment of the present application;
fig. 5 is a schematic diagram of a mobile terminal according to a fifth embodiment of the present application;
fig. 6 is a schematic diagram of a mobile terminal according to a sixth embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
In particular implementations, the mobile terminals described in embodiments of the present application include, but are not limited to, other portable devices such as mobile phones, laptop computers, or tablet computers having touch sensitive surfaces (e.g., touch screen displays and/or touch pads). It should also be understood that in some embodiments, the device is not a portable communication device, but is a desktop computer having a touch-sensitive surface (e.g., a touch screen display and/or touchpad).
In the discussion that follows, a mobile terminal that includes a display and a touch-sensitive surface is described. However, it should be understood that the mobile terminal may include one or more other physical user interface devices such as a physical keyboard, a mouse, and/or a joystick.
The mobile terminal supports various applications, such as one or more of the following: a drawing application, a presentation application, a word processing application, a website creation application, a disc burning application, a spreadsheet application, a gaming application, a telephone application, a video conferencing application, an email application, an instant messaging application, an exercise support application, a photo management application, a digital camera application, a web browsing application, a digital music player application, and/or a digital video player application.
Various applications that may be executed on the mobile terminal may use at least one common physical user interface device, such as a touch-sensitive surface. One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal can be adjusted and/or changed between applications and/or within respective applications. In this way, a common physical architecture (e.g., touch-sensitive surface) of the terminal can support various applications with user interfaces that are intuitive and transparent to the user.
It should be understood that, the sequence numbers of the steps in this embodiment do not mean the execution sequence, and the execution sequence of each process should be determined by the function and the inherent logic of the process, and should not constitute any limitation to the implementation process of the embodiment of the present application.
In order to explain the technical solution described in the present application, the following description will be given by way of specific examples.
Referring to fig. 1, which is a schematic view of an implementation flow of a volume adjusting method provided in an embodiment of the present application, where the volume adjusting method is applied to a mobile terminal, as shown in the figure, the volume adjusting method may include the following steps:
and step S101, acquiring the current use scene of the mobile terminal.
In the embodiment of the application, a button may be set on the mobile terminal, and when it is detected that the user presses the button, the current usage scenario of the mobile terminal is acquired. For example, a physical button is disposed on the right side of the mobile terminal, or a virtual button is disposed on the screen of the mobile terminal, which is not limited herein.
Optionally, the obtaining of the current usage scenario of the mobile terminal includes:
and when the mobile terminal plays audio, acquiring the current use scene of the mobile terminal.
In the embodiment of the application, in order to save power consumption of the mobile terminal, when it is detected that the preset application in the mobile terminal plays audio, the current usage scene of the mobile terminal may also be obtained. The preset application may refer to a certain type or application with a certain function selected by a user from applications installed in the mobile terminal, for example, an application with an audio playing function, such as an arcade, a Tencent video, and a QQ music. Optionally, the user may modify the selected application according to actual needs. The usage scenario of the mobile terminal may refer to a scenario where the mobile terminal is located when the mobile terminal is used to play audio, for example, on a subway, a train or a high-speed rail, or other places with a large traffic volume, and is not limited herein.
In this embodiment of the application, the mobile terminal may obtain a current usage scenario of the mobile terminal through a Global Positioning System (GPS), for example, the mobile terminal records a change of location information in a first time period through the GPS at intervals of a preset time, and if the change of the location information of the mobile terminal in the first time period is relatively fast (that is, a distance moved in the first time period exceeds a preset threshold), it may be determined that a user of the mobile terminal may be riding on a transportation with a fast traveling speed, such as a subway, a train, or a high-speed rail, and different transportation may set different preset thresholds. The preset threshold may be set according to a distance traveled by a subway, a train, a high-speed rail, or the like in the first time period, for example, the subway may travel for 1.2 kilometers in one minute, and then the preset threshold may be set to 1 kilometer.
Step S102, if the current use scene of the mobile terminal is a preset scene, detecting whether the mobile terminal uses a loudspeaker to play audio currently.
And step S103, if the mobile terminal plays audio by using a loudspeaker currently, adjusting the volume of the loudspeaker to a preset value.
The preset scene is a scene that the volume of the speaker is required to be equal to or lower than a preset value, for example, on a subway, a train or a high-speed rail with a large traffic, other users are generally around the mobile terminal user, and if the volume when the speaker of the mobile terminal is used for playing audio is too large, other users may be affected. The preset value can meet the requirement of the mobile terminal user on the volume when playing the audio without influencing the volume of other users.
In the embodiment of the application, if the current usage scene of the mobile terminal is a preset scene, it indicates that there are other users around the mobile terminal user, and at this time, it needs to detect whether the mobile terminal is currently using a speaker to play audio, if the mobile terminal is currently using the speaker to play audio, the volume of the speaker may need to be adjusted to avoid that the volume is too large to affect other users around, and if the mobile terminal is not using the speaker to play audio, the process may be ended.
In the embodiment of the application, when the volume of the loudspeaker is adjusted to the preset value, the user can be reminded of adjusting the volume of the loudspeaker to the preset value in a preset mode. The preset manner includes, but is not limited to, voice, a pop frame, a tag, and the like, for example, a display "it is detected that you are currently riding in a subway, and a speaker is adjusted to an ideal volume for you" is displayed in the pop frame.
According to the embodiment of the application, when the mobile terminal is in a preset scene, whether the mobile terminal uses the loudspeaker to play audio currently is detected, and when the mobile terminal uses the loudspeaker to play audio currently, the volume of the loudspeaker is automatically adjusted to a preset value, so that other users are prevented from being influenced by the overlarge volume of the loudspeaker.
Referring to fig. 2, it is a schematic diagram of an implementation flow of a volume adjusting method provided in the second embodiment of the present application, where the volume adjusting method is applied to a mobile terminal, and as shown in the figure, the volume adjusting method may include the following steps:
step S201, when the mobile terminal plays audio, whether the mobile terminal is connected with audio equipment currently is detected.
Step S202, if the mobile terminal is not connected with the audio equipment currently, the current use scene of the mobile terminal is obtained.
In the embodiment of the application, when it is detected that a mobile terminal plays audio, whether the mobile terminal is currently connected with an audio device is detected to detect whether the mobile terminal is currently in a non-speaker mode, if the mobile terminal is not currently connected with the audio device, it is determined that the mobile terminal may be in the speaker mode, and at this time, a current usage scene of the mobile terminal may be obtained to determine whether the current usage scene of the mobile terminal is a preset scene, so as to determine whether the volume of a speaker of the mobile terminal needs to be automatically adjusted; if the mobile terminal is currently connected with the audio equipment, judging that the mobile terminal is currently in a non-speaker mode, wherein no processing is needed at the moment, if the mobile terminal is detected to be disconnected with the audio equipment, audio can be output from a speaker, and at the moment, the current use scene of the mobile terminal is obtained and subsequent operations are executed. The speaker mode refers to a mode for playing audio using a speaker, and the non-speaker mode may refer to a mode other than the speaker mode, such as a headphone mode. The audio device may be a device that converts an audio signal received from the mobile terminal into sound through a speaker of the device after the device is connected to the mobile terminal, such as a line control headset, a bluetooth headset, or the like.
Optionally, the obtaining of the current usage scenario of the mobile terminal includes:
acquiring current acceleration information and/or speed information of the mobile terminal;
and determining the current use scene of the mobile terminal according to the acceleration information and/or the speed information.
In the embodiment of the application, the current acceleration information, the current speed information and the like of the mobile terminal can be calculated according to the position information acquired by the mobile terminal through the GPS, and the current acceleration information, the current speed information and the like of the mobile terminal can also be acquired according to an acceleration sensor and a gyroscope in the mobile terminal. Determining the current usage scenario of the mobile terminal according to the acceleration information and/or the speed information, which may specifically include: determining the current use scene of the mobile terminal according to the acceleration information; determining the current use scene of the mobile terminal according to the speed information; and determining the current use scene of the mobile terminal according to the acceleration information and the speed information.
For example, at the time of starting a vehicle such as a subway, a train, a high-speed train, etc., the acceleration is usually within a certain range (for example, within a range of a first acceleration threshold and a second acceleration threshold, the first acceleration threshold is smaller than the second acceleration threshold), and the acceleration of other vehicles such as a car and a bicycle is smaller than the first acceleration threshold, and the acceleration of an airplane is larger than the second acceleration threshold. Then no processing may be performed when the mobile terminal detects that the acceleration information is less than the first acceleration threshold or greater than the second acceleration threshold; when the acceleration information detected by the mobile terminal is greater than or equal to a first acceleration threshold and less than or equal to a second acceleration threshold (starting process), judging that the use scene of the mobile terminal is a preset scene; after the speed of the vehicle reaches the maximum value, the acceleration information is reduced to zero (the vehicle keeps running at a constant speed), and the running process is also decelerated properly, but when the speed information is reduced to the first speed threshold value, the vehicle is determined to stop quickly, and the volume of the loudspeaker of the mobile terminal can be restored to the state before adjustment.
Step S203, if the current usage scene of the mobile terminal is a preset scene, detecting whether the mobile terminal is currently using a speaker to play audio.
The preset scene is a scene in which the volume of the loudspeaker is required to be equal to or lower than a preset value.
And step S204, if the mobile terminal plays audio by using a loudspeaker currently, adjusting the volume of the loudspeaker to a preset value.
The step is the same as step S103, and reference may be made to the related description of step S103, which is not described herein again.
Optionally, after adjusting the volume of the speaker to the preset value, the embodiment of the present application further includes:
and when the mobile terminal is detected to exit the preset scene and/or the mobile terminal is connected with audio equipment, restoring the volume of the loudspeaker to a state before adjustment.
In this embodiment of the application, after step S204 is executed, if it is detected that the mobile terminal exits from the preset scene and/or the mobile terminal is connected to the audio device, it is determined that the volume of the speaker of the mobile terminal does not need to be set to the preset value at this time, the volume of the speaker may be restored to the state before adjustment, and the user may increase or decrease the volume of the speaker as needed, without being limited to the preset value.
According to the embodiment of the application, when the mobile terminal plays audio and is not connected with audio equipment, the current use scene of the mobile terminal is obtained, whether the mobile terminal uses the loudspeaker to play the audio currently is detected when the use scene is a preset scene, the volume of the loudspeaker is automatically adjusted when the mobile terminal uses the loudspeaker to play the audio currently, the volume of the loudspeaker is adjusted to a preset value, and therefore other users are prevented from being influenced by the overlarge volume of the loudspeaker.
Referring to fig. 3, which is a schematic view of an implementation flow of a volume adjustment method provided in the third embodiment of the present application, where the volume adjustment method is applied to a mobile terminal, as shown in the figure, the volume adjustment method may include the following steps:
step S301, acquiring the current use scene of the mobile terminal.
The step is the same as step S101, and reference may be made to the related description of step S101, which is not repeated herein.
Step S302, if the current use scene of the mobile terminal is a preset scene, detecting whether the mobile terminal uses a loudspeaker to play audio currently.
The preset scene is a scene that the volume of the speaker is required to be equal to or lower than a preset value, for example, on a subway, a train or a high-speed rail with a large traffic, other users are generally around the mobile terminal user, and if the volume when the speaker of the mobile terminal is used for playing audio is too large, other users may be affected. The preset value can meet the requirement of the mobile terminal user on the volume when playing the audio without influencing the volume of other users.
Step S303, if the mobile terminal is currently playing audio using a speaker, obtaining a current volume value of the speaker.
Step S304, if the current volume value of the loudspeaker is higher than a preset value, adjusting the volume of the loudspeaker to the preset value.
In this embodiment of the application, after the current volume value of the speaker is obtained, the current volume value of the speaker is compared with a preset value, and if the current volume value of the speaker is higher than the preset value, it is determined that playing audio by using the current volume value of the speaker may disturb other users, and in order to avoid disturbing other users, the volume of the speaker may be adjusted to the preset value, that is, the volume of the speaker is adjusted from the current volume value to the preset value.
Optionally, the embodiment of the present application further includes:
if the current volume value of the loudspeaker is lower than the preset value and the operation of increasing the volume of the loudspeaker is detected, increasing the volume of the loudspeaker;
and if the volume of the loudspeaker is detected to reach the preset value in the process of increasing the volume of the loudspeaker, sending corresponding prompt information to a user.
In this embodiment of the application, if the current volume value of the speaker is lower than the preset value, it is determined that playing audio using the speaker does not disturb other users, at this time, no processing may be performed, when an operation of increasing the volume of the speaker by the user is detected (for example, pressing a volume increase key of a mobile terminal), the volume of the speaker may be increased, if the volume of the speaker is detected to reach the preset value in the process of increasing the volume, a prompt message that the volume of the speaker has reached the preset value may be sent to the user at this time, and a selection box is displayed, the current volume value is maintained when the user selects yes, and the volume may be continuously increased when the user selects no. The content of the prompt message may be "detect that you are currently riding in a subway and whether the current volume is maintained".
According to the embodiment of the application, when the mobile terminal is in a preset scene and plays audio by using the loudspeaker, the current volume value of the loudspeaker is obtained, and when the current volume value of the loudspeaker is higher than the preset value, the volume of the loudspeaker is automatically adjusted to the preset value, so that other users are prevented from being influenced by the overlarge volume of the loudspeaker.
Referring to fig. 4, which is a schematic diagram of a mobile terminal provided in the fourth embodiment of the present application, for convenience of description, only the parts related to the embodiment of the present application are shown.
The mobile terminal includes:
a scene obtaining module 41, configured to obtain a current usage scene of the mobile terminal;
the play detection module 42 is configured to detect whether the mobile terminal is currently playing an audio using a speaker if a current usage scene of the mobile terminal is a preset scene, where the preset scene is a scene in which a volume of a speaker required to be played is equal to or lower than a preset value;
and a volume adjusting module 43, configured to adjust the volume of the speaker to the preset value if the mobile terminal is currently playing an audio using the speaker.
Optionally, the scene obtaining module 41 is specifically configured to:
and when the mobile terminal plays audio, acquiring the current use scene of the mobile terminal.
Optionally, the scene obtaining module 41 includes:
the connection detection unit is used for detecting whether the mobile terminal is currently connected with audio equipment or not when the mobile terminal plays audio;
and the scene acquisition unit is used for acquiring the current use scene of the mobile terminal if the mobile terminal is not connected with the audio equipment currently.
Optionally, the volume adjusting module 43 includes:
the volume acquisition unit is used for acquiring the current volume value of the loudspeaker if the mobile terminal plays audio by using the loudspeaker currently;
and the volume adjusting unit is used for adjusting the volume of the loudspeaker to the preset value if the current volume value of the loudspeaker is higher than the preset value.
Optionally, the volume adjusting module 43 further includes:
the volume increasing unit is used for increasing the volume of the loudspeaker if the current volume value of the loudspeaker is lower than the preset value and the operation of increasing the volume of the loudspeaker is detected;
and the information sending unit is used for sending corresponding prompt information to a user if the volume of the loudspeaker is detected to reach the preset value in the process of increasing the volume of the loudspeaker.
Optionally, the mobile terminal further includes:
and the volume recovery module 44 is configured to recover the volume of the speaker to a state before adjustment when it is detected that the mobile terminal exits the preset scene and/or the mobile terminal is connected to an audio device.
Optionally, the scene obtaining module 41 includes:
the first acquisition unit is used for acquiring the current acceleration information and/or speed information of the mobile terminal;
and the second acquisition unit is used for determining the current use scene of the mobile terminal according to the acceleration information and/or the speed information.
The mobile terminal provided in the embodiment of the present application may be applied to the first method embodiment, the second method embodiment, and the third method embodiment, and for details, reference is made to the description of the first method embodiment, the second method embodiment, and the third method embodiment, and details are not described herein again.
Fig. 5 is a schematic diagram of a mobile terminal according to a fifth embodiment of the present application. The mobile terminal as shown in the figure may include: one or more processors 501 (only one shown); one or more input devices 502 (only one shown), one or more output devices 503 (only one shown), and a memory 504. The processor 501, the input device 502, the output device 503, and the memory 504 are connected by a bus 505. The memory 504 is used for storing instructions and the processor 501 is used for executing the instructions stored by the memory 504. Wherein:
the processor 501 is configured to obtain a current usage scenario of the mobile terminal; if the current use scene of the mobile terminal is a preset scene, detecting whether the mobile terminal uses a loudspeaker to play audio currently, wherein the preset scene is a scene in which the volume of the loudspeaker is required to be equal to or lower than a preset value; and if the mobile terminal plays audio by using a loudspeaker currently, adjusting the volume of the loudspeaker to the preset value.
Optionally, the processor 501 is specifically configured to:
and when the mobile terminal plays audio, acquiring the current use scene of the mobile terminal.
Optionally, the processor 501 is specifically configured to:
when the mobile terminal plays audio, detecting whether the mobile terminal is currently connected with audio equipment;
and if the mobile terminal is not connected with the audio equipment currently, acquiring the current use scene of the mobile terminal.
Optionally, the processor 501 is specifically configured to:
if the mobile terminal plays audio by using a loudspeaker currently, acquiring the current volume value of the loudspeaker;
and if the current volume value of the loudspeaker is higher than the preset value, adjusting the volume of the loudspeaker to the preset value.
Optionally, the processor 501 is further configured to:
if the current volume value of the loudspeaker is lower than the preset value and the operation of increasing the volume of the loudspeaker is detected, increasing the volume of the loudspeaker;
and if the volume of the loudspeaker is detected to reach the preset value in the process of increasing the volume of the loudspeaker, sending corresponding prompt information to a user.
Optionally, after adjusting the volume of the speaker to the preset value, the processor 501 is further configured to:
and when the mobile terminal is detected to exit the preset scene and/or the mobile terminal is connected with audio equipment, restoring the volume of the loudspeaker to a state before adjustment.
Optionally, the processor 501 is specifically configured to:
acquiring current acceleration information and/or speed information of the mobile terminal;
and determining the current use scene of the mobile terminal according to the acceleration information and/or the speed information.
It should be understood that, in the embodiment of the present Application, the Processor 501 may be a Central Processing Unit (CPU), and the Processor may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The input device 502 may include a touch pad, a fingerprint sensor (for collecting fingerprint information of a user and direction information of the fingerprint), a microphone, a data receiving interface, and the like. The output device 503 may include a display (LCD, etc.), a speaker, a data transmission interface, and the like.
The memory 504 may include a read-only memory and a random access memory, and provides instructions and data to the processor 501. A portion of the memory 504 may also include non-volatile random access memory. For example, the memory 504 may also store device type information.
In a specific implementation, the processor 501, the input device 502, the output device 503, and the memory 504 described in this embodiment of the present application may execute the implementation described in the embodiment of the volume adjustment method provided in this embodiment of the present application, or may execute the implementation described in the mobile terminal described in the fourth embodiment of the present application, which is not described herein again.
Fig. 6 is a schematic diagram of a mobile terminal according to a sixth embodiment of the present application. As shown in fig. 6, the mobile terminal 6 of this embodiment includes: a processor 60, a memory 61 and a computer program 62 stored in said memory 61 and executable on said processor 60. The processor 60, when executing the computer program 62, implements the steps in the various volume adjustment method embodiments described above, such as steps S101 to S103 shown in fig. 1. Alternatively, the processor 60, when executing the computer program 62, implements the functions of the modules/units in the above-mentioned device embodiments, such as the functions of the modules 41 to 44 shown in fig. 4.
Illustratively, the computer program 62 may be partitioned into one or more modules/units that are stored in the memory 61 and executed by the processor 60 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 62 in the mobile terminal 6. For example, the computer program 62 may be divided into a scene acquisition module, a play detection module, a volume adjustment module, and a volume recovery module, and each module has the following specific functions:
the scene acquisition module is used for acquiring the current use scene of the mobile terminal;
the playing detection module is used for detecting whether the mobile terminal plays audio by using a loudspeaker currently if the current using scene of the mobile terminal is a preset scene, wherein the preset scene is a scene that the volume of the loudspeaker is required to be equal to or lower than a preset value;
and the volume adjusting module is used for adjusting the volume of the loudspeaker to a preset value if the mobile terminal plays audio by using the loudspeaker currently.
Optionally, the scene obtaining module is specifically configured to:
and when the mobile terminal plays audio, acquiring the current use scene of the mobile terminal.
Optionally, the scene obtaining module includes:
the connection detection unit is used for detecting whether the mobile terminal is currently connected with audio equipment or not when the mobile terminal plays audio;
and the scene acquisition unit is used for acquiring the current use scene of the mobile terminal if the mobile terminal is not connected with the audio equipment currently.
Optionally, the volume adjusting module includes:
the volume acquisition unit is used for acquiring the current volume value of the loudspeaker if the mobile terminal plays audio by using the loudspeaker currently;
and the volume adjusting unit is used for adjusting the volume of the loudspeaker to the preset value if the current volume value of the loudspeaker is higher than the preset value.
Optionally, the volume adjusting module further includes:
the volume increasing unit is used for increasing the volume of the loudspeaker if the current volume value of the loudspeaker is lower than the preset value and the operation of increasing the volume of the loudspeaker is detected;
and the information sending unit is used for sending corresponding prompt information to a user if the volume of the loudspeaker is detected to reach the preset value in the process of increasing the volume of the loudspeaker.
Optionally, the mobile terminal further includes:
and the volume recovery module is used for recovering the volume of the loudspeaker to a state before adjustment when the mobile terminal is detected to exit the preset scene and/or the mobile terminal is connected with audio equipment.
Optionally, the scene obtaining module includes:
the first acquisition unit is used for acquiring the current acceleration information and/or speed information of the mobile terminal;
and the second acquisition unit is used for determining the current use scene of the mobile terminal according to the acceleration information and/or the speed information.
The mobile terminal 6 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The mobile terminal may include, but is not limited to, a processor 60, a memory 61. Those skilled in the art will appreciate that fig. 6 is merely an example of a mobile terminal 6 and is not intended to limit the mobile terminal 6 and may include more or fewer components than those shown, or some components may be combined, or different components, e.g., the mobile terminal may also include input-output devices, network access devices, buses, etc.
The processor 60 may be a central processing unit CPU, but may also be other general purpose processors, digital signal processors DSP, application specific integrated circuits ASIC, off-the-shelf programmable gate arrays FPGA or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 61 may be an internal storage unit of the mobile terminal 6, such as a hard disk or a memory of the mobile terminal 6. The memory 61 may also be an external storage device of the mobile terminal 6, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) and the like provided on the mobile terminal 6. Further, the memory 61 may also include both an internal storage unit and an external storage device of the mobile terminal 6. The memory 61 is used for storing the computer program and other programs and data required by the mobile terminal. The memory 61 may also be used to temporarily store data that has been output or is to be output. It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed mobile terminal and method may be implemented in other ways. For example, the above-described embodiments of the mobile terminal are merely illustrative, and for example, the division of the modules or units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (7)

1. A volume adjustment method, characterized in that the volume adjustment method comprises:
acquiring a current use scene of the mobile terminal;
if the current use scene of the mobile terminal is a preset scene, detecting whether the mobile terminal uses a loudspeaker to play audio currently, wherein the preset scene is a scene in which the volume of the loudspeaker is required to be equal to or lower than a preset value;
if the mobile terminal plays the audio by using the loudspeaker currently, the volume of the loudspeaker is adjusted to the preset value, wherein the preset value is the volume which meets the volume requirement of the mobile terminal user when playing the audio and does not influence the volumes of other users;
the acquiring of the current use scene of the mobile terminal comprises:
when the mobile terminal plays audio, detecting whether the mobile terminal is currently connected with audio equipment or not, wherein the audio equipment is equipment for converting audio signals received from the mobile terminal into sound through a loudspeaker of the audio equipment after the audio equipment is connected with the mobile terminal;
if the mobile terminal is not connected with the audio equipment currently, acquiring a current use scene of the mobile terminal;
the acquiring of the current use scene of the mobile terminal comprises:
acquiring current acceleration information of the mobile terminal, wherein the acceleration information reflects the starting acceleration of a vehicle;
and determining the current use scene of the mobile terminal according to the acceleration information.
2. The method of claim 1, wherein if the mobile terminal is currently playing audio using a speaker, adjusting the volume of the speaker to a preset value comprises:
if the mobile terminal plays audio by using a loudspeaker currently, acquiring the current volume value of the loudspeaker;
and if the current volume value of the loudspeaker is higher than the preset value, adjusting the volume of the loudspeaker to the preset value.
3. The volume adjustment method as set forth in claim 2, wherein the volume adjustment method further comprises:
if the current volume value of the loudspeaker is lower than the preset value and the operation of increasing the volume of the loudspeaker is detected, increasing the volume of the loudspeaker;
and if the volume of the loudspeaker is detected to reach the preset value in the process of increasing the volume of the loudspeaker, sending corresponding prompt information to a user.
4. The volume adjustment method of claim 1, further comprising, after adjusting the volume of the speaker to the preset value:
and when the mobile terminal is detected to exit the preset scene and/or the mobile terminal is connected with audio equipment, restoring the volume of the loudspeaker to a state before adjustment.
5. A mobile terminal, characterized in that the mobile terminal comprises:
the scene acquisition module is used for acquiring the current use scene of the mobile terminal;
the playing detection module is used for detecting whether the mobile terminal plays audio by using a loudspeaker currently if the current using scene of the mobile terminal is a preset scene, wherein the preset scene is a scene that the volume of the loudspeaker is required to be equal to or lower than a preset value;
the volume adjusting module is used for adjusting the volume of the loudspeaker to the preset value if the mobile terminal plays the audio by using the loudspeaker currently, wherein the preset value not only meets the volume requirement of a mobile terminal user on playing the audio, but also does not influence the volume of other users;
the scene acquisition module includes:
the mobile terminal comprises a connection detection unit and a control unit, wherein the connection detection unit is used for detecting whether the mobile terminal is currently connected with an audio device when the mobile terminal plays audio, and the audio device is a device which converts an audio signal received from the mobile terminal into sound through a loudspeaker of the audio device after being connected with the mobile terminal;
the scene obtaining unit is used for obtaining the current use scene of the mobile terminal if the mobile terminal is not connected with the audio equipment currently;
the acquiring of the current use scene of the mobile terminal comprises:
acquiring current acceleration information of the mobile terminal, wherein the acceleration information reflects the starting acceleration of a vehicle;
and determining the current use scene of the mobile terminal according to the acceleration information.
6. A mobile terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the volume adjustment method according to any one of claims 1 to 4 when executing the computer program.
7. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the volume adjustment method according to any one of claims 1 to 4.
CN201810354796.9A 2018-04-19 2018-04-19 Volume adjusting method, mobile terminal and computer readable storage medium Active CN108521521B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810354796.9A CN108521521B (en) 2018-04-19 2018-04-19 Volume adjusting method, mobile terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810354796.9A CN108521521B (en) 2018-04-19 2018-04-19 Volume adjusting method, mobile terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN108521521A CN108521521A (en) 2018-09-11
CN108521521B true CN108521521B (en) 2021-04-02

Family

ID=63429607

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810354796.9A Active CN108521521B (en) 2018-04-19 2018-04-19 Volume adjusting method, mobile terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108521521B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109215652A (en) * 2018-10-16 2019-01-15 深圳Tcl新技术有限公司 Volume adjusting method, device, playback terminal and computer readable storage medium
CN110012386B (en) * 2019-03-29 2021-05-11 维沃移动通信有限公司 Volume adjusting method of terminal and terminal
CN110392299B (en) * 2019-06-17 2022-03-25 北京达佳互联信息技术有限公司 Volume processing method and device, electronic equipment and storage medium
CN110536012A (en) * 2019-08-28 2019-12-03 北京小米移动软件有限公司 The method and device of the outer playback amount of controlling terminal
CN112965683A (en) * 2019-11-27 2021-06-15 宇龙计算机通信科技(深圳)有限公司 Volume adjusting method and device, electronic equipment and medium
CN113660599B (en) * 2020-04-29 2023-12-01 Oppo广东移动通信有限公司 Speaker control method and device, mobile terminal and storage medium
CN113835668A (en) * 2020-06-08 2021-12-24 成都鼎桥通信技术有限公司 Terminal volume adjusting method and mobile terminal
CN112118357B (en) * 2020-09-21 2021-08-20 珠海格力电器股份有限公司 Intelligent terminal management method and device, storage medium and electronic device
CN114765644A (en) * 2021-01-12 2022-07-19 Oppo广东移动通信有限公司 Volume control method and device, electronic equipment and storage medium
CN115462101A (en) * 2021-03-22 2022-12-09 北京小米移动软件有限公司 Control indication method and device and behavior control method and device
CN113467747B (en) * 2021-06-01 2023-03-31 荣耀终端有限公司 Volume adjusting method, electronic device and storage medium
CN113422866B (en) * 2021-06-17 2023-06-09 Oppo广东移动通信有限公司 Volume adjusting method and device, storage medium and electronic equipment
CN113824835A (en) * 2021-10-25 2021-12-21 Oppo广东移动通信有限公司 Volume control method and device, electronic equipment and storage medium
CN114629990A (en) * 2022-01-24 2022-06-14 武汉小码联城科技有限公司 Playing state adjusting method and device, storage medium and mobile terminal

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103428328A (en) * 2013-08-14 2013-12-04 惠州Tcl移动通信有限公司 Method and system for automatically setting sound volume of mobile terminal
CN107734188A (en) * 2017-11-09 2018-02-23 广东欧珀移动通信有限公司 Subway trip based reminding method, subway trip alarm set and mobile terminal

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170187866A1 (en) * 2015-10-17 2017-06-29 Eric Qing Li Automatic Volume Control Based on Context and Location
CN103945062B (en) * 2014-04-16 2017-01-18 华为技术有限公司 User terminal volume adjusting method, device and terminal
US9680983B1 (en) * 2016-06-16 2017-06-13 Motorola Mobility Llc Privacy mode detection and response over voice activated interface
CN106791163B (en) * 2017-01-06 2019-10-22 深圳市金立通信设备有限公司 A kind of volume adjusting method and terminal
CN107147780B (en) * 2017-04-26 2019-12-03 维沃移动通信有限公司 A kind of method and mobile terminal of the output of control audio frequency of mobile terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103428328A (en) * 2013-08-14 2013-12-04 惠州Tcl移动通信有限公司 Method and system for automatically setting sound volume of mobile terminal
CN107734188A (en) * 2017-11-09 2018-02-23 广东欧珀移动通信有限公司 Subway trip based reminding method, subway trip alarm set and mobile terminal

Also Published As

Publication number Publication date
CN108521521A (en) 2018-09-11

Similar Documents

Publication Publication Date Title
CN108521521B (en) Volume adjusting method, mobile terminal and computer readable storage medium
CN108733342B (en) Volume adjusting method, mobile terminal and computer readable storage medium
CN108900770B (en) Method and device for controlling rotation of camera, smart watch and mobile terminal
KR102056177B1 (en) Method for providing a voice-speech service and mobile terminal implementing the same
US10503462B2 (en) Systems and methods for handling application notifications
CN107613146B (en) Volume adjustment method and device and mobile terminal
CN110320991B (en) Power management method and device for mobile terminal
US9766852B2 (en) Non-audio notification of audible events
CN109243488B (en) Audio detection method, device and storage medium
WO2022001553A1 (en) Font adjustment method and apparatus, storage medium, and electronic device
CN111083289B (en) Audio playing method and device, storage medium and mobile terminal
CN111459363A (en) Information display method, device, equipment and storage medium
CN110086941B (en) Voice playing method and device and terminal equipment
CN108668011B (en) Output method, output device and electronic device
CN106407359A (en) Image playing method and mobile terminal
WO2019072179A1 (en) Application running control method and apparatus
WO2017215658A1 (en) Sound effect addition method and user terminal
WO2017206903A1 (en) Application control method and related device
CN105005612A (en) Music file acquisition method and mobile terminal
CN108536512B (en) Interface switching method and device and terminal equipment
CN111324815B (en) Automobile information processing method and device and storage medium
CN110730946A (en) Volume control method and device of mobile terminal, storage medium and mobile terminal
CN111309224B (en) Sound effect adjusting method and device, storage medium and mobile terminal
CN109886199B (en) Information processing method and device, vehicle and mobile terminal
CN113115179A (en) Working state adjusting method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant