WO2019033983A1 - Sound volume adjustment method and apparatus, storage medium, and terminal device - Google Patents

Sound volume adjustment method and apparatus, storage medium, and terminal device Download PDF

Info

Publication number
WO2019033983A1
WO2019033983A1 PCT/CN2018/099655 CN2018099655W WO2019033983A1 WO 2019033983 A1 WO2019033983 A1 WO 2019033983A1 CN 2018099655 W CN2018099655 W CN 2018099655W WO 2019033983 A1 WO2019033983 A1 WO 2019033983A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal device
volume adjustment
volume
information
adjustment information
Prior art date
Application number
PCT/CN2018/099655
Other languages
French (fr)
Chinese (zh)
Inventor
郑志勇
严锋贵
甘高亭
杨海
许钊铵
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2019033983A1 publication Critical patent/WO2019033983A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M19/00Current supply arrangements for telephone systems
    • H04M19/02Current supply arrangements for telephone systems providing ringing current or supervisory tones, e.g. dialling tone or busy tone
    • H04M19/04Current supply arrangements for telephone systems providing ringing current or supervisory tones, e.g. dialling tone or busy tone the ringing-current being generated at the substations
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/60Substation equipment, e.g. for use by subscribers including speech amplifiers
    • 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/72484User interfaces specially adapted for cordless or mobile telephones wherein functions are triggered by incoming communication events
    • 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

