CN111443889B - Volume adjusting method and system, storage medium and terminal equipment thereof - Google Patents

Volume adjusting method and system, storage medium and terminal equipment thereof Download PDF

Info

Publication number
CN111443889B
CN111443889B CN202010210835.5A CN202010210835A CN111443889B CN 111443889 B CN111443889 B CN 111443889B CN 202010210835 A CN202010210835 A CN 202010210835A CN 111443889 B CN111443889 B CN 111443889B
Authority
CN
China
Prior art keywords
volume value
volume
value
terminal equipment
terminal device
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
CN202010210835.5A
Other languages
Chinese (zh)
Other versions
CN111443889A (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.)
JRD Communication Shenzhen Ltd
Original Assignee
JRD Communication Shenzhen 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 JRD Communication Shenzhen Ltd filed Critical JRD Communication Shenzhen Ltd
Priority to CN202010210835.5A priority Critical patent/CN111443889B/en
Publication of CN111443889A publication Critical patent/CN111443889A/en
Application granted granted Critical
Publication of CN111443889B publication Critical patent/CN111443889B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/165Management of the audio stream, e.g. setting of volume, audio stream path
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The application discloses a volume adjusting method and a system thereof, a storage medium and terminal equipment, wherein the method comprises the following steps: acquiring a volume value of terminal equipment; when playing audio, judging whether the volume value of the terminal equipment is larger than a preset value; when the volume value of the terminal equipment is smaller than or equal to the preset value, judging whether the volume value of the played audio is the same as the volume value of the terminal equipment; and when the volume value of the played audio is judged to be different from the volume value of the terminal equipment, adjusting the volume value of the played audio to be the volume value of the terminal equipment. According to the method, when the user plays different audio files, the volume heard is always the volume value of the terminal equipment set by the user, so that the frequency of frequent operation of the user for adjusting the volume can be effectively reduced, and an immersion atmosphere can be created for the user.

Description

