CN106487984B - A kind of method and apparatus adjusting volume - Google Patents

A kind of method and apparatus adjusting volume Download PDF

Info

Publication number
CN106487984B
CN106487984B CN201610856884.XA CN201610856884A CN106487984B CN 106487984 B CN106487984 B CN 106487984B CN 201610856884 A CN201610856884 A CN 201610856884A CN 106487984 B CN106487984 B CN 106487984B
Authority
CN
China
Prior art keywords
terminal
bulk
space environment
measuring sensor
distance measuring
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
CN201610856884.XA
Other languages
Chinese (zh)
Other versions
CN106487984A (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.)
Guangzhou Kugou Computer Technology Co Ltd
Original Assignee
Guangzhou Kugou Computer Technology Co 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 Guangzhou Kugou Computer Technology Co Ltd filed Critical Guangzhou Kugou Computer Technology Co Ltd
Priority to CN201610856884.XA priority Critical patent/CN106487984B/en
Publication of CN106487984A publication Critical patent/CN106487984A/en
Application granted granted Critical
Publication of CN106487984B publication Critical patent/CN106487984B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • H04M1/6033Substation equipment, e.g. for use by subscribers including speech amplifiers for providing handsfree use or a loudspeaker mode in telephone sets
    • H04M1/6041Portable telephones adapted for handsfree use
    • H04M1/605Portable telephones adapted for handsfree use involving control of the receiver volume to provide a dual operational mode at close or far distance from the user
    • 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

Abstract

The invention discloses a kind of method and apparatus for adjusting volume, belong to electronic technology field.The described method includes: detecting the bulk of space environment locating for terminal by distance measuring sensor;The corresponding relationship of bulk according to the pre-stored data and volume value determines the corresponding target sound magnitude of the bulk of space environment locating for the terminal;It is the target sound magnitude by the volume adjustment of the terminal.Using the present invention, the auditory effect when space environment changes can be prevented to be deteriorated.

Description

