CN106331338A - Volume adjusting method and device - Google Patents

Volume adjusting method and device Download PDF

Info

Publication number
CN106331338A
CN106331338A CN201610703685.5A CN201610703685A CN106331338A CN 106331338 A CN106331338 A CN 106331338A CN 201610703685 A CN201610703685 A CN 201610703685A CN 106331338 A CN106331338 A CN 106331338A
Authority
CN
China
Prior art keywords
volume
value
media file
target
interval
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.)
Pending
Application number
CN201610703685.5A
Other languages
Chinese (zh)
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610703685.5A priority Critical patent/CN106331338A/en
Publication of CN106331338A publication Critical patent/CN106331338A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72442User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for playing music files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • 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 provides a volume adjusting method and device. The method comprises the steps of outputting a volume adjustment prompt message before playing a target media file when the target media file is triggered to be played and determining that a preset volume adjustment condition is satisfied; when receiving a volume adjustment instruction, adjusting the play volume of the target media file to a corresponding target volume value; and playing the target media file based on the target volume value. The volume adjusting method and the volume adjusting device provided by the invention can avoid the problems that other users around are interfered since the previously set play volume is too loud when playing the target media file, or the users miss some or all of audio contents of the target media file due to too low play volume, so that user experience is improved.

Description

Volume adjusting method and device
Technical field
It relates to the communications field, particularly relate to volume adjusting method and device.
Background technology
In correlation technique, when certain media file needed in play-back application, terminal can be arranged according to before user The broadcast sound volume corresponding to this application program play this media file.When the described broadcast sound volume arranged before is excessive or mistake Hour, need this user that described broadcast sound volume is adjusted.But, after this user completes volume adjusting, this media file Partly or entirely finished, bring inconvenience to user.
Summary of the invention
In view of this, present disclose provides volume adjusting method and device, to solve the deficiency in correlation technique.
First aspect according to disclosure embodiment, it is provided that a kind of volume adjusting method, for terminal, described method bag Include:
When triggering broadcasting target media file and determine the satisfied volume adjusting condition preset, playing described target medium Before file, output volume adjusting information;
When receiving volume adjusting instruction, the broadcast sound volume of described target media file is adjusted to corresponding target volume Value;
Described target media file is play based on described target sound value.
Alternatively, meet arbitrary or appoint several condition time, determine meet preset volume adjusting condition:
The broadcast sound volume value not higher than first threshold of current goal media file or be not less than Second Threshold, wherein, described First threshold is less than described Second Threshold;
The playing duration of described target media file is less than preset duration.
Optionally it is determined that first threshold or Second Threshold, including:
Gather described terminal by audio collecting device and be presently in the ambient sound value of environment;
Determine that according to described ambient sound value the broadcast sound volume of described target media file is interval;
Determining that the interval minima of described broadcast sound volume is first threshold, the interval maximum of described broadcast sound volume is second Threshold value.
Alternatively, the described broadcast sound volume interval determining described target media file according to described ambient sound value, including:
According to described ambient sound value, determine that described terminal is presently in the target environment type of environment;
According to described target environment type, determine the broadcasting sound of the target media file corresponding with described target environment type Amount interval.
Alternatively, described according to described ambient sound value, determine that described terminal is presently in the target environment type of environment, Including:
According to the first corresponding relation between environmental volume value range interval and the environmental form prestored, determine described environment The described target environment type that target environment volume range value interval belonging to volume value is corresponding.
Optionally it is determined that the broadcast sound volume of the target media file corresponding with described target environment type is interval, including:
According to default environmental form, preset volume increase value and the second corresponding relation preset between volume decreasing value, Determine that the target corresponding with described target environment type presets volume increase value and target presets volume decreasing value;
Calculate described ambient sound value and described target presets volume increase value and value, obtain broadcast sound volume interval Big broadcast sound volume value;
Calculate described ambient sound value and described target presets the difference of volume decreasing value, obtain broadcast sound volume interval Little broadcast sound volume value.
Second aspect according to disclosure embodiment, it is provided that a kind of volume adjustment device, for terminal, described device bag Include:
Output module, when being configured to trigger broadcasting target media file and determine the satisfied volume adjusting condition preset, Before playing described target media file, output volume adjusting information;
Volume adjusting module, when being configured to receive volume adjusting instruction, by the broadcast sound volume of described target media file It is adjusted to corresponding target sound value;
Playing module, is configured to play described target media file based on described target sound value.
Alternatively, described output module meet arbitrary or appoint several condition time, determine meet preset volume adjust Joint condition:
The broadcast sound volume value not higher than first threshold of current goal media file or be not less than Second Threshold, wherein, described First threshold is less than described Second Threshold;
The playing duration of described target media file is less than preset duration.
Alternatively, described output module includes:
Gather submodule, be configured to the described terminal of audio collecting device collection and be presently in the environmental volume of environment Value;
Interval determines submodule, is configured to determine the broadcasting sound of described target media file according to described ambient sound value Amount interval;
Determine submodule, be configured to determine that the minima in described broadcast sound volume interval is first threshold, described broadcasting sound The maximum in amount interval is Second Threshold.
Alternatively, described interval determines that submodule includes:
Environmental form determines unit, is configured to, according to described ambient sound value, determine that described terminal is presently in environment Target environment type;
Interval determination unit, is configured to according to described target environment type, determines corresponding with described target environment type The broadcast sound volume of target media file interval.
Alternatively, described environmental form determines that unit includes:
Environmental form determines subelement, between being configured to according to environmental volume value range interval and the environmental form prestored The first corresponding relation, determine the described target ring that the target environment volume range value interval belonging to described ambient sound value is corresponding Border type.
Alternatively, described interval determination unit includes:
Volume value determines subelement, is configured to according to the environmental form preset, presets volume increase value and preset volume The second corresponding relation between decreasing value, determines that the target corresponding with described target environment type presets volume increase value and target Preset volume decreasing value;
First computation subunit, is configured to calculate described ambient sound value and described target presets the sum of volume increase value Value, obtains the maximum broadcast sound volume value that broadcast sound volume is interval;
Second computation subunit, is configured to calculate described ambient sound value and described target presets the difference of volume decreasing value Value, obtains the minimum broadcast sound volume value that broadcast sound volume is interval.
The third aspect according to disclosure embodiment, it is provided that a kind of volume adjustment device, for terminal, including:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
When triggering broadcasting target media file and determine the satisfied volume adjusting condition preset, playing described target medium Before file, output volume adjusting information;
When receiving volume adjusting instruction, the broadcast sound volume of described target media file is adjusted to corresponding target volume Value;
Described target media file is play based on described target sound value.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect:
In disclosure embodiment, terminal is detecting that triggering is play target media file and determines that meeting the volume preset adjusts During joint condition, playing before described target media file, automatic output volume adjusting information, in order to described user according to The broadcast sound volume of described target media file is adjusted by described information, and then described terminal regulates based on described user The target sound value obtained plays described target media file.Pass through said process, it is to avoid playing described target medium literary composition During part, the described broadcast sound volume owing to arranging before is excessive and interferes with other users around, or due to described broadcast sound volume mistake The problem of the little part or all of audio content causing described user to miss described target media file, improves Consumer's Experience.
In disclosure embodiment, it is alternatively possible to the broadcast sound volume value at current goal media file is not higher than the first threshold Value or be not less than Second Threshold, and/or the playing duration of described target media file less than preset duration time, determine to meet and preset Volume adjusting condition.Realizing simplicity, availability is high, and avoids that the described broadcast sound volume owing to arranging before is excessive to be interfered with Other users around, or due to the too small part causing described user to miss described target media file of described broadcast sound volume or complete The problem of portion's audio content, improves Consumer's Experience.
In disclosure embodiment, terminal, when determining first threshold or Second Threshold, can gather the current institute of described terminal Based on described ambient sound value, the ambient sound value of place's environment, determines that broadcast sound volume is interval.Wherein said broadcast sound volume interval Minima is described first threshold, and the maximum in described broadcast sound volume interval is described Second Threshold.That is can be based on Described terminal is presently in environment, it may be judged whether needs to be adjusted the broadcast sound volume of target media file, improves terminal Intelligence degree, and improve Consumer's Experience.
In disclosure embodiment, when determining above-mentioned broadcast sound volume interval, first can be current based on the terminal collected The ambient sound value of local environment, determines that the broadcast sound volume of the target media file corresponding with described target environment type is interval. Realizing simplicity, availability is high.
It should be appreciated that it is only exemplary and explanatory, not that above general description and details hereinafter describe The disclosure can be limited.
Accompanying drawing explanation
Accompanying drawing herein is merged in description and constitutes the part of this specification, it is shown that meet the enforcement of the disclosure Example, and for explaining the principle of the disclosure together with description.
Fig. 1 is that the disclosure is according to a kind of volume adjusting method flow chart shown in an exemplary embodiment;
Fig. 2 is that the disclosure is according to the another kind of volume adjusting method flow chart shown in an exemplary embodiment;
Fig. 3 is that the disclosure is according to the another kind of volume adjusting method flow chart shown in an exemplary embodiment;
Fig. 4 is that the disclosure is according to the another kind of volume adjusting method flow chart shown in an exemplary embodiment;
Fig. 5 A to 5B is that the disclosure is according to the volume adjusting scene schematic diagram shown in an exemplary embodiment;
Fig. 6 is that the disclosure is according to a kind of volume adjustment device block diagram shown in an exemplary embodiment;
Fig. 7 is that the disclosure is according to the another kind of volume adjustment device block diagram shown in an exemplary embodiment;
Fig. 8 is that the disclosure is according to the another kind of volume adjustment device block diagram shown in an exemplary embodiment;
Fig. 9 is that the disclosure is according to the another kind of volume adjustment device block diagram shown in an exemplary embodiment;
Figure 10 is that the disclosure is according to the another kind of volume adjustment device block diagram shown in an exemplary embodiment;
Figure 11 is that the disclosure is according to a kind of structural representation for volume adjustment device shown in an exemplary embodiment Figure.
Detailed description of the invention
Here will illustrate exemplary embodiment in detail, its example represents in the accompanying drawings.Explained below relates to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they are only with the most appended The example of the apparatus and method that some aspects that described in detail in claims, the disclosure are consistent.
The term used in the disclosure is only merely for describing the purpose of specific embodiment, and is not intended to be limiting the disclosure. " a kind of ", " described " and " being somebody's turn to do " of singulative used in disclosure and the accompanying claims book is also intended to include majority Form, unless context clearly shows that other implications.It is also understood that term "and/or" used herein refers to and wraps Any or all containing one or more projects of listing being associated may combination.
Although should be appreciated that in the disclosure possible employing term first, second, third, etc. to describe various information, but this A little information should not necessarily be limited by these terms.These terms are only used for same type of information is distinguished from each other out.Such as, without departing from In the case of disclosure scope, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depend on linguistic context, word as used in this " if " can be construed to " ... time " or " when ... Time " or " in response to determining ".
The volume adjusting method that disclosure embodiment provides may be used for terminal, such as, smart mobile phone, panel computer, individual Personal digital assistant (Personal Digital Assistant, PDA) etc..As it is shown in figure 1, Fig. 1 is according to an exemplary enforcement A kind of volume adjusting method exemplified, comprises the following steps:
In a step 101, when triggering broadcasting target media file and determine the satisfied volume adjusting condition preset, playing Before described target media file, output volume adjusting information.
In this step, when according to correlation technique, described terminal detects that user triggers the described target media file of broadcasting, Can meet arbitrary or appoint several condition time, determine meet preset described volume adjusting condition.
Condition one, the broadcast sound volume value not higher than first threshold of current goal media file or be not less than Second Threshold, its In, described first threshold is less than described Second Threshold.Such as, described first threshold can be the minimum that described terminal can reach Terminal volume value, described Second Threshold can be the maximum terminal volume value that described terminal can reach.
In disclosure embodiment, described terminal can be when detecting that user triggers the described target media file of broadcasting, certainly The dynamic broadcast sound volume value obtaining current goal media file according to correlation technique.
Further, when described broadcast sound volume value is not higher than described first threshold, and the most described currently playing volume value is too small Time, determine and meet described volume adjusting condition.Or it is when described currently playing volume value is not less than described Second Threshold, i.e. described When currently playing volume value is excessive, equally determines and meet described volume adjusting condition.
Condition two, the playing duration of described target media file is less than preset duration.
In disclosure embodiment, the described playing duration of described target media file is when less than described preset duration, really Surely described volume adjusting condition is met.
Further, described target media file is the media file of preset audio stream type.Alternatively, described default sound Frequently stream type includes that stream type is the audio stream supporting music playback.Such as, described target media file can be in wechat The small video file that certain playing duration is shorter, or audio file.
Described terminal determines first threshold or Second Threshold in the following ways.As in figure 2 it is shown, Fig. 2 is in earlier figures 1 institute The another kind of volume adjusting method illustrated on the basis of showing embodiment, comprises the following steps:
In step 101-1, gather described terminal by audio collecting device and be presently in the ambient sound value of environment.
In this step, described terminal, can be according to when detecting that described user triggers the described target media file of broadcasting Correlation technique gathers described ambient sound value by described audio collecting device.Alternatively, described audio collecting device can be Speaker.
In step 101-2, determine that according to described ambient sound value the broadcast sound volume of described target media file is interval.
Alternatively, step 101-2 is as it is shown on figure 3, Fig. 3 is another that illustrate on the basis of aforementioned embodiment illustrated in fig. 2 Plant volume adjusting method, comprise the following steps:
In step 101-21, according to described ambient sound value, determine that described terminal is presently in the target environment of environment Type.
Alternatively, described terminal stored default environmental volume value range is interval and between environmental form the One corresponding relation, as shown in table 1.
Table 1
Such as, when described ambient sound value is less, belong to (a, b) during environmental volume value range interval, the described first kind Environment quiet type can be corresponded to.When described ambient sound value is relatively big, belong to (c, d) during environmental volume value range interval, institute State the 3rd type and can correspond to the noisy type of environment.Described ambient sound value is moderate, belongs to (b, c) environmental volume value range district Between time, described Second Type can correspond to the moderate type of environment.
In disclosure embodiment, after collecting described ambient sound value by described audio collecting device, can basis Table 1 judges that the target environment volume range value belonging to described ambient sound value is interval, and then according to described target environment volume Value range is interval, determines that described terminal is presently in the described target environment type of environment.
Such as, the described target environment volume range value interval belonging to described ambient sound value is that (b c), then may determine that Described target environment type is described Second Type.
In step 101-22, according to described target environment type, determine the target corresponding with described target environment type The broadcast sound volume of media file is interval.
Alternatively, as shown in Figure 4, Fig. 4 is another that illustrate on the basis of aforementioned embodiment illustrated in fig. 3 to step 101-22 Plant volume adjusting method, comprise the following steps:
In step 101-221, according to default environmental form, preset volume increase value and preset between volume decreasing value The second corresponding relation, determine that the target corresponding with described target environment type presets volume increase value and target presets volume down Little value.
Alternatively, described terminal has stored environmental form, has preset volume increase value and preset volume decreasing value Between the second corresponding relation, as shown in table 2.Wherein, described default volume increase value and described default volume decreasing value are permissible Difference according to described environmental form and be set to different decibel values.
Table 2
Such as, when described environmental form is the described first kind, when i.e. corresponding to environment quiet type, in order to avoid playing The broadcast sound volume of described target media file is excessive interferes with other users, can be by described default volume increase value A1Arrange Less, by described default volume decreasing value A2Arrange is bigger.When described environmental form is described 3rd type, i.e. correspond to ring During the noisy type in border, listen not in order to avoid playing the too small user causing described terminal of broadcast sound volume of described target media file Clear audio content, can be by described default volume increase value C1Arrange is relatively big, by described default volume decreasing value C2Arrange relatively Little.
In this step, described terminal, after determining described environmental form, can determine and described target environment according to table 2 Target corresponding to type presets volume increase value and target presets volume decreasing value.
In step 101-222, calculate described ambient sound value and described target presets volume increase value and value, obtain The maximum broadcast sound volume value that broadcast sound volume is interval.
In this step, described ambient sound value and described target are preset volume increase value be added obtain and value be institute State maximum broadcast sound volume value.
In step 101-223, calculate described ambient sound value and described target presets the difference of volume decreasing value, obtain The minimum broadcast sound volume value that broadcast sound volume is interval.
In this step, described ambient sound value and described target are preset volume decreasing value and subtracts each other the difference obtained and be institute State minimum broadcast sound volume value.
Described broadcast sound volume interval is described minimum broadcast sound volume value to the interval between described maximum broadcast sound volume value.
In step 101-3, determining that the minima in described broadcast sound volume interval is first threshold, described broadcast sound volume is interval Maximum be Second Threshold.
In this step, described terminal using minima interval for described broadcast sound volume as described first threshold, described broadcasting The maximum in volume interval is as described Second Threshold.
When trigger play target media file and determining meet above-mentioned default volume adjusting condition time, illustrate to use described in Current volume value play described target media file time described broadcast sound volume can be excessive or too small, thus interfere with other users or The user making described terminal cannot not hear the audio content of described target media file.Adjust accordingly, it would be desirable to export described volume Joint information, points out described user to be adjusted described broadcast sound volume.
In view of in correlation technique, when the playing duration of media file is longer, described terminal can be adjusted by output volume automatically Nodal axisn, in order to described user carries out in volume adjusting disclosure embodiment, the described volume adjusting information of output, optional Ground, as shown in Figure 5A.In order to promote Consumer's Experience further, can be defeated while exporting described volume adjusting information Go out volume adjusting axle, as shown in Figure 5 B, in order to described user carries out volume adjusting by described volume adjusting axle.
In a step 102, when receiving volume adjusting instruction, the broadcast sound volume of described target media file is adjusted to accordingly Target sound value.
In disclosure embodiment, described user can be by volume adjusting physical button default in described terminal to described Broadcast sound volume is adjusted.Or described user can be grasped by slip on the described volume adjusting axle that described terminal exports Described broadcast sound volume of opposing is adjusted.
In this step, described terminal can receive described volume adjusting according to correlation technique and instruct, wherein, if described use Family is the volume adjusting carried out by described volume adjusting physical button, and the most described target sound value is that described user is last The volume value being adjusted to after pressing described volume adjusting physical button.If described user passes through slide at institute's volume adjusting Carrying out volume adjusting on axle, contact information institute last in the continuous contact information in one end that the most described terminal can will detect is right The volume value answered is defined as described target broadcast sound volume value.
Described terminal instructs based on described volume adjusting, according to correlation technique, described broadcast sound volume is adjusted to described target Volume value.
In step 103, described target media file is play based on described target sound value.
In this step, described terminal commences play out described target media file, and described broadcast sound volume according to correlation technique For described target sound value.
In above-described embodiment, terminal is detecting that triggering is play target media file and determines the satisfied volume adjusting preset During condition, before playing described target media file, output reminding sound volume regulation information automatically, in order to described user couple The broadcast sound volume of described target media file is adjusted, and then described terminal regulates the target volume obtained based on described user Value plays described target media file.Pass through said process, it is to avoid when playing described target media file, owing to setting before The described broadcast sound volume put is excessive and interferes with other users around, or causes described user wrong owing to described broadcast sound volume is too small The problem crossing the part or all of audio content of described target media file, improves Consumer's Experience.
Corresponding with preceding method embodiment, the disclosure additionally provides the embodiment of device.
As shown in Figure 6, Fig. 6 is that the disclosure is according to a kind of volume adjustment device block diagram shown in an exemplary embodiment, bag Include:
Output module 210, is configured to trigger and plays target media file and determine the satisfied volume adjusting condition preset Time, before playing described target media file, output volume adjusting information;
Volume adjusting module 220, when being configured to receive volume adjusting instruction, by the broadcasting sound of described target media file Amount is adjusted to corresponding target sound value;
Playing module 230, is configured to play described target media file based on described target sound value.Alternatively, institute State output module 210 meet arbitrary or appoint several condition time, determine meet preset volume adjusting condition:
The broadcast sound volume value not higher than first threshold of current goal media file or be not less than Second Threshold, wherein, described First threshold is less than described Second Threshold;
The playing duration of described target media file is less than preset duration.
As it is shown in fig. 7, Fig. 7 be the disclosure according to the another kind of volume adjustment device block diagram shown in an exemplary embodiment, This embodiment is on the basis of aforementioned embodiment illustrated in fig. 6, and described output module 210 includes:
Gather submodule 211, be configured to the described terminal of audio collecting device collection and be presently in the environment of environment Volume value;
Interval determines submodule 212, is configured to determine broadcasting of described target media file according to described ambient sound value Playback amount is interval;
Determine submodule 213, be configured to determine that the minima in described broadcast sound volume interval is first threshold, described broadcasting The maximum in volume interval is Second Threshold.
As shown in Figure 8, Fig. 8 be the disclosure according to the another kind of volume adjustment device block diagram shown in an exemplary embodiment, This embodiment is on the basis of aforementioned embodiment illustrated in fig. 7, and described interval determines that submodule 212 includes:
Environmental form determines unit 2121, is configured to, according to described ambient sound value, determine that described terminal is presently in The target environment type of environment;
Interval determination unit 2122, is configured to according to described target environment type, determines and described target environment type The broadcast sound volume of corresponding target media file is interval.
As it is shown in figure 9, Fig. 9 be the disclosure according to the another kind of volume adjustment device block diagram shown in an exemplary embodiment, This embodiment is on the basis of aforementioned embodiment illustrated in fig. 8, and described environmental form determines that unit 2121 includes:
Environmental form determines subelement 21211, is configured to and environmental classes interval according to the environmental volume value range prestored The first corresponding relation between type, determines corresponding described in the target environment volume range value interval belonging to described ambient sound value Target environment type.
As shown in Figure 10, Figure 10 is that the disclosure is according to the another kind of volume adjustment device frame shown in an exemplary embodiment Figure, this embodiment is on the basis of aforementioned embodiment illustrated in fig. 8, and described interval determination unit 2122 includes:
Volume value determines subelement 21221, is configured to according to the environmental form preset, presets volume increase value and preset The second corresponding relation between volume decreasing value, determine the target corresponding with described target environment type preset volume increase value and Target presets volume decreasing value;
First computation subunit 21222, is configured to calculate described ambient sound value and described target is preset volume and increased Value and value, obtain the maximum broadcast sound volume value that broadcast sound volume is interval;
Second computation subunit 21223, is configured to calculate described ambient sound value and described target is preset volume and reduced The difference of value, obtains the minimum broadcast sound volume value that broadcast sound volume is interval.
For device embodiment, owing to it corresponds essentially to embodiment of the method, so relevant part sees method in fact The part executing example illustrates.Device embodiment described above is only schematically, wherein said as separating component The unit illustrated can be or may not be physically separate, and the parts shown as unit can be or can also It not physical location, i.e. may be located at a place, or can also be distributed on multiple NE.Can be according to reality Need to select some or all of module therein to realize the purpose of disclosure scheme.Those of ordinary skill in the art are not paying In the case of going out creative work, i.e. it is appreciated that and implements.
Accordingly, the disclosure also provides for a kind of volume adjustment device, for terminal, including:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
When triggering broadcasting target media file and determine the satisfied volume adjusting condition preset, playing described target medium Before file, output volume adjusting information;
When receiving volume adjusting instruction, the broadcast sound volume of described target media file is adjusted to corresponding target volume Value;
Described target media file is play based on described target sound value.
Figure 11 is the structural representation according to a kind of volume adjustment device shown in an exemplary embodiment.Such as Figure 11 institute Showing, according to a kind of volume adjustment device 1100 shown in an exemplary embodiment, this device 1100 can be computer, mobile electricity Words, digital broadcast terminal, messaging devices, game console, tablet device, armarium, body-building equipment, individual digital helps The terminals such as reason.
With reference to Figure 11, device 1100 can include following one or more assembly: processes c assembly 1101, memorizer 1102, Power supply module 1103, multimedia groupware 1104, audio-frequency assembly 1105, the interface 1106 of input/output (I/O), sensor cluster 1107, and communications component 1108.
Process assembly 1101 and generally control the integrated operation of device 1100, such as with display, call, data communication, The operation that camera operation and record operation are associated.Process assembly 1101 and can include that one or more processor 1109 performs Instruction, to complete all or part of step of above-mentioned method.Additionally, process assembly 1101 can include one or more mould Block, it is simple to process between assembly 1101 and other assembly is mutual.Such as, process assembly 1101 and can include multi-media module, With facilitate multimedia groupware 1104 and process between assembly 1101 mutual.
Memorizer 1102 is configured to store various types of data to support the operation at device 1100.These data Example include on device 1100 operation any application program or the instruction of method, contact data, telephone book data, Message, picture, video etc..Memorizer 1102 can by any kind of volatibility or non-volatile memory device or they Combination realizes, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), erasable can Program read-only memory (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic memory, flash memory Reservoir, disk or CD.
The various assemblies that power supply module 1103 is device 1100 provide electric power.Power supply module 1103 can include power management System, one or more power supplys, and other generates, manages and distributes, with for device 1100, the assembly that electric power is associated.
The screen of one output interface of offer that multimedia groupware 1104 is included between described device 1100 and user.? In some embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, Screen may be implemented as touch screen, to receive the input signal from user.Touch panel includes that one or more touch passes Sensor is with the gesture on sensing touch, slip and touch panel.Described touch sensor can not only sense touch or slide dynamic The border made, but also detect the persistent period relevant to described touch or slide and pressure.In certain embodiments, many Media component 1104 includes a front-facing camera and/or post-positioned pick-up head.When device 1100 is in operator scheme, such as shooting mould When formula or video mode, front-facing camera and/or post-positioned pick-up head can receive the multi-medium data of outside.Each preposition shooting Head and post-positioned pick-up head can be a fixing optical lens system or have focal length and optical zoom ability.
Audio-frequency assembly 1105 is configured to output and/or input audio signal.Such as, audio-frequency assembly 1105 includes a wheat Gram wind (MIC), when device 1100 is in operator scheme, during such as call model, logging mode and speech recognition mode, mike quilt It is configured to receive external audio signal.The audio signal received can be further stored at memorizer 1102 or via communication Assembly 1108 sends.In certain embodiments, audio-frequency assembly 1105 also includes a speaker, is used for exporting audio signal.
I/O interface 1106 provides interface, above-mentioned peripheral interface module for processing between assembly 1101 and peripheral interface module Can be keyboard, put striking wheel, button etc..These buttons may include but be not limited to: home button, volume button, start button and Locking press button.
Sensor cluster 1107 includes one or more sensor, for providing the state of various aspects to comment for device 1100 Estimate.Such as, what sensor cluster 1107 can detect device 1100 opens/closed mode, the relative localization of assembly, such as institute Stating display and keypad that assembly is device 1100, sensor cluster 1107 can also detect device 1100 or device 1,100 1 The position change of individual assembly, the presence or absence that user contacts with device 1100, device 1100 orientation or acceleration/deceleration and dress Put the variations in temperature of 1100.Sensor cluster 1107 can include proximity transducer, is configured to do not having any physics The existence of object near detection during contact.Sensor cluster 1107 can also include optical sensor, as CMOS or ccd image sense Device, for using in imaging applications.In certain embodiments, this sensor cluster 1107 can also include acceleration sensing Device, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 1108 is configured to facilitate the communication of wired or wireless mode between device 1100 and miscellaneous equipment.Dress Put 1100 and can access wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.Exemplary at one In embodiment, broadcast singal or broadcast that communications component 1108 receives from external broadcasting management system via broadcast channel are relevant Information.In one exemplary embodiment, described communications component 1108 also includes near-field communication (NFC) module, to promote short distance Communication.Such as, can be based on RF identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technology realize.
In the exemplary embodiment, device 1100 can be by one or more application specific integrated circuits (ASIC), numeral Signal processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electron component realize, be used for performing said method.
In the exemplary embodiment, a kind of non-transitory computer-readable recording medium including instruction, example are additionally provided As included the memorizer 1102 of instruction, above-mentioned instruction can have been performed said method by the processor 1109 of device 1100.Example If, described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, soft Dish and optical data storage devices etc..
Wherein, when the instruction in described storage medium is performed by described processor so that device 1100 is able to carry out one Plant volume adjusting method, including:
When triggering broadcasting target media file and determine the satisfied volume adjusting condition preset, playing described target medium Before file, output volume adjusting information;
When receiving volume adjusting instruction, the broadcast sound volume of described target media file is adjusted to corresponding target volume Value;
Described target media file is play based on described target sound value.
Those skilled in the art, after considering description and putting into practice invention disclosed herein, will readily occur to its of the disclosure Its embodiment.The disclosure is intended to any modification, purposes or the adaptations of the disclosure, these modification, purposes or Person's adaptations is followed the general principle of the disclosure and includes the undocumented common knowledge in the art of the disclosure Or conventional techniques means.Description and embodiments is considered only as exemplary, and the true scope of the disclosure and spirit are by following Claim point out.
The foregoing is only the preferred embodiment of the disclosure, not in order to limit the disclosure, all essences in the disclosure Within god and principle, any modification, equivalent substitution and improvement etc. done, should be included within the scope of disclosure protection.

Claims (13)

1. a volume adjusting method, for terminal, it is characterised in that described method includes:
When triggering broadcasting target media file and determine the satisfied volume adjusting condition preset, playing described target media file Before, output volume adjusting information;
When receiving volume adjusting instruction, the broadcast sound volume of described target media file is adjusted to corresponding target sound value;
Described target media file is play based on described target sound value.
Method the most according to claim 1, it is characterised in that arbitrary or when appointing several condition meeting, determines full The volume adjusting condition that foot is preset:
The broadcast sound volume value not higher than first threshold of current goal media file or be not less than Second Threshold, wherein, described first Threshold value is less than described Second Threshold;
The playing duration of described target media file is less than preset duration.
Method the most according to claim 2, it is characterised in that determine first threshold or Second Threshold, including:
Gather described terminal by audio collecting device and be presently in the ambient sound value of environment;
Determine that according to described ambient sound value the broadcast sound volume of described target media file is interval;
Determining that the interval minima of described broadcast sound volume is first threshold, the interval maximum of described broadcast sound volume is the second threshold Value.
Method the most according to claim 3, it is characterised in that described determine described target matchmaker according to described ambient sound value The broadcast sound volume of body file is interval, including:
According to described ambient sound value, determine that described terminal is presently in the target environment type of environment;
According to described target environment type, determine the broadcast sound volume district of the target media file corresponding with described target environment type Between.
Method the most according to claim 4, it is characterised in that described according to described ambient sound value, determines described terminal It is presently in the target environment type of environment, including:
According to the first corresponding relation between environmental volume value range interval and the environmental form prestored, determine described environmental volume The described target environment type that target environment volume range value interval belonging to value is corresponding.
Method the most according to claim 4, it is characterised in that determine the target medium corresponding with described target environment type The broadcast sound volume of file is interval, including:
According to default environmental form, preset volume increase value and the second corresponding relation preset between volume decreasing value, determine The target corresponding with described target environment type presets volume increase value and target presets volume decreasing value;
Calculating described ambient sound value and described target presets volume increase value and value, the maximum obtaining broadcast sound volume interval is broadcast Playback value;
Calculating described ambient sound value and described target presets the difference of volume decreasing value, the minimum obtaining broadcast sound volume interval is broadcast Playback value.
7. a volume adjustment device, for terminal, it is characterised in that described device includes:
Output module, when being configured to trigger broadcasting target media file and determine the satisfied volume adjusting condition preset, is broadcasting Before putting described target media file, output volume adjusting information;
Volume adjusting module, when being configured to receive volume adjusting instruction, regulates the broadcast sound volume of described target media file To corresponding target sound value;
Playing module, is configured to play described target media file based on described target sound value.
Device the most according to claim 7, it is characterised in that described output module is meeting arbitrary or appointing several During part, determine and meet the volume adjusting condition preset:
The broadcast sound volume value not higher than first threshold of current goal media file or be not less than Second Threshold, wherein, described first Threshold value is less than described Second Threshold;
The playing duration of described target media file is less than preset duration.
Device the most according to claim 8, it is characterised in that described output module includes:
Gather submodule, be configured to the described terminal of audio collecting device collection and be presently in the ambient sound value of environment;
Interval determines submodule, is configured to determine the broadcast sound volume district of described target media file according to described ambient sound value Between;
Determine submodule, be configured to determine that the minima in described broadcast sound volume interval is first threshold, described broadcast sound volume district Between maximum be Second Threshold.
Device the most according to claim 9, it is characterised in that described interval determines that submodule includes:
Environmental form determines unit, is configured to, according to described ambient sound value, determine that described terminal is presently in the mesh of environment Mark environmental form;
Interval determination unit, is configured to, according to described target environment type, determine the mesh corresponding with described target environment type The broadcast sound volume of mark media file is interval.
11. devices according to claim 10, it is characterised in that described environmental form determines that unit includes:
Environmental form determines subelement, the be configured between and environmental form interval according to the environmental volume value range that prestores One corresponding relation, determines the described target environment class that the target environment volume range value interval belonging to described ambient sound value is corresponding Type.
12. devices according to claim 10, it is characterised in that described interval determination unit includes:
Volume value determines subelement, is configured to according to the environmental form preset, presets volume increase value and preset volume reduction The second corresponding relation between value, determines that the target corresponding with described target environment type presets volume increase value and target is preset Volume decreasing value;
First computation subunit, is configured to calculate described ambient sound value and described target presets volume increase value and value, Obtain the maximum broadcast sound volume value that broadcast sound volume is interval;
Second computation subunit, is configured to calculate described ambient sound value and described target presets the difference of volume decreasing value, Obtain the minimum broadcast sound volume value that broadcast sound volume is interval.
13. 1 kinds of volume adjustment devices, for terminal, it is characterised in that including:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
When triggering broadcasting target media file and determine the satisfied volume adjusting condition preset, playing described target media file Before, output volume adjusting information;
When receiving volume adjusting instruction, the broadcast sound volume of described target media file is adjusted to corresponding target sound value;
Described target media file is play based on described target sound value.
CN201610703685.5A 2016-08-22 2016-08-22 Volume adjusting method and device Pending CN106331338A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610703685.5A CN106331338A (en) 2016-08-22 2016-08-22 Volume adjusting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610703685.5A CN106331338A (en) 2016-08-22 2016-08-22 Volume adjusting method and device

Publications (1)

Publication Number Publication Date
CN106331338A true CN106331338A (en) 2017-01-11

Family

ID=57741269

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610703685.5A Pending CN106331338A (en) 2016-08-22 2016-08-22 Volume adjusting method and device

Country Status (1)

Country Link
CN (1) CN106331338A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106919362A (en) * 2017-03-15 2017-07-04 微鲸科技有限公司 Opening sound volume adjusting method and device
CN107122156A (en) * 2017-03-09 2017-09-01 深圳市金立通信设备有限公司 A kind of method for controlling volume and terminal
CN107146613A (en) * 2017-04-10 2017-09-08 北京猎户星空科技有限公司 A kind of voice interactive method and device
CN107181871A (en) * 2017-06-15 2017-09-19 维沃移动通信有限公司 The method and mobile terminal of a kind of volume adjusting
CN107360326A (en) * 2017-07-17 2017-11-17 北京小米移动软件有限公司 terminal volume adjusting processing method and terminal
WO2018205423A1 (en) * 2017-05-08 2018-11-15 深圳市科迈爱康科技有限公司 Method and terminal for playing audio, and computer-readable storage medium
CN108966002A (en) * 2018-08-20 2018-12-07 上海理工大学 A kind of device and method using micro- expression adjustment volume
CN109582274A (en) * 2018-11-30 2019-04-05 北京微播视界科技有限公司 Volume adjusting method, device, electronic equipment and computer readable storage medium
CN113055784A (en) * 2021-03-15 2021-06-29 北京达佳互联信息技术有限公司 Volume adjusting method and device
WO2021129090A1 (en) * 2019-12-27 2021-07-01 华为技术有限公司 Volume adjustment method and system, and device
CN114185510A (en) * 2021-11-02 2022-03-15 深圳市冠旭电子股份有限公司 Sound box volume adjusting method and system, sound equipment and storage medium
CN114630246A (en) * 2020-12-10 2022-06-14 比亚迪股份有限公司 Sound adjusting device, method and system
CN115278353A (en) * 2022-07-27 2022-11-01 三星电子(中国)研发中心 Playing information adjusting method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103078997A (en) * 2012-12-20 2013-05-01 广东欧珀移动通信有限公司 Method and system for setting volume of mobile terminal and mobile terminal
CN103761063A (en) * 2013-12-19 2014-04-30 北京百度网讯科技有限公司 Method and device for controlling audio output volume in playing device
CN104105031A (en) * 2014-06-27 2014-10-15 中科创达软件股份有限公司 Volume adjusting method and device
CN105244048A (en) * 2015-09-25 2016-01-13 小米科技有限责任公司 Audio play control method and apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103078997A (en) * 2012-12-20 2013-05-01 广东欧珀移动通信有限公司 Method and system for setting volume of mobile terminal and mobile terminal
CN103761063A (en) * 2013-12-19 2014-04-30 北京百度网讯科技有限公司 Method and device for controlling audio output volume in playing device
CN104105031A (en) * 2014-06-27 2014-10-15 中科创达软件股份有限公司 Volume adjusting method and device
CN105244048A (en) * 2015-09-25 2016-01-13 小米科技有限责任公司 Audio play control method and apparatus

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107122156A (en) * 2017-03-09 2017-09-01 深圳市金立通信设备有限公司 A kind of method for controlling volume and terminal
CN106919362B (en) * 2017-03-15 2020-06-12 微鲸科技有限公司 Method and device for adjusting starting-up volume
CN106919362A (en) * 2017-03-15 2017-07-04 微鲸科技有限公司 Opening sound volume adjusting method and device
CN107146613A (en) * 2017-04-10 2017-09-08 北京猎户星空科技有限公司 A kind of voice interactive method and device
WO2018205423A1 (en) * 2017-05-08 2018-11-15 深圳市科迈爱康科技有限公司 Method and terminal for playing audio, and computer-readable storage medium
CN107181871A (en) * 2017-06-15 2017-09-19 维沃移动通信有限公司 The method and mobile terminal of a kind of volume adjusting
CN107360326A (en) * 2017-07-17 2017-11-17 北京小米移动软件有限公司 terminal volume adjusting processing method and terminal
CN107360326B (en) * 2017-07-17 2020-07-03 北京小米移动软件有限公司 Terminal volume adjustment processing method and volume adjustment terminal
CN108966002A (en) * 2018-08-20 2018-12-07 上海理工大学 A kind of device and method using micro- expression adjustment volume
CN108966002B (en) * 2018-08-20 2020-11-03 上海理工大学 Device and method for adjusting volume by using micro expression
CN109582274A (en) * 2018-11-30 2019-04-05 北京微播视界科技有限公司 Volume adjusting method, device, electronic equipment and computer readable storage medium
WO2021129090A1 (en) * 2019-12-27 2021-07-01 华为技术有限公司 Volume adjustment method and system, and device
CN114630246A (en) * 2020-12-10 2022-06-14 比亚迪股份有限公司 Sound adjusting device, method and system
CN114630246B (en) * 2020-12-10 2023-08-08 比亚迪股份有限公司 Sound adjusting device, method and system
CN113055784A (en) * 2021-03-15 2021-06-29 北京达佳互联信息技术有限公司 Volume adjusting method and device
CN114185510A (en) * 2021-11-02 2022-03-15 深圳市冠旭电子股份有限公司 Sound box volume adjusting method and system, sound equipment and storage medium
CN114185510B (en) * 2021-11-02 2023-10-20 深圳市冠旭电子股份有限公司 Sound box volume adjusting method and system, sound equipment and storage medium
CN115278353A (en) * 2022-07-27 2022-11-01 三星电子(中国)研发中心 Playing information adjusting method and device

Similar Documents

Publication Publication Date Title
CN106331338A (en) Volume adjusting method and device
CN105451111B (en) Earphone control method for playing back, device and terminal
EP3163748B1 (en) Method, device and terminal for adjusting volume
CN105828201B (en) Method for processing video frequency and device
CN104767860B (en) Income prompting method, device and terminal
CN105812574A (en) Volume adjusting method and device
CN106354471A (en) Method and device for audio play control and electronic device
CN104636110B (en) Control the method and device of volume
CN107493500A (en) Multimedia resource player method and device
CN105100897B (en) The control method and device fast played
CN107204883A (en) Network failure processing method and device
CN104112459B (en) Method and apparatus for playing audio data
CN106878558A (en) Dropproof based reminding method and device
CN106131393A (en) Take pictures reminding method and device
CN105426218A (en) Method and device for controlling audio playing
CN106941635B (en) Speaker connection method and device
CN105263044A (en) Method and device for adjusting smart home equipment
CN107743244A (en) Net cast method and device
CN106453032B (en) Information-pushing method and device, system
CN105554631B (en) Audio switching method, device and electronic equipment
CN104835516A (en) Music playing method and apparatus, and intelligent terminal
CN105898573A (en) Method and device for multimedia file playing
CN105430469B (en) Playback method, device, terminal and the server of audio, video data
CN106375846B (en) The processing method and processing device of live audio
CN107835458A (en) Player method, device and the electronic equipment of content of multimedia

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170111