Volume adjusting method and system, storage medium and terminal equipment thereof
Technical Field
The present application relates to the field of computer technologies, and in particular, to a volume adjustment method and system, a storage medium, and a terminal device.
Background
At present, when all the playing applications play the audio, the volume of the audio player can be only regulated to be fixed at a certain value, and because some audio contents have overlarge or small volume, the user can bring uncomfortable sense of hearing, and the user has to adjust the volume, so that the actual playing volume of the audio in the play list can not be always at the optimal value set by the user for satisfying hearing when playing.
The existing terminal equipment cannot be automatically adjusted when playing audio content, so that the volume of the existing terminal equipment can not reach the sensory comfort level of a user when playing audio.
In view of the foregoing, there is a need for an automatic volume adjustment function to solve the problem of discomfort of users caused by inconsistent volume generated by the terminal device when playing audio files.
Disclosure of Invention
The embodiment of the application provides a volume adjusting method and system, a storage medium and terminal equipment, which can effectively solve the problem of uncomfortable hearing of a user caused by inconsistent volume generated when the terminal equipment plays an audio file.
According to an aspect of the present application, an embodiment of the present application provides a volume adjustment method, which is applicable to a terminal device, and the method includes the following steps: acquiring a volume value of terminal equipment; when playing audio, judging whether the volume value of the terminal equipment is larger than a preset value; when the volume value of the terminal equipment is smaller than or equal to the preset value, judging whether the volume value of the played audio is the same as the volume value of the terminal equipment; and when the volume value of the played audio is judged to be different from the volume value of the terminal equipment, adjusting the volume value of the played audio to be the volume value of the terminal equipment.
Further, after the step of determining whether the volume value of the terminal device is greater than a preset value, the method further includes the following steps: when the volume value of the terminal equipment is judged to be larger than the preset value, judging whether the volume value of the terminal equipment is larger than the preset value for the first time; when the volume value of the terminal equipment is judged to be larger than the preset value for the first time, a modification request is sent to a display interface of the terminal equipment; detecting whether the modification request is executed; when the modification request is detected to be executed, adjusting the volume value of the terminal equipment to be the preset value; and reserving a volume value of the terminal device when the modification request is detected not to be executed.
Further, after the step of determining whether the volume value of the terminal device is greater than the preset value for the first time, the method further includes the following steps: and when the volume value of the terminal equipment is judged to be not larger than the preset value for the first time, reserving the volume value of the terminal equipment.
Further, after the step of acquiring the sound volume value of the terminal device, the method further includes the steps of: detecting whether noise exists when audio is played; and when noise is detected to exist, starting the active noise reduction function.
Further, after the step of acquiring the sound volume value of the terminal device, the method further includes the step of: when playing audio, a prompt message is sent to the user every preset time.
According to another aspect of the present application, an embodiment of the present application provides a volume adjustment system, which is applicable to a terminal device, and the system includes: the system volume acquisition unit is used for acquiring the volume value of the terminal equipment; the system volume judging unit is used for judging whether the volume value of the terminal equipment is larger than a preset value or not when the audio is played; a play volume judging unit, configured to judge whether the volume value of the play audio is the same as the volume value of the terminal device when it is judged that the volume value of the terminal device is less than or equal to the preset value; and the play volume adjusting unit is used for adjusting the volume value of the play audio to the volume value of the terminal equipment when the volume value of the play audio is different from the volume value of the terminal equipment.
Further, the system further comprises: a preset value judging unit, configured to judge whether the volume value of the terminal device is greater than the preset value for the first time when it is judged that the volume value of the terminal device is greater than the preset value; a modification request sending unit, configured to send a modification request to a display interface of the terminal device when it is determined that the volume value of the terminal device is greater than the preset value for the first time; a request execution judging unit for detecting whether the modification request is executed; a system volume adjusting unit, configured to adjust a volume value of the terminal device to the preset value when it is detected that the modification request has been executed; and a system volume storage unit for reserving a volume value of the terminal device when the modification request is detected not to be executed.
Further, the system further comprises: a noise detection unit. For detecting whether noise is present when audio is played; and the active noise reduction unit is used for starting the active noise reduction function when the noise is detected to exist.
According to yet another aspect of the present application, an embodiment of the present application provides a storage medium having stored therein a plurality of instructions adapted to be loaded by a processor to perform the volume adjustment method.
According to still another aspect of the present application, an embodiment of the present application provides a terminal device, including a processor and a memory, where the processor is electrically connected to the memory, the memory is used for storing instructions and data, and the processor is used for executing steps in the volume adjustment method.
Compared with the prior art, the method has the advantages that the volume value of the playing audio is adjusted to be the volume value of the terminal equipment by acquiring the volume value of the terminal equipment and comparing the volume value of the terminal equipment with the volume value of the playing audio, when the volume value of the playing audio is different from the volume value of the terminal equipment, the volume heard by a user can be ensured to be the volume value of the terminal equipment set by the user all the time by the method, so that the frequency of frequent operation and volume adjustment of the user can be effectively reduced, and immersion atmosphere can be created for the user.
Drawings
The technical solution and other advantageous effects of the present application will be made apparent by the following detailed description of the specific embodiments of the present application with reference to the accompanying drawings.
Fig. 1 is a flow chart of steps of a volume adjusting method according to an embodiment of the present application.
Fig. 2 is a schematic structural diagram of a volume adjustment system according to an embodiment of the present application.
Fig. 3 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Fig. 4 is another schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. It will be apparent that the described embodiments are only some, but not all, embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to fall within the scope of the application.
In the description of the present application, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", etc. indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings are merely for convenience in describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be configured and operated in a specific orientation, and thus should not be construed as limiting the present application. Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more of the described features. In the description of the present application, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
In the description of the present application, it should be noted that, unless explicitly specified and limited otherwise, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be either fixedly connected, detachably connected, or integrally connected, for example; can be mechanically connected, electrically connected or can be communicated with each other; can be directly connected or indirectly connected through an intermediate medium, and can be communicated with the inside of two elements or the interaction relationship of the two elements. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art according to the specific circumstances. In this embodiment, the analog display screen touch unit is connected to the head tracking unit, and is configured to obtain a movement path of the sensing cursor in the display device.
In the present application, unless expressly stated or limited otherwise, a first feature "above" or "below" a second feature may include both the first and second features being in direct contact, as well as the first and second features not being in direct contact but being in contact with each other through additional features therebetween. Moreover, a first feature being "above," "over" and "on" a second feature includes the first feature being directly above and obliquely above the second feature, or simply indicating that the first feature is higher in level than the second feature. The first feature being "under", "below" and "beneath" the second feature includes the first feature being directly under and obliquely below the second feature, or simply means that the first feature is less level than the second feature.
The following disclosure provides many different embodiments, or examples, for implementing different features of the application. In order to simplify the present disclosure, components and arrangements of specific examples are described below. They are, of course, merely examples and are not intended to limit the application. Furthermore, the present application may repeat reference numerals and/or letters in the various examples, which are for the purpose of brevity and clarity, and which do not themselves indicate the relationship between the various embodiments and/or arrangements discussed. In addition, the present application provides examples of various specific processes and materials, but one of ordinary skill in the art will recognize the application of other processes and/or the use of other materials.
As shown in fig. 1, a flow chart of steps of a volume adjustment method according to an embodiment of the present application includes the following steps:
step S110: and acquiring the volume value of the terminal equipment.
In this embodiment, the volume value of the terminal device is generally adjusted or set by the user himself.
Step S120: and judging whether the volume value of the terminal equipment is larger than a preset value.
In this embodiment, when playing audio, it is determined whether the volume value of the terminal device is greater than a preset value. The preset value is a maximum sound volume value without compromising the hearing of the user.
Step S121: and judging whether the volume value of the terminal equipment is larger than the preset value for the first time.
In this embodiment, when it is determined that the volume value of the terminal device is greater than the preset value, it is determined whether the volume value of the terminal device is greater than the preset value for the first time. Since the user sets the volume value of the terminal device to be larger than the preset value, the user is required to confirm whether the volume value is larger than the preset value.
Step S122: and sending a modification request to a display interface of the terminal equipment.
In this embodiment, when it is determined that the volume value of the terminal device is greater than the preset value for the first time, a modification request is sent to a display interface of the terminal device. When the user sets the volume value of the terminal device to be greater than the preset value for the first time, the display interface of the terminal device prompts that the volume value of the user terminal device is greater than the preset value, which may affect hearing and please note. In addition, it should be noted that, when it is determined that the volume value of the terminal device is not greater than the preset value for the first time, step S125 is directly performed. The aim of the setting is to prevent the user from frequently adjusting the volume value of the terminal equipment, so that the user needs to select for many times, which is unfavorable for the use experience of the user.
Step S123: it is detected whether the modification request is executed.
Step S124: and adjusting the volume value of the terminal equipment to be the preset value.
Step S125: and reserving the volume value of the terminal equipment.
In this embodiment, in step S123, step S124, and step S125, when it is detected that the modification request has been executed, the volume value of the terminal device is adjusted to the preset value. And when the modification request is detected not to be executed, reserving the volume value of the terminal equipment.
Step S130: and judging whether the volume value of the played audio is the same as the volume value of the terminal equipment.
In this embodiment, when it is determined that the volume value of the terminal device is smaller than or equal to the preset value, it is determined whether the volume value of the played audio is the same as the volume value of the terminal device. Since the volume of different audio files is sometimes too large and sometimes too small when they are played, it is difficult to ensure that the volume value of each audio file is the same, and therefore the volume value of the played audio needs to be compared with the volume value of the terminal device.
Step S140: and adjusting the volume value of the played audio to the volume value of the terminal equipment.
In this embodiment, when it is determined that the volume value of the played audio is different from the volume value of the terminal device, the volume value of the played audio is adjusted to the volume value of the terminal device. Because the volume value of the terminal equipment is set by the user, the volume value of the terminal equipment can dynamically influence the volume generated when the audio file is played. Specifically, when the default volume value of the audio file is larger, since the volume value of the terminal device is set smaller, the volume value can be automatically reduced until it is equal to the volume value of the terminal device when the audio file is played. Also, when the default volume value of the audio file is small, since the volume value of the terminal device is set to be large, the volume value can be automatically increased until it is equal to the volume value of the terminal device when the audio file is played. Therefore, when the user plays different audio files, the volume heard is always the volume value of the terminal equipment set by the user, the frequency of frequent operation of the user for adjusting the volume is effectively reduced, and an immersion atmosphere can be created for the user.
Step S150: and detecting whether noise exists.
Step S160: and starting an active noise reduction function.
In this embodiment, when the presence of noise is detected, the active noise reduction function is activated. Specifically, when a user plays an audio file, an active noise reduction function needs to be started when a sound with a high decibel or a super-high decibel suddenly appears outside. The active noise reduction function mainly includes that noise is recorded through the terminal equipment, and meanwhile, the terminal equipment plays reverse waveforms of the recorded noise according to the noise so as to cancel each other, so that clear content is heard by a user.
Step S170: and sending prompt information to the user at intervals of a preset time.
In this embodiment, the preset time may be 1 hour, so that the purpose of the setting is that the user continuously listens to the playing content for a long time and reminds every 1 hour, which is beneficial to the physical health of the user. In addition, it should be noted that, when the audio is being played, if the intelligent hardware such as the receiving mobile phone, the bracelet, the intelligent sound box and the like finds that the user is in a state of leaving or entering sleep for a long time, the intelligent hardware sends a related prompt instruction to the terminal device, and the terminal device gradually reduces the playing volume until the playing is stopped or the player is closed.
Compared with the prior art, the method has the advantages that the volume value of the terminal equipment is obtained, the volume value of the terminal equipment is compared with the volume value of the played audio, and when the volume value of the played audio is different from the volume value of the terminal equipment, the volume value of the played audio is adjusted to the volume value of the terminal equipment, so that the volume heard by a user when playing different audio files can be ensured to be always the volume value of the terminal equipment set by the user, the frequency of frequent operation and volume adjustment of the user can be effectively reduced, and immersion atmosphere can be created for the user.
As shown in fig. 2, a schematic structural diagram of a volume adjustment system according to an embodiment of the present application includes: the system comprises a system volume acquisition unit, a system volume judgment unit, a play volume adjustment unit, a preset value judgment unit, a modification request transmission unit, a request execution judgment unit, a system volume adjustment unit, a system volume storage unit, a noise detection unit and an active noise reduction unit.
The system volume acquisition unit is used for acquiring the volume value of the terminal equipment. In this embodiment, the volume value of the terminal device is generally adjusted or set by the user himself.
The system volume judging unit is used for judging whether the volume value of the terminal equipment is larger than a preset value when the audio is played. In this embodiment, when playing audio, it is determined whether the volume value of the terminal device is greater than a preset value. The preset value is a maximum sound volume value without compromising the hearing of the user.
The preset value judging unit is used for judging whether the volume value of the terminal equipment is larger than the preset value for the first time or not when judging that the volume value of the terminal equipment is larger than the preset value. In this embodiment, when it is determined that the volume value of the terminal device is greater than the preset value, it is determined whether the volume value of the terminal device is greater than the preset value for the first time. Since the volume value of the terminal device set by the user is larger than the preset value, the user is required to confirm whether the volume value is larger than the preset value.
And the modification request sending unit is used for sending a modification request to a display interface of the terminal equipment when the volume value of the terminal equipment is judged to be larger than the preset value for the first time. In this embodiment, when it is determined that the volume value of the terminal device is greater than the preset value for the first time, a modification request is sent to a display interface of the terminal device. When the user sets the volume value of the terminal device to be greater than the preset value for the first time, the display interface of the terminal device prompts that the volume value of the user terminal device is greater than the preset value, which may affect hearing and please note. In addition, it should be noted that, when it is determined that the volume value of the terminal device is not greater than the preset value for the first time, the volume storage unit is directly called. The aim of the setting is to prevent the user from frequently adjusting the volume value of the terminal equipment, so that the user needs to select for many times, which is unfavorable for the use experience of the user.
The request execution judging unit is used for detecting whether the modification request is executed or not. The system volume adjusting unit is used for adjusting the volume value of the terminal equipment to be the preset value when the modification request is detected to be executed. The system volume storage unit is used for reserving the volume value of the terminal equipment when the modification request is detected not to be executed. In this embodiment, when it is detected that the modification request has been executed, the volume value of the terminal device is adjusted to the preset value. And when the modification request is detected not to be executed, reserving the volume value of the terminal equipment.
And the play volume judging unit is used for judging whether the volume value of the play audio is the same as the volume value of the terminal equipment or not when judging that the volume value of the terminal equipment is smaller than or equal to the preset value. In this embodiment, when it is determined that the volume value of the terminal device is smaller than or equal to the preset value, it is determined whether the volume value of the played audio is the same as the volume value of the terminal device. Since the volume of different audio files is sometimes too large and sometimes too small when playing, it is difficult to ensure that the volume value of each audio file is the same, and therefore the volume value of the played audio needs to be compared with the volume value of the terminal device.
The play volume adjusting unit is used for adjusting the volume value of the play audio to be the volume value of the terminal equipment when judging that the volume value of the play audio is different from the volume value of the terminal equipment. In this embodiment, when it is determined that the volume value of the played audio is different from the volume value of the terminal device, the volume value of the played audio is adjusted to the volume value of the terminal device. Because the volume value of the terminal equipment is set by the user, the volume value of the terminal equipment can dynamically influence the volume generated when the audio file is played. Specifically, when the default volume value of the audio file is larger, since the volume value of the terminal device is set smaller, the volume value can be automatically reduced until it is equal to the volume value of the terminal device when the audio file is played. Also, when the default volume value of the audio file is small, since the volume value of the terminal device is set to be large, the volume value can be automatically increased until it is equal to the volume value of the terminal device when the audio file is played. By the design, the frequency of frequent operation of a user for adjusting the volume can be effectively reduced, and an immersion atmosphere can be created for the user.
The noise detection unit is used for detecting whether noise exists when audio is played. The active noise reduction unit is used for starting an active noise reduction function when noise is detected to exist.
In this embodiment, when the presence of noise is detected, the active noise reduction function is activated. Specifically, when a user plays an audio file, an active noise reduction function needs to be started when a sound with a high decibel or a super-high decibel suddenly appears outside. The active noise reduction function mainly includes that noise is recorded through the terminal equipment, and meanwhile, the terminal equipment plays reverse waveforms of the recorded noise according to the noise so as to cancel each other, so that clear content is heard by a user.
Compared with the prior art, the method has the advantages that the volume value of the terminal equipment is obtained, the volume value of the terminal equipment is compared with the volume value of the played audio, and when the volume value of the played audio is different from the volume value of the terminal equipment, the volume value of the played audio is adjusted to the volume value of the terminal equipment, so that the volume heard by a user when playing different audio files can be ensured to be always the volume value of the terminal equipment set by the user, the frequency of frequent operation and volume adjustment of the user can be effectively reduced, and immersion atmosphere can be created for the user.
The embodiment of the application also provides terminal equipment which can be equipment such as a smart phone, a tablet personal computer and the like. Specifically, as shown in fig. 3, the terminal device 200 includes a processor 201 and a memory 202. The processor 201 is electrically connected to the memory 202.
The processor 201 is a control center of the terminal device 200, connects respective parts of the entire terminal device using various interfaces and lines, and performs various functions of the terminal device and processes data by running or loading an application program stored in the memory 202 and calling data stored in the memory 202, thereby performing overall monitoring of the terminal device.
In this embodiment, the terminal device 200 is provided with a plurality of storage partitions, where the plurality of storage partitions include a system partition and a target partition, and the processor 201 in the terminal device 200 loads instructions corresponding to the processes of one or more application programs into the memory 202 according to the following steps, and the processor 201 executes the application programs stored in the memory 202, thereby implementing various functions:
acquiring a volume value of terminal equipment;
when playing audio, judging whether the volume value of the terminal equipment is larger than a preset value;
when the volume value of the terminal equipment is smaller than or equal to the preset value, judging whether the volume value of the played audio is the same as the volume value of the terminal equipment; and
and when the volume value of the played audio is different from the volume value of the terminal equipment, adjusting the volume value of the played audio to be the volume value of the terminal equipment.
Fig. 4 shows a specific block diagram of a terminal device according to an embodiment of the present application, which may be used to implement the volume adjustment method provided in the above embodiment. The terminal device 300 may be a smart phone or a tablet computer.
In addition, the terminal device may further include a component for receiving and transmitting electromagnetic waves by the RF circuit 310, so as to implement mutual conversion between the electromagnetic waves and the electrical signals, thereby communicating with a communication network or other devices. RF circuitry 310 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and the like. The RF circuitry 310 may communicate with various networks such as the internet, intranets, wireless networks, or other devices via wireless networks. The wireless network may include a cellular telephone network, a wireless local area network, or a metropolitan area network. The wireless network may use various communication standards, protocols, and technologies including, but not limited to, global system for mobile communications (Global System for Mobile Communication, GSM), enhanced mobile communications technology (Enhanced Data GSM Environment, EDGE), wideband code division multiple access technology (Wideband Code Division Multiple Access, WCDMA), code division multiple access technology (Code Division Access, CDMA), time division multiple access technology (Time Division Multiple Access, TDMA), wireless fidelity technology (Wireless Fidelity, wi-Fi) (e.g., institute of electrical and electronics engineers standards IEEE 802.11a,IEEE 802.11b,IEEE802.11g and/or IEEE802.11 n), internet telephony (Voice over Internet Protocol, voIP), worldwide interoperability for microwave access (Worldwide Interoperability for Microwave Access, wi-Max), other protocols for mail, instant messaging, and short messaging, as well as any other suitable communication protocols, even including those not currently developed.
The memory 320 may be used to store software programs and modules, such as program instructions/modules corresponding to the volume adjustment method in the above embodiments, and the processor 380 executes the software programs and modules stored in the memory 320, thereby performing various functional applications and data processing, i.e., implementing the volume adjustment function. Memory 320 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 320 may further include memory remotely located relative to processor 380, which may be connected to terminal device 300 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 330 may be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 330 may include a touch-sensitive surface 331 as well as other input devices 332. The touch-sensitive surface 331, also referred to as a touch display screen or a touch pad, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch-sensitive surface 331 or thereabout using any suitable object or accessory such as a finger, stylus, etc.), and actuate the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 331 may comprise two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth 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 detection device, converts it into touch point coordinates, and sends the touch point coordinates to the processor 380, and can receive and execute commands sent from the processor 380. In addition, the touch-sensitive surface 331 may be implemented in a variety of types, such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch-sensitive surface 331, the input unit 330 may also comprise other input devices 332. In particular, other input devices 332 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, mouse, joystick, etc.
The display unit 340 may be used to display information input by a user or information provided to the user and various graphical user interfaces of the terminal device 300, which may be composed of graphics, text, icons, video, and any combination thereof. The display unit 340 may include a display panel 341, and optionally, the display panel 341 may be configured in the form of an LCD (Liquid Crystal Display ), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch sensitive surface 331 may overlay the display panel 341 and, upon detection of a touch operation thereon or thereabout by the touch sensitive surface 331, is communicated to the processor 380 to determine the type of touch event, and the processor 380 then provides a corresponding visual output on the display panel 341 based on the type of touch event. Although in fig. 4 the touch sensitive surface 331 and the display panel 341 are implemented as two separate components for input and output functions, in some embodiments the touch sensitive surface 331 may be integrated with the display panel 341 for input and output functions.
The terminal device 300 may also include at least one sensor 350, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 341 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 341 and/or the backlight when the terminal device 300 moves to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and the direction when the mobile phone is stationary, and can be used for applications of recognizing the gesture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured with the terminal device 300 are not described in detail herein.
Audio circuitry 360, speaker 361, and microphone 362 may provide an audio interface between a user and terminal device 300. The audio circuit 360 may transmit the received electrical signal converted from audio data to the speaker 361, and the electrical signal is converted into a sound signal by the speaker 361 and output; on the other hand, the microphone 362 converts the collected sound signals into electrical signals, receives the electrical signals from the audio circuit 360, converts the electrical signals into audio data, outputs the audio data to the processor 380 for processing, and transmits the audio data to, for example, another terminal via the RF circuit 310, or outputs the audio data to the memory 320 for further processing. Audio circuitry 360 may also include an ear bud jack to provide communication of the peripheral ear bud with terminal device 300.
The terminal device 300 may facilitate user email, web browsing, streaming media access, etc. via the transmission module 370 (e.g., wi-Fi module), which provides wireless broadband internet access to the user. Although fig. 4 shows the transmission module 370, it is understood that it does not belong to the essential constitution of the terminal device 300, and may be omitted entirely as needed within the scope of not changing the essence of the application.
Processor 380 is a control center of terminal device 300 that connects the various parts of the overall handset using various interfaces and lines, performs various functions of terminal device 300 and processes data by running or executing software programs and/or modules stored in memory 320, and invoking data stored in memory 320, thereby performing overall monitoring of the handset. Optionally, processor 380 may include one or more processing cores; in some embodiments, processor 380 may integrate an application processor that primarily processes operating systems, user interfaces, applications, etc., with a modem processor that primarily processes wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 380.
The terminal device 300 also includes a power supply 390 (e.g., a battery) that provides power to the various components, and in some embodiments, may be logically coupled to the processor 380 via a power management system to perform functions such as managing charging, discharging, and power consumption via the power management system. Power supply 390 may also include one or more of any of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the terminal device 300 may further include a camera (such as a front camera, a rear camera), a bluetooth module, etc., which will not be described herein. In particular, in this embodiment, the display unit of the terminal device is a touch screen display, the terminal device further includes a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions for:
acquiring a volume value of terminal equipment;
when playing audio, judging whether the volume value of the terminal equipment is larger than a preset value;
when the volume value of the terminal equipment is smaller than or equal to the preset value, judging whether the volume value of the played audio is the same as the volume value of the terminal equipment; and
and when the volume value of the played audio is different from the volume value of the terminal equipment, adjusting the volume value of the played audio to be the volume value of the terminal equipment.
In the implementation, each module may be implemented as an independent entity, or may be combined arbitrarily, and implemented as the same entity or several entities, and the implementation of each module may be referred to the foregoing method embodiment, which is not described herein again.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the various methods of the above embodiments may be performed by instructions, or by instructions controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor.
To this end, an embodiment of the present application provides a storage medium having stored therein a plurality of instructions capable of being loaded by a processor to perform steps in any of the methods for volume adjustment provided by the embodiments of the present application.
Wherein the storage medium may include: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
The instructions stored in the storage medium can execute the steps in any volume adjustment method provided by the embodiment of the present application, so that the beneficial effects that any volume adjustment method provided by the embodiment of the present application can achieve can be achieved, and detailed descriptions of the foregoing embodiments are omitted herein.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
The principles and embodiments of the present application have been described herein with reference to specific examples, the description of the above examples is only for aiding in understanding the technical solution of the present application and its core ideas; those of ordinary skill in the art will appreciate that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the application.

Claims (8)

1. A volume adjustment method, suitable for a terminal device, comprising the steps of:
acquiring a volume value of terminal equipment;
when playing audio, judging whether the volume value of the terminal equipment is larger than a preset value;
when the volume value of the terminal equipment is smaller than or equal to the preset value, judging whether the volume value of the played audio is the same as the volume value of the terminal equipment; when the volume value of the played audio is different from the volume value of the terminal equipment, adjusting the volume value of the played audio to be the volume value of the terminal equipment; and
when the volume value of the terminal equipment is judged to be larger than the preset value, judging whether the volume value of the terminal equipment is larger than the preset value for the first time; when the volume value of the terminal equipment is judged to be larger than the preset value for the first time, a modification request is sent to a display interface of the terminal equipment; detecting whether the modification request is executed; when the modification request is detected to be executed, adjusting the volume value of the terminal equipment to be the preset value; and when the modification request is detected not to be executed, reserving the volume value of the terminal equipment.
2. The volume adjustment method according to claim 1, further comprising, after the step of determining whether the volume value of the terminal device is greater than the preset value for the first time, the steps of:
and when the volume value of the terminal equipment is judged to be not larger than the preset value for the first time, reserving the volume value of the terminal equipment.
3. The volume adjustment method according to claim 1, characterized by further comprising, after the step of acquiring the volume value of the terminal device, the step of:
detecting whether noise exists when audio is played; and
when noise is detected to be present, an active noise reduction function is activated.
4. The volume adjustment method according to claim 1, characterized by further comprising, after the step of acquiring the volume value of the terminal device, the step of:
when playing audio, a prompt message is sent to the user every preset time.
5. A volume adjustment system adapted for a terminal device, comprising:
the system volume acquisition unit is used for acquiring the volume value of the terminal equipment;
the system volume judging unit is used for judging whether the volume value of the terminal equipment is larger than a preset value or not when the audio is played;
a play volume judging unit, configured to judge whether the volume value of the play audio is the same as the volume value of the terminal device when it is judged that the volume value of the terminal device is less than or equal to the preset value;
a play volume adjusting unit, configured to adjust a volume value of a play audio to a volume value of the terminal device when it is determined that the volume value of the play audio is different from the volume value of the terminal device;
a preset value judging unit, configured to judge whether the volume value of the terminal device is greater than the preset value for the first time when it is judged that the volume value of the terminal device is greater than the preset value;
a modification request sending unit, configured to send a modification request to a display interface of the terminal device when it is determined that the volume value of the terminal device is greater than the preset value for the first time;
a request execution judging unit for detecting whether the modification request is executed;
a system volume adjusting unit, configured to adjust a volume value of the terminal device to the preset value when it is detected that the modification request has been executed; and
and the system volume storage unit is used for reserving the volume value of the terminal equipment when the modification request is detected not to be executed.
6. The volume adjustment system of claim 5, further comprising:
a noise detecting unit for detecting whether noise exists when audio is played; and
and the active noise reduction unit is used for starting the active noise reduction function when the noise is detected.
7. A storage medium having stored therein a plurality of instructions adapted to be loaded by a processor to perform the volume adjustment method of any of claims 1-3.
8. A terminal device comprising a processor and a memory, the processor being electrically connected to the memory, the memory being for storing instructions and data, the processor being for performing the steps of the volume adjustment method of any one of claims 1-3.
CN202010210835.5A 2020-03-24 2020-03-24 Volume adjusting method and system, storage medium and terminal equipment thereof Active CN111443889B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010210835.5A CN111443889B (en) 2020-03-24 2020-03-24 Volume adjusting method and system, storage medium and terminal equipment thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010210835.5A CN111443889B (en) 2020-03-24 2020-03-24 Volume adjusting method and system, storage medium and terminal equipment thereof