Definitions

  • the embodiments of the present application relate to the field of computers, for example, to a volume adjustment method, apparatus, storage medium, and terminal device.
  • the volume of the smart phone is generally adjusted by the physical buttons on the mobile phone, or through the screen of the mobile phone.
  • the control button adjusts the volume of the phone; such a volume adjustment method is not flexible enough and needs to be perfected.
  • the embodiment of the present invention provides a volume adjustment method, device, storage medium, and terminal device, which improves the volume adjustment efficiency of the terminal device and reduces the power consumption of the terminal device.
  • the embodiment of the present application provides a volume adjustment method, including: acquiring a signal strength of a positioning signal in a terminal device, determining, according to the signal strength, an environment type of the terminal device; according to the environment type and The stored preset adjustment table determines corresponding volume adjustment information; and adjusts the volume of the terminal device according to the volume adjustment information.
  • the embodiment of the present application provides a volume adjustment apparatus, including: an environment type determining module, configured to acquire a signal strength of a positioning signal in a terminal device, and determine an environment type of the terminal device according to the signal strength.
  • the volume adjustment determining module is configured to determine corresponding volume adjustment information according to the environment type and the stored preset adjustment table; and the adjustment module is configured to adjust the volume of the terminal device according to the volume adjustment information.
  • an embodiment of the present application provides a computer readable storage medium, where a computer program is stored, and the program is executed by a processor to implement a volume adjustment method according to an embodiment of the present application.
  • an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and operable on the processor, where the processor executes the computer program to implement the implementation of the present application.
  • a terminal device including a memory, a processor, and a computer program stored in the memory and operable on the processor, where the processor executes the computer program to implement the implementation of the present application.
  • FIG. 1 is a schematic flowchart diagram of a volume adjustment method according to an embodiment of the present application
  • FIG. 2 is a schematic flowchart diagram of another volume adjustment method according to an embodiment of the present disclosure
  • FIG. 3 is a schematic diagram 1 of a positioning signal according to an embodiment of the present disclosure.
  • FIG. 4 is a schematic flowchart diagram of another volume adjustment method according to an embodiment of the present disclosure.
  • FIG. 5 is a schematic diagram 2 of a positioning signal according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic flowchart diagram of another volume adjustment method according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic flowchart diagram of another volume adjustment method according to an embodiment of the present disclosure.
  • FIG. 8 is a structural block diagram of a volume adjustment apparatus according to an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure.
  • the volume adjustment function of the smart phone is relatively passive, and generally requires the user to manually adjust the volume button to adjust the volume of the smartphone.
  • the volume of the smartphone is generally higher, and the user generally needs to increase the volume of the phone indoors; if the user forgets to increase the volume of the smartphone, indoors, such as a library or conference
  • the loud volume of the cell phone in the room caused a lot of noise.
  • the volume adjustment method provided by the embodiment of the present application can improve the situation that the above volume control is relatively passive.
  • FIG. 1 is a schematic flowchart of a volume adjustment method according to an embodiment of the present application.
  • the method may be performed by a volume control device, where the device may be implemented by at least one of software and hardware, and may be integrated into a terminal device. .
  • the method includes step 101, step 102, and step 103.
  • step 101 a signal strength of a positioning signal in the terminal device is acquired, and an environment type in which the terminal device is located is determined according to the signal strength.
  • the positioning signal in the terminal device may be, but not limited to, a GPS signal of a Global Positioning System (GPS) module in the mobile phone.
  • GPS Global Positioning System
  • the signal strength of the GPS signal of the mobile phone is relatively weakened, while in an open place such as outdoor, the signal strength of the GPS signal is relatively enhanced.
  • the signal strength of the GPS signal in the mobile phone can be used to determine whether the user is indoors or outdoors; the types of environments include indoors and outdoors.
  • step 101 can be implemented by step 101a, step 101b, and step 101c.
  • step 101a the signal strength of the positioning signal in the terminal device is acquired.
  • step 101b geographical location information is acquired according to the positioning signal and map data of the terminal device.
  • step 101c an environment type in which the terminal device is located is determined according to the signal strength and geographic location information.
  • the map data of the terminal device may be obtained by the mobile phone through a map application interface installed therein, for example, a mobile phone own map application, a high-tech map, a Baidu map, and the like.
  • the location of the terminal device can be located to determine the geographical location information of the terminal device; the geographical location information includes: a gymnasium, a residential community, an office building, a library, and a road. As shown in Figure 3, the location of the terminal device is located at point A, and point A is located in the gym.
  • the user holds the mobile phone in a seat in a corner of the gymnasium, there are more shields near the seat, resulting in a relatively weak signal strength of the GPS signal of the user's mobile phone, and the geographical location information obtained by the positioning includes being located in the gymnasium. Then, it can be judged that the type of environment in which the user's mobile phone is located is outdoors.
  • the signal strength of the GPS signal of the mobile phone on the balcony is relatively strong, and since the geographical location information obtained by the positioning includes being located in the office building, the environment type of the user's mobile phone can be determined. For indoors.
  • step 101a and step 101b are not limited thereto, and step 101b may also be implemented before step 101a.
  • step 102 corresponding volume adjustment information is determined according to the environment type and the stored preset adjustment table.
  • the stored preset adjustment table includes a relationship mapping table of the environment type and the volume adjustment information; for example, the environment type is indoor, and the requirement of the volume of the terminal device in the indoor user does not need to be too large, so the corresponding volume adjustment information is adjusted. It is 5 (the volume range of the terminal device is 0-10), and the volume is adjusted to an intermediate value to meet the user's demand for volume in the room. As shown in Fig. 3, the environment type is outdoor, the user is positioned in the gymnasium, and the stadium has lower noise, the user's perception of the sound becomes lower, and the volume demand of the terminal device is relatively larger, so the corresponding volume adjustment The information is adjusted to 10, and the user can hear the sound of the mobile phone outdoors.
  • step 1020 is further included before step 102.
  • step 1020 according to the positioning signal and the map data, road condition information of a road that satisfies a preset condition, and a vertical distance of the road to an anchor point that acquires the positioning signal are acquired.
  • the preset condition may be, but is not limited to, the vertical distance to the positioning point of the positioning signal is less than the first distance; for example, when the first distance is 200 meters, the road that meets the preset condition is to obtain the positioning signal.
  • the vertical distance of the anchor point is less than 200 meters; because if the vertical distance of the anchor point from the road is greater than 200 meters, the influence of noise on the road on the anchor point can be neglected.
  • the positioning point is point B
  • the vertical distance of point B from the first avenue and the second avenue is greater than 200 meters, so when the positioning point is point B, there is no road meeting the preset condition.
  • the anchor point is C point
  • the vertical distance between point C and the first avenue and the second avenue are less than 200 meters, so the first avenue and the second avenue are both in accordance with the preset conditions.
  • the road condition information of the road includes unblocked, normal and congested; as shown in Figure 5, the road condition information of the eastern section of the first avenue is ordinary, the road condition information of the northern section of the second avenue is congestion, and the anchor point C is to the east section of the first avenue.
  • the vertical distance is 20 meters and the vertical distance from the north section of Second Avenue is 30 meters.
  • Step 102 is implemented by determining corresponding volume adjustment information according to the road condition information, the vertical distance, the environment type, and the stored preset adjustment table.
  • Table 1 is a partial content of the stored preset adjustment table. As shown in FIG. 5, the east section of the first avenue is the south side road of the anchor point C, and the north section of the second avenue is the west side road of the anchor point C. Corresponding to Table 1, it can be determined that the corresponding volume adjustment information is adjusted to 7.
  • step 1021 is further included before step 102.
  • step 1021 a relative altitude of the positioning point is determined according to the positioning signal and the map data.
  • the GPS signal generally includes the altitude measured by it, and the altitude is generally measured by using a certain sea level as a reference line, and the altitude of each area/city is also different, so it is necessary to determine according to the map data.
  • the relative altitude of the anchor point For example, the altitude measured in the GPS signal is 100 meters, and the city where the positioning point is located is a certain area of a certain city. The average altitude of the area is 5 meters, and the relative altitude can be determined to be 95 meters.
  • the step 102 is implemented by determining corresponding volume adjustment information according to the relative altitude, the road condition information, the vertical distance, the environment type, and the stored preset adjustment table.
  • the noise caused by the floor located between 20 meters and 70 meters is relatively large.
  • the volume adjustment adjustment information is adjusted to 8; if less than 30 meters , or 70 meters or more, the relative volume adjustment information is adjusted to 7. In this way, a more reasonable volume adjustment information can be obtained according to the relative altitude.
  • step 103 the volume of the terminal device is adjusted according to the volume adjustment information.
  • the manner of adjusting the volume of the terminal device includes at least one of the following:
  • the current volume value of the terminal device is increased or decreased according to the first preset adjustment value in the volume adjustment information, and the current volume value of the terminal device is set to the volume. Adjusting a second preset adjustment value in the information; and third, increasing or decreasing the current volume value of the terminal device according to the volume adjustment coefficient in the volume adjustment information.
  • the volume range of the terminal device is 0-10
  • the first preset adjustment value in the volume adjustment information is 3
  • the adjustment attribute is increased
  • the current volume value of the terminal device is 5, after the execution mode 1, the terminal The volume value of the device will be adjusted to 8.
  • the first preset adjustment value in the volume adjustment information is 3 and the adjustment attribute is decreased
  • the volume value of the terminal device will be adjusted to 2 after performing the mode one.
  • the second preset adjustment value in the volume adjustment information is 7, and the current volume value of the terminal device is 5; after the execution mode 2, the volume value of the terminal device is directly adjusted to 7.
  • volume adjustment coefficient in the volume adjustment information is 1.2, and the current volume value of the terminal device is 5, after the execution mode 3, the volume value of the terminal device will be adjusted to 6 (ie, 5*1.2); if the volume adjustment information is The volume adjustment factor in the medium is 0.8, and the current volume value of the terminal device is 5. After the mode 3 is executed, the volume value of the terminal device will be adjusted to 4 (ie, 5*0.8).
  • step 103 can also be implemented by step 103a, step 103b and step 103c.
  • step 103a a noise value in the current environment is determined by the sound sensor of the terminal device.
  • the noise value may be a sound decibel value in the environment, for example, the noise value of the ordinary office is 50 decibels, and the noise value of the street is 30 decibels.
  • step 103b the noise value is multiplied by a corresponding preset scale factor, and the volume adjustment information is summed to obtain second volume adjustment information.
  • 0-20 decibels is an almost imperceptible sound; 20-40 decibels are quiet, softly whispering sounds; 40-60 decibels are the voice of ordinary indoor conversations; 60-70 decibels are noisy and detrimental to the nerves; 70-90 decibels are very noisy and nerve cells are destroyed.
  • the noise value within 0-40 decibels does not affect the user's sense of hearing on the volume of the mobile phone. 40-60 decibels have a slight impact on the user's sense of hearing, and 60-70 decibels will have a greater impact on the user's sense of hearing. 70-90 decibels will have a very big impact on the user's sense of hearing.
  • the preset scale factor corresponding to the noise value of 0-40 dB is 0; the preset scale factor corresponding to the noise value of 40-60 dB is 0.006, which has a slight influence on the user's sense of hearing, 60-70 dB
  • the preset scale factor corresponding to the noise value is 0.012; the preset scale factor corresponding to the noise value of 70-90 dB is 0.02. According to the difference of the noise value, the noise value is multiplied by its corresponding preset proportional coefficient, and then summed with the volume adjustment information to obtain the second volume adjustment information.
  • the second preset adjustment value in the volume adjustment information is 7, and the current volume value of the terminal device is 5; then the noise value is multiplied by a preset proportional coefficient, and then the second in the volume adjustment information.
  • step 103c the volume of the terminal device is adjusted according to the second volume adjustment information.
  • the adjustment process can be referred to the relevant description above.
  • FIG. 8 is a structural block diagram of a volume adjustment apparatus according to an embodiment of the present disclosure.
  • the apparatus may be implemented by at least one of software and hardware, and is generally integrated in a terminal device, as shown in FIG.
  • the environment type determining module 201 is configured to acquire a signal strength of the positioning signal in the terminal device, and determine an environment type in which the terminal device is located according to the signal strength.
  • the volume adjustment determining module 202 is configured to determine corresponding volume adjustment information according to the environment type and the stored preset adjustment table.
  • the adjustment module 203 is configured to adjust the volume of the terminal device according to the volume adjustment information.
  • the volume adjustment device determines the environment type of the terminal device by acquiring the signal strength of the positioning module in the terminal device, and controls the adjustment terminal device according to the environment type and the stored preset adjustment table. volume.
  • the environment type determining module 201 is further configured to: obtain the geographic location information according to the positioning signal and the map data of the terminal device, before determining the environment type in which the terminal is located according to the signal strength; The environment type determining module 201 is configured to determine an environment type in which the terminal device is located according to the signal strength and geographic location information.
  • the volume adjustment determining module 202 is further configured to: before the determining the corresponding volume adjustment information according to the environment type and the stored preset adjustment table, obtain the satisfaction according to the positioning signal and the map data. a road condition information of the conditional road, and a vertical distance of the road to the positioning point of the positioning signal; the volume adjustment determining module 202 is configured to: according to the road condition information, the vertical distance, the environment type, and the storage The preset adjustment table determines the corresponding volume adjustment information.
  • the volume adjustment determining module 202 is further configured to: determine the positioning according to the positioning signal and the map data before determining corresponding volume adjustment information according to the environment type and the stored preset adjustment table.
  • the relative altitude of the point; the volume adjustment determining module 202 is configured to determine corresponding volume adjustment information according to the relative altitude, the road condition information, the vertical distance, the environment type, and the stored preset adjustment table.
  • the adjustment module 203 is configured to: determine, by using a sound sensor of the terminal device, a noise value in a current environment, and multiply the noise value by a preset proportional coefficient corresponding to the noise value, and according to the The volume adjustment information determines second volume adjustment information; and the volume of the terminal device is adjusted according to the second volume adjustment information.
  • the adjustment module 203 is configured to adjust the volume of the terminal device by one of: increasing a current volume value of the terminal device according to a first preset adjustment value in the volume adjustment information Large or decreasing;
  • Storage media any type of storage device or storage device.
  • the term "storage medium” is intended to include: a mounting medium such as a Compact Disc Read-Only Memory (CD-ROM), a floppy disk or a tape device; a computer system memory or a random access memory such as a dynamic random access memory ( Dynamic Random Access Memory (DRAM), Double Data Rate Random Access Memory (DDR RAM), Static Random Access Memory (SRAM), Dynamic Data Memory (Extended Data Output Random Access Memory, EDO RAM) ), Rambus Random Access Memory (Rambus RAM), etc.; non-volatile memory such as flash memory, magnetic media (such as hard disk or optical storage); registers or other similar types of memory elements, and the like.
  • DRAM Dynamic Random Access Memory
  • DDR RAM Double Data Rate Random Access Memory
  • SRAM Static Random Access Memory
  • EDO RAM Extended Data Output Random Access Memory
  • Rambus RAM Rambus Random Access Memory
  • the storage medium may also include other types of memory or a combination thereof. Additionally, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system, the second computer system being coupled to the first computer system via a network, such as the Internet. The second computer system can provide program instructions to the first computer for execution.
  • the term "storage medium" can include two or more storage media that can reside in different locations (eg, in different computer systems connected through a network).
  • a storage medium may store program instructions (eg, a computer program) executable by one or more processors.
  • the storage medium containing the computer executable instructions provided by the embodiment of the present application is not limited to the volume adjustment operation as described above, and may also be implemented in the volume adjustment method provided by any embodiment of the present application. Related operations.
  • FIG. 7 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure.
  • the terminal device may include: a casing (not shown), a touch screen (not shown), a touch button (not shown), a memory 301, and a central processing unit (Central Processing). Unit, CPU) 302 (also referred to as a processor, hereinafter referred to as CPU), a circuit board (not shown), and a power supply circuit (not shown).
  • CPU Central Processing Unit
  • the circuit board is disposed inside a space enclosed by the casing; the CPU 302 and the memory 301 are disposed on the circuit board; and the power circuit is configured to supply power to each circuit or device of the terminal device
  • the memory 301 is configured to store executable program code; the CPU 302 runs a computer program corresponding to the executable program code by reading executable program code stored in the memory 301 to implement the following operations: Obtaining a signal strength of the positioning signal in the terminal device, determining an environment type of the terminal device according to the signal strength; determining corresponding volume adjustment information according to the environment type and the stored preset adjustment table; and adjusting the volume according to the volume adjustment The information adjusts the volume of the terminal device.
  • the terminal device further includes: a peripheral interface 303, a radio frequency (RF) circuit 305, an audio circuit 306, a speaker 311, a power management chip 308, an input/output (I/O) subsystem 309, a touch screen 312, and others.
  • Input/control device 310 and external port 304 are communicated via one or more communication buses or signal lines 307.
  • the illustrated terminal device 300 is merely one example of a terminal device, and that the terminal device 300 may have more or fewer components than those shown in the figures, and two or more components may be combined. Or it can have different component configurations.
  • the various components shown in the figures can be implemented in hardware, software, or a combination of hardware and software, including at least one of signal processing and application specific integrated circuits.
  • the terminal device for volume adjustment provided in this embodiment is described in detail below, and the terminal device takes a mobile phone as an example.
  • the memory 301 can be accessed by the CPU 302, the peripheral interface 303, etc., and the memory 301 can include a high speed random access memory, and can also include a non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices. Or other volatile solid-state storage devices.
  • a non-volatile memory such as one or more magnetic disk storage devices, flash memory devices. Or other volatile solid-state storage devices.
  • Peripheral interface 303 which can connect the input and output peripherals of the device to CPU 302 and memory 301.
  • I/O subsystem 309 which can connect input and output peripherals on the device, such as touch screen 312 and other input/control devices 310, to peripheral interface 303.
  • I/O subsystem 309 can include display controller 3091 and one or more input controllers 3092 for controlling other input/control devices 310.
  • one or more input controllers 3092 receive electrical signals from other input/control devices 310 or transmit electrical signals to other input/control devices 310, and other input/control devices 310 may include physical buttons (press buttons, rocker buttons, etc.) ), dial, slide switch, joystick, click wheel.
  • the input controller 3092 can be connected to any of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
  • the touch screen 312 is an input interface and an output interface between the user terminal device and the user, and displays the visual output to the user.
  • the visual output may include graphics, text, icons, videos, and the like.
  • Display controller 3091 in I/O subsystem 309 receives an electrical signal from touch screen 312 or an electrical signal to touch screen 312.
  • the touch screen 312 detects the contact on the touch screen, and the display controller 3091 converts the detected contact into an interaction with the user interface object displayed on the touch screen 312, that is, realizes human-computer interaction, and the user interface object displayed on the touch screen 312 can be operated.
  • the device may also include a light mouse, which is a touch sensitive surface that does not display a visual output, or an extension of a touch sensitive surface formed by a touch screen.
  • the RF circuit 305 is mainly configured to establish communication between the mobile phone and the wireless network (ie, the network side), and implement data reception and transmission between the mobile phone and the wireless network. For example, sending and receiving short messages, emails, and the like.
  • the RF circuit 305 receives and transmits an RF signal, also referred to as an electromagnetic signal, and the RF circuit 305 converts the electrical signal into an electromagnetic signal or converts the electromagnetic signal into an electrical signal and conducts the electromagnetic signal with the communication network and other devices. Communication.
  • RF circuitry 305 may include known circuitry configured to perform these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a codec CODER-DECoder (CODEC) chipset, Subscriber Identity Module (SIM), etc.
  • CDDEC codec CODER-DECoder
  • the audio circuit 306 is primarily configured to receive audio data from the peripheral interface 303, convert the audio data into an electrical signal, and transmit the electrical signal to the speaker 311.
  • the speaker 311 is arranged to restore the voice signal received by the handset from the wireless network via the RF circuit 305 to sound and play the sound to the user.
  • the power management chip 308 is configured to provide power and power management for the hardware connected to the CPU 302, the I/O subsystem, and the peripheral interface.
  • the terminal device provided by the embodiment of the present invention can improve the volume adjustment efficiency of the terminal device and reduce the power consumption of the terminal device.
  • the volume adjustment device, the storage medium, and the terminal device provided in the foregoing embodiments may perform the volume adjustment method provided by any embodiment of the present application, and have a corresponding function module for performing the method.
  • a corresponding function module for performing the method.

Abstract

The embodiments of the present application provide a sound volume adjustment method and apparatus, a storage medium, and a terminal device, the method comprising: acquiring the signal strength of a positioning signal of a terminal device, and determining, according to the signal strength, the type of environment at which the terminal device is located; determining, according to the type of environment and the stored pre-set adjustment table, corresponding sound volume adjustment information; and adjusting, according to the sound volume adjustment information, the sound volume of the terminal device.

Description

音量调节方法、装置、存储介质及终端设备Volume adjustment method, device, storage medium and terminal device
本申请要求在2017年08月18日提交中国专利局、申请号为201710710419.X的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。The present application claims the priority of the Chinese Patent Application, filed on A.
技术领域Technical field
本申请实施例涉及计算机领域,例如涉及一种音量调节方法、装置、存储介质及终端设备。The embodiments of the present application relate to the field of computers, for example, to a volume adjustment method, apparatus, storage medium, and terminal device.
背景技术Background technique
随着移动网络的发展,终端设备逐渐在人们的生活中普及开,其中最常见的终端设备就是智能手机,相关技术中,一般是通过手机上的物理按键调整智能手机的音量,或者通过手机屏幕控制按钮调整手机音量;而这样的音量调节方式不够灵活,还需要完善。With the development of mobile networks, terminal devices are gradually popularized in people's lives. The most common terminal devices are smart phones. In related technologies, the volume of the smart phone is generally adjusted by the physical buttons on the mobile phone, or through the screen of the mobile phone. The control button adjusts the volume of the phone; such a volume adjustment method is not flexible enough and needs to be perfected.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本申请实施例提供一种音量调节方法、装置、存储介质及终端设备,提高了终端设备的音量调节效率,降低了终端设备的功耗。The embodiment of the present invention provides a volume adjustment method, device, storage medium, and terminal device, which improves the volume adjustment efficiency of the terminal device and reduces the power consumption of the terminal device.
第一方面,本申请实施例提供了一种音量调节方法,包括:获取终端设备中定位信号的信号强度,根据所述信号强度确定所述终端设备所处的环境类型;根据所述环境类型和存储的预设调节表确定对应的音量调节信息;根据所述音量调节信息对所述终端设备的音量进行调节。In a first aspect, the embodiment of the present application provides a volume adjustment method, including: acquiring a signal strength of a positioning signal in a terminal device, determining, according to the signal strength, an environment type of the terminal device; according to the environment type and The stored preset adjustment table determines corresponding volume adjustment information; and adjusts the volume of the terminal device according to the volume adjustment information.
第二方面,本申请实施例提供了一种音量调节装置,包括:环境类型确定模块,设置为获取终端设备中定位信号的信号强度,根据所述信号强度确定所述终端设备所处的环境类型;音量调节确定模块,设置为根据所述环境类型和存储的预设调节表确定对应的音量调节信息;调节模块,设置为根据所述音量调节信息对所述终端设备的音量进行调节。In a second aspect, the embodiment of the present application provides a volume adjustment apparatus, including: an environment type determining module, configured to acquire a signal strength of a positioning signal in a terminal device, and determine an environment type of the terminal device according to the signal strength. The volume adjustment determining module is configured to determine corresponding volume adjustment information according to the environment type and the stored preset adjustment table; and the adjustment module is configured to adjust the volume of the terminal device according to the volume adjustment information.
第三方面,本申请实施例提供了一种计算机可读存储介质,其上存储有计 算机程序,该程序被处理器执行时实现如本申请实施例所述的音量调节方法。In a third aspect, an embodiment of the present application provides a computer readable storage medium, where a computer program is stored, and the program is executed by a processor to implement a volume adjustment method according to an embodiment of the present application.
第四方面,本申请实施例提供了一种终端设备,包括存储器,处理器及存储在存储器上并可在处理器运行的计算机程序,所述处理器执行所述计算机程序时实现如本申请实施例所述的音量调节方法。In a fourth aspect, an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and operable on the processor, where the processor executes the computer program to implement the implementation of the present application. The volume adjustment method described in the example.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图说明DRAWINGS
图1为本申请实施例提供的一种音量调节方法的流程示意图;FIG. 1 is a schematic flowchart diagram of a volume adjustment method according to an embodiment of the present application;
图2为本申请实施例提供的另一种音量调节方法的流程示意图;FIG. 2 is a schematic flowchart diagram of another volume adjustment method according to an embodiment of the present disclosure;
图3为本申请实施例提供的定位信号的示意图一;FIG. 3 is a schematic diagram 1 of a positioning signal according to an embodiment of the present disclosure;
图4为本申请实施例提供的另一种音量调节方法的流程示意图;FIG. 4 is a schematic flowchart diagram of another volume adjustment method according to an embodiment of the present disclosure;
图5为本申请实施例提供的定位信号的示意图二;FIG. 5 is a schematic diagram 2 of a positioning signal according to an embodiment of the present disclosure;
图6为本申请实施例提供的另一种音量调节方法的流程示意图;FIG. 6 is a schematic flowchart diagram of another volume adjustment method according to an embodiment of the present disclosure;
图7为本申请实施例提供的另一种音量调节方法的流程示意图;FIG. 7 is a schematic flowchart diagram of another volume adjustment method according to an embodiment of the present disclosure;
图8为本申请实施例提供的一种音量调节装置的结构框图;FIG. 8 is a structural block diagram of a volume adjustment apparatus according to an embodiment of the present application;
图9为本申请实施例提供的一种终端设备的结构示意图。FIG. 9 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure.
具体实施方式Detailed ways
下面结合附图并通过具体实施方式来进一步说明本申请的技术方案。在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各步骤描述成顺序的处理,但是其中的许多步骤可以被并行地、并发地或者同时实施。此外,各步骤的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。The technical solutions of the present application will be further described below with reference to the accompanying drawings and specific embodiments. Before discussing the exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as a process or method depicted as a flowchart. Although the flowcharts describe the various steps as a sequential process, many of the steps can be implemented in parallel, concurrently, or concurrently. In addition, the order of the steps can be rearranged. The process may be terminated when its operation is completed, but may also have additional steps not included in the figures. The processing may correspond to methods, functions, procedures, subroutines, subroutines, and the like.
目前智能手机的音量调节功能较为被动,一般都是需要用户手动调节音量按键,才能对智能手机的音量进行调节。例如,用户处在户外时一般会把智能手机的音量调得比较高,而用户在室内一般需要将手机音量调高;如果用户忘记将智能手机的音量调高,在室内,如图书馆或者会议室中手机响起的音量过大会带来较大噪音。本申请实施例提供的音量调节方法能够改善上述音量控制 较为被动的情况。At present, the volume adjustment function of the smart phone is relatively passive, and generally requires the user to manually adjust the volume button to adjust the volume of the smartphone. For example, when the user is outdoors, the volume of the smartphone is generally higher, and the user generally needs to increase the volume of the phone indoors; if the user forgets to increase the volume of the smartphone, indoors, such as a library or conference The loud volume of the cell phone in the room caused a lot of noise. The volume adjustment method provided by the embodiment of the present application can improve the situation that the above volume control is relatively passive.
图1为本申请是实施例提供的一种音量调节方法的流程示意图,该方法可以由音量控制装置执行,其中该装置可以由软件和硬件中的至少一种实现,一般可以集成在终端设备中。如图1所示,该方法包括步骤101,步骤102以及步骤103。1 is a schematic flowchart of a volume adjustment method according to an embodiment of the present application. The method may be performed by a volume control device, where the device may be implemented by at least one of software and hardware, and may be integrated into a terminal device. . As shown in FIG. 1, the method includes step 101, step 102, and step 103.
在步骤101中,获取终端设备中定位信号的信号强度,根据所述信号强度确定所述终端设备所处的环境类型。In step 101, a signal strength of a positioning signal in the terminal device is acquired, and an environment type in which the terminal device is located is determined according to the signal strength.
其中,终端设备中的定位信号可以是但不限于手机中的全球定位系统(Global Positioning System,GPS)模块的GPS信号。在屏蔽物较多的地点,如室内时,手机的GPS信号的信号强度相对会减弱,而在空旷的地点如室外时,GPS信号的信号强度相对会增强。通过手机中的GPS信号的信号强度可以判断出用户是处于室内或者室外;所述环境类型包括室内和室外。The positioning signal in the terminal device may be, but not limited to, a GPS signal of a Global Positioning System (GPS) module in the mobile phone. In places with more shielding, such as indoors, the signal strength of the GPS signal of the mobile phone is relatively weakened, while in an open place such as outdoor, the signal strength of the GPS signal is relatively enhanced. The signal strength of the GPS signal in the mobile phone can be used to determine whether the user is indoors or outdoors; the types of environments include indoors and outdoors.
在一实施例中,如图2所示,步骤101可以通过步骤101a,步骤101b以及步骤101c实施。In an embodiment, as shown in FIG. 2, step 101 can be implemented by step 101a, step 101b, and step 101c.
在步骤101a中,获取终端设备中定位信号的信号强度。In step 101a, the signal strength of the positioning signal in the terminal device is acquired.
在步骤101b中,根据所述定位信号和所述终端设备的地图数据获取地理位置信息。In step 101b, geographical location information is acquired according to the positioning signal and map data of the terminal device.
在步骤101c中,根据所述信号强度和地理位置信息确定所述终端设备所处的的环境类型。In step 101c, an environment type in which the terminal device is located is determined according to the signal strength and geographic location information.
其中,终端设备的地图数据可以是手机通过其中安装的地图应用接口获取,例如,手机自带地图应用、高德地图和百度地图等等。通过GPS信号和地图数据,可以对终端设备的位置进行定位,确定终端设备的地理位置信息;地理位置信息包括:体育馆、住宅小区、写字楼、图书馆和马路等。如图3所示,终端设备的位置定位到A点,A点位于体育馆中。The map data of the terminal device may be obtained by the mobile phone through a map application interface installed therein, for example, a mobile phone own map application, a high-tech map, a Baidu map, and the like. Through the GPS signal and the map data, the location of the terminal device can be located to determine the geographical location information of the terminal device; the geographical location information includes: a gymnasium, a residential community, an office building, a library, and a road. As shown in Figure 3, the location of the terminal device is located at point A, and point A is located in the gym.
如果用户持手机位于体育馆的一个角落中的座位上,这个座位附近屏蔽物比较多,导致该用户的手机的GPS信号的信号强度相对较弱,而由于通过定位得到的地理位置信息包括位于体育馆内;则可以判断用户的手机所处的环境类型为户外。If the user holds the mobile phone in a seat in a corner of the gymnasium, there are more shields near the seat, resulting in a relatively weak signal strength of the GPS signal of the user's mobile phone, and the geographical location information obtained by the positioning includes being located in the gymnasium. Then, it can be judged that the type of environment in which the user's mobile phone is located is outdoors.
如果用户持手机位于写字楼的一个阳台上,阳台上的手机的GPS信号的信号强度相对较强,而由于通过定位得到的地理位置信息包括位于写字楼内,则 可以判断用户的手机所处的环境类型为户内。If the user holds the mobile phone on a balcony of the office building, the signal strength of the GPS signal of the mobile phone on the balcony is relatively strong, and since the geographical location information obtained by the positioning includes being located in the office building, the environment type of the user's mobile phone can be determined. For indoors.
需要说明的是,步骤101a和步骤101b的实施顺序不限于此,步骤101b也可以在步骤101a之前实施。It should be noted that the implementation order of step 101a and step 101b is not limited thereto, and step 101b may also be implemented before step 101a.
在步骤102中,根据所述环境类型和存储的预设调节表确定对应的音量调节信息。In step 102, corresponding volume adjustment information is determined according to the environment type and the stored preset adjustment table.
存储的预设调节表包括环境类型和音量调节信息的关系映射表;例如,环境类型为户内,在户内用户对终端设备的音量的需求不需要太大,所以对应的音量调节信息为调整为5(终端设备的音量范围为0-10),音量调整至一个中间值的音量,可以满足用户在户内对音量的需求。又如图3所示,其环境类型为户外,用户定位在体育馆,体育馆由于噪声较多,用户对声音的感知变低,相对来说对终端设备的音量需求会更大,所以对应的音量调节信息为调整至10,用户在户外也能听到手机的响声。The stored preset adjustment table includes a relationship mapping table of the environment type and the volume adjustment information; for example, the environment type is indoor, and the requirement of the volume of the terminal device in the indoor user does not need to be too large, so the corresponding volume adjustment information is adjusted. It is 5 (the volume range of the terminal device is 0-10), and the volume is adjusted to an intermediate value to meet the user's demand for volume in the room. As shown in Fig. 3, the environment type is outdoor, the user is positioned in the gymnasium, and the stadium has lower noise, the user's perception of the sound becomes lower, and the volume demand of the terminal device is relatively larger, so the corresponding volume adjustment The information is adjusted to 10, and the user can hear the sound of the mobile phone outdoors.
在一实施例中,如图4所示,在步骤102之前还包括步骤1020。In an embodiment, as shown in FIG. 4, step 1020 is further included before step 102.
在步骤1020中,根据所述定位信号和所述地图数据,获取满足预设条件的道路的路况信息,以及所述道路到获取所述定位信号的定位点的垂直距离。In step 1020, according to the positioning signal and the map data, road condition information of a road that satisfies a preset condition, and a vertical distance of the road to an anchor point that acquires the positioning signal are acquired.
其中,预设条件可以是但不限于到获取所述定位信号的定位点的垂直距离小于第一距离;例如,第一距离为200米时,满足预设条件的道路为到获取所述定位信号的定位点的垂直距离小于200米的道路;因为如果定位点距离道路的垂直距离大于200米,道路上的噪声对定位点的影响可以忽略。如图5所示,当定位点为B点时,B点距离第一大道和第二大道的垂直距离均大于200米,所以当定位点为B点时,并没有符合预设条件的道路。当定位点为C点时,C点距离第一大道和第二大道的垂直距离均小于200米,所以第一大道和第二大道均符合预设条件。The preset condition may be, but is not limited to, the vertical distance to the positioning point of the positioning signal is less than the first distance; for example, when the first distance is 200 meters, the road that meets the preset condition is to obtain the positioning signal. The vertical distance of the anchor point is less than 200 meters; because if the vertical distance of the anchor point from the road is greater than 200 meters, the influence of noise on the road on the anchor point can be neglected. As shown in FIG. 5, when the positioning point is point B, the vertical distance of point B from the first avenue and the second avenue is greater than 200 meters, so when the positioning point is point B, there is no road meeting the preset condition. When the anchor point is C point, the vertical distance between point C and the first avenue and the second avenue are less than 200 meters, so the first avenue and the second avenue are both in accordance with the preset conditions.
道路的路况信息包括畅通、普通和拥堵;如图5所示,第一大道的东段的路况信息为普通,第二大道的北段的路况信息为拥堵,定位点C到第一大道东段的垂直距离为20米,距离第二大道的北段的垂直距离为30米。The road condition information of the road includes unblocked, normal and congested; as shown in Figure 5, the road condition information of the eastern section of the first avenue is ordinary, the road condition information of the northern section of the second avenue is congestion, and the anchor point C is to the east section of the first avenue. The vertical distance is 20 meters and the vertical distance from the north section of Second Avenue is 30 meters.
其中,步骤102通过下述方式实施:根据所述路况信息、所述垂直距离、所述环境类型和存储的预设调节表确定对应的音量调节信息。Step 102 is implemented by determining corresponding volume adjustment information according to the road condition information, the vertical distance, the environment type, and the stored preset adjustment table.
其中,表1为存储的预设调节表的局部内容,如图5所示的第一大道的东段为定位点C的南侧道路,第二大道的北段为定位点C的西侧道路,对应表1 可以确定对应的音量调节信息为调节至7。Table 1 is a partial content of the stored preset adjustment table. As shown in FIG. 5, the east section of the first avenue is the south side road of the anchor point C, and the north section of the second avenue is the west side road of the anchor point C. Corresponding to Table 1, it can be determined that the corresponding volume adjustment information is adjusted to 7.
表1Table 1
Figure PCTCN2018099655-appb-000001
Figure PCTCN2018099655-appb-000001
需要说明的是,并不限于表1中所示的东侧道路、南侧道路、西侧道路和北侧道路,可以根据位置信息的周围道路建设而改变,例如东南侧道路、西北侧道路、西南侧道路和东北侧道路等等。It should be noted that, not limited to the east side road, the south side road, the west side road, and the north side road shown in Table 1, it may be changed according to the surrounding road construction of the position information, for example, the southeast side road, the northwest side road, Southwest side roads and northeast side roads, etc.
在一实施例中,如图6所示,步骤102之前还包括步骤1021。In an embodiment, as shown in FIG. 6, step 1021 is further included before step 102.
在步骤1021中,根据所述定位信号和所述地图数据确定所述定位点的相对海拔高度。In step 1021, a relative altitude of the positioning point is determined according to the positioning signal and the map data.
GPS信号一般包括其测量的海拔高度,而该海拔高度一般是以某一处海平面为基准线所测量,而每个地区/城市的海拔高度也有所不同,所以需要再根据所述地图数据确定定位点的相对海拔高度。例如,GPS信号中测量的海拔高度为100米,而定位点所在的城市为某一市的某一区域,该区域的平均海拔为5米,可以确定相对海拔高度为95米。The GPS signal generally includes the altitude measured by it, and the altitude is generally measured by using a certain sea level as a reference line, and the altitude of each area/city is also different, so it is necessary to determine according to the map data. The relative altitude of the anchor point. For example, the altitude measured in the GPS signal is 100 meters, and the city where the positioning point is located is a certain area of a certain city. The average altitude of the area is 5 meters, and the relative altitude can be determined to be 95 meters.
其中,步骤102通过下述方式实施:根据所述相对海拔高度、路况信息、所述垂直距离、所述环境类型和存储的预设调节表确定对应的音量调节信息。The step 102 is implemented by determining corresponding volume adjustment information according to the relative altitude, the road condition information, the vertical distance, the environment type, and the stored preset adjustment table.
其中,由于用户所在的楼层高度对于噪声的大小也有所不同,对于一些高楼层的住宅小区,如果其周围有公路,位于20米以下的楼层,因为只接收近距离的噪声,而且由于树木的遮挡,其噪声相对于20米以上的楼层比较小;70米以上的楼层由于声音的衰减,其噪声相对也较小;而20米到70米的楼层由于没有遮挡物,暴露在噪声的立体传播之中,导致的位于20米到70米的楼层的噪声相对较大。所以,如表2所示,为存储的预设调节表的局部内容,如果定位点C的相对海拔高度为30米至70米之间,其音量调节调节信息为调整至8;如果30米以下,或者70米以上,则相对的其音量调节信息为调整至7。如此,可以根据相对海拔高度得到一个更合理的音量调节信息。Among them, because the height of the floor where the user is located is different for the size of the noise, for some high-rise residential areas, if there is a road around it, it is located on the floor below 20 meters, because only the near-distance noise is received, and the trees are blocked. The noise is relatively small compared to the floor above 20 meters; the floor above 70 meters is relatively small due to the attenuation of sound; and the floor of 20 meters to 70 meters is exposed to the stereoscopic propagation of noise due to no obstruction. Among them, the noise caused by the floor located between 20 meters and 70 meters is relatively large. Therefore, as shown in Table 2, for the partial content of the stored preset adjustment table, if the relative altitude of the positioning point C is between 30 meters and 70 meters, the volume adjustment adjustment information is adjusted to 8; if less than 30 meters , or 70 meters or more, the relative volume adjustment information is adjusted to 7. In this way, a more reasonable volume adjustment information can be obtained according to the relative altitude.
表2Table 2
Figure PCTCN2018099655-appb-000002
Figure PCTCN2018099655-appb-000002
在步骤103中,根据所述音量调节信息对所述终端设备的音量进行调节。In step 103, the volume of the terminal device is adjusted according to the volume adjustment information.
其中,在一实施例中,对所述终端设备的音量进行调节的方式包括以下至少之一:In an embodiment, the manner of adjusting the volume of the terminal device includes at least one of the following:
方式一、根据所述音量调节信息中的第一预设调节值,对所述终端设备的当前音量值增大或减小;方式二、将所述终端设备的当前音量值设置为所述音 量调节信息中的第二预设调节值;方式三、根据所述音量调节信息中的音量调整系数,对所述终端设备的当前音量值增大或减小。In the first mode, the current volume value of the terminal device is increased or decreased according to the first preset adjustment value in the volume adjustment information, and the current volume value of the terminal device is set to the volume. Adjusting a second preset adjustment value in the information; and third, increasing or decreasing the current volume value of the terminal device according to the volume adjustment coefficient in the volume adjustment information.
其中,例如,终端设备的音量范围为0-10,音量调节信息中的第一预设调节值为3,调节属性为增大,终端设备的当前音量值为5,则执行方式一之后,终端设备的音量值将会被调节到8。相应地,如果音量调节信息中的第一预设调节值为3,调节属性为减小,则执行方式一之后,终端设备的音量值将会被调节到2。For example, the volume range of the terminal device is 0-10, the first preset adjustment value in the volume adjustment information is 3, the adjustment attribute is increased, and the current volume value of the terminal device is 5, after the execution mode 1, the terminal The volume value of the device will be adjusted to 8. Correspondingly, if the first preset adjustment value in the volume adjustment information is 3 and the adjustment attribute is decreased, the volume value of the terminal device will be adjusted to 2 after performing the mode one.
又如,音量调节信息中的第二预设调节值为7,终端设备的当前音量值为5;则执行方式二之后,终端设备的音量值将会被直接调节至7。For another example, the second preset adjustment value in the volume adjustment information is 7, and the current volume value of the terminal device is 5; after the execution mode 2, the volume value of the terminal device is directly adjusted to 7.
再如,音量调节信息中的音量调整系数为1.2,终端设备的当前音量值为5,则执行方式三之后,终端设备的音量值将会调节至6(即5*1.2);如果音量调节信息中的音量调整系数为0.8,终端设备的当前音量值为5,则执行方式三之后,终端设备的音量值将会调节至4(即5*0.8)。For another example, if the volume adjustment coefficient in the volume adjustment information is 1.2, and the current volume value of the terminal device is 5, after the execution mode 3, the volume value of the terminal device will be adjusted to 6 (ie, 5*1.2); if the volume adjustment information is The volume adjustment factor in the medium is 0.8, and the current volume value of the terminal device is 5. After the mode 3 is executed, the volume value of the terminal device will be adjusted to 4 (ie, 5*0.8).
其中,在一实施例中,在所述终端设备的当前音量值不等于所述第二预设调节值时,将所述终端设备的当前音量值设置为所述音量调节信息中的第二预设调节值。In an embodiment, when the current volume value of the terminal device is not equal to the second preset adjustment value, setting a current volume value of the terminal device to a second pre-in the volume adjustment information. Set the adjustment value.
在一实施例中,如图7所示,步骤103还可以通过步骤103a,步骤103b和步骤103c实施。In an embodiment, as shown in FIG. 7, step 103 can also be implemented by step 103a, step 103b and step 103c.
在步骤103a中,通过所述终端设备的声音传感器确定当前环境下的噪声值。In step 103a, a noise value in the current environment is determined by the sound sensor of the terminal device.
所述噪声值可以为环境中的声音分贝值,例如普通办公室的噪声值为50分贝,街道的噪声值为30分贝。The noise value may be a sound decibel value in the environment, for example, the noise value of the ordinary office is 50 decibels, and the noise value of the street is 30 decibels.
在步骤103b中,将所述噪声值乘以对应的预设比例系数,再和所述音量调节信息求和得到第二音量调节信息。In step 103b, the noise value is multiplied by a corresponding preset scale factor, and the volume adjustment information is summed to obtain second volume adjustment information.
例如,0-20分贝是几乎感觉不到的声音;20-40分贝是安静,轻声絮语的声音;40-60分贝是普通室内谈话的声音;60-70分贝是吵闹且有损神经的声音;70-90分贝很吵、神经细胞受到破坏。0-40分贝内的噪声值是不会对用户对于手机音量的听感有影响,40-60分贝对用户的听感有轻微影响,60-70分贝是会给用户的听感造成较大影响,70-90分贝则会给用户的听感造成非常大的影响。For example, 0-20 decibels is an almost imperceptible sound; 20-40 decibels are quiet, softly whispering sounds; 40-60 decibels are the voice of ordinary indoor conversations; 60-70 decibels are noisy and detrimental to the nerves; 70-90 decibels are very noisy and nerve cells are destroyed. The noise value within 0-40 decibels does not affect the user's sense of hearing on the volume of the mobile phone. 40-60 decibels have a slight impact on the user's sense of hearing, and 60-70 decibels will have a greater impact on the user's sense of hearing. 70-90 decibels will have a very big impact on the user's sense of hearing.
如表3所示,0-40分贝的噪声值对应的预设比例系数是0;40-60分贝的噪 声值对应的预设比例系数是0.006对用户的听感有轻微影响,60-70分贝的噪声值对应的预设比例系数是0.012;70-90分贝的噪声值对应的预设比例系数是0.02。根据噪声值的不同,将噪声值和其对应的预设比例系数相乘,再和音量调节信息求和得到第二音量调节信息。As shown in Table 3, the preset scale factor corresponding to the noise value of 0-40 dB is 0; the preset scale factor corresponding to the noise value of 40-60 dB is 0.006, which has a slight influence on the user's sense of hearing, 60-70 dB The preset scale factor corresponding to the noise value is 0.012; the preset scale factor corresponding to the noise value of 70-90 dB is 0.02. According to the difference of the noise value, the noise value is multiplied by its corresponding preset proportional coefficient, and then summed with the volume adjustment information to obtain the second volume adjustment information.
表3table 3
噪声值(单位:分贝)Noise value (unit: decibel) 预设比例系数Preset scale factor
0-400-40 00
40-6040-60 0.0060.006
60-7060-70 0.0120.012
70-9070-90 0.020.02
例如,音量调节信息中的第一预设调节值为3,调节属性为增大,终端设备的当前音量值为5;当前环境下的噪声值为50,对应的预设比例系数是0.006,则将所述噪声值乘以预设比例系数,再和所述音量调节信息中的第一预设调节值求和:50*0.006+3=3.3,得到第二音量调节信息为增大3.3,调整后,终端设备的音量值为8.3。For example, the first preset adjustment value in the volume adjustment information is 3, the adjustment attribute is increased, the current volume value of the terminal device is 5; the noise value in the current environment is 50, and the corresponding preset scale coefficient is 0.006, then Multiplying the noise value by a preset proportional coefficient, and summing with the first preset adjustment value in the volume adjustment information: 50*0.006+3=3.3, obtaining the second volume adjustment information to increase 3.3, adjusting After that, the volume value of the terminal device is 8.3.
又如,音量调节信息中的第二预设调节值为7,终端设备的当前音量值为5;则将所述噪声值乘以预设比例系数,再和所述音量调节信息中的第二预设调节值求和:50*0.006+7=7.3;调整后,终端设备的音量值为7.3。For another example, the second preset adjustment value in the volume adjustment information is 7, and the current volume value of the terminal device is 5; then the noise value is multiplied by a preset proportional coefficient, and then the second in the volume adjustment information. The preset adjustment value is summed: 50*0.006+7=7.3; after adjustment, the volume value of the terminal device is 7.3.
在步骤103c中,根据所述第二音量调节信息对所述终端设备的音量进行调节。In step 103c, the volume of the terminal device is adjusted according to the second volume adjustment information.
调节过程可以参照上文中的相关描述。The adjustment process can be referred to the relevant description above.
如图8为本申请实施例提供的一种音量调节装置的结构框图,该装置可以由软件和硬件中的至少一种实现,一般集成在终端设备中,如图8所示,该装置包括环境类型确定模块201,音量调节确定模块202以及调节模块203。FIG. 8 is a structural block diagram of a volume adjustment apparatus according to an embodiment of the present disclosure. The apparatus may be implemented by at least one of software and hardware, and is generally integrated in a terminal device, as shown in FIG. The type determination module 201, the volume adjustment determination module 202, and the adjustment module 203.
环境类型确定模块201,设置为获取终端设备中定位信号的信号强度,根据所述信号强度确定所述终端设备所处的环境类型。The environment type determining module 201 is configured to acquire a signal strength of the positioning signal in the terminal device, and determine an environment type in which the terminal device is located according to the signal strength.
音量调节确定模块202,设置为根据所述环境类型和存储的预设调节表确定对应的音量调节信息。The volume adjustment determining module 202 is configured to determine corresponding volume adjustment information according to the environment type and the stored preset adjustment table.
调节模块203,设置为根据所述音量调节信息对所述终端设备的音量进行调节。The adjustment module 203 is configured to adjust the volume of the terminal device according to the volume adjustment information.
本申请实施例中提供的音量调节装置,通过获取终端设备中定位模块的信号强度来判断所述终端设备当前所处的环境类型,根据环境类型和存储的预设调节表来控制调节终端设备的音量。通过采用上述技术方案,提高了终端设备的音量调节效率,降低了终端设备的功耗。The volume adjustment device provided in the embodiment of the present application determines the environment type of the terminal device by acquiring the signal strength of the positioning module in the terminal device, and controls the adjustment terminal device according to the environment type and the stored preset adjustment table. volume. By adopting the above technical solution, the volume adjustment efficiency of the terminal device is improved, and the power consumption of the terminal device is reduced.
在一实施例中,环境类型确定模块201还设置为:在根据所述信号强度确定所述终端所处的环境类型之前,根据所述定位信号和所述终端设备的地图数据获取地理位置信息;环境类型确定模块201设置为:根据所述信号强度和地理位置信息确定所述终端设备所处的环境类型。In an embodiment, the environment type determining module 201 is further configured to: obtain the geographic location information according to the positioning signal and the map data of the terminal device, before determining the environment type in which the terminal is located according to the signal strength; The environment type determining module 201 is configured to determine an environment type in which the terminal device is located according to the signal strength and geographic location information.
在一实施例中,音量调节确定模块202还设置为:在根据所述环境类型和存储的预设调节表确定对应的音量调节信息之前,根据所述定位信号和所述地图数据,获取满足预设条件的道路的路况信息,以及所述道路到获取所述定位信号的定位点的垂直距离;音量调节确定模块202设置为:根据所述路况信息、所述垂直距离、所述环境类型和存储的预设调节表确定对应的音量调节信息。In an embodiment, the volume adjustment determining module 202 is further configured to: before the determining the corresponding volume adjustment information according to the environment type and the stored preset adjustment table, obtain the satisfaction according to the positioning signal and the map data. a road condition information of the conditional road, and a vertical distance of the road to the positioning point of the positioning signal; the volume adjustment determining module 202 is configured to: according to the road condition information, the vertical distance, the environment type, and the storage The preset adjustment table determines the corresponding volume adjustment information.
在一实施例中,音量调节确定模块202还设置为:在根据所述环境类型和存储的预设调节表确定对应的音量调节信息之前,根据所述定位信号和所述地图数据确定所述定位点的相对海拔高度;音量调节确定模块202设置为:根据所述相对海拔高度、路况信息、所述垂直距离、所述环境类型和存储的预设调节表确定对应的音量调节信息。In an embodiment, the volume adjustment determining module 202 is further configured to: determine the positioning according to the positioning signal and the map data before determining corresponding volume adjustment information according to the environment type and the stored preset adjustment table. The relative altitude of the point; the volume adjustment determining module 202 is configured to determine corresponding volume adjustment information according to the relative altitude, the road condition information, the vertical distance, the environment type, and the stored preset adjustment table.
在一实施例中,调节模块203设置为:通过所述终端设备的声音传感器确定当前环境下的噪声值,将所述噪声值乘以与所述噪声值对应的预设比例系数,并根据所述音量调节信息确定第二音量调节信息;根据所述第二音量调节信息对所述终端设备的音量进行调节。In an embodiment, the adjustment module 203 is configured to: determine, by using a sound sensor of the terminal device, a noise value in a current environment, and multiply the noise value by a preset proportional coefficient corresponding to the noise value, and according to the The volume adjustment information determines second volume adjustment information; and the volume of the terminal device is adjusted according to the second volume adjustment information.
在一实施例中,调节模块203设置为通过以下之一对所述终端设备的音量进行调节:根据所述音量调节信息中的第一预设调节值,对所述终端设备的当前音量值增大或减小;In an embodiment, the adjustment module 203 is configured to adjust the volume of the terminal device by one of: increasing a current volume value of the terminal device according to a first preset adjustment value in the volume adjustment information Large or decreasing;
将所述终端设备的当前音量值设置为所述音量调节信息中的第二预设调节值;以及根据所述音量调节信息中的音量调整系数,对所述终端设备的当前音量值增大或减小。Setting a current volume value of the terminal device to a second preset adjustment value in the volume adjustment information; and increasing a current volume value of the terminal device according to a volume adjustment coefficient in the volume adjustment information Reduced.
存储介质——任何类型的存储器设备或存储设备。术语“存储介质”旨在包括:安装介质,例如只读光盘(Compact Disc Read-Only Memory,CD-ROM)、 软盘或磁带装置;计算机系统存储器或随机存取存储器,诸如动态随机存取存储器(Dynamic Random Access Memory,DRAM)、双倍速率随机动态存储器(Double Data Rate Random Access Memory,DDR RAM)、静态随机存储器(Static Random Access Memory,SRAM)、动态存储器(Extended Data Output Random Access Memory,EDO RAM),兰巴斯随机存储器(Rambus Random Access Memory,Rambus RAM)等;非易失性存储器,诸如闪存、磁介质(例如硬盘或光存储);寄存器或其它相似类型的存储器元件等。存储介质可以还包括其它类型的存储器或其组合。另外,存储介质可以位于程序在其中被执行的第一计算机系统中,或者可以位于不同的第二计算机系统中,第二计算机系统通过网络(诸如因特网)连接到第一计算机系统。第二计算机系统可以提供程序指令给第一计算机用于执行。术语“存储介质”可以包括可以驻留在不同位置中(例如在通过网络连接的不同计算机系统中)的两个或更多存储介质。存储介质可以存储可由一个或多个处理器执行的程序指令(例如为计算机程序)。Storage media - any type of storage device or storage device. The term "storage medium" is intended to include: a mounting medium such as a Compact Disc Read-Only Memory (CD-ROM), a floppy disk or a tape device; a computer system memory or a random access memory such as a dynamic random access memory ( Dynamic Random Access Memory (DRAM), Double Data Rate Random Access Memory (DDR RAM), Static Random Access Memory (SRAM), Dynamic Data Memory (Extended Data Output Random Access Memory, EDO RAM) ), Rambus Random Access Memory (Rambus RAM), etc.; non-volatile memory such as flash memory, magnetic media (such as hard disk or optical storage); registers or other similar types of memory elements, and the like. The storage medium may also include other types of memory or a combination thereof. Additionally, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system, the second computer system being coupled to the first computer system via a network, such as the Internet. The second computer system can provide program instructions to the first computer for execution. The term "storage medium" can include two or more storage media that can reside in different locations (eg, in different computer systems connected through a network). A storage medium may store program instructions (eg, a computer program) executable by one or more processors.
当然,本申请实施例所提供的一种包含计算机可执行指令的存储介质,其计算机可执行指令不限于如上所述的音量调节操作,还可以执行本申请任意实施例所提供的音量调节方法中的相关操作。Of course, the storage medium containing the computer executable instructions provided by the embodiment of the present application is not limited to the volume adjustment operation as described above, and may also be implemented in the volume adjustment method provided by any embodiment of the present application. Related operations.
本申请实施例提供了一种终端设备,该终端设备中可集成本申请实施例提供的音量调节装置。图7为本申请实施例提供的一种终端设备的结构示意图。如图7所示,该终端设备可以包括:壳体(图中未示出)、触摸屏(图中未示出)、触摸按键(图中未示出)、存储器301、中央处理器(Central Processing Unit,CPU)302(又称处理器,以下简称CPU)、电路板(图中未示出)和电源电路(图中未示出)。所述电路板安置在所述壳体围成的空间内部;所述CPU302和所述存储器301设置在所述电路板上;所述电源电路,设置为为所述终端设备的各个电路或器件供电;所述存储器301,设置为存储可执行程序代码;所述CPU302通过读取所述存储器301中存储的可执行程序代码来运行与所述可执行程序代码对应的计算机程序,以实现以下操作:获取终端设备中定位信号的信号强度,根据所述信号强度确定所述终端设备所处的环境类型;根据所述环境类型和存储的预设调节表确定对应的音量调节信息;根据所述音量调节信息对所述终端设备的音量进行调节。The embodiment of the present application provides a terminal device, where the volume adjustment device provided by the embodiment of the present application can be integrated. FIG. 7 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure. As shown in FIG. 7, the terminal device may include: a casing (not shown), a touch screen (not shown), a touch button (not shown), a memory 301, and a central processing unit (Central Processing). Unit, CPU) 302 (also referred to as a processor, hereinafter referred to as CPU), a circuit board (not shown), and a power supply circuit (not shown). The circuit board is disposed inside a space enclosed by the casing; the CPU 302 and the memory 301 are disposed on the circuit board; and the power circuit is configured to supply power to each circuit or device of the terminal device The memory 301 is configured to store executable program code; the CPU 302 runs a computer program corresponding to the executable program code by reading executable program code stored in the memory 301 to implement the following operations: Obtaining a signal strength of the positioning signal in the terminal device, determining an environment type of the terminal device according to the signal strength; determining corresponding volume adjustment information according to the environment type and the stored preset adjustment table; and adjusting the volume according to the volume adjustment The information adjusts the volume of the terminal device.
所述终端设备还包括:外设接口303、射频(Radio Frequency,RF)电路 305、音频电路306、扬声器311、电源管理芯片308、输入/输出(I/O)子系统309、触摸屏312、其他输入/控制设备310以及外部端口304,这些部件通过一个或多个通信总线或信号线307来通信。The terminal device further includes: a peripheral interface 303, a radio frequency (RF) circuit 305, an audio circuit 306, a speaker 311, a power management chip 308, an input/output (I/O) subsystem 309, a touch screen 312, and others. Input/control device 310 and external port 304 are communicated via one or more communication buses or signal lines 307.
应该理解的是,图示终端设备300仅仅是终端设备的一个范例,并且终端设备300可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括至少一个信号处理和专用集成电路中至少一种在内的硬件、软件、或硬件和软件的组合中实现。It should be understood that the illustrated terminal device 300 is merely one example of a terminal device, and that the terminal device 300 may have more or fewer components than those shown in the figures, and two or more components may be combined. Or it can have different component configurations. The various components shown in the figures can be implemented in hardware, software, or a combination of hardware and software, including at least one of signal processing and application specific integrated circuits.
下面就本实施例提供的用于音量调节的终端设备进行详细的描述,该终端设备以手机为例。The terminal device for volume adjustment provided in this embodiment is described in detail below, and the terminal device takes a mobile phone as an example.
存储器301,所述存储器301可以被CPU302、外设接口303等访问,所述存储器301可以包括高速随机存取存储器,还可以包括非易失性存储器,例如一个或多个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 301 can be accessed by the CPU 302, the peripheral interface 303, etc., and the memory 301 can include a high speed random access memory, and can also include a non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices. Or other volatile solid-state storage devices.
外设接口303,所述外设接口303可以将设备的输入和输出外设连接到CPU302和存储器301。 Peripheral interface 303, which can connect the input and output peripherals of the device to CPU 302 and memory 301.
I/O子系统309,所述I/O子系统309可以将设备上的输入输出外设,例如触摸屏312和其他输入/控制设备310,连接到外设接口303。I/O子系统309可以包括显示控制器3091和用于控制其他输入/控制设备310的一个或多个输入控制器3092。其中,一个或多个输入控制器3092从其他输入/控制设备310接收电信号或者向其他输入/控制设备310发送电信号,其他输入/控制设备310可以包括物理按钮(按压按钮、摇臂按钮等)、拨号盘、滑动开关、操纵杆、点击滚轮。值得说明的是,输入控制器3092可以与以下任一个连接:键盘、红外端口、USB接口以及诸如鼠标的指示设备。I/O subsystem 309, which can connect input and output peripherals on the device, such as touch screen 312 and other input/control devices 310, to peripheral interface 303. I/O subsystem 309 can include display controller 3091 and one or more input controllers 3092 for controlling other input/control devices 310. Wherein, one or more input controllers 3092 receive electrical signals from other input/control devices 310 or transmit electrical signals to other input/control devices 310, and other input/control devices 310 may include physical buttons (press buttons, rocker buttons, etc.) ), dial, slide switch, joystick, click wheel. It is worth noting that the input controller 3092 can be connected to any of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
触摸屏312,所述触摸屏312是用户终端设备与用户之间的输入接口和输出接口,将可视输出显示给用户,可视输出可以包括图形、文本、图标、视频等。The touch screen 312 is an input interface and an output interface between the user terminal device and the user, and displays the visual output to the user. The visual output may include graphics, text, icons, videos, and the like.
I/O子系统309中的显示控制器3091从触摸屏312接收电信号或者向触摸屏312发送电信号。触摸屏312检测触摸屏上的接触,显示控制器3091将检测到的接触转换为与显示在触摸屏312上的用户界面对象的交互,即实现人机交互,显示在触摸屏312上的用户界面对象可以是运行游戏的图标、联网到相应网络的图标等。值得说明的是,设备还可以包括光鼠,光鼠是不显示可视输出 的触摸敏感表面,或者是由触摸屏形成的触摸敏感表面的延伸。 Display controller 3091 in I/O subsystem 309 receives an electrical signal from touch screen 312 or an electrical signal to touch screen 312. The touch screen 312 detects the contact on the touch screen, and the display controller 3091 converts the detected contact into an interaction with the user interface object displayed on the touch screen 312, that is, realizes human-computer interaction, and the user interface object displayed on the touch screen 312 can be operated. The icon of the game, the icon of the network to the corresponding network, and the like. It is worth noting that the device may also include a light mouse, which is a touch sensitive surface that does not display a visual output, or an extension of a touch sensitive surface formed by a touch screen.
RF电路305,主要设置为建立手机与无线网络(即网络侧)的通信,实现手机与无线网络的数据接收和发送。例如收发短信息、电子邮件等。例如,RF电路305接收并发送RF信号,RF信号也称为电磁信号,RF电路305将电信号转换为电磁信号或将电磁信号转换为电信号,并且通过该电磁信号与通信网络以及其他设备进行通信。RF电路305可以包括设置为执行这些功能的已知电路,其包括但不限于天线系统、RF收发机、一个或多个放大器、调谐器、一个或多个振荡器、数字信号处理器、编译码器(COder-DECoder,CODEC)芯片组、用户标识模块(Subscriber Identity Module,SIM)等等。The RF circuit 305 is mainly configured to establish communication between the mobile phone and the wireless network (ie, the network side), and implement data reception and transmission between the mobile phone and the wireless network. For example, sending and receiving short messages, emails, and the like. For example, the RF circuit 305 receives and transmits an RF signal, also referred to as an electromagnetic signal, and the RF circuit 305 converts the electrical signal into an electromagnetic signal or converts the electromagnetic signal into an electrical signal and conducts the electromagnetic signal with the communication network and other devices. Communication. RF circuitry 305 may include known circuitry configured to perform these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a codec CODER-DECoder (CODEC) chipset, Subscriber Identity Module (SIM), etc.
音频电路306,主要设置为从外设接口303接收音频数据,将该音频数据转换为电信号,并且将该电信号发送给扬声器311。The audio circuit 306 is primarily configured to receive audio data from the peripheral interface 303, convert the audio data into an electrical signal, and transmit the electrical signal to the speaker 311.
扬声器311,设置为将手机通过RF电路305从无线网络接收的语音信号,还原为声音并向用户播放该声音。The speaker 311 is arranged to restore the voice signal received by the handset from the wireless network via the RF circuit 305 to sound and play the sound to the user.
电源管理芯片308,设置为为CPU302、I/O子系统及外设接口所连接的硬件进行供电及电源管理。The power management chip 308 is configured to provide power and power management for the hardware connected to the CPU 302, the I/O subsystem, and the peripheral interface.
本申请实施例提供的终端设备,可以提高了终端设备的音量调节效率,降低了终端设备的功耗。The terminal device provided by the embodiment of the present invention can improve the volume adjustment efficiency of the terminal device and reduce the power consumption of the terminal device.
上述实施例中提供的音量调节装置、存储介质及终端设备可执行本申请任意实施例所提供的音量调节方法,具备执行该方法相应的功能模块。未在上述实施例中详尽描述的技术细节,可参见本申请任意实施例所提供的音量调节方法。The volume adjustment device, the storage medium, and the terminal device provided in the foregoing embodiments may perform the volume adjustment method provided by any embodiment of the present application, and have a corresponding function module for performing the method. For details of the techniques not described in detail in the above embodiments, reference may be made to the volume adjustment method provided by any embodiment of the present application.

Claims (20)

  1. 一种音量调节方法,包括:A volume adjustment method includes:
    获取终端设备中定位信号的信号强度,根据所述信号强度确定所述终端设备所处的环境类型;Obtaining a signal strength of the positioning signal in the terminal device, and determining an environment type of the terminal device according to the signal strength;
    根据所述环境类型和存储的预设调节表确定对应的音量调节信息;Determining corresponding volume adjustment information according to the environment type and the stored preset adjustment table;
    根据所述音量调节信息对所述终端设备的音量进行调节。Adjusting the volume of the terminal device according to the volume adjustment information.
  2. 如权利要求1所述的方法,在根据所述信号强度确定所述终端所处的环境类型之前,还包括:The method of claim 1, before determining the type of environment in which the terminal is located according to the signal strength, further comprising:
    根据所述定位信号和所述终端设备的地图数据获取地理位置信息;Obtaining geographic location information according to the positioning signal and map data of the terminal device;
    其中,所述根据所述信号强度确定所述终端所处的环境类型包括:The determining, according to the signal strength, the type of the environment in which the terminal is located includes:
    根据所述信号强度和地理位置信息确定所述终端设备所处的环境类型。Determining an environment type in which the terminal device is located according to the signal strength and geographic location information.
  3. 如权利要求2所述的方法,在根据所述环境类型和存储的预设调节表确定对应的音量调节信息之前,还包括:The method of claim 2, before determining the corresponding volume adjustment information according to the environment type and the stored preset adjustment table, further comprising:
    根据所述定位信号和所述地图数据,获取满足预设条件的道路的路况信息,以及所述道路到获取所述定位信号的定位点的垂直距离;Obtaining, according to the positioning signal and the map data, road condition information of a road that meets a preset condition, and a vertical distance of the road to an positioning point that acquires the positioning signal;
    其中,所述根据所述环境类型和存储的预设调节表确定对应的音量调节信息包括:The determining, according to the environment type and the stored preset adjustment table, the corresponding volume adjustment information includes:
    根据所述路况信息、所述垂直距离、所述环境类型和存储的预设调节表确定对应的音量调节信息。Corresponding volume adjustment information is determined according to the road condition information, the vertical distance, the environment type, and the stored preset adjustment table.
  4. 如权利要求3所述的方法,在根据所述环境类型和存储的预设调节表确定对应的音量调节信息之前,还包括:The method of claim 3, before determining the corresponding volume adjustment information according to the environment type and the stored preset adjustment table, further comprising:
    根据所述定位信号和所述地图数据确定所述定位点的相对海拔高度;Determining a relative altitude of the positioning point according to the positioning signal and the map data;
    其中,所述根据所述环境类型和存储的预设调节表确定对应的音量调节信息还包括:The determining, according to the environment type and the stored preset adjustment table, the corresponding volume adjustment information further includes:
    根据所述相对海拔高度、路况信息、所述垂直距离、所述环境类型和存储的预设调节表确定对应的音量调节信息。Corresponding volume adjustment information is determined according to the relative altitude, the road condition information, the vertical distance, the environment type, and the stored preset adjustment table.
  5. 如权利要求1所述的方法,其中,根据所述音量调节信息对所述终端设备的音量进行调节包括:The method of claim 1, wherein adjusting the volume of the terminal device according to the volume adjustment information comprises:
    通过所述终端设备的声音传感器确定当前环境下的噪声值,将所述噪声值乘以与所述噪声值对应的预设比例系数,并根据所述音量调节信息确定第二音量调节信息;Determining, by the sound sensor of the terminal device, a noise value in a current environment, multiplying the noise value by a preset proportional coefficient corresponding to the noise value, and determining second volume adjustment information according to the volume adjustment information;
    根据所述第二音量调节信息对所述终端设备的音量进行调节。Adjusting the volume of the terminal device according to the second volume adjustment information.
  6. 如权利要求1所述的方法,其中,根据所述音量调节信息对所述终端设备的音量进行调节包括以下之一:The method of claim 1, wherein adjusting the volume of the terminal device according to the volume adjustment information comprises one of the following:
    根据所述音量调节信息中的第一预设调节值,对所述终端设备的当前音量值增大或减小;将所述终端设备的当前音量值设置为所述音量调节信息中的第二预设调节值;以及根据所述音量调节信息中的音量调整系数,对所述终端设备的当前音量值增大或减小。And increasing or decreasing a current volume value of the terminal device according to the first preset adjustment value in the volume adjustment information; setting a current volume value of the terminal device to a second one of the volume adjustment information a preset adjustment value; and increasing or decreasing a current volume value of the terminal device according to the volume adjustment coefficient in the volume adjustment information.
  7. 如权利要求1所述的方法,其中,所述定位信号为手机中全球定位系统GPS信号。The method of claim 1 wherein said positioning signal is a global positioning system GPS signal in a handset.
  8. 如权利要求1所述的方法,其中,所述存储的预设调节表包括:所述环境类型和所述音量调节信息的关系映射表。The method of claim 1, wherein the stored preset adjustment table comprises: a relationship mapping table of the environment type and the volume adjustment information.
  9. 如权利要求3所述的方法,其中,所述满足预设条件的道路为:到获取所述定位信号定位点的垂直距离小于第一距离的道路。The method according to claim 3, wherein the road that satisfies the preset condition is: a road to which the vertical distance of the positioning signal acquisition point is smaller than the first distance.
  10. 一种音量调节装置,包括:A volume adjustment device includes:
    环境类型确定模块,设置为获取终端设备中定位信号的信号强度,根据所述信号强度确定所述终端设备所处的环境类型;An environment type determining module, configured to acquire a signal strength of a positioning signal in the terminal device, and determine an environment type of the terminal device according to the signal strength;
    音量调节确定模块,设置为根据所述环境类型和存储的预设调节表确定对应的音量调节信息;a volume adjustment determining module, configured to determine corresponding volume adjustment information according to the environment type and the stored preset adjustment table;
    调节模块,设置为根据所述音量调节信息对所述终端设备的音量进行调节。The adjustment module is configured to adjust the volume of the terminal device according to the volume adjustment information.
  11. 如权利要求10所述的装置,其中,所述音量调节确定模块设置为:The apparatus of claim 10, wherein the volume adjustment determination module is configured to:
    根据所述定位信号和地图数据,获取满足预设条件的道路的路况信息,所述道路到获取所述定位信号的定位点的垂直距离,以及确定所述定位点的相对海拔高度;Obtaining, according to the positioning signal and the map data, road condition information of a road that meets a preset condition, a vertical distance from the road to acquiring an positioning point of the positioning signal, and determining a relative altitude of the positioning point;
    根据所述相对海拔高度、路况信息、所述垂直距离、所述环境类型和存储的预设调节表确定对应的音量调节信息。Corresponding volume adjustment information is determined according to the relative altitude, the road condition information, the vertical distance, the environment type, and the stored preset adjustment table.
  12. 如权利要求10所述的装置,所述环境类型确定模块还设置为:The apparatus of claim 10, wherein the environment type determining module is further configured to:
    根据所述定位信号和所述终端设备的地图数据获取地理位置信息;根据所述信号强度和地理位置信息确定所述终端设备所处的环境类型。And acquiring, according to the positioning signal and the map data of the terminal device, geographic location information; determining, according to the signal strength and the geographic location information, an environment type in which the terminal device is located.
  13. 如权利要求11所述的装置,所述调节模块设置为:通过所述终端设备 的声音传感器确定当前环境下的噪声值,将所述噪声值乘以与所述噪声值对应的预设比例系数,并根据所述音量调节信息确定第二音量调节信息;The apparatus according to claim 11, wherein the adjustment module is configured to: determine, by a sound sensor of the terminal device, a noise value in a current environment, and multiply the noise value by a preset proportional coefficient corresponding to the noise value And determining second volume adjustment information according to the volume adjustment information;
    根据所述第二音量调节信息对所述终端设备的音量进行调节。Adjusting the volume of the terminal device according to the second volume adjustment information.
  14. 如权利要求10所述的装置,其中,所述调节模块设置为通过以下之一对所述终端设备的音量进行调节The apparatus of claim 10, wherein the adjustment module is configured to adjust a volume of the terminal device by one of:
    根据所述音量调节信息中的第一预设调节值,对所述终端设备的当前音量值增大或减小;And increasing or decreasing a current volume value of the terminal device according to the first preset adjustment value in the volume adjustment information;
    将所述终端设备的当前音量值设置为所述音量调节信息中的第二预设调节值;以及Setting a current volume value of the terminal device to a second preset adjustment value in the volume adjustment information;
    根据所述音量调节信息中的音量调整系数,对所述终端设备的当前音量值增大或减小。And increasing or decreasing a current volume value of the terminal device according to the volume adjustment coefficient in the volume adjustment information.
  15. 如权利要求10所述的装置,其中,所述定位信号为手机中全球定位系统GPS信号。The apparatus of claim 10 wherein said positioning signal is a global positioning system GPS signal in a handset.
  16. 如权利要求10所述的装置,其中,所述存储的预设调节表包括:所述环境类型和所述音量调节信息的关系映射表。The apparatus according to claim 10, wherein said stored preset adjustment table comprises: a relationship mapping table of said environment type and said volume adjustment information.
  17. 如权利要求11所述的装置,其中,所述满足预设条件的道路为:到获取所述定位信号的定位点的垂直距离小于第一距离的道路。The apparatus according to claim 11, wherein the road that satisfies the preset condition is: a road to which the vertical distance of the positioning point of the positioning signal is smaller than the first distance.
  18. 如权利要求11所述的装置,其中,所述道路的路况信息包括:畅通、普通和拥堵。The apparatus of claim 11 wherein the road condition information of the road comprises: unblocked, normal, and congested.
  19. 一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如权利要求1-9中任一项所述的音量调节方法。A computer readable storage medium having stored thereon a computer program, the program being executed by a processor to implement the volume adjustment method according to any one of claims 1-9.
  20. 一种终端设备,包括存储器,处理器及存储在存储器上并可在处理器运行的计算机程序,所述处理器执行所述计算机程序时实现如权利要求1-9任一项所述的音量调节方法。A terminal device comprising a memory, a processor, and a computer program stored on the memory and operable by the processor, the processor executing the computer program to implement the volume adjustment according to any one of claims 1-9 method.