A kind of method and apparatus adjusting volume
Technical field
The present invention relates to electronic technology field, in particular to a kind of method and apparatus for adjusting volume.
Background technique
With the development of electronic technology, various terminals are widely used, the application in corresponding terminal The type of program is more and more, function is more and more abundant.For example, user can pass through the mobile terminal playings such as mobile phone video, sound It is happy etc..
In the implementation of the present invention, the inventor finds that the existing technology has at least the following problems:
In daily life, user during terminal plays music may carried terminal move at any time, can Another space environment (for example being moved to bedroom from parlor) can be moved to from a space environment, when user is from one small When space environment is moved to big space environment, since space becomes larger, the wave volume that user hears can change, such feelings Under condition, it is suitble to the broadcast sound volume of space environment before this that will be no longer appropriate for current space environment, it will to cause auditory effect poor.
Summary of the invention
In order to solve problems in the prior art, the embodiment of the invention provides a kind of method and apparatus for adjusting volume.Institute It is as follows to state technical solution:
In a first aspect, providing a kind of method for adjusting volume, which comprises
By distance measuring sensor, the bulk of space environment locating for terminal is detected;
The corresponding relationship of bulk according to the pre-stored data and volume value determines the sky of space environment locating for the terminal Between the corresponding target sound magnitude of size;
It is the target sound magnitude by the volume adjustment of the terminal.
Optionally, the bulk of the space environment is the area or described of horizontal cross-section in the space environment The volume of space environment.
Optionally, described by distance measuring sensor, detect the bulk of space environment locating for terminal, comprising:
Every preset detection cycle detects the bulk of space environment locating for terminal by distance measuring sensor;Or Person,
When the detection instruction for receiving user's input detects the space of space environment locating for terminal by distance measuring sensor Size;Alternatively,
When the position for detecting terminal changes, by distance measuring sensor, space environment locating for the terminal is detected Bulk.
Optionally, every preset detection cycle detects the sky of space environment locating for terminal by distance measuring sensor Between size, comprising:
During terminal plays audio data, every preset detection cycle, by distance measuring sensor, described in detection The bulk of space environment locating for terminal.
Optionally, described when the detection instruction for receiving user's input detects space locating for terminal by distance measuring sensor The bulk of environment, comprising:
During terminal plays audio data, when the detection instruction for receiving user's input, by distance measuring sensor, Detect the bulk of space environment locating for the terminal.
Optionally, described when the position for detecting terminal changes, by distance measuring sensor, detect the terminal institute Locate the bulk of space environment, comprising:
During terminal plays audio data, when the position for detecting the terminal changes, pass through ranging Sensor detects the bulk of space environment locating for the terminal.
Optionally, the bulk of the space environment is the area of horizontal cross-section in the space environment;
It is described by distance measuring sensor, detect the bulk of space environment locating for terminal, comprising:
Marginal point of the horizontal cross-section on multiple and different directions is detected by distance measuring sensor and the ranging senses The distance of device;
It is at a distance from the distance measuring sensor and each pair of in the marginal point on multiple and different directions according to the horizontal cross-section Angle between adjacent direction determines the area of the horizontal cross-section.
Optionally, the corresponding relationship of the bulk according to the pre-stored data and volume value, determines locating for the terminal The corresponding target sound magnitude of the bulk of space environment, comprising:
Independent variable according to the pre-stored data is bulk, and dependent variable is the function of volume value, is calculated locating for the terminal The corresponding target sound magnitude of the bulk of space environment.
Second aspect, provides a kind of device for adjusting volume, and described device includes:
Detection module, for detecting the bulk of space environment locating for terminal by distance measuring sensor;
Determining module determines the terminal institute for the corresponding relationship of bulk according to the pre-stored data and volume value Locate the corresponding target sound magnitude of bulk of space environment;
Module is adjusted, for being the target sound magnitude by the volume adjustment of the terminal.
Optionally, the bulk of the space environment is the area or described of horizontal cross-section in the space environment The volume of space environment.
Optionally, the detection module, is used for:
Every preset detection cycle detects the bulk of space environment locating for terminal by distance measuring sensor;Or Person,
When the detection instruction for receiving user's input detects the space of space environment locating for terminal by distance measuring sensor Size;Alternatively,
When the position for detecting terminal changes, by distance measuring sensor, space environment locating for the terminal is detected Bulk.
Optionally, the detection module, is used for:
During terminal plays audio data, every preset detection cycle, by distance measuring sensor, described in detection The bulk of space environment locating for terminal.
Optionally, the detection module, is used for:
During terminal plays audio data, when the detection instruction for receiving user's input, by distance measuring sensor, Detect the bulk of space environment locating for the terminal.
Optionally, the detection module, is used for:
During terminal plays audio data, when the position for detecting the terminal changes, pass through ranging Sensor detects the bulk of space environment locating for the terminal.
Optionally, the bulk of the space environment is the area of horizontal cross-section in the space environment;
The detection module, is used for:
Marginal point of the horizontal cross-section on multiple and different directions is detected by distance measuring sensor and the ranging senses The distance of device;
It is at a distance from the distance measuring sensor and each pair of in the marginal point on multiple and different directions according to the horizontal cross-section Angle between adjacent direction determines the area of the horizontal cross-section.
Optionally, the determining module, is used for:
Independent variable according to the pre-stored data is bulk, and dependent variable is the function of volume value, is calculated locating for the terminal The corresponding target sound magnitude of the bulk of space environment.
Technical solution provided in an embodiment of the present invention has the benefit that
In the embodiment of the present invention, terminal can by the bulk of space environment where distance measuring sensor measuring terminals, In turn, it can determine that terminal is presently in space with the corresponding relationship of the size of space environment according to the pre-stored data and volume value The corresponding target sound magnitude of environment, finally, being target sound magnitude by the volume adjustment of terminal, in this way, when user is in terminal plays When being moved to big space environment from a small space environment during music, volume adjustment can be automatically to work as by terminal The corresponding volume value of front space environment, so that the wave volume that user hears does not change substantially, it is thus possible to prevent in sky Between environmental change when auditory effect be deteriorated.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is a kind of method flow diagram for adjusting volume provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic diagram for detecting bulk provided in an embodiment of the present invention;
Fig. 3 is a kind of schematic diagram for detecting bulk provided in an embodiment of the present invention;
Fig. 4 is a kind of apparatus structure schematic diagram for adjusting volume provided in an embodiment of the present invention;
Fig. 5 is a kind of terminal structure schematic diagram provided in an embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
The embodiment of the invention provides a kind of method for adjusting volume, the executing subject of this method is terminal, wherein the end End can be the terminal with playing audio-fequency data function, can be the application program for being equipped with playing audio-fequency data mobile phone, The mobile terminals such as tablet computer, sound equipment.Audio playback component, processor, distance measuring sensor, audio can be set in the terminal Playback component can be used for playing audio-fequency data, for example be loudspeaker, and processor can be used for the space ruler according to space environment It is very little, determine that the corresponding target sound magnitude of current spatial environment, distance measuring sensor can be used for measuring distance measuring sensor and spatial loop The distance of border marginal point, in addition, distance measuring sensor is also possible to external and terminal distance measuring sensor, terminal can be passed to ranging Sensor obtains the distance of its detection, and then determines the bulk of space environment locating for terminal, wherein is external in the ranging of terminal Sensor can be attached by data line and terminal, can also be attached by bluetooth component and terminal, can also be led to Wifi (Wireless Fidelity, Wireless Fidelity) signal is crossed to be attached with terminal.In the embodiment of the present invention, ranging sensing Device and terminal are in the same space environment always.Positioning element is also provided in the terminal, positioning element can be used for examining The position that terminal is currently located is surveyed, (Globle Positioning System, the whole world are fixed for example, positioning element can be GPS Position system).
Below in conjunction with specific embodiment, process flow shown in FIG. 1 is described in detail, content can be as Under:
Step 101, by distance measuring sensor, the bulk of space environment locating for terminal is detected.
Wherein, distance measuring sensor can be the sensor for detecting the distance between two o'clock, for example, can be infrared survey Away from sensor, ultrasonic distance-measuring sensor etc..
In an implementation, the application program of playing audio-fequency data can be installed (for example, for playing answering for song in terminal With program or the application program of broadcasting video), when terminal opens the application program of the playing audio-fequency data, correspondingly, from Dynamic adjustment volume functions can open, in the state that adjust automatically volume functions are opened, terminal can by distance measuring sensor, Detect the bulk of space environment locating for terminal.Specifically, detection trigger event can be previously stored in terminal, wherein Detection trigger event can be used for triggering distance measuring sensor starting, it can pass through distance measuring sensor, detection for triggering terminal The bulk of space environment locating for terminal.When terminal detects that default trigger event occurs, distance measuring sensor can be started, In turn, by distance measuring sensor, the bulk of space environment locating for terminal is detected.
Optionally, the bulk of space environment can be the area for certain plane that ground is parallel in space environment (i.e. The area of horizontal cross-section in space environment), it is also possible to the volume of space environment, wherein the horizontal cross-section in space environment can To be the horizontal cross-section where distance measuring sensor, the horizontal cross-section apart from ground farther out and where distance measuring sensor can be.
Optionally, different based on preset detection trigger event, the processing mode of step 101 can be varied, below Give several feasible processing modes:
Mode one, every preset detection cycle detect the space ruler of space environment locating for terminal by distance measuring sensor It is very little.
In an implementation, detection cycle, every preset detection cycle can be preset in terminal, terminal can control survey It is opened away from sensor, and detects the bulk of space environment locating for terminal by distance measuring sensor, after detection, can incited somebody to action Distance measuring sensor is closed, and when arriving next detection cycle, is then turned on distance measuring sensor, detection terminal is presently in the sky of space environment Between size.
Mode two, when the detection instruction for receiving user's input detects space environment locating for terminal by distance measuring sensor Bulk.
In an implementation, the key (being properly termed as detection key) of open detection bulk is provided in terminal, wherein press Key can be touch-key, be also possible to mechanical key.When user wants to allow terminal to the space for being presently in space environment When size is detected, pressing operation can be carried out to detection key, at this point, the detection that terminal will receive user's input refers to It enables, in turn, the bulk of space environment locating for terminal can be detected with triggering terminal by distance measuring sensor.
Mode three, by distance measuring sensor, detects spatial loop locating for terminal when the position for detecting terminal changes The bulk in border.
In an implementation, terminal can use the positioning element (such as global positioning system) of itself, to the position of terminal into Row detection can open distance measuring sensor, and sense by ranging when the position for detecting terminal changes with triggering terminal Device detects the bulk of space environment locating for terminal.In addition, change in location amplitude threshold can also be preset in terminal, When the change in location of terminal reaches preset change in location amplitude threshold, by distance measuring sensor, space locating for terminal is detected The bulk of environment.For example, preset change in location amplitude threshold can be preset distance threshold, in t moment, terminal exists Location A, in T, (wherein, T is greater than the t) moment, detects terminal in B location, if the distance between location A and B location are greater than in advance If distance threshold, then can triggering terminal by distance measuring sensor, detect the bulk of space environment locating for terminal.
Optionally, terminal, by distance measuring sensor, can detect space locating for terminal during playing audio-fequency data The bulk of environment, correspondingly, the treatment process of mode one can be such that during terminal plays audio data, often The bulk of space environment locating for terminal is detected by distance measuring sensor to preset detection cycle;Mode two processes Journey can be such that during terminal plays audio data, when the detection instruction for receiving user's input, be sensed by ranging Device detects the bulk of space environment locating for terminal;The treatment process of mode three can be such that in terminal plays audio data During, when the position for detecting the terminal changes, by distance measuring sensor, detect space environment locating for terminal Bulk.
In an implementation, whether terminal can also currently detect in playing audio-fequency data terminal, and terminal can broadcast Under the premise of putting audio data, it is based on preset detection cycle, by distance measuring sensor, detects the sky of space environment locating for terminal Between size when the detection instruction for receiving user's input, passed by ranging alternatively, during terminal plays audio data Sensor detects the bulk of space environment locating for terminal, alternatively, during terminal plays audio data, when detecting When the position of the terminal changes, by distance measuring sensor, the bulk of space environment locating for terminal is detected.Namely It says, during terminal plays audio data, terminal just passes through distance measuring sensor, detects the space of space environment locating for terminal Size, this way it is possible to avoid the bulk of space environment is detected when terminal does not have playing audio-fequency data, thus, Electricity can be saved.
Optionally, for the bulk of space environment be space environment in horizontal cross-section area the case where, step 101 Treatment process can be such that marginal point by distance measuring sensor detection level section on multiple and different directions and ranging pass The distance of sensor;According to marginal point of the horizontal cross-section on multiple and different directions at a distance from distance measuring sensor and each pair of adjacent side Angle between determines the area of horizontal cross-section.
In an implementation, whenever detecting that preset detection trigger event occurs, distance measuring sensor can be in space environment In horizontal cross-section according to preset direction (such as according to clockwise, or counterclockwise) rotated, every rotation After turning preset angle, terminal can measure the marginal point of horizontal cross-section in this direction by distance measuring sensor and sense with ranging The distance of device, after being rotated by 360 °, terminal can control distance measuring sensor closing, at this point, the available horizontal cross-section of terminal is more Marginal point on a different directions is at a distance from distance measuring sensor, wherein marginal point can be the distance ranging on direction and sense Location point where the nearest object of device (object can be object, can be animal, be also possible to people).For example, preset angle Degree is 45 degree, and whenever detecting that preset detection trigger event occurs, terminal can work as front direction by distance measuring sensor The marginal point of detection level section in this direction is at a distance from distance measuring sensor, then, according to 45 degree of rotation counterclockwise, so Afterwards, terminal can by the marginal point of distance measuring sensor detection level section in this direction at a distance from distance measuring sensor, with This analogizes, and terminal may finally obtain marginal point of the horizontal cross-section on six different directions at a distance from distance measuring sensor, such as Shown in Fig. 2.
Terminal obtains horizontal cross-section after the marginal point on multiple and different directions is at a distance from distance measuring sensor, can be evaluated whether The area of horizontal cross-section.Specifically, the primary inswept area of the every rotation of distance measuring sensor, it can be by horizontal cross-section at this two Marginal point on direction at a distance from distance measuring sensor and this between adjacent direction angle (i.e. preset angle, such as 45 degree) obtain, it can by length be line of marginal point of the horizontal cross-section in the both direction at a distance from distance measuring sensor The both sides of Duan Zuowei triangle, preset angle are the angle on triangle both sides, and terminal can be according to the length on both sides and both sides Angle calcu-lation triangle area, in turn, can using the area of the triangle as the area in the region, and so on, Ke Yiji The area in region of the horizontal cross-section between each pair of adjacent direction is calculated, in turn, the area in each region is added, obtains horizontal cut The area in face.
For example, level is cut as shown in figure 3, marginal point of the horizontal cross-section on direction 1 is a at a distance from distance measuring sensor The marginal point of face in direction 2 is b at a distance from distance measuring sensor, wherein direction 1 and direction 2 are adjacent both directions, in advance If angle be A, then terminal can according to formula (1) calculate third side length c, in turn, can according to formula (2) calculate three Angular area S.
S=p (p-a) (p-b) (p-c) (2)
Wherein, p is the half of perimeter.Terminal can obtain the area of each triangle according to the above method, in turn, by it It is added, approximation obtains the area of horizontal cross-section.In addition, for the area in region one in Fig. 3, the area of obtained triangle is The area in the region, for the area in region two in Fig. 3, the triangle area being calculated by this way is corresponding region two Similar area.
Step 102, the corresponding relationship of bulk according to the pre-stored data and volume value determines space environment locating for terminal The corresponding target sound magnitude of bulk.
In an implementation, the corresponding relationship of bulk and volume value can be previously stored in terminal, whenever obtaining terminal After the bulk of locating space environment, the bulk of space environment locating for terminal can be determined in the above correspondence relationship Corresponding volume value (i.e. target sound magnitude).Specifically, can be previously stored in terminal, bulk is corresponding with volume value to be closed Be table, as shown in table 1, the gap between bulk in mapping table can be set it is smaller, so as to for Any bulk all can accurately obtain target sound magnitude, in addition, when not including space environment locating for terminal in corresponding relationship Bulk when, can be corresponding by the bulk in mapping table closest to the bulk of space environment locating for terminal Volume value as target sound magnitude.In addition, the bulk in mapping table is also possible to bulk range, i.e. terminal The space ruler of space environment locating for terminal can be determined with the corresponding relationship of bulk range and volume value according to the pre-stored data The corresponding target sound magnitude of bulk range belonging to very little.
Table 1
Bulk Volume value
3 10
4 13
20 27
Optionally, the function of volume and bulk can also be previously stored in terminal, correspondingly, the place of step 102 Reason process can be such that independent variable according to the pre-stored data is bulk, and dependent variable is the function of volume value, computing terminal institute Locate the corresponding target sound magnitude of bulk of space environment.
In an implementation, it is bulk (bulk can be indicated with Z) that independent variable can be previously stored in terminal, because Variable is the function V=f (Z) of volume value (volume value can be indicated with V), wherein function V=f (Z) can be such as function (3) institute Show, after terminal detects the bulk of space environment locating for terminal, it is corresponding the bulk can be calculated by function (3) Target sound magnitude.
It step 103, is target sound magnitude by the volume adjustment of terminal.
In an implementation, after terminal obtains target sound magnitude, the volume value of terminal can be adjusted to target sound magnitude, i.e., this If when terminal when being playing audio data, terminal can the bulk based on space environment locating for counterpart terminal it is corresponding Volume value, playing audio-fequency data.
In addition, the bulk of terminal space environment according to locating for terminal, adjusts the space of current spatial environment The corresponding audio type of size, can also provide bulk transferring interface, for the terminal of other equipment calls terminals detection The bulk of locating space environment.
In the embodiment of the present invention, terminal can by the bulk of space environment where distance measuring sensor measuring terminals, In turn, it can determine that terminal is presently in space with the corresponding relationship of the size of space environment according to the pre-stored data and volume value The corresponding target sound magnitude of environment, finally, being target sound magnitude by the volume adjustment of terminal, in this way, when user is in terminal plays When being moved to big space environment from a small space environment during music, volume adjustment can be automatically to work as by terminal The corresponding volume value of front space environment, so that the wave volume that user hears does not change substantially, it is thus possible to prevent in sky Between environmental change when auditory effect be deteriorated.
Based on the same technical idea, the embodiment of the invention also provides a kind of devices for adjusting volume, as shown in figure 4, The device includes:
Detection module 410, for detecting the bulk of space environment locating for terminal by distance measuring sensor;
Determining module 420 determines the terminal for the corresponding relationship of bulk according to the pre-stored data and volume value The corresponding target sound magnitude of the bulk of locating space environment;
Module 430 is adjusted, for being the target sound magnitude by the volume adjustment of the terminal.
Optionally, the bulk of the space environment is the area or described of horizontal cross-section in the space environment The volume of space environment.
Optionally, the detection module 410, is used for:
Every preset detection cycle detects the bulk of space environment locating for terminal by distance measuring sensor;Or Person,
When the detection instruction for receiving user's input detects the space of space environment locating for terminal by distance measuring sensor Size;Alternatively,
When the position for detecting terminal changes, by distance measuring sensor, space environment locating for the terminal is detected Bulk.
Optionally, the detection module 410, is used for:
During terminal plays audio data, every preset detection cycle, by distance measuring sensor, described in detection The bulk of space environment locating for terminal.
Optionally, the detection module 410, is used for:
During terminal plays audio data, when the detection instruction for receiving user's input, by distance measuring sensor, Detect the bulk of space environment locating for the terminal.
Optionally, the detection module 410, is used for:
During terminal plays audio data, when the position for detecting the terminal changes, pass through ranging Sensor detects the bulk of space environment locating for the terminal.
Optionally, the bulk of the space environment is the area of horizontal cross-section in the space environment;
The detection module 410, is used for:
Marginal point of the horizontal cross-section on multiple and different directions is detected by distance measuring sensor and the ranging senses The distance of device;
It is at a distance from the distance measuring sensor and each pair of in the marginal point on multiple and different directions according to the horizontal cross-section Angle between adjacent direction determines the area of the horizontal cross-section.
Optionally, the determining module 420, is used for:
Independent variable according to the pre-stored data is bulk, and dependent variable is the function of volume value, is calculated locating for the terminal The corresponding target sound magnitude of the bulk of space environment.
In the embodiment of the present invention, terminal can by the bulk of space environment where distance measuring sensor measuring terminals, In turn, it can determine that terminal is presently in space with the corresponding relationship of the size of space environment according to the pre-stored data and volume value The corresponding target sound magnitude of environment, finally, being target sound magnitude by the volume adjustment of terminal, in this way, when user is in terminal plays When being moved to big space environment from a small space environment during music, volume adjustment can be automatically to work as by terminal The corresponding volume value of front space environment, so that the wave volume that user hears does not change substantially, it is thus possible to prevent in sky Between environmental change when auditory effect be deteriorated.
It should be understood that it is provided by the above embodiment adjustment volume device when adjusting volume, only with above-mentioned each function Can module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different functions Module is completed, i.e., the internal structure of terminal is divided into different functional modules, described above all or part of to complete Function.In addition, the device of adjustment volume provided by the above embodiment and the embodiment of the method for adjustment volume belong to same design, Specific implementation process is detailed in embodiment of the method, and which is not described herein again.
Referring to FIG. 5, the terminal can be used for it illustrates the structural schematic diagram of terminal involved in the embodiment of the present invention The method of the adjustment volume provided in above-described embodiment is provided.Specifically:
Terminal 500 may include RF (Radio Frequency, radio frequency) circuit 110, include one or more meter The memory 120 of calculation machine readable storage medium storing program for executing, input unit 130, display unit 140, sensor 150, voicefrequency circuit 160, WiFi (wireless fidelity, Wireless Fidelity) module 170, the processing for including one or more than one processing core The components such as device 180 and power supply 190.It will be understood by those skilled in the art that terminal structure shown in Fig. 5 is not constituted pair The restriction of terminal may include perhaps combining certain components or different component cloth than illustrating more or fewer components It sets.Wherein:
RF circuit 110 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station After downlink information receives, one or the processing of more than one processor 180 are transferred to;In addition, the data for being related to uplink are sent to Base station.In general, RF circuit 110 includes but is not limited to antenna, at least one amplifier, tuner, one or more oscillators, uses Family identity module (SIM) card, transceiver, coupler, LNA (Low Noise Amplifier, low-noise amplifier), duplex Device etc..In addition, RF circuit 110 can also be communicated with network and other equipment by wireless communication.The wireless communication can make With any communication standard or agreement, and including but not limited to GSM (Global System of Mobile communication, entirely Ball mobile communcations system), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), LTE (Long Term Evolution, long term evolution), Email, SMS (Short Messaging Service, short message service) etc..
Memory 120 can be used for storing software program and module, and processor 180 is stored in memory 120 by operation Software program and module, thereby executing various function application and data processing.Memory 120 can mainly include storage journey Sequence area and storage data area, wherein storing program area can the (ratio of application program needed for storage program area, at least one function Such as sound-playing function, image player function) etc.;Storage data area, which can be stored, uses created number according to terminal 500 According to (such as audio data, phone directory etc.) etc..In addition, memory 120 may include high-speed random access memory, can also wrap Include nonvolatile memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts. Correspondingly, memory 120 can also include Memory Controller, to provide processor 180 and input unit 130 to memory 120 access.
Input unit 130 can be used for receiving the number or character information of input, and generate and user setting and function Control related keyboard, mouse, operating stick, optics or trackball signal input.Specifically, input unit 130 may include touching Sensitive surfaces 131 and other input equipments 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad are collected and are used Family on it or nearby touch operation (such as user using any suitable object or attachment such as finger, stylus in touch-sensitive table Operation on face 131 or near touch sensitive surface 131), and corresponding attachment device is driven according to preset formula.It is optional , touch sensitive surface 131 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detection is used The touch orientation at family, and touch operation bring signal is detected, transmit a signal to touch controller;Touch controller is from touch Touch information is received in detection device, and is converted into contact coordinate, then gives processor 180, and can receive processor 180 The order sent simultaneously is executed.Furthermore, it is possible to using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves Realize touch sensitive surface 131.In addition to touch sensitive surface 131, input unit 130 can also include other input equipments 132.Specifically, Other input equipments 132 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), One of trace ball, mouse, operating stick etc. are a variety of.
Display unit 140 can be used for showing information input by user or the information and terminal 500 that are supplied to user Various graphical user interface, these graphical user interface can be made of figure, text, icon, video and any combination thereof. Display unit 140 may include display panel 141, optionally, can use LCD (Liquid Crystal Display, liquid crystal Show device), the forms such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) configure display panel 141.Further, touch sensitive surface 131 can cover display panel 141, when touch sensitive surface 131 detects touching on it or nearby After touching operation, processor 180 is sent to determine the type of touch event, is followed by subsequent processing device 180 according to the type of touch event Corresponding visual output is provided on display panel 141.Although touch sensitive surface 131 and display panel 141 are conducts in Fig. 5 Two independent components realize input and input function, but in some embodiments it is possible to by touch sensitive surface 131 and display Panel 141 is integrated and realizes and outputs and inputs function.
Terminal 500 may also include at least one sensor 150, such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 141, and proximity sensor can close display when terminal 500 is moved in one's ear Panel 141 and/or backlight.As a kind of motion sensor, gravity accelerometer can detect in all directions (generally Three axis) acceleration size, can detect that size and the direction of gravity when static, can be used to identify mobile phone posture application (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);Extremely In other sensors such as gyroscope, barometer, hygrometer, thermometer, the infrared sensors that terminal 500 can also configure, herein It repeats no more.
Voicefrequency circuit 160, loudspeaker 161, microphone 162 can provide the audio interface between user and terminal 500.Audio Electric signal after the audio data received conversion can be transferred to loudspeaker 161, be converted to sound by loudspeaker 161 by circuit 160 Sound signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 162, after being received by voicefrequency circuit 160 Audio data is converted to, then by after the processing of audio data output processor 180, such as another end is sent to through RF circuit 110 End, or audio data is exported to memory 120 to be further processed.Voicefrequency circuit 160 is also possible that earphone jack, To provide the communication of peripheral hardware earphone Yu terminal 500.
WiFi belongs to short range wireless transmission technology, and terminal 500 can help user's transceiver electronics by WiFi module 170 Mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 5 is shown WiFi module 170, but it is understood that, and it is not belonging to must be configured into for terminal 500, it can according to need completely Do not change in the range of the essence of invention and omits.
Processor 180 is the control centre of terminal 500, utilizes each portion of various interfaces and connection whole mobile phone Point, by running or execute the software program and/or module that are stored in memory 120, and calls and be stored in memory 120 Interior data execute the various functions and processing data of terminal 500, to carry out integral monitoring to mobile phone.Optionally, processor 180 may include one or more processing cores;Preferably, processor 180 can integrate application processor and modem processor, Wherein, the main processing operation system of application processor, user interface and application program etc., modem processor mainly handles nothing Line communication.It is understood that above-mentioned modem processor can not also be integrated into processor 180.
Terminal 500 further includes the power supply 190 (such as battery) powered to all parts, it is preferred that power supply can pass through electricity Management system and processor 180 are logically contiguous, to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.Power supply 190 can also include one or more direct current or AC power source, recharging system, power supply event Hinder the random components such as detection circuit, power adapter or inverter, power supply status indicator.
Although being not shown, terminal 500 can also include camera, bluetooth module etc., and details are not described herein.Specifically in this reality It applies in example, the display unit of terminal 500 is touch-screen display, and terminal 500 further includes having memory and one or one Above program, one of them perhaps more than one program be stored in memory and be configured to by one or one with Upper processor execution states one or more than one program includes the instruction for performing the following operation:
By distance measuring sensor, the bulk of space environment locating for terminal is detected;
The corresponding relationship of bulk according to the pre-stored data and volume value determines the sky of space environment locating for the terminal Between the corresponding target sound magnitude of size;
It is the target sound magnitude by the volume adjustment of the terminal.
Optionally, the bulk of the space environment is the area or described of horizontal cross-section in the space environment The volume of space environment.
Optionally, described by distance measuring sensor, detect the bulk of space environment locating for terminal, comprising:
Every preset detection cycle detects the bulk of space environment locating for terminal by distance measuring sensor;Or Person,
When the detection instruction for receiving user's input detects the space of space environment locating for terminal by distance measuring sensor Size;Alternatively,
When the position for detecting terminal changes, by distance measuring sensor, space environment locating for the terminal is detected Bulk.
Optionally, every preset detection cycle detects the sky of space environment locating for terminal by distance measuring sensor Between size, comprising:
During terminal plays audio data, every preset detection cycle, by distance measuring sensor, described in detection The bulk of space environment locating for terminal.
Optionally, described when the detection instruction for receiving user's input detects space locating for terminal by distance measuring sensor The bulk of environment, comprising:
During terminal plays audio data, when the detection instruction for receiving user's input, by distance measuring sensor, Detect the bulk of space environment locating for the terminal.
Optionally, described when the position for detecting terminal changes, by distance measuring sensor, detect the terminal institute Locate the bulk of space environment, comprising:
During terminal plays audio data, when the position for detecting the terminal changes, pass through ranging Sensor detects the bulk of space environment locating for the terminal.
Optionally, the bulk of the space environment is the area of horizontal cross-section in the space environment;
It is described by distance measuring sensor, detect the bulk of space environment locating for terminal, comprising:
Marginal point of the horizontal cross-section on multiple and different directions is detected by distance measuring sensor and the ranging senses The distance of device;
It is at a distance from the distance measuring sensor and each pair of in the marginal point on multiple and different directions according to the horizontal cross-section Angle between adjacent direction determines the area of the horizontal cross-section.
Optionally, the corresponding relationship of the bulk according to the pre-stored data and volume value, determines locating for the terminal The corresponding target sound magnitude of the bulk of space environment, comprising:
Independent variable according to the pre-stored data is bulk, and dependent variable is the function of volume value, is calculated locating for the terminal The corresponding target sound magnitude of the bulk of space environment.
In the embodiment of the present invention, terminal can by the bulk of space environment where distance measuring sensor measuring terminals, In turn, it can determine that terminal is presently in space with the corresponding relationship of the size of space environment according to the pre-stored data and volume value The corresponding target sound magnitude of environment, finally, being target sound magnitude by the volume adjustment of terminal, in this way, when user is in terminal plays When being moved to big space environment from a small space environment during music, volume adjustment can be automatically to work as by terminal The corresponding volume value of front space environment, so that the wave volume that user hears does not change substantially, it is thus possible to prevent in sky Between environmental change when auditory effect be deteriorated.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (8)

1. a kind of method for adjusting volume, which is characterized in that the described method includes:
By distance measuring sensor, the bulk of space environment locating for terminal is detected, the bulk of the space environment is institute State the volume of the area of horizontal cross-section or the space environment in space environment;
The corresponding relationship of bulk according to the pre-stored data and volume value determines the space ruler of space environment locating for the terminal Very little corresponding target sound magnitude;
It is the target sound magnitude by the volume adjustment of the terminal;
The corresponding relationship of the bulk according to the pre-stored data and volume value, determines the sky of space environment locating for the terminal Between the corresponding target sound magnitude of size, comprising:
Independent variable according to the pre-stored data is bulk, and dependent variable is the function of volume value, calculates space locating for the terminal The corresponding target sound magnitude of the bulk of environment;
The bulk and volume value function are as follows:
Wherein, V is volume value, and Z is bulk;
It is described by distance measuring sensor, detect the bulk of space environment locating for terminal, comprising:
During terminal plays audio data, when the detection instruction for receiving user's input, pass through distance measuring sensor, detection The bulk of space environment locating for the terminal;Alternatively,
Every preset detection cycle detects the bulk of space environment locating for terminal by distance measuring sensor;Alternatively,
When the position for detecting terminal changes, by distance measuring sensor, the sky of space environment locating for the terminal is detected Between size.
2. the method according to claim 1, wherein every preset detection cycle, is sensed by ranging Device detects the bulk of space environment locating for terminal, comprising:
During terminal plays audio data, every preset detection cycle detects the terminal by distance measuring sensor The bulk of locating space environment.
3. leading to the method according to claim 1, wherein described when the position for detecting terminal changes Distance measuring sensor is crossed, the bulk of space environment locating for the terminal is detected, comprising:
During terminal plays audio data, when the position for detecting the terminal changes, sensed by ranging Device detects the bulk of space environment locating for the terminal.
4. the method according to claim 1, wherein the bulk of the space environment is the space environment The area of middle horizontal cross-section;
It is described by distance measuring sensor, detect the bulk of space environment locating for terminal, comprising:
Marginal point of the horizontal cross-section on multiple and different directions and the distance measuring sensor are detected by distance measuring sensor Distance;
It is at a distance from the distance measuring sensor and each pair of adjacent in the marginal point on multiple and different directions according to the horizontal cross-section Angle between direction determines the area of the horizontal cross-section.
5. a kind of device for adjusting volume, which is characterized in that described device includes:
Detection module, for detecting the bulk of space environment locating for terminal by distance measuring sensor, the space environment Bulk is the volume of the area of horizontal cross-section or the space environment in the space environment;
Determining module determines sky locating for the terminal for the corresponding relationship of bulk according to the pre-stored data and volume value Between environment the corresponding target sound magnitude of bulk;
Module is adjusted, for being the target sound magnitude by the volume adjustment of the terminal;
The determining module, is used for:
Independent variable according to the pre-stored data is bulk, and dependent variable is the function of volume value, calculates space locating for the terminal The corresponding target sound magnitude of the bulk of environment;
The bulk and volume value function are as follows:
Wherein, V is volume value, and Z is bulk;
The detection module, is used for:
During terminal plays audio data, when the detection instruction for receiving user's input, pass through distance measuring sensor, detection The bulk of space environment locating for the terminal;Alternatively,
Every preset detection cycle detects the bulk of space environment locating for terminal by distance measuring sensor;Alternatively,
When the position for detecting terminal changes, by distance measuring sensor, the sky of space environment locating for the terminal is detected Between size.
6. device according to claim 5, which is characterized in that the detection module is used for:
During terminal plays audio data, every preset detection cycle detects the terminal by distance measuring sensor The bulk of locating space environment.
7. device according to claim 5, which is characterized in that the detection module is used for:
During terminal plays audio data, when the position for detecting the terminal changes, sensed by ranging Device detects the bulk of space environment locating for the terminal.
8. device according to claim 5, which is characterized in that the bulk of the space environment is the space environment The area of middle horizontal cross-section;
The detection module, is used for:
Marginal point of the horizontal cross-section on multiple and different directions and the distance measuring sensor are detected by distance measuring sensor Distance;
It is at a distance from the distance measuring sensor and each pair of adjacent in the marginal point on multiple and different directions according to the horizontal cross-section Angle between direction determines the area of the horizontal cross-section.
CN201610856884.XA 2016-09-27 2016-09-27 A kind of method and apparatus adjusting volume Active CN106487984B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610856884.XA CN106487984B (en) 2016-09-27 2016-09-27 A kind of method and apparatus adjusting volume

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610856884.XA CN106487984B (en) 2016-09-27 2016-09-27 A kind of method and apparatus adjusting volume

Publications (2)

Publication Number Publication Date
CN106487984A CN106487984A (en) 2017-03-08
CN106487984B true CN106487984B (en) 2019-01-08

Family

ID=58268067

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610856884.XA Active CN106487984B (en) 2016-09-27 2016-09-27 A kind of method and apparatus adjusting volume

Country Status (1)

Country Link
CN (1) CN106487984B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106817654B (en) * 2017-03-22 2019-10-22 微鲸科技有限公司 Sound effect treatment method, device and multimedia equipment
CN109298847A (en) * 2018-10-18 2019-02-01 珠海格力电器股份有限公司 The adjusting method and device of volume, system
CN110267155B (en) * 2019-06-27 2021-10-22 维沃移动通信有限公司 Sound box control method and sound box
CN111787460B (en) * 2020-06-23 2021-11-09 北京小米移动软件有限公司 Equipment control method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103813235A (en) * 2012-11-13 2014-05-21 联想(北京)有限公司 Information processing method and device
CN105118524A (en) * 2015-09-18 2015-12-02 广东欧珀移动通信有限公司 Audio playing method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5609445B2 (en) * 2010-09-03 2014-10-22 ソニー株式会社 Control terminal device and control method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103813235A (en) * 2012-11-13 2014-05-21 联想(北京)有限公司 Information processing method and device
CN105118524A (en) * 2015-09-18 2015-12-02 广东欧珀移动通信有限公司 Audio playing method and device