Publications (2)

Publication Number Publication Date
CN111443889A CN111443889A (en) 2020-07-24
CN111443889B true CN111443889B (en) 2023-08-11

Family

ID=71629483

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010210835.5A Active CN111443889B (en) 2020-03-24 2020-03-24 Volume adjusting method and system, storage medium and terminal equipment thereof

Country Status (1)

Country Link
CN (1) CN111443889B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105786442A (en) * 2016-03-01 2016-07-20 惠州Tcl移动通信有限公司 Volume control method and intelligent terminal
CN107360326A (en) * 2017-07-17 2017-11-17 北京小米移动软件有限公司 terminal volume adjusting processing method and terminal
CN107566618A (en) * 2017-08-18 2018-01-09 广东欧珀移动通信有限公司 volume adjusting method, device, terminal device and storage medium
WO2018090451A1 (en) * 2016-11-15 2018-05-24 深圳Tcl新技术有限公司 Volume control system and volume control method
CN109511037A (en) * 2018-12-19 2019-03-22 努比亚技术有限公司 Earpiece volume adjusting method, device and computer readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102556840B1 (en) * 2017-01-20 2023-07-18 삼성전자주식회사 User terminal device and method for control thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105786442A (en) * 2016-03-01 2016-07-20 惠州Tcl移动通信有限公司 Volume control method and intelligent terminal
WO2018090451A1 (en) * 2016-11-15 2018-05-24 深圳Tcl新技术有限公司 Volume control system and volume control method
CN107360326A (en) * 2017-07-17 2017-11-17 北京小米移动软件有限公司 terminal volume adjusting processing method and terminal
CN107566618A (en) * 2017-08-18 2018-01-09 广东欧珀移动通信有限公司 volume adjusting method, device, terminal device and storage medium
CN109511037A (en) * 2018-12-19 2019-03-22 努比亚技术有限公司 Earpiece volume adjusting method, device and computer readable storage medium

Also Published As

Publication number Publication date
CN111443889A (en) 2020-07-24

Similar Documents

Publication Publication Date Title
CN107277912B (en) Radio frequency interference processing method, device, storage medium and terminal
US10359992B2 (en) Sound effect configuration method and related device
CN108900231B (en) Dynamic antenna adjustment method and related product
CN111093259B (en) Bluetooth power adjustment method and device, storage medium and terminal
CN103634717B (en) A kind of method, device and the terminal device of the control of utilization earphone
CN106850983B (en) screen-off control method and device, terminal and storage medium
CN103618514A (en) Volume adjustment method, device and electronic equipment
CN106936516B (en) Display screen display state control method, storage medium and terminal
CN107219951B (en) Touch screen control method and device, storage medium and terminal equipment
CN111510901B (en) Power adjusting method, device, storage medium and terminal
CN108833683B (en) Dynamic antenna adjustment implementation method and related product
CN111654902B (en) Method and device for reducing GPS signal interference of mobile terminal and mobile terminal
CN111443803B (en) Mode switching method and device, storage medium and mobile terminal
CN103647868B (en) Reduce the method and apparatus that the tinkle of bells is bothered
WO2015078349A1 (en) Microphone sound-reception status switching method and apparatus
CN114582264A (en) Display brightness control method and device, electronic equipment and storage medium
CN111596793B (en) Anti-misoperation method and system, storage medium and terminal equipment
CN110851014B (en) Touch recognition method and device, storage medium and terminal equipment
CN108810261A (en) Antenna switching method and Related product in call
CN111443889B (en) Volume adjusting method and system, storage medium and terminal equipment thereof
CN111966206B (en) Power saving control method and device for fingerprint sensor and mobile terminal
CN112433694B (en) Light intensity adjusting method and device, storage medium and mobile terminal
CN112367425B (en) Volume adjusting method and device and terminal
CN105635379B (en) Noise suppression method and device
CN106210951A (en) The adaptation method of a kind of bluetooth earphone, device and terminal

Legal Events

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