CN105376674B - A kind of method for controlling volume and device - Google Patents

A kind of method for controlling volume and device Download PDF

Info

Publication number
CN105376674B
CN105376674B CN201510916372.3A CN201510916372A CN105376674B CN 105376674 B CN105376674 B CN 105376674B CN 201510916372 A CN201510916372 A CN 201510916372A CN 105376674 B CN105376674 B CN 105376674B
Authority
CN
China
Prior art keywords
acquisition
data
sound box
wireless sound
audio data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510916372.3A
Other languages
Chinese (zh)
Other versions
CN105376674A (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 kind of method for controlling volume and devices, it include: when current data acquisition duration is less than preset duration, the environmental audio data in the play area of wireless sound box are acquired, and the environmental audio data based on the acquisition update current data acquisition duration;When current data acquisition duration is greater than or equal to preset duration, the volume of the wireless sound box is adjusted to default volume value.The embodiment of the present invention is conducive to be promoted the intelligent and convenience of wireless sound box volume adjustment, promotes user experience.

Description

A kind of method for controlling volume and device
Technical field
The present invention relates to speaker volume controlling technique fields, and in particular to a kind of method for controlling volume and device.
Background technique
Wireless sound box is more more and more universal, such as the wireless music system of SONOS.These wireless sound boxes are integrated with processor and net Network interface, the Streaming Media music of accessible internet directly obtain music sources from network and play according to the user's choice. Wireless music system is generally managed by the application program of mobile terminal (such as mobile phone and tablet computer) installation.Pacify on mobile terminal After having filled dedicated application program, wireless sound box can be accessed by the application program, may browse through the Streaming Media on internet Music, and song is selected to be pushed to wireless sound box broadcasting.
The present inventor has found that wireless sound box plays in music and the biggish situation of volume, people in the course of the research Play area locating for wireless sound box when talking, since audible sound is larger, will affect the normal talk of people, at this moment Need the volume of manual de-regulation speaker.
Summary of the invention
The embodiment of the invention provides a kind of method for controlling volume and devices, to promote the intelligence of wireless sound box volume adjustment Energy type and convenience promote user experience.
First aspect of the embodiment of the present invention provides a kind of method for controlling volume applied to wireless sound box, comprising:
Wireless sound box acquires in the play area of wireless sound box when current data acquisition duration is less than preset duration Environmental audio data, and the environmental audio data based on the acquisition update current data acquisition duration;
The wireless sound box adjusts the wireless sound box when current data acquisition duration is greater than or equal to preset duration Volume to default volume value.
Above-mentioned wireless sound box acquires the environmental audio data in the play area of wireless sound box first to update environmental audio The data of data acquire duration, secondly, judging whether data acquisition duration is greater than or equal to preset duration, if it is not, then acquiring ring Border audio data is with more new data collection duration, if so, the volume of adjustment wireless sound box is to default volume value.As it can be seen that described Wireless sound box can automatically detect the broadcast area of wireless sound box in the case where manually adjusting the volume of wireless sound box without user The environmental audio data in domain acquire the case where duration is greater than or equal to preset duration in the data with more new data collection duration The volume of lower adjustment wireless sound box is conducive to the intelligent and convenience for promoting wireless sound box volume adjustment to default volume value, Promote user experience.
In the first possible implementation of first aspect of the embodiment of the present invention, the play area of the acquisition wireless sound box Interior environmental audio data, and the environmental audio data based on the acquisition update current data acquisition duration, comprising:
Environmental audio data of the acquisition wireless sound box in the play area of the first acquisition period acquisition wireless sound box;
The acquisition wireless sound box detect the acquisition environmental audio data whether with the audio user data that prestore Match;
If it is not, a length of zero when then the acquisition wireless sound box updates current data acquisition;
If so, the acquisition wireless sound box is based on the first acquisition period and the second acquisition period corresponding data are adopted Collect duration, update current data acquisition duration, the second acquisition period is adjacent with the first acquisition period previous The acquisition period of a environmental audio data.Wherein, each acquisition period corresponding data acquisition duration should adopt for current Collect duration and acquire duration plus adjacent corresponding data of previous acquisition period, that is to say, that the current acquisition period is corresponding Current data acquisition duration should add adjacent corresponding data of previous acquisition period for current acquisition duration and adopt Collect duration.So, it is assumed that a length of t1 when the acquisition of the first acquisition period, when adjacent with the first acquisition period previous acquisition A length of t2 when section corresponding data acquisition, then the current data acquisition duration of the first acquisition period should be t1+t2.
In conjunction with the first possible implementation of first aspect of the embodiment of the present invention, in first aspect of the embodiment of the present invention In two kinds of possible implementations, the wireless sound box detect the acquisition environmental audio data whether with user's sound for prestoring Frequency Data Matching, comprising:
The wireless sound box extracts the reference audio that signal frequency range in the environmental audio data belongs to default band limits Data;
The wireless sound box detect the reference audio data whether with the audio user Data Matching that prestores.
In conjunction with first aspect of the embodiment of the present invention or first aspect the first or second of possible implementation, in this hair In the third possible implementation of bright embodiment first aspect, the wireless sound box adjusts the volume of the wireless sound box to pre- If after volume value, the method also includes:
The wireless sound box acquires the environmental audio data of the play area of the wireless sound box;
When the environmental audio data of the acquisition are mismatched with the audio user data prestored, the wireless sound box restores The volume of the wireless sound box.
In conjunction with first aspect of the embodiment of the present invention or first aspect the first or second or the third possible realization side Formula, in the 4th kind of possible implementation of first aspect of the embodiment of the present invention, the wireless sound box acquisition wireless sound box is broadcast Put the environmental audio data in region, comprising:
The wireless sound box acquires the play area of the wireless sound box by the audio collection unit of the wireless sound box Environmental audio data;
Alternatively,
The wireless sound box acquires broadcasting for the wireless sound box by the terminal device communicated to connect with the wireless sound box Put the environmental audio data in region;
The wireless sound box receives the environmental audio data that the terminal device is sent.
Second aspect of the embodiment of the present invention provides a kind of sound volume control device applied to wireless sound box, comprising:
Often updating unit, for acquiring broadcasting for wireless sound box when current data acquisition duration is less than preset duration The environmental audio data in region are put, and the environmental audio data based on the acquisition update current data acquisition duration;
Volume adjustment unit, for adjusting the nothing when current data acquisition duration is greater than or equal to preset duration The volume of line speaker is to default volume value.
In the first possible implementation of second aspect of the embodiment of the present invention, the duration updating unit includes:
First acquisition unit, for the ambient sound frequency in the play area of the first acquisition period acquisition wireless sound box According to;
Detection unit, for detect the acquisition environmental audio data whether with the audio user Data Matching that prestores;
First updating unit, for detecting the environmental audio data of the acquisition and the user prestored when the detection unit When audio data mismatches, then a length of zero when updating current data acquisition;
Second updating unit, for detecting the environmental audio data of the acquisition and the user prestored when the detection unit When audio data matches, then duration is acquired based on the first acquisition period and the second acquisition period corresponding data, update is worked as Preceding data acquire duration, and the second acquisition period is the previous environmental audio data adjacent with the first acquisition period The acquisition period.Wherein, each acquisition period corresponding data acquisition duration should be current acquisition duration plus adjacent Corresponding data of previous acquisition period acquire duration, that is to say, that current acquisition period corresponding current data are adopted Duration should be acquired plus adjacent corresponding data of previous acquisition period for current acquisition duration by collecting duration.In this way, false If a length of t1 when the acquisition of the first acquisition period, data corresponding with the first acquisition period adjacent previous acquisition period are adopted A length of t2 when collection, then the current data acquisition duration of the first acquisition period should be t1+t2.
In conjunction with the first possible implementation of second aspect of the embodiment of the present invention, in second aspect of the embodiment of the present invention In two kinds of possible implementations, the detection unit is specifically used for:
Extract the reference audio data that signal frequency range in the environmental audio data belongs to default band limits;
Detect the reference audio data whether with the audio user Data Matching that prestores.
In conjunction with second aspect of the embodiment of the present invention or second aspect the first or second of possible implementation, the present invention In the third possible implementation of embodiment second aspect, the sound volume control device further include:
Second acquisition unit, for adjusting the volume of the wireless sound box in the volume adjustment unit to default volume value Later, the environmental audio data of the play area of the wireless sound box are acquired;
Recovery unit, it is extensive for when the environmental audio data of the acquisition are mismatched with the audio user data that prestore The volume of the multiple wireless sound box.
In conjunction with second aspect of the embodiment of the present invention or second aspect the first or second or the third possible realization side Formula, in the 4th kind of possible implementation of second aspect of the embodiment of the present invention, the duration updating unit acquisition wireless sound box The specific implementation of the environmental audio data of play area are as follows:
The ambient sound frequency of the play area of the wireless sound box is acquired by the audio collection unit of the wireless sound box According to;
Alternatively,
The environment of the play area of the wireless sound box is acquired by the terminal device communicated to connect with the wireless sound box Audio data;
Receive the environmental audio data that the terminal device is sent.
The third aspect of the embodiment of the present invention provides a kind of sound volume control device applied to wireless sound box, the volume control Device, which has, realizes each " unit " described function in above-described embodiment, and the function can be by hardware realization, can also To execute corresponding software realization by hardware.The hardware or software include that one or more is corresponding with above-mentioned function Unit.
Fourth aspect of the embodiment of the present invention provides a kind of wireless sound box, include in the structure of the wireless sound box processor and Microphone, digital signal processing circuit, the processor is configured to it is corresponding in above-described embodiment to support that wireless sound box executes Function.The microphone and Digital Signal Processing electric current are used to acquire the ambient sound of wireless sound box to obtain ambient sound frequency According to.The wireless sound box further includes memory, and the memory saves the necessary journey of wireless sound box for coupling with processor Sequence instruction and data.
As can be seen that wireless sound box acquires the ambient sound in the play area of wireless sound box first in the embodiment of the present invention Frequency updates the data acquisition duration of environmental audio data accordingly, secondly, it is pre- to judge whether data acquisition duration is greater than or equal to If duration, if it is not, then acquiring environmental audio data with more new data collection duration, if so, the volume of adjustment wireless sound box is extremely Default volume value.As it can be seen that the wireless sound box without user manually adjust the volume of wireless sound box in the case where, can be automatic The environmental audio data of the play area of wireless sound box are detected with more new data collection duration, and are greater than in data acquisition duration Or equal to preset duration in the case where adjust wireless sound box volume to default volume value, be conducive to promote wireless sound box volume tune The intelligent and convenience of section promotes user experience.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is the simplified architecture composition block diagram of the wireless sound box disclosed by the embodiments of the present invention for realizing method for controlling volume;
Fig. 2 is a kind of flow diagram of method for controlling volume disclosed in embodiment of the present invention method;
Fig. 2 .1 is a kind of part flow diagram of method for controlling volume disclosed in embodiment of the present invention method;
Fig. 2 .2 is a kind of part flow diagram of method for controlling volume disclosed in embodiment of the present invention method;
Fig. 3 is a kind of functional unit composition block diagram of sound volume control device disclosed in apparatus of the present invention embodiment.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
Description and claims of this specification and term " first " in above-mentioned attached drawing, " second " etc. are for distinguishing Different objects, are not use to describe a particular order.In addition, term " includes " and " having " and their any deformations, it is intended that It is to cover and non-exclusive includes.Such as the process, method, system, product or equipment for containing a series of steps or units do not have It is defined in listed step or unit, but optionally further comprising the step of not listing or unit, or optionally also wrap Include other step or units intrinsic for these process, methods, product or equipment.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodiments Containing at least one embodiment of the present invention.Each position in the description occur the phrase might not each mean it is identical Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and Implicitly understand, embodiment described herein can be combined with other embodiments.
In order to be best understood from a kind of method for controlling volume and device disclosed by the embodiments of the present invention, below first to of the invention real The applicable wireless sound box of example is applied to be described.Referring to Figure 1, Fig. 1 is a kind of realization sound of the present invention provided in an embodiment of the present invention The simplified architecture composition block diagram of the wireless sound box of amount control method;.It is specific in the structure composed figure of the simplification of the wireless sound box 100 It may include at least one processor Processor 101, at least one processor Memroy Unit 102, at least one is logical Believe bus B US 103, reception/transmitting line 104, antenna 105, at least one display screen Display Screen 107, Mike Wind Microphone 108, loudspeaker Speaker 109, physical button Keys 111, bluetooth controller Bluetooth Controller 113, digital signal processing circuit 114;Wherein, above-mentioned processor 101 passes through reception/transmitting line 104 and day Line 105 realizes the communication with External cell net;The microphone can acquire in the play area of the loudspeaker of wireless sound box Ambient sound, and the ambient sound received is transformed by environmental audio data, such as parlor by digital signal processing circuit 114 Wireless sound box in microphone can acquire the ambient sound in parlor, and be transformed by digital signal processing circuit 114 Environmental audio data, wherein the acquisition period of microphone acquisition ambient sound can be the fixed cycle, each cycle duration can To be set and be stored in the memory 102 in advance;At least one processor 102 for example can be random access storage Device or nonvolatile memory;It is also stored with instruction set in at least one processor, which is integrated in operation system It unites or by the way that in the executable application program of processor 101, which being capable of the execution of bootstrap processor 101 and the present invention Specifically disclosed method for controlling volume in embodiment.
Processor 101 in above-mentioned wireless sound box 100 can couple at least one processor, the memory 102 In prestore instruction set, described instruction set specifically includes acquisition duration update module, Audio Control Module, the memory 102 are also further stored with kernel module, and the kernel module includes operating system (such as WINDOWSTM, ANDROIDTM, IOSTM Deng).The processor 101 calls described instruction set to execute method for controlling volume disclosed in the embodiment of the present invention, specifically The following steps are included:
Duration update module in 101 run memory 102 of processor of the wireless sound box 100, when current data When acquiring duration less than preset duration, the environmental audio data in the play area of wireless sound box are acquired, and be based on the acquisition Environmental audio data update current data acquisition duration;
Audio Control Module in 101 run memory 102 of processor of the wireless sound box 100, when current data When acquiring duration and being greater than or equal to preset duration, the volume of the wireless sound box is adjusted to default volume value.
Optionally, the duration update module in 101 run memory 102 of processor is to acquire the broadcasting of wireless sound box Environmental audio data in region are to update the concrete mode that the data of the environmental audio data acquire duration are as follows: the processing Environmental audio data of the device 101 in the play area of the first acquisition period acquisition wireless sound box;The processor 101 detects institute State acquisition environmental audio data whether with the audio user Data Matching that prestores;If it is not, then the processor 101 updates currently Data acquisition when a length of zero;If so, the processor 101 is based on the first acquisition period and the second acquisition period is corresponding Data acquire duration, update current data acquisition duration, the second acquisition period is and the first acquisition period phase The acquisition period of adjacent previous environmental audio data.Wherein, each acquisition period corresponding data acquisition duration should be Current acquisition duration acquires duration plus adjacent corresponding data of previous acquisition period, that is to say, that current acquisition Period, corresponding current data acquisition duration should be corresponding plus the adjacent previous acquisition period for current acquisition duration Data acquire duration.So, it is assumed that a length of t1 when the acquisition of the first acquisition period, adjacent with the first acquisition period is previous A length of t2 when the corresponding data acquisition of a acquisition period, then the current data acquisition duration of the first acquisition period should be t1+ t2。
As an example it is assumed that the acquisition duration of acquisition period is 20ms, when the second acquisition period corresponding data acquire A length of 40ms, then acquisition duration 20ms and second acquisition period of the wireless sound box based on the first acquisition period is corresponding Data acquire duration 40ms, and update first acquires the sum of a length of 20ms and 40ms, i.e. 60ms when period current data acquisition.
Optionally, the processor 101 detect the acquisition environmental audio data whether with the audio user number that prestores According to matched concrete mode are as follows: the processor 101 extracts signal frequency range in the environmental audio data and belongs to default frequency range model The reference audio data enclosed;The processor 101 detect the reference audio data whether with the audio user data that prestore Match.
Optionally, after the processor 101 adjusts the volume to default volume value of the wireless sound box, the processor 101 are also used to acquire the environmental audio data of the play area of the wireless sound box;When the acquisition environmental audio data with When the audio user data prestored mismatch, restore the volume of the wireless sound box.
Optionally, the processor 101 acquires the specific implementation side of the environmental audio data of the play area of wireless sound box Formula are as follows: the processor 101 acquires the play area of the wireless sound box by the audio collection unit of the wireless sound box Environmental audio data;
Alternatively,
The processor 101 acquires broadcasting for the wireless sound box by the terminal device communicated to connect with the wireless sound box The environmental audio data in region are put, the processor 101 receives the environmental audio data that the terminal device is sent.
As can be seen that wireless sound box acquires the ambient sound in the play area of wireless sound box first in the embodiment of the present invention Frequency updates the data acquisition duration of environmental audio data accordingly, secondly, it is pre- to judge whether data acquisition duration is greater than or equal to If duration, if it is not, then acquiring environmental audio data with more new data collection duration, if so, the volume of adjustment wireless sound box is extremely Default volume value.As it can be seen that the wireless sound box without user manually adjust the volume of wireless sound box in the case where, can be automatic The environmental audio data of the play area of wireless sound box are detected with more new data collection duration, and are greater than in data acquisition duration Or equal to preset duration in the case where adjust wireless sound box volume to default volume value, be conducive to promote wireless sound box volume tune The intelligent and convenience of section promotes user experience.
Consistent with the technical solution of foregoing description, as a specific embodiment, Fig. 2 is the volume for including wireless sound box The flow diagram of the specific implementation procedure of control method.Although method for controlling volume described herein is based on shown in FIG. 1 Wireless sound box 100 executes, but should be noted that the carrying out practically environment of method for controlling volume disclosed by the embodiments of the present invention It is not limited only to above-mentioned wireless sound box.
As shown in Fig. 2, method for controlling volume disclosed in embodiment of the present invention method specifically includes the following steps:
S201, wireless sound box acquire the broadcast area of wireless sound box when current data acquisition duration is less than preset duration Environmental audio data in domain, and the environmental audio data based on the acquisition update current data acquisition duration;
In the embodiment of the present invention, the wireless sound box acquires the specific of the environmental audio data of the play area of wireless sound box Implementation are as follows:
The wireless sound box acquires the play area of the wireless sound box by the audio collection unit of the wireless sound box Environmental audio data;
Alternatively,
The wireless sound box acquires broadcasting for the wireless sound box by the terminal device communicated to connect with the wireless sound box Put the environmental audio data in region;Wherein, the terminal device for example can be smart phone, other wireless sound boxes, plate electricity Brain, wearable device (such as smartwatch, Intelligent bracelet) electronic equipment.
The wireless sound box receives the environmental audio data that the terminal device is sent.
Further, the ambient sound frequency as shown in Fig. 2 .1, in the play area of the wireless sound box acquisition wireless sound box According to, and it includes following step that the environmental audio data based on the acquisition, which update the specific implementation of current data acquisition duration, It is rapid:
S2011, ambient sound frequency of the wireless sound box in the play area of the first acquisition period acquisition wireless sound box According to;
Wherein, the acquisition duration of the first acquisition period can be preset by user, be also possible in wireless sound box Before factory in the firmware of write-in wireless sound box.
S2012, the wireless sound box detect the acquisition environmental audio data whether with the audio user data that prestore Matching;
Wherein, the audio user data prestored for example may include the user speech number within the scope of 65Hz to 1100Hz According to the frequency range of sound more matches when the frequency range is normally spoken with people, is conducive to accurately identify the people in ambient sound data Sound reduces identification error.
If it is not, thening follow the steps S2013;
If so, thening follow the steps S2014;
S2013, a length of zero when the wireless sound box updates current data acquisition;
Wherein, the initial value of the data acquisition duration of the environmental audio data for example can be zero.
S2014, when the wireless sound box is acquired based on the first acquisition period and the second acquisition period corresponding data It is long, current data acquisition duration is updated, the second acquisition period is the previous ring adjacent with the first acquisition period The acquisition period of border audio data.
Wherein, each acquisition period corresponding data acquisition duration should be added for current acquisition duration it is adjacent before One acquisition period, corresponding data acquired duration, that is to say, that when corresponding current data of current acquisition period acquire Length should acquire duration plus adjacent corresponding data of previous acquisition period for current acquisition duration.So, it is assumed that the A length of t1 when the acquisition of one acquisition period, when data corresponding with the first acquisition period adjacent previous acquisition period acquire A length of t2, then the current data acquisition duration of the first acquisition period should be t1+t2.
As an example it is assumed that the acquisition duration of acquisition period is 20ms, when the second acquisition period corresponding data acquire A length of 40ms, then acquisition duration 20ms and second acquisition period of the wireless sound box based on the first acquisition period is corresponding Data acquire duration 40ms, and update first acquires the sum of a length of 20ms and 40ms, i.e. 60ms when period current data acquisition.
Wherein, as shown in Fig. 2 .2, the step S2012 wireless sound box detect the acquisition environmental audio data whether With the specific implementation of the audio user Data Matching prestored the following steps are included:
S2012-a, the wireless sound box extract signal frequency range in the environmental audio data and belong to default band limits Reference audio data;
S2012-b, the wireless sound box detect the reference audio data whether with the audio user Data Matching that prestores.
Wherein, the default band limits for example can be 65Hz to 1100Hz, the sound when frequency range and people normally speak The frequency range of sound more matches, and is conducive to accurately identify the voice in ambient sound data, reduces identification error.
S202, the wireless sound box adjust the nothing when current data acquisition duration is greater than or equal to preset duration The volume of line speaker is to default volume value.
As can be seen that wireless sound box acquires the ambient sound in the play area of wireless sound box first in the embodiment of the present invention Frequency updates the data acquisition duration of environmental audio data accordingly, secondly, it is pre- to judge whether data acquisition duration is greater than or equal to If duration, if it is not, then acquiring environmental audio data with more new data collection duration, if so, the volume of adjustment wireless sound box is extremely Default volume value.As it can be seen that the wireless sound box without user manually adjust the volume of wireless sound box in the case where, can be automatic The environmental audio data of the play area of wireless sound box are detected with more new data collection duration, and are greater than in data acquisition duration Or equal to preset duration in the case where adjust wireless sound box volume to default volume value, be conducive to promote wireless sound box volume tune The intelligent and convenience of section promotes user experience.
Optionally, in the embodiment of the present invention, the wireless sound box adjusts the volume of the wireless sound box to default volume value Later, following steps can also be performed to restore volume in the wireless sound box:
The wireless sound box acquires the environmental audio data of the play area of the wireless sound box;
The wireless sound box restores when the environmental audio data of the acquisition are mismatched with the audio user data prestored The volume of the wireless sound box.
Wherein, it is default volume value that the volume of the wireless sound box of the recovery, which can be the volume adjustment of the wireless volume, Volume before.
The following is an embodiment of the apparatus of the present invention, and apparatus of the present invention embodiment is realized for executing embodiment of the present invention method Method.
Based on the composition framework of wireless sound box 100 shown in FIG. 1, the embodiment of the invention discloses a kind of volume control dress It sets.Referring 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, the sound volume control device 300 may include duration updating unit 301, volume adjustment unit 302, In:
The duration updating unit 301, for acquiring wireless sound when current data acquisition duration is less than preset duration Environmental audio data in the play area of case, and when the environmental audio data based on the acquisition update current data acquisition It is long;
The volume adjustment unit 302, for adjusting when current data acquisition duration is greater than or equal to preset duration The volume of the wireless sound box is to default volume value.
Optionally, the duration updating unit 301 includes:
First acquisition unit, for the ambient sound frequency in the play area of the first acquisition period acquisition wireless sound box According to;
Detection unit, for detect the acquisition environmental audio data whether with the audio user Data Matching that prestores;
First updating unit, for detecting the environmental audio data of the acquisition and the user prestored when the detection unit When audio data mismatches, then a length of zero when updating current data acquisition;
Second updating unit, for detecting the environmental audio data of the acquisition and the user prestored when the detection unit When audio data matches, then duration is acquired based on the first acquisition period and the second acquisition period corresponding data, update is worked as Preceding data acquire duration, and the second acquisition period is the previous environmental audio data adjacent with the first acquisition period The acquisition period.
Wherein, each acquisition period corresponding data acquisition duration should be added for current acquisition duration it is adjacent before One acquisition period, corresponding data acquired duration, that is to say, that when corresponding current data of current acquisition period acquire Length should acquire duration plus adjacent corresponding data of previous acquisition period for current acquisition duration.So, it is assumed that the A length of t1 when the acquisition of one acquisition period, when data corresponding with the first acquisition period adjacent previous acquisition period acquire A length of t2, then the current data acquisition duration of the first acquisition period should be t1+t2.
As an example it is assumed that the acquisition duration of acquisition period is 20ms, when the second acquisition period corresponding data acquire A length of 40ms, then acquisition duration 20ms and second acquisition period of the wireless sound box based on the first acquisition period is corresponding Data acquire duration 40ms, and update first acquires the sum of a length of 20ms and 40ms, i.e. 60ms when period current data acquisition.
Optionally, the detection unit 3012 is specifically used for:
Extract the reference audio data that signal frequency range in the environmental audio data belongs to default band limits;
Detect the reference audio data whether with the audio user Data Matching that prestores.
Optionally, the sound volume control device further include:
Second acquisition unit 305, the environmental audio data of the play area for acquiring the wireless sound box;
Recovery unit 306, for when the environmental audio data of the acquisition are mismatched with the audio user data that prestore, Restore the volume of the wireless sound box.
Optionally, the duration updating unit 301 acquires the specific of the environmental audio data of the play area of wireless sound box Implementation are as follows:
The ambient sound frequency of the play area of the wireless sound box is acquired by the audio collection unit of the wireless sound box According to;
Alternatively,
The environment of the play area of the wireless sound box is acquired by the terminal device communicated to connect with the wireless sound box Audio data;
Receive the environmental audio data that the terminal device is sent.
It should be noted that sound volume control device 300 described in apparatus of the present invention embodiment is the shape with functional unit Formula is presented.Term " unit " used herein above should be understood as meaning as widest as possible, for realizing each " unit " institute The object of representation function for example can be integrated circuit ASIC, single circuit, for executing one or more softwares or firmware journey The processor (shared, dedicated or chipset) and memory of sequence, combinational logic circuit, and/or provide and realize above-mentioned function Other suitable components.
For example, art technology person people can be assumed that the composition form of the hardware carrier of the sound volume control device 300 It specifically can be wireless sound box 100 shown in FIG. 1.
Wherein, the function of the duration updating unit 301 can be by the processor 101 in the wireless sound box 100, storage Device 102 and microphone 108 and digital signal processing circuit 114 are realized, particular by 100 run memory of processor Acquisition duration update module in 102 is to pass through microphone 108 and digital signal processing circuit 114, for working as current data When acquiring duration less than preset duration, the environmental audio data in the play area of wireless sound box are acquired, and be based on the acquisition Environmental audio data update current data acquisition duration;
302 function of volume adjustment unit can be by the processor 101 and memory 102 in the wireless sound box 100 It realizes, particular by Audio Control Module in 100 run memory 102 of processor, when current data acquire duration When more than or equal to preset duration, the volume of the wireless sound box is adjusted to default volume value.
As can be seen that in the embodiment of the present invention, using the wireless of sound volume control device disclosed in apparatus of the present invention embodiment When speaker acquires the environmental audio data in the play area of wireless sound box first to update the acquisition of the data of environmental audio data It is long, secondly, judging whether data acquisition duration is greater than or equal to preset duration, if it is not, acquiring environmental audio data then to update Data acquire duration, if so, the volume of adjustment wireless sound box is to default volume value.As it can be seen that the wireless sound box is without using In the case that family manually adjusts the volume of wireless sound box, it can automatically detect the environmental audio data of the play area of wireless sound box With more new data collection duration, and the adjustment wireless sound box in the case where data acquisition duration is greater than or equal to preset duration Volume is conducive to the intelligent and convenience for promoting wireless sound box volume adjustment, promotes user experience to default volume value.
The embodiment of the present invention also provides a kind of computer storage medium, wherein the computer storage medium can be stored with journey Sequence, the program include the part or complete of the monitoring method for any service processes recorded in above method embodiment when executing Portion's step.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because According to the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules is not necessarily of the invention It is necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed device, it can be by another way It realizes.For example, the apparatus embodiments described above are merely exemplary, such as the division of the unit, it is only a kind of Logical function partition, there may be another division manner in actual implementation, such as multiple units or components can combine or can To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Coupling, direct-coupling or communication connection can be through some interfaces, the indirect coupling or communication connection of device or unit, It can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can for personal computer, server or network equipment etc.) execute each embodiment the method for the present invention whole or Part steps.And storage medium above-mentioned includes: that USB flash disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic or disk etc. be various to can store program code Medium.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage Medium may include: flash disk, read-only memory (English: Read-Only Memory, abbreviation: ROM), random access device (English Text: Random Access Memory, referred to as: RAM), disk or CD etc..
The embodiment of the present invention has been described in detail above, specific case used herein to the principle of the present invention and Embodiment is expounded, and the above description of the embodiment is only used to help understand the method for the present invention and its core ideas; At the same time, for those skilled in the art can in specific embodiments and applications according to the thought of the present invention There is change place, to sum up above-mentioned, the contents of this specification are not to be construed as limiting the invention.

Claims (10)

1. a kind of method for controlling volume characterized by comprising
When current data acquisition duration is less than preset duration, the ambient sound frequency in the play area of wireless sound box is acquired According to, and the detection acquisition environmental audio data whether with the audio user Data Matching that prestores, the user prestored Audio data includes the voice data of user, and when the environmental audio data based on the acquisition update current data acquisition It is long;
When current data acquisition duration is greater than or equal to preset duration, when the environmental audio data of the acquisition with prestore The volume of the wireless sound box is adjusted when audio user Data Matching to default volume value.
2. the method according to claim 1, wherein the environmental audio data update based on the acquisition is worked as Preceding data acquire duration, comprising:
Environmental audio data in the play area of the first acquisition period acquisition wireless sound box;
Detect the acquisition environmental audio data whether with the audio user Data Matching that prestores;
If it is not, a length of zero when then updating current data acquisition;
If so, acquiring duration based on the first acquisition period and the second acquisition period corresponding data, current number is updated According to acquisition duration, the second acquisition period is the acquisition of the previous environmental audio data adjacent with the first acquisition period Period.
3. according to the method described in claim 2, it is characterized in that, the environmental audio data of the detection acquisition whether with The audio user Data Matching prestored, comprising:
Extract the reference audio data that signal frequency range in the environmental audio data belongs to default band limits;
Detect the reference audio data whether with the audio user Data Matching that prestores.
4. method according to claim 1-3, which is characterized in that the volume of the adjustment wireless sound box is extremely After default volume value, the method also includes:
Acquire the environmental audio data of the play area of the wireless sound box;
When the environmental audio data of the acquisition are mismatched with the audio user data prestored, restore the sound of the wireless sound box Amount.
5. according to the method described in claim 4, it is characterized in that, the environmental audio of the play area of the acquisition wireless sound box Data, comprising:
The environmental audio data of the play area of the wireless sound box are acquired by the audio collection unit of the wireless sound box;
Alternatively,
The environmental audio of the play area of the wireless sound box is acquired by the terminal device communicated to connect with the wireless sound box Data;
Receive the environmental audio data that the terminal device is sent.
6. a kind of sound volume control device is applied to wireless sound box characterized by comprising
Duration updating unit, for acquiring the broadcast area of wireless sound box when current data acquisition duration is less than preset duration Environmental audio data in domain, and the environmental audio data based on the acquisition update current data acquisition duration;
Detection unit, detect the acquisition environmental audio data whether with the audio user Data Matching that prestores, it is described to prestore Audio user data include user voice data;
Volume adjustment unit for when current data acquisition duration is greater than or equal to preset duration, and works as the acquisition Environmental audio data with prestore audio user Data Matching when adjust the volume of the wireless sound box to default volume value.
7. sound volume control device according to claim 6, which is characterized in that the duration updating unit includes:
First acquisition unit, for the environmental audio data in the play area of the first acquisition period acquisition wireless sound box;
First updating unit, for detecting the environmental audio data of the acquisition and the audio user prestored when the detection unit When data mismatch, then a length of zero when updating current data acquisition;
Second updating unit, for detecting the environmental audio data of the acquisition and the audio user prestored when the detection unit When Data Matching, then duration is acquired based on the first acquisition period and the second acquisition period corresponding data, updated current Data acquire duration, and the second acquisition period is adopting for the previous environmental audio data adjacent with the first acquisition period Collect the period.
8. sound volume control device according to claim 7, which is characterized in that the detection unit is specifically used for:
Extract the reference audio data that signal frequency range in the environmental audio data belongs to default band limits;
Detect the reference audio data whether with the audio user Data Matching that prestores.
9. according to the described in any item sound volume control devices of claim 6-8, which is characterized in that the sound volume control device also wraps It includes:
Second acquisition unit, for adjusted in the volume adjustment unit volume of the wireless sound box to default volume value it Afterwards, the environmental audio data of the play area of the wireless sound box are acquired;
Recovery unit, for restoring institute when the environmental audio data of the acquisition are mismatched with the audio user data prestored State the volume of wireless sound box.
10. sound volume control device according to claim 9, which is characterized in that the duration updating unit acquires wireless sound The specific implementation of the environmental audio data of the play area of case are as follows:
The environmental audio data of the play area of the wireless sound box are acquired by the audio collection unit of the wireless sound box;
Alternatively,
The environmental audio of the play area of the wireless sound box is acquired by the terminal device communicated to connect with the wireless sound box Data;
Receive the environmental audio data that the terminal device is sent.
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 CN105376674A (en) 2016-03-02
CN105376674B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10531195B2 (en) * 2017-09-29 2020-01-07 Bose Corporation Multi-zone audio system with integrated cross-zone and zone-specific tuning

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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

Family Cites Families (3)

* 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
CN102118665A (en) * 2009-12-30 2011-07-06 北京华旗随身数码股份有限公司 Automatic tuning device and method and multimedia player
CN106031138B (en) * 2014-02-20 2019-11-29 哈曼国际工业有限公司 Environment senses smart machine

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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

Also Published As

Publication number Publication date
CN105376674A (en) 2016-03-02

Similar Documents

Publication Publication Date Title
CN104954555B (en) A kind of volume adjusting method and system
US9344793B2 (en) Audio apparatus and methods
CN105045639B (en) Downloading method of mobile terminal, device and mobile terminal
CN106155623B (en) A kind of audio collocation method, system and relevant device
CN106060909B (en) A kind of method for connecting network and mobile terminal
US20190355354A1 (en) Method, apparatus and system for speech interaction
CN109637548A (en) Voice interactive method and device based on Application on Voiceprint Recognition
CN106254993B (en) A kind of earphone left and right acoustic channels self-adaptation control method and device
CN108198569A (en) A kind of audio-frequency processing method, device, equipment and readable storage medium storing program for executing
CN104811864A (en) Method and system for self-adaptive adjustment of audio effect
US11244686B2 (en) Method and apparatus for processing speech
US20190237074A1 (en) Speech processing method, device and computer readable storage medium
CN106445314B (en) Display interface method for refreshing and device
CN105975063B (en) A kind of method and apparatus controlling intelligent terminal
CN105657656B (en) A kind of transmission power adjustment method and user equipment
CN106558314B (en) Method, device and equipment for processing mixed sound
CN204652645U (en) Audio signal compensation of delay device, sound card and terminal equipment
CN109493883A (en) A kind of audio time-delay calculation method and apparatus of smart machine and its smart machine
CN104869505B (en) A kind of method for controlling volume, playback equipment, mobile terminal and system
CN101436404A (en) Conversational biology-liked apparatus and conversational method thereof
CN105554234A (en) Denoising processing method and device and terminal
CN106599173A (en) Lyric matching method and terminal
CN108833216A (en) voice broadcast method and device
CN105376674B (en) A kind of method for controlling volume and device
CN105554273B (en) A kind of alarm clock prompting method and terminal

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
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.

GR01 Patent grant
GR01 Patent grant