PCT/CN2018/099655 2017-08-18 2018-08-09 Sound volume adjustment method and apparatus, storage medium, and terminal device WO2019033983A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710710419.XA CN107508978B (en) 2017-08-18 2017-08-18 Volume adjusting method and device, storage medium and terminal equipment
CN201710710419.X 2017-08-18

Publications (1)

Publication Number Publication Date
WO2019033983A1 true WO2019033983A1 (en) 2019-02-21

Family

ID=60691941

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/099655 WO2019033983A1 (en) 2017-08-18 2018-08-09 Sound volume adjustment method and apparatus, storage medium, and terminal device

Country Status (2)

Country Link
CN (1) CN107508978B (en)
WO (1) WO2019033983A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107508978B (en) * 2017-08-18 2020-06-09 Oppo广东移动通信有限公司 Volume adjusting method and device, storage medium and terminal equipment
CN109151993A (en) * 2018-07-31 2019-01-04 深圳大图科创技术开发有限公司 A kind of intelligent mobile terminal
US10771277B1 (en) * 2019-06-14 2020-09-08 Rovi Guides, Inc. Automatic device volume adjustment based on learned volume preferences

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070131097A1 (en) * 2005-12-06 2007-06-14 Wei Lu Method and system for regulating music based on the location of a device
CN105205955A (en) * 2015-09-25 2015-12-30 小米科技有限责任公司 Method and device for sending out warning signal
CN106713621A (en) * 2016-11-29 2017-05-24 努比亚技术有限公司 Voice adjustment device and method
CN107508978A (en) * 2017-08-18 2017-12-22 广东欧珀移动通信有限公司 volume adjusting method, device, storage medium and terminal device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5352844B2 (en) * 2008-08-04 2013-11-27 株式会社ユピテル Vehicle alarm device and program
KR101866774B1 (en) * 2011-12-22 2018-06-19 삼성전자주식회사 Apparatus and method for controlling volume in portable terminal
CN105827797A (en) * 2015-07-29 2016-08-03 维沃移动通信有限公司 Method for adjusting volume of electronic device and electronic device
CN105975241A (en) * 2016-04-22 2016-09-28 北京小米移动软件有限公司 Volume regulation method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070131097A1 (en) * 2005-12-06 2007-06-14 Wei Lu Method and system for regulating music based on the location of a device
CN105205955A (en) * 2015-09-25 2015-12-30 小米科技有限责任公司 Method and device for sending out warning signal
CN106713621A (en) * 2016-11-29 2017-05-24 努比亚技术有限公司 Voice adjustment device and method
CN107508978A (en) * 2017-08-18 2017-12-22 广东欧珀移动通信有限公司 volume adjusting method, device, storage medium and terminal device

Also Published As

Publication number Publication date
CN107508978B (en) 2020-06-09
CN107508978A (en) 2017-12-22

Similar Documents

Publication Publication Date Title
US9294612B2 (en) Adjustable mobile phone settings based on environmental conditions
US8750895B2 (en) Monitoring a geofence using wireless access points
US8626187B2 (en) Monitoring geofence exit
US9019984B2 (en) Selecting wireless access points for geofence monitoring
US11005439B2 (en) Earphone volume adjustment method and apparatus
WO2019033983A1 (en) Sound volume adjustment method and apparatus, storage medium, and terminal device
AU2012262821A1 (en) Selecting wireless access points for geofence monitoring
CN108449496B (en) Voice call data detection method and device, storage medium and mobile terminal
WO2019174492A1 (en) Voice call data detection method, device, storage medium and mobile terminal
CN107371102B (en) Audio playing volume control method and device, storage medium and mobile terminal
CN106911956B (en) Audio data playing method and device and mobile terminal
CN108449506B (en) Voice call data processing method and device, storage medium and mobile terminal
CN108172237B (en) Voice call data processing method and device, storage medium and mobile terminal
CN107508983B (en) Volume adjusting method and device, storage medium and terminal equipment
US9467794B2 (en) Method and system for audio channel setup
CN108055644B (en) Positioning control method and device, storage medium and terminal equipment
CN107526570B (en) Volume adjusting method and device, terminal equipment and storage medium
CN108449492B (en) Voice call data processing method and device, storage medium and mobile terminal
CN113076075A (en) Audio signal adjusting method and device, terminal and storage medium
CN107508986B (en) Volume adjusting method and device, storage medium and terminal equipment
WO2019037599A1 (en) Information recommendation method and device, mobile terminal and storage medium
WO2019061292A1 (en) Noise reduction method for terminal and terminal
CN110753919A (en) Volume adjusting method and device, storage medium and mobile terminal
CN115665318B (en) Call tone quality adjusting method and electronic equipment
WO2019033434A1 (en) Volume control method and apparatus, storage medium, and mobile terminal

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18846874

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18846874

Country of ref document: EP

Kind code of ref document: A1