Also Published As

Publication number Publication date
CN106487984A (en) 2017-03-08

Similar Documents

Publication Publication Date Title
CN106487984B (en) A kind of method and apparatus adjusting volume
CN106357897B (en) The acquisition methods and device of drop information
CN106778585A (en) A kind of face key point-tracking method and device
CN106412249B (en) The detection method and device of drop information
CN104636047B (en) The method, apparatus and touch screen terminal operated to the object in list
CN106847298A (en) A kind of sound pick-up method and device based on diffused interactive voice
CN106331359B (en) A kind of speech signal collection method, device and terminal
CN103365419B (en) A kind of method and apparatus triggering alarm clock control command
CN104915091B (en) A kind of method and apparatus for the prompt information that Shows Status Bar
US10764415B2 (en) Screen lighting method for dual-screen terminal and terminal
US20200125229A1 (en) Display Processing Method and Apparatus
CN108681437A (en) Display methods and device, storage medium, electronic equipment
KR20150122476A (en) Method and apparatus for controlling gesture sensor
CN104991699B (en) A kind of method and apparatus of video display control
CN110417960A (en) A kind of method for folding and electronic equipment of foldable touch screen
CN106023088B (en) A kind of method and device adjusting brightness of image
US20150070360A1 (en) Method and mobile terminal for drawing sliding trace
CN107528958B (en) Method for controlling mobile terminal, device, readable storage medium storing program for executing and mobile terminal
CN108804062A (en) Display methods and device, storage medium, electronic equipment
CN106254673B (en) Terminal falls detection method and device
CN106228994B (en) A kind of method and apparatus detecting sound quality
CN110930964B (en) Display screen brightness adjusting method and device, storage medium and terminal
CN105807908B (en) A kind of method and apparatus of switching working mode
CN107291280A (en) A kind of method of adjustment of sensitivity of touch screen, device and terminal device
WO2015027950A1 (en) Stereophonic sound recording method, apparatus, and terminal

Legal Events

Date Code Title Description
PB01 Publication
C06 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 510660 Guangzhou City, Guangzhou, Guangdong, Whampoa Avenue, No. 315, self - made 1-17

Applicant after: Guangzhou KuGou Networks Co., Ltd.

Address before: 510000 B1, building, No. 16, rhyme Road, Guangzhou, Guangdong, China 13F

Applicant before: Guangzhou KuGou Networks Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant