CN105376674A - Volume control method and device - Google Patents

Volume control method and device Download PDF

Info

Publication number
CN105376674A
CN105376674A CN201510916372.3A CN201510916372A CN105376674A CN 105376674 A CN105376674 A CN 105376674A CN 201510916372 A CN201510916372 A CN 201510916372A CN 105376674 A CN105376674 A CN 105376674A
Authority
CN
China
Prior art keywords
audio data
sound box
wireless sound
ambient sound
collection
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.)
Granted
Application number
CN201510916372.3A
Other languages
Chinese (zh)
Other versions
CN105376674B (en
Inventor
黄浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510916372.3A priority Critical patent/CN105376674B/en
Publication of CN105376674A publication Critical patent/CN105376674A/en
Application granted granted Critical
Publication of CN105376674B publication Critical patent/CN105376674B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The embodiment of the invention discloses a volume control method and device. The volume control method comprises the following steps that: when a current data acquisition time length is smaller than a preset time length, environmental audio data in a playing area of a wireless sound box are acquired, the current data acquisition time length is updated based on the acquired environmental audio data; and when the current data acquisition time length is larger than or equal to the preset time length, the volume of the wireless sound box is adjusted to a preset volume value. With the volume control method and device of the embodiment of the invention adopted, improvement of the intelligence and convenience of volume adjustment of the wireless sound box can be benefitted, and improvement of user experience can be benefitted.

Description

A kind of method for controlling volume and device
Technical field
The present invention relates to audio amplifier volume controlling technique field, be specifically related to a kind of method for controlling volume and device.
Background technology
Wireless sound box is more and more universal, as the wireless music system of SONOS.These wireless sound boxes are integrated with processor and network interface, can access the Streaming Media music of the Internet, according to the selection of user, directly play from Network Capture music sources.The application program that wireless music system is generally installed by mobile terminal (as mobile phone and panel computer) manages.After mobile terminal having been installed special application program, can by this application program access wireless sound box, can Streaming Media music on view Internet, and select song to be pushed to wireless sound box to play.
The present inventor finds in research process, wireless sound box play music and volume larger when, people residing for wireless sound box play area talk time, because audible sound is larger, the normal talk of people can be affected, at this moment just need the volume manually going to regulate audio amplifier.
Summary of the invention
Embodiments providing a kind of method for controlling volume and device, to promoting the intelligent and convenience of wireless sound box volume adjusting, promoting Consumer's Experience.
Embodiment of the present invention first aspect provides a kind of method for controlling volume being applied to wireless sound box, comprising:
Wireless sound box, when current data acquisition duration is less than preset duration, gathers the ambient sound audio data in the play area of wireless sound box, and upgrades current data acquisition duration based on the ambient sound audio data of described collection;
Described wireless sound box, when current data acquisition duration is more than or equal to preset duration, adjusts the volume of described wireless sound box to presetting volume value.
First above-mentioned wireless sound box gathers ambient sound audio data in the play area of wireless sound box to upgrade the data acquisition duration of ambient sound audio data, secondly, judge whether data acquisition duration is more than or equal to preset duration, if not, then gather ambient sound audio data with more new data collection duration, if so, the volume of wireless sound box is then adjusted to presetting volume value.Visible, described wireless sound box is when the volume without the need to user's manual adjustments wireless sound box, the ambient sound audio data that automatically can detect the play area of wireless sound box is with more new data collection duration, and the volume adjusting wireless sound box when this data acquisition duration is more than or equal to preset duration extremely presets volume value, be conducive to the intelligent and convenience promoting wireless sound box volume adjusting, promote Consumer's Experience.
In the first possible implementation of embodiment of the present invention first aspect, the ambient sound audio data in the play area of described collection wireless sound box, and upgrade current data acquisition duration based on the ambient sound audio data of described collection, comprising:
Described collection wireless sound box gathers the ambient sound audio data in the play area of period collection wireless sound box first;
The ambient sound audio data that described collection wireless sound box detects described collection whether with the audio user Data Matching prestored;
If not, then described collection wireless sound box upgrades current data acquisition duration is zero;
If, then described collection wireless sound box gathers the period and second based on described first and gathers data acquisition duration corresponding to period, upgrade current data acquisition duration, described second to gather the period be the collection period gathering period adjacent previous ambient sound audio data with described first.Wherein, each gathers data acquisition duration corresponding to period should add for current collection duration the data acquisition duration that the adjacent previous collection period is corresponding, that is, current data acquisition duration corresponding to current collection period should add for current collection duration the data acquisition duration that the adjacent previous collection period is corresponding.So, supposing first, to gather the collection duration of period be t1, and first gathers period adjacent previous with this to gather data acquisition duration corresponding to period be t2, then the current data acquisition duration of the first collection period should be t1+t2.
In conjunction with the first possible implementation of embodiment of the present invention first aspect, in the implementation that embodiment of the present invention first aspect the second is possible, the ambient sound audio data that described wireless sound box detects described collection whether with the audio user Data Matching prestored, comprising:
Described wireless sound box extracts signal frequency range in described ambient sound audio data and belongs to the reference audio data of default band limits;
Described wireless sound box detect described reference audio data whether with the audio user Data Matching prestored.
In conjunction with the implementation that embodiment of the present invention first aspect or first aspect the first or the second are possible, in the third possible implementation of embodiment of the present invention first aspect, after described wireless sound box adjusts the extremely default volume value of volume of described wireless sound box, described method also comprises:
Described wireless sound box gathers the ambient sound audio data of the play area of described wireless sound box;
When the ambient sound audio data of described collection is not mated with the audio user data prestored, described wireless sound box recovers the volume of described wireless sound box.
In conjunction with embodiment of the present invention first aspect or first aspect the first or the second or the third possible implementation, in embodiment of the present invention first aspect the 4th kind of possible implementation, described wireless sound box gathers the ambient sound audio data of the play area of wireless sound box, comprising:
Described wireless sound box gathers the ambient sound audio data of the play area of described wireless sound box by the audio collection unit of described wireless sound box;
Or,
Described wireless sound box gathers the ambient sound audio data of the play area of described wireless sound box by the terminal equipment communicated to connect with described wireless sound box;
Described wireless sound box receives the described ambient sound audio data that described terminal equipment sends.
Embodiment of the present invention second aspect provides a kind of sound volume control device being applied to wireless sound box, comprising:
Often updating block, for when current data acquisition duration is less than preset duration, gathers the ambient sound audio data in the play area of wireless sound box, and upgrades current data acquisition duration based on the ambient sound audio data of described collection;
Volume adjustment unit, for when current data acquisition duration is more than or equal to preset duration, adjusts the volume of described wireless sound box to presetting volume value.
In the first possible implementation of embodiment of the present invention second aspect, described duration updating block comprises:
First collecting unit, for gathering the ambient sound audio data in the play area of period collection wireless sound box first;
Detecting unit, for detect described collection ambient sound audio data whether with the audio user Data Matching prestored;
First updating block, when the ambient sound audio data for detecting described collection when described detecting unit is not mated with the audio user data prestored, then upgrading current data acquisition duration is zero;
Second updating block, during for the ambient sound audio data detecting described collection when described detecting unit and the audio user Data Matching prestored, then gather the period and second based on described first and gather data acquisition duration corresponding to period, upgrade current data acquisition duration, described second to gather the period be the collection period gathering period adjacent previous ambient sound audio data with described first.Wherein, each gathers data acquisition duration corresponding to period should add for current collection duration the data acquisition duration that the adjacent previous collection period is corresponding, that is, current data acquisition duration corresponding to current collection period should add for current collection duration the data acquisition duration that the adjacent previous collection period is corresponding.So, supposing first, to gather the collection duration of period be t1, and first gathers period adjacent previous with this to gather data acquisition duration corresponding to period be t2, then the current data acquisition duration of the first collection period should be t1+t2.
In conjunction with the first possible implementation of embodiment of the present invention second aspect, in the implementation that embodiment of the present invention second aspect the second is possible, described detecting unit specifically for:
Extract signal frequency range in described ambient sound audio data and belong to the reference audio data of default band limits;
Detect described reference audio data whether with the audio user Data Matching prestored.
In conjunction with the implementation that embodiment of the present invention second aspect or second aspect the first or the second are possible, in the third possible implementation of embodiment of the present invention second aspect, described sound volume control device also comprises:
Second collecting unit, the volume for adjusting described wireless sound box at described volume adjustment unit gathers the ambient sound audio data of the play area of described wireless sound box after extremely presetting volume value;
Recovery unit, for when the ambient sound audio data of described collection is not mated with the audio user data prestored, recovers the volume of described wireless sound box.
In conjunction with embodiment of the present invention second aspect or second aspect the first or the second or the third possible implementation, in embodiment of the present invention second aspect the 4th kind of possible implementation, the specific implementation that described duration updating block gathers the ambient sound audio data of the play area of wireless sound box is:
The ambient sound audio data of the play area of described wireless sound box is gathered by the audio collection unit of described wireless sound box;
Or,
The ambient sound audio data of the play area of described wireless sound box is gathered by the terminal equipment communicated to connect with described wireless sound box;
Receive the described ambient sound audio data that described terminal equipment sends.
The embodiment of the present invention third aspect provides a kind of sound volume control device being applied to wireless sound box, this sound volume control device has and to realize in above-described embodiment each function described by " unit ", described function can pass through hardware implementing, also can perform corresponding software simulating by hardware.Described hardware or software comprise one or more unit corresponding with above-mentioned functions.
Embodiment of the present invention fourth aspect provides a kind of wireless sound box, and the structure of this wireless sound box comprises processor and microphone, digital signal processing circuit, and described processor is configured to support that wireless sound box performs corresponding function in above-described embodiment.Described microphone and Digital Signal Processing electric current are for gathering the ambient sound of wireless sound box to obtain ambient sound audio data.Described wireless sound box also comprises memory, and described memory is used for being coupled with processor, and it preserves program command and the data of wireless sound box necessity.
Can find out, in the embodiment of the present invention, first wireless sound box gathers ambient sound audio data in the play area of wireless sound box to upgrade the data acquisition duration of ambient sound audio data, secondly, judge whether data acquisition duration is more than or equal to preset duration, if not, then gather ambient sound audio data with more new data collection duration, if so, the volume of wireless sound box is then adjusted to presetting volume value.Visible, described wireless sound box is when the volume without the need to user's manual adjustments wireless sound box, the ambient sound audio data that automatically can detect the play area of wireless sound box is with more new data collection duration, and the volume adjusting wireless sound box when this data acquisition duration is more than or equal to preset duration extremely presets volume value, be conducive to the intelligent and convenience promoting wireless sound box volume adjusting, promote Consumer's Experience.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the simplification framework composition frame chart of the wireless sound box realizing method for controlling volume disclosed in the embodiment of the present invention;
Fig. 2 is the schematic flow sheet of a kind of method for controlling volume disclosed in the inventive method embodiment;
Fig. 2 .1 is the part run schematic diagram of a kind of method for controlling volume disclosed in the inventive method embodiment;
Fig. 2 .2 is the part run schematic diagram of a kind of method for controlling volume disclosed in the inventive method embodiment;
Fig. 3 is the functional unit composition block diagram of a kind of sound volume control device disclosed in apparatus of the present invention embodiment.
Embodiment
The present invention program is understood better in order to make those skilled in the art person, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Term " first ", " second " etc. in specification of the present invention and claims and above-mentioned accompanying drawing are for distinguishing different object, instead of for describing particular order.In addition, term " comprises " and " having " and their any distortion, and intention is to cover not exclusive comprising.Such as contain the process of series of steps or unit, method, system, product or equipment and be not defined in the step or unit listed, but also comprise the step or unit do not listed alternatively, or also comprise alternatively for other intrinsic steps of these processes, method, product or equipment or unit.
Mention that " embodiment " means in this article, the special characteristic in conjunction with the embodiments described, structure or characteristic can comprise at least one embodiment of the present invention.Each position in the description occurs that this phrase might not all refer to identical embodiment, neither with other embodiment mutual exclusion independently or alternative embodiment.Those skilled in the art's explicitly and implicitly understanding, embodiment described herein can combine with other embodiment.
In order to better understand a kind of method for controlling volume and device disclosed in the embodiment of the present invention, first the wireless sound box that the embodiment of the present invention is suitable for is described below.Refer to Fig. 1, Fig. 1 is a kind of simplification framework composition frame chart realizing the wireless sound box of method for controlling volume of the present invention that the embodiment of the present invention provides; .Specifically at least one processor P rocessor101 can be comprised in the structure composed figure of the simplification of this wireless sound box 100, at least one memory MemroyUnit102, at least one communication bus BUS103, reception/transtation mission circuit 104, antenna 105, at least one display screen DisplayScreen107, microphone Microphone108, loud speaker Speaker109, physical button Keys111, bluetooth controller BluetoothController113, digital signal processing circuit 114; Wherein, above-mentioned processor 101 communicating by receptions/transtation mission circuit 104 and antenna 105 realization and External cell net; Described microphone can gather the ambient sound in the play area of the loud speaker of wireless sound box, and by digital signal processing circuit 114, the ambient sound received is transformed into ambient sound audio data, the ambient sound in parlor can be gathered as the microphone in the wireless sound box in parlor, and be transformed into ambient sound audio data by digital signal processing circuit 114, wherein, the collection period that microphone gathers ambient sound can be the fixed cycle, and each cycle duration can carry out in advance setting and store in the memory 102; At least one memory 102 described can be such as random access memory (RAM) or nonvolatile memory; Also instruction set is stored in this at least one memory, this instruction set is integrated in operating system or by the executable application program of processor 101, this instruction set can bootstrap processor 101 perform and concrete disclosed method for controlling volume in the embodiment of the present invention.
Processor 101 in above-mentioned wireless sound box 100 can be coupled at least one memory described, instruction set is prestored in described memory 102, described instruction set specifically comprises collection duration update module, Audio Control Module, described memory 102 also stores kernel module further, and described kernel module comprises operating system (as WINDOWS tM, ANDROID tM, IOS tMdeng).Described processor 101 calls described instruction set to perform the method for controlling volume disclosed in the embodiment of the present invention, specifically comprises the following steps:
Duration update module in processor 101 run memory 102 of described wireless sound box 100, when current data acquisition duration is less than preset duration, gather the ambient sound audio data in the play area of wireless sound box, and upgrade current data acquisition duration based on the ambient sound audio data of described collection;
Audio Control Module in processor 101 run memory 102 of described wireless sound box 100, when current data acquisition duration is more than or equal to preset duration, adjusts the volume of described wireless sound box to presetting volume value.
Optionally, the duration update module in described processor 101 run memory 102 with the ambient sound audio data gathered in the play area of wireless sound box to upgrade the concrete mode of the data acquisition duration of described ambient sound audio data is: described processor 101 gathers the ambient sound audio data in the play area of period collection wireless sound box first; The ambient sound audio data that described processor 101 detects described collection whether with the audio user Data Matching prestored; If not, then described processor 101 upgrades current data acquisition duration is zero; If, then described processor 101 gathers the period and second based on described first and gathers data acquisition duration corresponding to period, upgrade current data acquisition duration, described second to gather the period be the collection period gathering period adjacent previous ambient sound audio data with described first.Wherein, each gathers data acquisition duration corresponding to period should add for current collection duration the data acquisition duration that the adjacent previous collection period is corresponding, that is, current data acquisition duration corresponding to current collection period should add for current collection duration the data acquisition duration that the adjacent previous collection period is corresponding.So, supposing first, to gather the collection duration of period be t1, and first gathers period adjacent previous with this to gather data acquisition duration corresponding to period be t2, then the current data acquisition duration of the first collection period should be t1+t2.
For example, suppose that the collection duration gathering the period is 20ms, second to gather data acquisition duration corresponding to period be 40ms, then described wireless sound box gathers data acquisition duration 40ms corresponding to period based on the collection duration 20ms and second that described first gathers the period, upgrading first, to gather period current data acquisition duration be 20ms and 40ms sum, i.e. 60ms.
Optionally, whether described processor 101 detects the ambient sound audio data of described collection and with the concrete mode of the audio user Data Matching prestored is: described processor 101 extracts signal frequency range in described ambient sound audio data and belongs to the reference audio data of default band limits; Described processor 101 detect described reference audio data whether with the audio user Data Matching prestored.
Optionally, after described processor 101 adjusts the extremely default volume value of volume of described wireless sound box, described processor 101 is also for gathering the ambient sound audio data of the play area of described wireless sound box; When the ambient sound audio data of described collection is not mated with the audio user data prestored, recover the volume of described wireless sound box.
Optionally, described processor 101 gathers the specific implementation of the ambient sound audio data of the play area of wireless sound box and is: described processor 101 gathers the ambient sound audio data of the play area of described wireless sound box by the audio collection unit of described wireless sound box;
Or,
Described processor 101 gathers the ambient sound audio data of the play area of described wireless sound box by the terminal equipment communicated to connect with described wireless sound box, and described processor 101 receives the described ambient sound audio data that described terminal equipment sends.
Can find out, in the embodiment of the present invention, first wireless sound box gathers ambient sound audio data in the play area of wireless sound box to upgrade the data acquisition duration of ambient sound audio data, secondly, judge whether data acquisition duration is more than or equal to preset duration, if not, then gather ambient sound audio data with more new data collection duration, if so, the volume of wireless sound box is then adjusted to presetting volume value.Visible, described wireless sound box is when the volume without the need to user's manual adjustments wireless sound box, the ambient sound audio data that automatically can detect the play area of wireless sound box is with more new data collection duration, and the volume adjusting wireless sound box when this data acquisition duration is more than or equal to preset duration extremely presets volume value, be conducive to the intelligent and convenience promoting wireless sound box volume adjusting, promote Consumer's Experience.
Consistent with the technical scheme of foregoing description, as a specific embodiment, Fig. 2 is the schematic flow sheet of the concrete implementation of the method for controlling volume comprising wireless sound box.Although method for controlling volume described herein performs based on the wireless sound box 100 shown in Fig. 1, it should be noted that the carrying out practically environment of method for controlling volume disclosed in the embodiment of the present invention is not limited only to above-mentioned wireless sound box.
As shown in Figure 2, disclosed in the inventive method embodiment, method for controlling volume specifically comprises the following steps:
S201, wireless sound box, when current data acquisition duration is less than preset duration, gathers the ambient sound audio data in the play area of wireless sound box, and upgrades current data acquisition duration based on the ambient sound audio data of described collection;
In the embodiment of the present invention, the specific implementation that described wireless sound box gathers the ambient sound audio data of the play area of wireless sound box is:
Described wireless sound box gathers the ambient sound audio data of the play area of described wireless sound box by the audio collection unit of described wireless sound box;
Or,
Described wireless sound box gathers the ambient sound audio data of the play area of described wireless sound box by the terminal equipment communicated to connect with described wireless sound box; Wherein, described terminal equipment can be such as the electronic equipments such as smart mobile phone, other wireless sound boxes, panel computer, wearable device (as intelligent watch, Intelligent bracelet).
Described wireless sound box receives the described ambient sound audio data that described terminal equipment sends.
Further, as shown in Fig. 2 .1, described wireless sound box gathers the ambient sound audio data in the play area of wireless sound box, and comprises the following steps based on the specific implementation that the ambient sound audio data of described collection upgrades current data acquisition duration:
S2011, described wireless sound box gathers the ambient sound audio data in the play area of period collection wireless sound box first;
Wherein, the described first collection duration gathering the period can be preset by user, also can be write in the firmware of wireless sound box before wireless sound box dispatches from the factory.
S2012, the ambient sound audio data that described wireless sound box detects described collection whether with the audio user Data Matching prestored;
Wherein, the described audio user data prestored such as can comprise the user voice data in 65Hz to 1100Hz scope, when this frequency range is normally spoken with people, the frequency range of sound is comparatively mated, and is conducive to the voice in accurate environment-identification voice data, reduces identification error.
If not, then step S2013 is performed;
If so, then step S2014 is performed;
S2013, it is zero that described wireless sound box upgrades current data acquisition duration;
Wherein, the initial value of the data acquisition duration of described ambient sound audio data can be such as zero.
S2014, described wireless sound box gathers the period and second based on described first and gathers data acquisition duration corresponding to period, upgrade current data acquisition duration, described second to gather the period be the collection period gathering period adjacent previous ambient sound audio data with described first.
Wherein, each gathers data acquisition duration corresponding to period should add for current collection duration the data acquisition duration that the adjacent previous collection period is corresponding, that is, current data acquisition duration corresponding to current collection period should add for current collection duration the data acquisition duration that the adjacent previous collection period is corresponding.So, supposing first, to gather the collection duration of period be t1, and first gathers period adjacent previous with this to gather data acquisition duration corresponding to period be t2, then the current data acquisition duration of the first collection period should be t1+t2.
For example, suppose that the collection duration gathering the period is 20ms, second to gather data acquisition duration corresponding to period be 40ms, then described wireless sound box gathers data acquisition duration 40ms corresponding to period based on the collection duration 20ms and second that described first gathers the period, upgrading first, to gather period current data acquisition duration be 20ms and 40ms sum, i.e. 60ms.
Wherein, as shown in Fig. 2 .2, whether the ambient sound audio data that described step S2012 wireless sound box detects described collection comprises the following steps with the specific implementation of the audio user Data Matching prestored:
S2012-a, described wireless sound box extracts signal frequency range in described ambient sound audio data and belongs to the reference audio data of default band limits;
S2012-b, described wireless sound box detect described reference audio data whether with the audio user Data Matching prestored.
Wherein, described default band limits can be such as 65Hz to 1100Hz, and when this frequency range is normally spoken with people, the frequency range of sound is comparatively mated, and is conducive to the voice in accurate environment-identification voice data, reduces identification error.
S202, described wireless sound box, when current data acquisition duration is more than or equal to preset duration, adjusts the volume of described wireless sound box to presetting volume value.
Can find out, in the embodiment of the present invention, first wireless sound box gathers ambient sound audio data in the play area of wireless sound box to upgrade the data acquisition duration of ambient sound audio data, secondly, judge whether data acquisition duration is more than or equal to preset duration, if not, then gather ambient sound audio data with more new data collection duration, if so, the volume of wireless sound box is then adjusted to presetting volume value.Visible, described wireless sound box is when the volume without the need to user's manual adjustments wireless sound box, the ambient sound audio data that automatically can detect the play area of wireless sound box is with more new data collection duration, and the volume adjusting wireless sound box when this data acquisition duration is more than or equal to preset duration extremely presets volume value, be conducive to the intelligent and convenience promoting wireless sound box volume adjusting, promote Consumer's Experience.
Optionally, in the embodiment of the present invention, after described wireless sound box adjusts the extremely default volume value of volume of described wireless sound box, described wireless sound box can also perform following steps to recover volume:
Described wireless sound box gathers the ambient sound audio data of the play area of described wireless sound box;
Described wireless sound box, when the ambient sound audio data of described collection is not mated with the audio user data prestored, recovers the volume of described wireless sound box.
Wherein, the volume of the wireless sound box of described recovery can be the volume that the volume of described wireless volume is adjusted to before default volume value.
Be apparatus of the present invention embodiment below, the method that apparatus of the present invention embodiment realizes for performing the inventive method embodiment.
Based on the composition framework of the wireless sound box 100 shown in Fig. 1, a kind of sound volume control device that the embodiment of the invention discloses.Refer to Fig. 3, Fig. 3 is the functional unit composition block diagram of sound volume control device 300 disclosed in apparatus of the present invention embodiment.
As shown in Figure 3, this sound volume control device 300 can comprise duration updating block 301, volume adjustment unit 302, wherein:
Described duration updating block 301, for when current data acquisition duration is less than preset duration, gathers the ambient sound audio data in the play area of wireless sound box, and upgrades current data acquisition duration based on the ambient sound audio data of described collection;
Described volume adjustment unit 302, for when current data acquisition duration is more than or equal to preset duration, adjusts the volume of described wireless sound box to presetting volume value.
Optionally, described duration updating block 301 comprises:
First collecting unit, for gathering the ambient sound audio data in the play area of period collection wireless sound box first;
Detecting unit, for detect described collection ambient sound audio data whether with the audio user Data Matching prestored;
First updating block, when the ambient sound audio data for detecting described collection when described detecting unit is not mated with the audio user data prestored, then upgrading current data acquisition duration is zero;
Second updating block, during for the ambient sound audio data detecting described collection when described detecting unit and the audio user Data Matching prestored, then gather the period and second based on described first and gather data acquisition duration corresponding to period, upgrade current data acquisition duration, described second to gather the period be the collection period gathering period adjacent previous ambient sound audio data with described first.
Wherein, each gathers data acquisition duration corresponding to period should add for current collection duration the data acquisition duration that the adjacent previous collection period is corresponding, that is, current data acquisition duration corresponding to current collection period should add for current collection duration the data acquisition duration that the adjacent previous collection period is corresponding.So, supposing first, to gather the collection duration of period be t1, and first gathers period adjacent previous with this to gather data acquisition duration corresponding to period be t2, then the current data acquisition duration of the first collection period should be t1+t2.
For example, suppose that the collection duration gathering the period is 20ms, second to gather data acquisition duration corresponding to period be 40ms, then described wireless sound box gathers data acquisition duration 40ms corresponding to period based on the collection duration 20ms and second that described first gathers the period, upgrading first, to gather period current data acquisition duration be 20ms and 40ms sum, i.e. 60ms.
Optionally, described detecting unit 3012 specifically for:
Extract signal frequency range in described ambient sound audio data and belong to the reference audio data of default band limits;
Detect described reference audio data whether with the audio user Data Matching prestored.
Optionally, described sound volume control device also comprises:
Second collecting unit 305, for gathering the ambient sound audio data of the play area of described wireless sound box;
Recovery unit 306, for when the ambient sound audio data of described collection is not mated with the audio user data prestored, recovers the volume of described wireless sound box.
Optionally, described duration updating block 301 gathers the specific implementation of the ambient sound audio data of the play area of wireless sound box and is:
The ambient sound audio data of the play area of described wireless sound box is gathered by the audio collection unit of described wireless sound box;
Or,
The ambient sound audio data of the play area of described wireless sound box is gathered by the terminal equipment communicated to connect with described wireless sound box;
Receive the described ambient sound audio data that described terminal equipment sends.
It should be noted that the sound volume control device 300 described by apparatus of the present invention embodiment presents with the form of functional unit.Here used term " unit " should be understood to implication the widest as far as possible, can be such as integrated circuit ASIC for realizing the object of each " unit " described function, single circuit, for performing processor (shared, special or chipset) and the memory of one or more software or firmware program, combinational logic circuit, and/or other the suitable assemblies realizing above-mentioned functions are provided.
For example, art technology person people can assert that the composition form of the hardware carrier of this sound volume control device 300 can be specifically the wireless sound box 100 shown in Fig. 1.
Wherein, the function of described duration updating block 301 can be realized by the processor 101 in described wireless sound box 100, memory 102 and microphone 108 and digital signal processing circuit 114, particular by the collection duration update module in processor 100 run memory 102 to pass through microphone 108 and digital signal processing circuit 114, for when current data acquisition duration is less than preset duration, gather the ambient sound audio data in the play area of wireless sound box, and upgrade current data acquisition duration based on the ambient sound audio data of described collection;
Described volume adjustment unit 302 function can be realized by the processor 101 in described wireless sound box 100 and memory 102, particular by the Audio Control Module in processor 100 run memory 102, when current data acquisition duration is more than or equal to preset duration, adjust the volume of described wireless sound box to presetting volume value.
Can find out, in the embodiment of the present invention, first the wireless sound box of sound volume control device disclosed in application apparatus of the present invention embodiment gathers ambient sound audio data in the play area of wireless sound box to upgrade the data acquisition duration of ambient sound audio data, secondly, judge whether data acquisition duration is more than or equal to preset duration, if not, then gather ambient sound audio data with more new data collection duration, if so, the volume of wireless sound box is then adjusted to presetting volume value.Visible, described wireless sound box is when the volume without the need to user's manual adjustments wireless sound box, the ambient sound audio data that automatically can detect the play area of wireless sound box is with more new data collection duration, and the volume adjusting wireless sound box when this data acquisition duration is more than or equal to preset duration extremely presets volume value, be conducive to the intelligent and convenience promoting wireless sound box volume adjusting, promote Consumer's Experience.
The embodiment of the present invention also provides a kind of computer-readable storage medium, and wherein, this computer-readable storage medium can have program stored therein, and comprises the part or all of step of the method for supervising of any one service processes recorded in said method embodiment when this program performs.
It should be noted that, for aforesaid each embodiment of the method, in order to simple description, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not by the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in specification all belongs to preferred embodiment, and involved action and module might not be that the present invention is necessary.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, in certain embodiment, there is no the part described in detail, can see the associated description of other embodiments.
In several embodiments that the application provides, should be understood that, disclosed device, the mode by other realizes.Such as, device embodiment described above is only schematic, the such as division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.
If described integrated unit using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprises all or part of step of some instructions in order to make a computer equipment (can be personal computer, server or the network equipment etc.) perform method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, read-only memory (ROM, Read-OnlyMemory), random access memory (RAM, RandomAccessMemory), portable hard drive, magnetic disc or CD etc. various can be program code stored medium.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is that the hardware that can carry out instruction relevant by program has come, this program can be stored in a computer-readable recording medium, storage medium can comprise: flash disk, read-only memory are (English: Read-OnlyMemory, be called for short: ROM), random access device (English: RandomAccessMemory, RAM), disk or CD etc. be called for short:.
Be described in detail the embodiment of the present invention above, apply specific case herein and set forth principle of the present invention and execution mode, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, to sum up above-mentioned, this description should not be construed as limitation of the present invention.

Claims (10)

1. a method for controlling volume, is characterized in that, comprising:
When current data acquisition duration is less than preset duration, gathers the ambient sound audio data in the play area of wireless sound box, and upgrade current data acquisition duration based on the ambient sound audio data of described collection;
When current data acquisition duration is more than or equal to preset duration, adjust the volume of described wireless sound box to presetting volume value.
2. method according to claim 1, is characterized in that, the ambient sound audio data in the play area of described collection wireless sound box, and upgrades current data acquisition duration based on the ambient sound audio data of described collection, comprising:
The ambient sound audio data in the play area of period collection wireless sound box is gathered first;
The ambient sound audio data detecting described collection whether with the audio user Data Matching prestored;
If not, then upgrading current data acquisition duration is zero;
If so, then gather the period and second based on described first and gather data acquisition duration corresponding to period, upgrade current data acquisition duration, described second to gather the period be the collection period gathering period adjacent previous ambient sound audio data with described first.
3. method according to claim 2, is characterized in that, the ambient sound audio data of the described collection of described detection whether with the audio user Data Matching prestored, comprising:
Extract signal frequency range in described ambient sound audio data and belong to the reference audio data of default band limits;
Detect described reference audio data whether with the audio user Data Matching prestored.
4. the method according to any one of claim 1-3, is characterized in that, after the extremely default volume value of volume of the described wireless sound box of described adjustment, described method also comprises:
Gather the ambient sound audio data of the play area of described wireless sound box;
When the ambient sound audio data of described collection is not mated with the audio user data prestored, recover the volume of described wireless sound box.
5. the method according to any one of claim 1-4, is characterized in that, the ambient sound audio data of the play area of described collection wireless sound box, comprising:
The ambient sound audio data of the play area of described wireless sound box is gathered by the audio collection unit of described wireless sound box;
Or,
The ambient sound audio data of the play area of described wireless sound box is gathered by the terminal equipment communicated to connect with described wireless sound box;
Receive the described ambient sound audio data that described terminal equipment sends.
6. a sound volume control device, is applied to wireless sound box, it is characterized in that, comprising:
Often updating block, for when current data acquisition duration is less than preset duration, gathers the ambient sound audio data in the play area of wireless sound box, and upgrades current data acquisition duration based on the ambient sound audio data of described collection;
Volume adjustment unit, for when current data acquisition duration is more than or equal to preset duration, adjusts the volume of described wireless sound box to presetting volume value.
7. sound volume control device according to claim 6, is characterized in that, described duration updating block comprises:
First collecting unit, for gathering the ambient sound audio data in the play area of period collection wireless sound box first;
Detecting unit, for detect described collection ambient sound audio data whether with the audio user Data Matching prestored;
First updating block, when the ambient sound audio data for detecting described collection when described detecting unit is not mated with the audio user data prestored, then upgrading current data acquisition duration is zero;
Second updating block, during for the ambient sound audio data detecting described collection when described detecting unit and the audio user Data Matching prestored, then gather the period and second based on described first and gather data acquisition duration corresponding to period, upgrade current data acquisition duration, described second to gather the period be the collection period gathering period adjacent previous ambient sound audio data with described first.
8. sound volume control device according to claim 7, is characterized in that, described detecting unit specifically for:
Extract signal frequency range in described ambient sound audio data and belong to the reference audio data of default band limits;
Detect described reference audio data whether with the audio user Data Matching prestored.
9. the sound volume control device according to any one of claim 6-8, is characterized in that, described sound volume control device also comprises:
Second collecting unit, the volume for adjusting described wireless sound box at described volume adjustment unit gathers the ambient sound audio data of the play area of described wireless sound box after extremely presetting volume value;
Recovery unit, for when the ambient sound audio data of described collection is not mated with the audio user data prestored, recovers the volume of described wireless sound box.
10. the sound volume control device according to any one of claim 6-9, is characterized in that, the specific implementation that described duration updating block gathers the ambient sound audio data of the play area of wireless sound box is:
The ambient sound audio data of the play area of described wireless sound box is gathered by the audio collection unit of described wireless sound box;
Or,
The ambient sound audio data of the play area of described wireless sound box is gathered by the terminal equipment communicated to connect with described wireless sound box;
Receive the described ambient sound audio data that described terminal equipment sends.
CN201510916372.3A 2015-12-10 2015-12-10 A kind of method for controlling volume and device Active CN105376674B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510916372.3A CN105376674B (en) 2015-12-10 2015-12-10 A kind of method for controlling volume and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510916372.3A CN105376674B (en) 2015-12-10 2015-12-10 A kind of method for controlling volume and device

Publications (2)

Publication Number Publication Date
CN105376674A true CN105376674A (en) 2016-03-02
CN105376674B CN105376674B (en) 2019-07-30

Family

ID=55378402

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510916372.3A Active CN105376674B (en) 2015-12-10 2015-12-10 A kind of method for controlling volume and device

Country Status (1)

Country Link
CN (1) CN105376674B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111149375A (en) * 2017-09-29 2020-05-12 伯斯有限公司 Multi-zone audio system integrating cross-zone and zone-specific tuning

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040071294A1 (en) * 2002-10-15 2004-04-15 Halgas Joseph F. Method and apparatus for automatically configuring surround sound speaker systems
CN101227759A (en) * 2007-01-15 2008-07-23 上海杰得微电子有限公司 Earphone device with automatic volume control function
CN101917656A (en) * 2010-08-30 2010-12-15 鸿富锦精密工业(深圳)有限公司 Automatic volume adjustment device and method
CN102118665A (en) * 2009-12-30 2011-07-06 北京华旗随身数码股份有限公司 Automatic tuning device and method and multimedia player
CN102497466A (en) * 2011-11-16 2012-06-13 深圳市无线开锋科技有限公司 Communication equipment and method for automatically adjusting ringtone of communication equipment
CN102883121A (en) * 2012-09-24 2013-01-16 北京多看科技有限公司 Method and device for regulating volume, and digital terminal
CN103354445A (en) * 2013-06-20 2013-10-16 广东欧珀移动通信有限公司 Adaptive environment music playing apparatus and method thereof
CN204408287U (en) * 2014-12-31 2015-06-17 珠海全志科技股份有限公司 A kind of intelligent controlling device of portable loudspeaker box volume
WO2015127194A1 (en) * 2014-02-20 2015-08-27 Harman International Industries, Inc. Environment sensing intelligent apparatus

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040071294A1 (en) * 2002-10-15 2004-04-15 Halgas Joseph F. Method and apparatus for automatically configuring surround sound speaker systems
CN101227759A (en) * 2007-01-15 2008-07-23 上海杰得微电子有限公司 Earphone device with automatic volume control function
CN102118665A (en) * 2009-12-30 2011-07-06 北京华旗随身数码股份有限公司 Automatic tuning device and method and multimedia player
CN101917656A (en) * 2010-08-30 2010-12-15 鸿富锦精密工业(深圳)有限公司 Automatic volume adjustment device and method
CN102497466A (en) * 2011-11-16 2012-06-13 深圳市无线开锋科技有限公司 Communication equipment and method for automatically adjusting ringtone of communication equipment
CN102883121A (en) * 2012-09-24 2013-01-16 北京多看科技有限公司 Method and device for regulating volume, and digital terminal
CN103354445A (en) * 2013-06-20 2013-10-16 广东欧珀移动通信有限公司 Adaptive environment music playing apparatus and method thereof
WO2015127194A1 (en) * 2014-02-20 2015-08-27 Harman International Industries, Inc. Environment sensing intelligent apparatus
CN204408287U (en) * 2014-12-31 2015-06-17 珠海全志科技股份有限公司 A kind of intelligent controlling device of portable loudspeaker box volume

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111149375A (en) * 2017-09-29 2020-05-12 伯斯有限公司 Multi-zone audio system integrating cross-zone and zone-specific tuning
CN111149375B (en) * 2017-09-29 2021-07-27 伯斯有限公司 Multi-zone audio system integrating cross-zone and zone-specific tuning

Also Published As

Publication number Publication date
CN105376674B (en) 2019-07-30

Similar Documents

Publication Publication Date Title
EP3340243B1 (en) Method for performing voice control on device with microphone array, and device thereof
CN106898348B (en) Dereverberation control method and device for sound production equipment
US20160302017A1 (en) System and method for audio enhancement of a consumer electronics device
CN108346433A (en) A kind of audio-frequency processing method, device, equipment and readable storage medium storing program for executing
CN104954555A (en) Volume adjusting method and system
CN103024630A (en) Volume regulating method of first electronic equipment and first electronic equipment
CN105281693A (en) Voice playing method and system
CN113194372B (en) Earphone control method and device and related components
CN110364156A (en) Voice interactive method, system, terminal and readable storage medium storing program for executing
CN110827843A (en) Audio processing method and device, storage medium and electronic equipment
CN104021148A (en) Method and device for adjusting sound effect
CN103873988A (en) External device recognition circuit, method, device and system based on headphone jack
CN107168677A (en) Audio-frequency processing method and device, electronic equipment, storage medium
CN104869207B (en) The adjusting method and mobile terminal of a kind of volume
CN104486668A (en) Volume adjustment method
CN105227760A (en) A kind of alarm clock setting method and terminal
CN104992715A (en) Interface switching method and system of intelligent device
CN103929692B (en) Audio information processing method and electronic equipment
CN105824424A (en) Music control method and terminal
CA2869884C (en) A processing apparatus and method for estimating a noise amplitude spectrum of noise included in a sound signal
CN105677152A (en) Voice touch screen operation processing method and device and terminal
CN105022297A (en) Sound box parameter configuration method, mobile terminal, server and system
CN104822104A (en) Method for controlling audio equipment to be turned on and off based on brain waves, earphone and combination thereof
CN104853281A (en) Audio playing control method, apparatus, and sound box
CN110232909A (en) A kind of audio-frequency processing method, device, equipment and readable storage medium storing program for executing

Legal Events

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

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant